sunxi-nand: Undo removal of DMA that breaks NAND SPL
PATCH 1/1 sunxi-nand: Undo removal of DMA that breaks NAND SPL
From: Chris Morgan <[email protected]>
For the sun5i based NAND, removal of the DMA specific code from the SPL driver caused it to no longer function.
These patches revert the changes made here, specifically patches 13/20 and 14/20:
https://lore.kernel.org/u-boot/20210624120540.7oyhdmerjndsylbq@gilmour/
These patches only apply for sun5i based boards. Tested on my NTC CHIP (an R8/A13 based device) and it is able to boot U-Boot properly with these patches.
Signed-off-by Chris Morgan <[email protected]>
--- board/sunxi/board.c | 3 + drivers/mtd/nand/raw/sunxi_nand_spl.c | 105 ++++++++++++++++++++++++++ 2 files changed, 108 insertions(+)
board/sunxi/board.c +3 -0
@@ -393,6 +393,9 @@ static void nand_clock_setup(void)#if definedCONFIG_MACH_SUN6I || definedCONFIG_MACH_SUN8I || \ definedCONFIG_MACH_SUN9I || definedCONFIG_MACH_SUN50I setbits_le32 (&ccm->ahb_reset0_cfg, (1 <<AHB_GATE_OFFSET_NAND0 )); +#endif +#if defined(CONFIG_MACH_SUN5I ) && defined(CONFIG_NAND_SUNXI ) +setbits_le32 (&ccm->ahb_gate0, (1 <<AHB_GATE_OFFSET_DMA ));#endif setbits_le32 (&ccm->nand0_clk_cfg,CCM_NAND_CTRL_ENABLE |AHB_DIV_1 ); }
drivers/mtd/nand/raw/sunxi_nand_spl.c +105 -0
129 lines not on this page · raw message
Signature · 1 line
2.30.2