summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 38e9863)
raw | patch | inline | side by side (parent: 38e9863)
author | Frank Livingston <frank-livingston@ti.com> | |
Mon, 7 Jan 2019 23:42:41 +0000 (17:42 -0600) | ||
committer | Frank Livingston <frank-livingston@ti.com> | |
Mon, 7 Jan 2019 23:42:41 +0000 (17:42 -0600) |
soc/I2C_v2.h | patch | blob | history |
diff --git a/soc/I2C_v2.h b/soc/I2C_v2.h
index feb0fdb1cae81aa05a20728cd08f145345bc6703..01a77676a0515fee9742e693290af147680e38ab 100644 (file)
--- a/soc/I2C_v2.h
+++ b/soc/I2C_v2.h
#define MAX_ICSS_INSTANCE (3U)
+#define I2C_PRU_PINMUX_GPI_MODE (0x00000001U)
+#define I2C_PRU_PINMUX_GPO_MODE (0x00000002U)
+
+// PRU UART FW SoC pinmux macros
+#if defined(SOC_AM335x) || defined(SOC_AM335X)
+#define I2C_PRU_GPI_INPUT_ENABLE (0x00000020U)
+#define I2C_PRU_GPI_SELECT_MASK (0xFFFFFFF0U)
+#define I2C_PRU_GPO_PULLUP_DISABLE (0x00000008U)
+#define I2C_PRU_GPO_SELECT_MASK (0xFFFFFFD8U)
+
+#else
#define I2C_PRU_GPI_INPUT_ENABLE (0x00040000U)
#define I2C_PRU_GPI_SELECT_MASK (0xFFFEFFF0U)
#define I2C_PRU_GPO_PULLUP_DISABLE (0x00010000U)
#define I2C_PRU_GPO_SELECT_MASK (0xFFFBFFF0U)
-#define I2C_PRU_PINMUX_GPI_MODE (0x00000001U)
-#define I2C_PRU_PINMUX_GPO_MODE (0x00000002U)
+
+#endif
#if defined(SOC_AM572x) || defined(SOC_AM574x) || defined(SOC_AM571x) || defined(SOC_K2G)
#define I2C_ICSS_INTC_SECR0 (CSL_ICSSINTC_SECR0)