mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-18 16:38:39 -04:00
ppc/85xx: get_law_entry isn't used in CONFIG_NAND_SPL
Don't include get_law_entry as part of the NAND_SPL build since the code isnt used. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
693a048d8a
commit
24b17d8a3c
@ -79,6 +79,7 @@ void disable_law(u8 idx)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef CONFIG_NAND_SPL
|
||||||
static int get_law_entry(u8 i, struct law_entry *e)
|
static int get_law_entry(u8 i, struct law_entry *e)
|
||||||
{
|
{
|
||||||
volatile ccsr_local_t *ccm = (void *)(CONFIG_SYS_FSL_CORENET_CCM_ADDR);
|
volatile ccsr_local_t *ccm = (void *)(CONFIG_SYS_FSL_CORENET_CCM_ADDR);
|
||||||
@ -96,6 +97,7 @@ static int get_law_entry(u8 i, struct law_entry *e)
|
|||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
void set_law(u8 idx, phys_addr_t addr, enum law_size sz, enum law_trgt_if id)
|
void set_law(u8 idx, phys_addr_t addr, enum law_size sz, enum law_trgt_if id)
|
||||||
{
|
{
|
||||||
@ -130,6 +132,7 @@ void disable_law(u8 idx)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef CONFIG_NAND_SPL
|
||||||
static int get_law_entry(u8 i, struct law_entry *e)
|
static int get_law_entry(u8 i, struct law_entry *e)
|
||||||
{
|
{
|
||||||
volatile u32 *base = (volatile u32 *)(CONFIG_SYS_IMMR + 0xc08);
|
volatile u32 *base = (volatile u32 *)(CONFIG_SYS_IMMR + 0xc08);
|
||||||
@ -149,6 +152,7 @@ static int get_law_entry(u8 i, struct law_entry *e)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
int set_next_law(phys_addr_t addr, enum law_size sz, enum law_trgt_if id)
|
int set_next_law(phys_addr_t addr, enum law_size sz, enum law_trgt_if id)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user