]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/p1_p2_rdb/p1_p2_rdb.c
Merge branch 't-ml-master' into t-master
[u-boot] / board / freescale / p1_p2_rdb / p1_p2_rdb.c
index 4c03468a2453533f96c10662f9fb67231dff1798..3af660e775306710682a233e20512160f858368a 100644 (file)
@@ -131,7 +131,7 @@ int checkboard (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 region to caching-inhibited