summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2021-02-18 20:32:29 -0300
committerStefano Babic <sbabic@denx.de>2021-03-01 10:21:36 +0100
commit23013aa9619881290dbeb6217f1fab863869050e (patch)
tree72798566aaa2ac9b5b15cb1ba3aa1cfbd2e12069 /board
parentc6f2b4cabf23c1c18265dcdf536255be4c67f547 (diff)
downloadu-boot-23013aa9619881290dbeb6217f1fab863869050e.tar.gz
u-boot-23013aa9619881290dbeb6217f1fab863869050e.tar.xz
u-boot-23013aa9619881290dbeb6217f1fab863869050e.zip
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')
-rw-r--r--board/freescale/mx23evk/mx23evk.c23
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