diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2023-03-15 13:04:18 +0200 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2023-04-04 17:31:47 +0800 |
commit | 8ac04e9062fc65bb09754cefefc096d554c6881c (patch) | |
tree | e8778bb2be333b68dfa82c50de20a978229d8bec /board | |
parent | f2ac9f6a17aeffbca1926f4364ccddce329659b1 (diff) | |
download | u-boot-8ac04e9062fc65bb09754cefefc096d554c6881c.zip u-boot-8ac04e9062fc65bb09754cefefc096d554c6881c.tar.gz u-boot-8ac04e9062fc65bb09754cefefc096d554c6881c.tar.bz2 |
board: freescale: lx2160a: remove the PL01X device instantiation
There is no need for the board file to instantiate a PL01X platform
device anymore. This is all taken care of by the DM code which now will
probe the device based on the DT node.
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/lx2160a/lx2160a.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c index 33842d0..2a75205 100644 --- a/board/freescale/lx2160a/lx2160a.c +++ b/board/freescale/lx2160a/lx2160a.c @@ -55,45 +55,11 @@ DECLARE_GLOBAL_DATA_PTR; -static struct pl01x_serial_plat serial0 = { -#if CONFIG_CONS_INDEX == 0 - .base = CFG_SYS_SERIAL0, -#elif CONFIG_CONS_INDEX == 1 - .base = CFG_SYS_SERIAL1, -#else -#error "Unsupported console index value." -#endif - .type = TYPE_PL011, -}; - -U_BOOT_DRVINFO(nxp_serial0) = { - .name = "serial_pl01x", - .plat = &serial0, -}; - -static struct pl01x_serial_plat serial1 = { - .base = CFG_SYS_SERIAL1, - .type = TYPE_PL011, -}; - -U_BOOT_DRVINFO(nxp_serial1) = { - .name = "serial_pl01x", - .plat = &serial1, -}; - -static void uart_get_clock(void) -{ - serial0.clock = get_serial_clock(); - serial1.clock = get_serial_clock(); -} - int board_early_init_f(void) { #if defined(CONFIG_SYS_I2C_EARLY_INIT) && defined(CONFIG_SPL_BUILD) i2c_early_init_f(); #endif - /* get required clock for UART IP */ - uart_get_clock(); #ifdef CONFIG_EMC2305 select_i2c_ch_pca9547(I2C_MUX_CH_EMC2305, 0); |