|
@@ -280,6 +280,14 @@ static struct module_pin_mux i2c0_pin_mux[] = {
|
|
|
{-1},
|
|
|
};
|
|
|
|
|
|
+static struct module_pin_mux i2c1_pin_mux[] = {
|
|
|
+ {OFFSET(spi0_d1), (MODE(2) | RXACTIVE |
|
|
|
+ PULLUDEN | SLEWCTRL)}, /* I2C_DATA */
|
|
|
+ {OFFSET(spi0_cs0), (MODE(2) | RXACTIVE |
|
|
|
+ PULLUDEN | SLEWCTRL)}, /* I2C_SCLK */
|
|
|
+ {-1},
|
|
|
+};
|
|
|
+
|
|
|
/*
|
|
|
* Configure the pin mux for the module
|
|
|
*/
|
|
@@ -310,3 +318,8 @@ void enable_i2c0_pin_mux(void)
|
|
|
{
|
|
|
configure_module_pin_mux(i2c0_pin_mux);
|
|
|
}
|
|
|
+
|
|
|
+void enable_i2c1_pin_mux(void)
|
|
|
+{
|
|
|
+ configure_module_pin_mux(i2c1_pin_mux);
|
|
|
+}
|