]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/freescale/mpc8536ds/mpc8536ds.c
ppc/85xx: Make flash TLB entry determined at runtime on FSL boards
[karo-tx-uboot.git] / board / freescale / mpc8536ds / mpc8536ds.c
index ce40cdb6f1f62932083cd84acf61e99af3aad4d5..f8292cf378953df96d101995286686f86b574c94 100644 (file)
@@ -313,7 +313,7 @@ void pci_init_board(void)
 int board_early_init_r(void)
 {
        const unsigned int flashbase = CONFIG_SYS_FLASH_BASE;
-       const u8 flash_esel = 1;
+       const u8 flash_esel = find_tlb_idx((void *)flashbase, 1);
 
        /*
         * Remap Boot flash + PROMJET region to caching-inhibited