diff options
| author | Samuel Holland <[email protected]> | 2023-01-22 16:06:35 -0600 |
|---|---|---|
| committer | Andre Przywara <[email protected]> | 2023-04-28 01:06:57 +0100 |
| commit | 21b790fd49c208b602c0b024e0bda0064f75a0d8 (patch) | |
| tree | 4786e0fcc59efa286cc21ed229b622a80a201413 /board/sunxi | |
| parent | 1eb09081f61fd69aec92b971f115cd8cc98789c3 (diff) | |
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 <[email protected]>
Signed-off-by: Samuel Holland <[email protected]>
Signed-off-by: Andre Przywara <[email protected]>
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 827e545032e..f321cd58a6e 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 */ |
