From dbfa212fb11714d3ee0ccfe355e16021ef97e64d Mon Sep 17 00:00:00 2001 From: Difan Zhang Date: Sun, 8 Nov 2026 14:18:18 -0800 Subject: [PATCH] fullhan: FH8626V100 SD0 is 1-bit FH8626V100 boards wire SD0 with one data line, as the vendor U-Boot configures it, and use the D1 pad as a GPIO (a PTZ motor phase on the cameras). Leave the D1-D3 pads alone and drop 4-bit mode, as on the FH8632. --- board/fullhan/fullhan/fullhan.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/board/fullhan/fullhan/fullhan.c b/board/fullhan/fullhan/fullhan.c index 99ee27ffc1f4..6e90c3ddd637 100644 --- a/board/fullhan/fullhan/fullhan.c +++ b/board/fullhan/fullhan/fullhan.c @@ -87,8 +87,6 @@ static const struct fh_pad fh_pads[] = { PAD(46, 0x01001100), /* GPIO11: PHY reset */ PAD(61, 0x00011100), PAD(63, 0x00001140), /* SD0 CD, CLK */ PAD(64, 0x00011100), PAD(65, 0x00011100), /* SD0 CMD, D0 */ - PAD(66, 0x00011140), PAD(67, 0x00011100), /* SD0 D1, D2 */ - PAD(68, 0x00011100), /* SD0 D3 */ #elif defined(CONFIG_FULLHAN_8632) /* Only the functions: the pulls stay as they are */ PAD_FUNC(58, 1), /* GPIO54: flash CS */ @@ -436,8 +434,11 @@ int board_mmc_init(struct bd_info *bis) host->dev_index = 0; host->buswidth = 4; ret = add_dwmci(host, 25000000, 400000); -#ifdef CONFIG_FULLHAN_8632 - /* D2 and D3 are not bonded out on the FH8632's package */ +#if defined(CONFIG_FULLHAN_8632) || defined(CONFIG_FULLHAN_8626) + /* + * D2 and D3 are not bonded out on the FH8632's package; FH8626V100 + * cameras wire SD0 1-bit and use the D1 pad as a GPIO + */ if (!ret) host->cfg.host_caps &= ~MMC_MODE_4BIT; #endif