Use the correct bitshift operators for the GPIO definitions.
Submitted by: Daan Vreeken <Daan@vitsch.nl> MFC after: 1 week
This commit is contained in:
parent
924b1f5db0
commit
98240e7bc0
@ -87,22 +87,22 @@
|
||||
#define AR724X_PCI_INTR_MASK 0x180f0050
|
||||
#define AR724X_PCI_INTR_DEV0 (1 << 14)
|
||||
|
||||
#define AR724X_GPIO_FUNC_GE0_MII_CLK_EN (1 >> 19)
|
||||
#define AR724X_GPIO_FUNC_SPI_EN (1 >> 18)
|
||||
#define AR724X_GPIO_FUNC_SPI_CS_EN2 (1 >> 14)
|
||||
#define AR724X_GPIO_FUNC_SPI_CS_EN1 (1 >> 13)
|
||||
#define AR724X_GPIO_FUNC_CLK_OBS5_EN (1 >> 12)
|
||||
#define AR724X_GPIO_FUNC_CLK_OBS4_EN (1 >> 11)
|
||||
#define AR724X_GPIO_FUNC_CLK_OBS3_EN (1 >> 10)
|
||||
#define AR724X_GPIO_FUNC_CLK_OBS2_EN (1 >> 9)
|
||||
#define AR724X_GPIO_FUNC_CLK_OBS1_EN (1 >> 8)
|
||||
#define AR724X_GPIO_FUNC_ETH_SWITCH_LED4_EN (1 >> 7)
|
||||
#define AR724X_GPIO_FUNC_ETH_SWITCH_LED3_EN (1 >> 6)
|
||||
#define AR724X_GPIO_FUNC_ETH_SWITCH_LED2_EN (1 >> 5)
|
||||
#define AR724X_GPIO_FUNC_ETH_SWITCH_LED1_EN (1 >> 4)
|
||||
#define AR724X_GPIO_FUNC_ETH_SWITCH_LED0_EN (1 >> 3)
|
||||
#define AR724X_GPIO_FUNC_UART_RTS_CTS_EN (1 >> 2)
|
||||
#define AR724X_GPIO_FUNC_UART_EN (1 >> 1)
|
||||
#define AR724X_GPIO_FUNC_JTAG_DISABLE (1 >> 0)
|
||||
#define AR724X_GPIO_FUNC_GE0_MII_CLK_EN (1 << 19)
|
||||
#define AR724X_GPIO_FUNC_SPI_EN (1 << 18)
|
||||
#define AR724X_GPIO_FUNC_SPI_CS_EN2 (1 << 14)
|
||||
#define AR724X_GPIO_FUNC_SPI_CS_EN1 (1 << 13)
|
||||
#define AR724X_GPIO_FUNC_CLK_OBS5_EN (1 << 12)
|
||||
#define AR724X_GPIO_FUNC_CLK_OBS4_EN (1 << 11)
|
||||
#define AR724X_GPIO_FUNC_CLK_OBS3_EN (1 << 10)
|
||||
#define AR724X_GPIO_FUNC_CLK_OBS2_EN (1 << 9)
|
||||
#define AR724X_GPIO_FUNC_CLK_OBS1_EN (1 << 8)
|
||||
#define AR724X_GPIO_FUNC_ETH_SWITCH_LED4_EN (1 << 7)
|
||||
#define AR724X_GPIO_FUNC_ETH_SWITCH_LED3_EN (1 << 6)
|
||||
#define AR724X_GPIO_FUNC_ETH_SWITCH_LED2_EN (1 << 5)
|
||||
#define AR724X_GPIO_FUNC_ETH_SWITCH_LED1_EN (1 << 4)
|
||||
#define AR724X_GPIO_FUNC_ETH_SWITCH_LED0_EN (1 << 3)
|
||||
#define AR724X_GPIO_FUNC_UART_RTS_CTS_EN (1 << 2)
|
||||
#define AR724X_GPIO_FUNC_UART_EN (1 << 1)
|
||||
#define AR724X_GPIO_FUNC_JTAG_DISABLE (1 << 0)
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user