Эх сурвалжийг харах

iomux-vf610: Adding iomux pullup for nfc_r_b

A pullup on the NFC_R/!B signal is required for the NAND flash to be in ready state.
If the signal is not pulled high the system will read the NAND as busy,
and will not be ready for commands. This modification is required for the
phyCORE-Vybrid SOM 1374.0 PCB.

Signed-off-by: Serah Peterson <speterson@phytec.com>
Serah Peterson 10 жил өмнө
parent
commit
6b038193fa

+ 3 - 1
arch/arm/include/asm/arch-vf610/iomux-vf610.h

@@ -40,6 +40,8 @@
 #define VF610_NFC_PAD_CTRL	(PAD_CTL_SPEED_HIGH | \
 				PAD_CTL_DSE_50ohm | PAD_CTL_OBE_IBE_ENABLE)
 
+#define VF610_NFC_RB_b_PAD_CTRL	(VF610_NFC_PAD_CTRL | PAD_CTL_PUS_47K_UP)
+
 enum {
 	VF610_PAD_PTA6__RMII0_CLKIN		= IOMUX_PAD(0x0000, 0x0000, 2, __NA_, 0, VF610_ENET_PAD_CTRL),
 	VF610_PAD_PTB4__UART1_TX		= IOMUX_PAD(0x0068, 0x0068, 2, 0x0380, 0, VF610_UART_PAD_CTRL),
@@ -151,7 +153,7 @@ enum {
 	VF610_PAD_PTB25__NF_CE0_b		= IOMUX_PAD(0x017c, 0x017c, 5, __NA_, 0, VF610_NFC_PAD_CTRL),
 	VF610_PAD_PTB26__NF_CE1_b		= IOMUX_PAD(0x0180, 0x0180, 5, __NA_, 0, VF610_NFC_PAD_CTRL),
 	VF610_PAD_PTB27__NF_RE_b		= IOMUX_PAD(0x0184, 0x0184, 6, __NA_, 0, VF610_NFC_PAD_CTRL),
-	VF610_PAD_PTC26__NF_RB_b		= IOMUX_PAD(0x018c, 0x018c, 5, __NA_, 0, VF610_NFC_PAD_CTRL),
+	VF610_PAD_PTC26__NF_RB_b		= IOMUX_PAD(0x018c, 0x018c, 5, __NA_, 0, VF610_NFC_RB_b_PAD_CTRL),
 	VF610_PAD_PTC27__NF_ALE			= IOMUX_PAD(0x0190, 0x0190, 6, __NA_, 0, VF610_NFC_PAD_CTRL),
 	VF610_PAD_PTC28__NF_CLE			= IOMUX_PAD(0x0194, 0x0194, 6, __NA_, 0, VF610_NFC_PAD_CTRL),
 };