ppc/85xx: Make flash TLB entry determined at runtime on FSL boards
[platform/kernel/u-boot.git] / board / freescale / mpc8572ds / mpc8572ds.c
index 556846a..64e164b 100644 (file)
@@ -264,7 +264,7 @@ void pci_init_board(void)
 int board_early_init_r(void)
 {
        const unsigned int flashbase = CONFIG_SYS_FLASH_BASE;
-       const u8 flash_esel = 2;
+       const u8 flash_esel = find_tlb_idx((void *)flashbase, 1);
 
        /*
         * Remap Boot flash + PROMJET region to caching-inhibited