@@ -20,30 +20,30 @@ static gpio_pin_config_t enet_gpio_config = {
20
20
#if DT_NODE_HAS_STATUS (DT_NODELABEL (usdhc1 ), okay ) && CONFIG_DISK_ACCESS_USDHC1
21
21
22
22
/*Drive Strength Field: R0(260 Ohm @ 3.3V, 150 [email protected] , 240 Ohm for DDR)
23
- *Speed Field: medium(100MHz)
24
- *Open Drain Enable Field: Open Drain Disabled
25
- *Pull / Keep Enable Field: Pull/Keeper Enabled
26
- *Pull / Keep Select Field: Pull
27
- *Pull Up / Down Config. Field: 47K Ohm Pull Up
28
- *Hyst. Enable Field: Hysteresis Enabled.
23
+ * Speed Field: medium(100MHz)
24
+ * Open Drain Enable Field: Open Drain Disabled
25
+ * Pull / Keep Enable Field: Pull/Keeper Enabled
26
+ * Pull / Keep Select Field: Pull
27
+ * Pull Up / Down Config. Field: 47K Ohm Pull Up
28
+ * Hyst. Enable Field: Hysteresis Enabled.
29
29
*/
30
30
31
31
static void mm_swiftio_usdhc_pinmux (
32
32
uint16_t nusdhc , bool init ,
33
33
uint32_t speed , uint32_t strength )
34
34
{
35
35
uint32_t cmd_data = IOMUXC_SW_PAD_CTL_PAD_SPEED (speed ) |
36
- IOMUXC_SW_PAD_CTL_PAD_SRE_MASK |
37
- IOMUXC_SW_PAD_CTL_PAD_PKE_MASK |
38
- IOMUXC_SW_PAD_CTL_PAD_PUE_MASK |
39
- IOMUXC_SW_PAD_CTL_PAD_HYS_MASK |
40
- IOMUXC_SW_PAD_CTL_PAD_PUS (1 ) |
41
- IOMUXC_SW_PAD_CTL_PAD_DSE (strength );
36
+ IOMUXC_SW_PAD_CTL_PAD_SRE_MASK |
37
+ IOMUXC_SW_PAD_CTL_PAD_PKE_MASK |
38
+ IOMUXC_SW_PAD_CTL_PAD_PUE_MASK |
39
+ IOMUXC_SW_PAD_CTL_PAD_HYS_MASK |
40
+ IOMUXC_SW_PAD_CTL_PAD_PUS (1 ) |
41
+ IOMUXC_SW_PAD_CTL_PAD_DSE (strength );
42
42
uint32_t clk = IOMUXC_SW_PAD_CTL_PAD_SPEED (speed ) |
43
- IOMUXC_SW_PAD_CTL_PAD_SRE_MASK |
44
- IOMUXC_SW_PAD_CTL_PAD_HYS_MASK |
45
- IOMUXC_SW_PAD_CTL_PAD_PUS (0 ) |
46
- IOMUXC_SW_PAD_CTL_PAD_DSE (strength );
43
+ IOMUXC_SW_PAD_CTL_PAD_SRE_MASK |
44
+ IOMUXC_SW_PAD_CTL_PAD_HYS_MASK |
45
+ IOMUXC_SW_PAD_CTL_PAD_PUS (0 ) |
46
+ IOMUXC_SW_PAD_CTL_PAD_DSE (strength );
47
47
48
48
if (nusdhc == 0 ) {
49
49
if (init ) {
@@ -87,17 +87,17 @@ static void mm_swiftio_usdhc_pinmux(
87
87
}
88
88
89
89
IOMUXC_SetPinConfig (IOMUXC_GPIO_SD_B0_00_USDHC1_CMD ,
90
- cmd_data );
90
+ cmd_data );
91
91
IOMUXC_SetPinConfig (IOMUXC_GPIO_SD_B0_01_USDHC1_CLK ,
92
- clk );
92
+ clk );
93
93
IOMUXC_SetPinConfig (IOMUXC_GPIO_SD_B0_02_USDHC1_DATA0 ,
94
- cmd_data );
94
+ cmd_data );
95
95
IOMUXC_SetPinConfig (IOMUXC_GPIO_SD_B0_03_USDHC1_DATA1 ,
96
- cmd_data );
96
+ cmd_data );
97
97
IOMUXC_SetPinConfig (IOMUXC_GPIO_SD_B0_04_USDHC1_DATA2 ,
98
- cmd_data );
98
+ cmd_data );
99
99
IOMUXC_SetPinConfig (IOMUXC_GPIO_SD_B0_05_USDHC1_DATA3 ,
100
- cmd_data );
100
+ cmd_data );
101
101
}
102
102
}
103
103
#endif
@@ -150,41 +150,41 @@ static int mm_swiftio_init(const struct device *dev)
150
150
#endif
151
151
152
152
#if DT_NODE_HAS_STATUS (DT_NODELABEL (lpi2c1 ), okay ) && CONFIG_I2C
153
- IOMUXC_SetPinMux (IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL , 1 );
154
- IOMUXC_SetPinMux (IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA , 1 );
155
-
156
- IOMUXC_SetPinConfig (IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL ,
157
- IOMUXC_SW_PAD_CTL_PAD_PUS (3 ) |
158
- IOMUXC_SW_PAD_CTL_PAD_PKE_MASK |
159
- IOMUXC_SW_PAD_CTL_PAD_ODE_MASK |
160
- IOMUXC_SW_PAD_CTL_PAD_SPEED (2 ) |
161
- IOMUXC_SW_PAD_CTL_PAD_DSE (6 ));
162
-
163
- IOMUXC_SetPinConfig (IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA ,
164
- IOMUXC_SW_PAD_CTL_PAD_PUS (3 ) |
165
- IOMUXC_SW_PAD_CTL_PAD_PKE_MASK |
166
- IOMUXC_SW_PAD_CTL_PAD_ODE_MASK |
167
- IOMUXC_SW_PAD_CTL_PAD_SPEED (2 ) |
168
- IOMUXC_SW_PAD_CTL_PAD_DSE (6 ));
153
+ IOMUXC_SetPinMux (IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL , 1 );
154
+ IOMUXC_SetPinMux (IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA , 1 );
155
+
156
+ IOMUXC_SetPinConfig (IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL ,
157
+ IOMUXC_SW_PAD_CTL_PAD_PUS (3 ) |
158
+ IOMUXC_SW_PAD_CTL_PAD_PKE_MASK |
159
+ IOMUXC_SW_PAD_CTL_PAD_ODE_MASK |
160
+ IOMUXC_SW_PAD_CTL_PAD_SPEED (2 ) |
161
+ IOMUXC_SW_PAD_CTL_PAD_DSE (6 ));
162
+
163
+ IOMUXC_SetPinConfig (IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA ,
164
+ IOMUXC_SW_PAD_CTL_PAD_PUS (3 ) |
165
+ IOMUXC_SW_PAD_CTL_PAD_PKE_MASK |
166
+ IOMUXC_SW_PAD_CTL_PAD_ODE_MASK |
167
+ IOMUXC_SW_PAD_CTL_PAD_SPEED (2 ) |
168
+ IOMUXC_SW_PAD_CTL_PAD_DSE (6 ));
169
169
#endif
170
170
171
171
#if DT_NODE_HAS_STATUS (DT_NODELABEL (lpi2c3 ), okay ) && CONFIG_I2C
172
172
IOMUXC_SetPinMux (IOMUXC_GPIO_AD_B1_07_LPI2C3_SCL , 1 );
173
173
IOMUXC_SetPinMux (IOMUXC_GPIO_AD_B1_06_LPI2C3_SDA , 1 );
174
174
175
175
IOMUXC_SetPinConfig (IOMUXC_GPIO_AD_B1_07_LPI2C3_SCL ,
176
- IOMUXC_SW_PAD_CTL_PAD_PUS (3 ) |
177
- IOMUXC_SW_PAD_CTL_PAD_PKE_MASK |
178
- IOMUXC_SW_PAD_CTL_PAD_ODE_MASK |
179
- IOMUXC_SW_PAD_CTL_PAD_SPEED (2 ) |
180
- IOMUXC_SW_PAD_CTL_PAD_DSE (6 ));
176
+ IOMUXC_SW_PAD_CTL_PAD_PUS (3 ) |
177
+ IOMUXC_SW_PAD_CTL_PAD_PKE_MASK |
178
+ IOMUXC_SW_PAD_CTL_PAD_ODE_MASK |
179
+ IOMUXC_SW_PAD_CTL_PAD_SPEED (2 ) |
180
+ IOMUXC_SW_PAD_CTL_PAD_DSE (6 ));
181
181
182
182
IOMUXC_SetPinConfig (IOMUXC_GPIO_AD_B1_06_LPI2C3_SDA ,
183
- IOMUXC_SW_PAD_CTL_PAD_PUS (3 ) |
184
- IOMUXC_SW_PAD_CTL_PAD_PKE_MASK |
185
- IOMUXC_SW_PAD_CTL_PAD_ODE_MASK |
186
- IOMUXC_SW_PAD_CTL_PAD_SPEED (2 ) |
187
- IOMUXC_SW_PAD_CTL_PAD_DSE (6 ));
183
+ IOMUXC_SW_PAD_CTL_PAD_PUS (3 ) |
184
+ IOMUXC_SW_PAD_CTL_PAD_PKE_MASK |
185
+ IOMUXC_SW_PAD_CTL_PAD_ODE_MASK |
186
+ IOMUXC_SW_PAD_CTL_PAD_SPEED (2 ) |
187
+ IOMUXC_SW_PAD_CTL_PAD_DSE (6 ));
188
188
#endif
189
189
190
190
#if DT_NODE_HAS_STATUS (DT_NODELABEL (usdhc1 ), okay ) && CONFIG_DISK_ACCESS_USDHC1
0 commit comments