diff options
author | Fabio Estevam <festevam@gmail.com> | 2021-02-18 20:32:29 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2021-03-01 10:21:36 +0100 |
commit | 23013aa9619881290dbeb6217f1fab863869050e (patch) | |
tree | 72798566aaa2ac9b5b15cb1ba3aa1cfbd2e12069 /board/freescale | |
parent | c6f2b4cabf23c1c18265dcdf536255be4c67f547 (diff) | |
download | u-boot-23013aa9619881290dbeb6217f1fab863869050e.tar.gz |
mx23evk: Convert to driver model
Make the conversion to driver model as it is mandatory.
Successfully tested booting Linux from the SD card.
Dropped splash screen support as this needs to be properly
converted to DM and tested.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/mx23evk/mx23evk.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/board/freescale/mx23evk/mx23evk.c b/board/freescale/mx23evk/mx23evk.c index 605cdec218..df4fb39125 100644 --- a/board/freescale/mx23evk/mx23evk.c +++ b/board/freescale/mx23evk/mx23evk.c @@ -54,26 +54,3 @@ int board_init(void) return 0; } - -#ifdef CONFIG_CMD_MMC -static int mx23evk_mmc_wp(int id) -{ - if (id != 0) { - printf("MXS MMC: Invalid card selected (card id = %d)\n", id); - return 1; - } - - return gpio_get_value(MX23_PAD_PWM4__GPIO_1_30); -} - -int board_mmc_init(struct bd_info *bis) -{ - /* Configure WP as input */ - gpio_direction_input(MX23_PAD_PWM4__GPIO_1_30); - - /* Configure MMC0 Power Enable */ - gpio_direction_output(MX23_PAD_PWM3__GPIO_1_29, 0); - - return mxsmmc_initialize(bis, 0, mx23evk_mmc_wp, NULL); -} -#endif |