]> git.dujemihanovic.xyz Git - u-boot.git/commit
nand_spl: update udelay for Freescale boards
authorMatthew McClintock <msm@freescale.com>
Mon, 13 Aug 2012 13:21:19 +0000 (13:21 +0000)
committerAndy Fleming <afleming@freescale.com>
Thu, 23 Aug 2012 15:24:17 +0000 (10:24 -0500)
commit8c454047fe9c08a51410dca01b945cdcecb18b7e
treeabe2c281cbaf813d2ae2c46d69e9c2dd05600b1e
parentabbe536ebc3ee974593b115de716705f0091344a
nand_spl: update udelay for Freescale boards

Let's use the more appropriate udelay for the nand_spl. While we
can't make use of u-boot's full udelay we can atl east use a for
loop that won't get optimized away .Since we have the bus clock
we can use the timebase to calculate wall time.

Looked at reusing the u-boot udelay functions but it pulls in a lot
of code and would require quite a bit of work to keep us within the
very small space constrains we currently have

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
nand_spl/board/freescale/common.c [new file with mode: 0644]
nand_spl/board/freescale/p1010rdb/Makefile
nand_spl/board/freescale/p1010rdb/nand_boot.c
nand_spl/board/freescale/p1_p2_rdb_pc/Makefile
nand_spl/board/freescale/p1_p2_rdb_pc/nand_boot.c