diff options
author | Russell Robinson Jr <rrobinson@phytec.com> | 2013-09-11 14:45:57 -0700 |
---|---|---|
committer | Anthony Felice <tony.felice@timesys.com> | 2013-09-17 14:22:18 -0400 |
commit | 2c073ea51c603a56a6bc26114a8c24af7a4ac04b (patch) | |
tree | 4a4cd803e7bda93ecdb140609a8529fb197949f2 /arch | |
parent | 0bbe7196d7e00997dc38d99e665998849b790ecc (diff) |
leds-gpio: ledtrig-gpio: allow static gpio val
Modified leds-gpio and ledtrig-gpio driver to allow gpios to
be designated in kernel space instead of being limited to
user space assignment.
Signed-off-by: Johnathan Feuerstein <jfeuerstein@phytec.com>
Signed-off-by: Russell Robinson Jr <rrobinson@phytec.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/iomux-mvf.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/include/mach/iomux-mvf.h b/arch/arm/plat-mxc/include/mach/iomux-mvf.h index 6b3c12171480..8f5b98b89e53 100644 --- a/arch/arm/plat-mxc/include/mach/iomux-mvf.h +++ b/arch/arm/plat-mxc/include/mach/iomux-mvf.h @@ -64,6 +64,10 @@ typedef enum iomux_config { #define MVF600_DCU_PAD_CTRL (MVF600_HIGH_DRV | PAD_CTL_OBE_ENABLE) +#define MVF600_LED_PAD_CTRL (PAD_CTL_PUS_47K_UP | PAD_CTL_OBE_ENABLE) + +#define MVF600_BTN_PAD_CTRL (PAD_CTL_PUS_47K_UP | PAD_CTL_IBE_ENABLE) + #define MVF600_UART_PAD_CTRL (PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED | \ PAD_CTL_DSE_25ohm) @@ -329,6 +333,30 @@ typedef enum iomux_config { IOMUX_PAD(0x0210, 0x0210, 1, 0x0000, 0, MVF600_DCU_PAD_CTRL) #define MVF600_PAD133_PTE28_DCU0_B7 \ IOMUX_PAD(0x0214, 0x0214, 1, 0x0000, 0, MVF600_DCU_PAD_CTRL) +/*LED1*/ +#define MVF600_PAD35_PTB13_GPIO_LED1 \ + IOMUX_PAD(0x008C, 0x008C, 0, 0x0000, 0, MVF600_LED_PAD_CTRL) +/*LED2*/ +#define MVF600_PAD40_PTB18_GPIO_LED2 \ + IOMUX_PAD(0x00A0, 0x00A0, 0, 0x0000, 0, MVF600_LED_PAD_CTRL) +/*LED3*/ +#define MVF600_PAD96_PTB26_GPIO_LED3 \ + IOMUX_PAD(0x0180, 0x0180, 0, 0x0000, 0, MVF600_LED_PAD_CTRL) +/*LED4*/ +#define MVF600_PAD102_PTC29_GPIO_LED4 \ + IOMUX_PAD(0x0198, 0x0198 ,0, 0x0000, 0, MVF600_LED_PAD_CTRL) +/*BTN1*/ +#define MVF600_PAD25_PTB3_GPIO_BTN1 \ + IOMUX_PAD(0x0064, 0x0064, 0, 0x0000, 0, MVF600_BTN_PAD_CTRL) +/*BTN2*/ +#define MVF600_PAD30_PTB8_GPIO_BTN2 \ + IOMUX_PAD(0x0078, 0x0078, 0, 0x0000, 0, MVF600_BTN_PAD_CTRL) +/*BTN3*/ +#define MVF600_PAD31_PTB9_GPIO_BTN3 \ + IOMUX_PAD(0x007C, 0x007C, 0, 0x0000, 0, MVF600_BTN_PAD_CTRL) +/*BTN4*/ +#define MVF600_PAD34_PTB12_GPIO_BTN4 \ + IOMUX_PAD(0x0088, 0x0088, 0, 0x0000, 0, MVF600_BTN_PAD_CTRL) /*UART1*/ #define MVF600_PAD26_PTB4_UART1_TX \ |