From 21b790fd49c208b602c0b024e0bda0064f75a0d8 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Sun, 22 Jan 2023 16:06:35 -0600 Subject: mtd: nand: sunxi: Convert to the driver model Clocks, resets, and pinmuxes are now handled by the driver model, so the only thing the "board" code needs to do is load the driver. This matches the pattern used by other DM raw NAND drivers (there is no NAND uclass). The actual board code is now only needed in SPL. Reviewed-by: Michael Trimarchi Signed-off-by: Samuel Holland Signed-off-by: Andre Przywara --- board/sunxi/board.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'board/sunxi') diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 827e545..f321cd5 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -311,7 +311,7 @@ int dram_init(void) return 0; } -#if defined(CONFIG_NAND_SUNXI) +#if defined(CONFIG_NAND_SUNXI) && defined(CONFIG_SPL_BUILD) static void nand_pinmux_setup(void) { unsigned int pin; @@ -347,9 +347,6 @@ void board_nand_init(void) { nand_pinmux_setup(); nand_clock_setup(); -#ifndef CONFIG_SPL_BUILD - sunxi_nand_init(); -#endif } #endif /* CONFIG_NAND_SUNXI */ -- cgit v1.1