|
@@ -19,49 +19,49 @@
|
|
|
#define LS1X_MUX_CTRL1 LS1X_MUX_REG(0x4)
|
|
|
|
|
|
/* MUX CTRL0 Register Bits */
|
|
|
-#define UART0_USE_PWM23 (0x1 << 28)
|
|
|
-#define UART0_USE_PWM01 (0x1 << 27)
|
|
|
-#define UART1_USE_LCD0_5_6_11 (0x1 << 26)
|
|
|
-#define I2C2_USE_CAN1 (0x1 << 25)
|
|
|
-#define I2C1_USE_CAN0 (0x1 << 24)
|
|
|
-#define NAND3_USE_UART5 (0x1 << 23)
|
|
|
-#define NAND3_USE_UART4 (0x1 << 22)
|
|
|
-#define NAND3_USE_UART1_DAT (0x1 << 21)
|
|
|
-#define NAND3_USE_UART1_CTS (0x1 << 20)
|
|
|
-#define NAND3_USE_PWM23 (0x1 << 19)
|
|
|
-#define NAND3_USE_PWM01 (0x1 << 18)
|
|
|
-#define NAND2_USE_UART5 (0x1 << 17)
|
|
|
-#define NAND2_USE_UART4 (0x1 << 16)
|
|
|
-#define NAND2_USE_UART1_DAT (0x1 << 15)
|
|
|
-#define NAND2_USE_UART1_CTS (0x1 << 14)
|
|
|
-#define NAND2_USE_PWM23 (0x1 << 13)
|
|
|
-#define NAND2_USE_PWM01 (0x1 << 12)
|
|
|
-#define NAND1_USE_UART5 (0x1 << 11)
|
|
|
-#define NAND1_USE_UART4 (0x1 << 10)
|
|
|
-#define NAND1_USE_UART1_DAT (0x1 << 9)
|
|
|
-#define NAND1_USE_UART1_CTS (0x1 << 8)
|
|
|
-#define NAND1_USE_PWM23 (0x1 << 7)
|
|
|
-#define NAND1_USE_PWM01 (0x1 << 6)
|
|
|
-#define GMAC1_USE_UART1 (0x1 << 4)
|
|
|
-#define GMAC1_USE_UART0 (0x1 << 3)
|
|
|
-#define LCD_USE_UART0_DAT (0x1 << 2)
|
|
|
-#define LCD_USE_UART15 (0x1 << 1)
|
|
|
-#define LCD_USE_UART0 0x1
|
|
|
+#define UART0_USE_PWM23 BIT(28)
|
|
|
+#define UART0_USE_PWM01 BIT(27)
|
|
|
+#define UART1_USE_LCD0_5_6_11 BIT(26)
|
|
|
+#define I2C2_USE_CAN1 BIT(25)
|
|
|
+#define I2C1_USE_CAN0 BIT(24)
|
|
|
+#define NAND3_USE_UART5 BIT(23)
|
|
|
+#define NAND3_USE_UART4 BIT(22)
|
|
|
+#define NAND3_USE_UART1_DAT BIT(21)
|
|
|
+#define NAND3_USE_UART1_CTS BIT(20)
|
|
|
+#define NAND3_USE_PWM23 BIT(19)
|
|
|
+#define NAND3_USE_PWM01 BIT(18)
|
|
|
+#define NAND2_USE_UART5 BIT(17)
|
|
|
+#define NAND2_USE_UART4 BIT(16)
|
|
|
+#define NAND2_USE_UART1_DAT BIT(15)
|
|
|
+#define NAND2_USE_UART1_CTS BIT(14)
|
|
|
+#define NAND2_USE_PWM23 BIT(13)
|
|
|
+#define NAND2_USE_PWM01 BIT(12)
|
|
|
+#define NAND1_USE_UART5 BIT(11)
|
|
|
+#define NAND1_USE_UART4 BIT(10)
|
|
|
+#define NAND1_USE_UART1_DAT BIT(9)
|
|
|
+#define NAND1_USE_UART1_CTS BIT(8)
|
|
|
+#define NAND1_USE_PWM23 BIT(7)
|
|
|
+#define NAND1_USE_PWM01 BIT(6)
|
|
|
+#define GMAC1_USE_UART1 BIT(4)
|
|
|
+#define GMAC1_USE_UART0 BIT(3)
|
|
|
+#define LCD_USE_UART0_DAT BIT(2)
|
|
|
+#define LCD_USE_UART15 BIT(1)
|
|
|
+#define LCD_USE_UART0 BIT(0)
|
|
|
|
|
|
/* MUX CTRL1 Register Bits */
|
|
|
-#define USB_RESET (0x1 << 31)
|
|
|
-#define SPI1_CS_USE_PWM01 (0x1 << 24)
|
|
|
-#define SPI1_USE_CAN (0x1 << 23)
|
|
|
-#define DISABLE_DDR_CONFSPACE (0x1 << 20)
|
|
|
-#define DDR32TO16EN (0x1 << 16)
|
|
|
-#define GMAC1_SHUT (0x1 << 13)
|
|
|
-#define GMAC0_SHUT (0x1 << 12)
|
|
|
-#define USB_SHUT (0x1 << 11)
|
|
|
-#define UART1_3_USE_CAN1 (0x1 << 5)
|
|
|
-#define UART1_2_USE_CAN0 (0x1 << 4)
|
|
|
-#define GMAC1_USE_TXCLK (0x1 << 3)
|
|
|
-#define GMAC0_USE_TXCLK (0x1 << 2)
|
|
|
-#define GMAC1_USE_PWM23 (0x1 << 1)
|
|
|
-#define GMAC0_USE_PWM01 0x1
|
|
|
+#define USB_RESET BIT(31)
|
|
|
+#define SPI1_CS_USE_PWM01 BIT(24)
|
|
|
+#define SPI1_USE_CAN BIT(23)
|
|
|
+#define DISABLE_DDR_CONFSPACE BIT(20)
|
|
|
+#define DDR32TO16EN BIT(16)
|
|
|
+#define GMAC1_SHUT BIT(13)
|
|
|
+#define GMAC0_SHUT BIT(12)
|
|
|
+#define USB_SHUT BIT(11)
|
|
|
+#define UART1_3_USE_CAN1 BIT(5)
|
|
|
+#define UART1_2_USE_CAN0 BIT(4)
|
|
|
+#define GMAC1_USE_TXCLK BIT(3)
|
|
|
+#define GMAC0_USE_TXCLK BIT(2)
|
|
|
+#define GMAC1_USE_PWM23 BIT(1)
|
|
|
+#define GMAC0_USE_PWM01 BIT(0)
|
|
|
|
|
|
#endif /* __ASM_MACH_LOONGSON32_REGS_MUX_H */
|