[U-Boot] [PATCH v2 1/5] 85xx: add boot from NAND/eSDHC/eSPI support

Kumar Gala kumar.gala at freescale.com
Fri Sep 11 05:12:30 CEST 2009


On Sep 10, 2009, at 9:53 PM, Mingkai Hu wrote:

> diff --git a/cpu/mpc85xx/tlb.c b/cpu/mpc85xx/tlb.c
> index 0497a29..9c7c928 100644
> --- a/cpu/mpc85xx/tlb.c
> +++ b/cpu/mpc85xx/tlb.c
> @@ -59,6 +59,7 @@ void set_tlb(u8 tlb, u32 epn, u64 rpn,
> #endif
> }
>
> +#ifndef CONFIG_NAND_SPL
> void disable_tlb(u8 esel)
> {
> 	u32 _mas0, _mas1, _mas2, _mas3, _mas7;
> @@ -83,6 +84,7 @@ void disable_tlb(u8 esel)
> 		addrmap_set_entry(0, 0, 0, esel);
> #endif
> }
> +#endif
>
> void invalidate_tlb(u8 tlb)
> {
> @@ -106,6 +108,7 @@ void init_tlbs(void)
> 	return ;
> }
>
> +#ifdef CONFIG_ADDR_MAP

why ADDR_MAP?

- k

> static void tlbsx (const volatile unsigned *addr)
> {
> 	__asm__ __volatile__ ("tlbsx 0,%0" : : "r" (addr), "m" (*addr));
> @@ -132,6 +135,7 @@ int find_tlb_idx(void *addr, u8 tlbsel)
>
> 	return -1;
> }
> +#endif
>
> #ifdef CONFIG_ADDR_MAP
> void init_addr_map(void)
> @@ -168,6 +172,7 @@ void init_addr_map(void)
> }
> #endif
>
> +#ifndef CONFIG_NAND_SPL
> #ifndef CONFIG_SYS_DDR_TLB_START
> #define CONFIG_SYS_DDR_TLB_START 8
> #endif
> @@ -215,3 +220,4 @@ unsigned int setup_ddr_tlbs(unsigned int  
> memsize_in_meg)
> 	 */
> 	return memsize_in_meg;
> }
> +#endif /* !CONFIG_NAND_SPL */



More information about the U-Boot mailing list