diff options
author | Samuel Holland <samuel@sholland.org> | 2023-01-22 16:06:35 -0600 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2023-04-28 01:06:57 +0100 |
commit | 21b790fd49c208b602c0b024e0bda0064f75a0d8 (patch) | |
tree | 4786e0fcc59efa286cc21ed229b622a80a201413 /board/sunxi | |
parent | 1eb09081f61fd69aec92b971f115cd8cc98789c3 (diff) | |
download | u-boot-21b790fd49c208b602c0b024e0bda0064f75a0d8.zip u-boot-21b790fd49c208b602c0b024e0bda0064f75a0d8.tar.gz u-boot-21b790fd49c208b602c0b024e0bda0064f75a0d8.tar.bz2 |
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 <michael@amarulasolutions.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'board/sunxi')
-rw-r--r-- | board/sunxi/board.c | 5 |
1 files changed, 1 insertions, 4 deletions
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 */ |