From dc6ed546db5258b1731f82e63cce7f0e8139e940 Mon Sep 17 00:00:00 2001 From: Rene Straub Date: Tue, 20 Oct 2020 07:51:47 +0200 Subject: [PATCH] hw25: take USB/SD converter out of reset --- board/nm/hw25/board.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/board/nm/hw25/board.c b/board/nm/hw25/board.c index 220eb230ee..9eda4a6c37 100644 --- a/board/nm/hw25/board.c +++ b/board/nm/hw25/board.c @@ -522,6 +522,16 @@ int eth_phy_timeout(void) #if !defined(CONFIG_SPL_BUILD) +static void init_usb_sd(void) +{ + /* USB-SD converter */ + REQUEST_AND_CLEAR_GPIO(GPIO_RST_SDCARD_N); + /* Minimum Reset Pulse = 100us (USB224x) */ + mdelay(1); + gpio_set_value(GPIO_RST_SDCARD_N, 1); +} + + static void init_ethernet(void) { REQUEST_AND_CLEAR_GPIO(GPIO_RST_ETH_N); @@ -905,6 +915,7 @@ int board_late_init(void) REQUEST_AND_CLEAR_GPIO(GPIO_WLAN_EN); init_ethernet(); + init_usb_sd(); init_sim_mux(); init_gsm();