[ARM] 5002/1: tosa: add two more leds
This adds support for two more leds: the wlan one (found in SL-6000W and SL-6000L) and the blutooth one (found in SL-6000W). Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
ba4eb7e60b
commit
c546106cc1
|
@ -432,6 +432,16 @@ static struct gpio_led tosa_gpio_leds[] = {
|
||||||
.default_trigger = "nand-disk",
|
.default_trigger = "nand-disk",
|
||||||
.gpio = TOSA_GPIO_NOTE_LED,
|
.gpio = TOSA_GPIO_NOTE_LED,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.name = "tosa:dual:wlan",
|
||||||
|
.default_trigger = "none",
|
||||||
|
.gpio = TOSA_GPIO_WLAN_LED,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.name = "tosa:blue:bluetooth",
|
||||||
|
.default_trigger = "none",
|
||||||
|
.gpio = TOSA_GPIO_BT_LED,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct gpio_led_platform_data tosa_gpio_leds_platform_data = {
|
static struct gpio_led_platform_data tosa_gpio_leds_platform_data = {
|
||||||
|
|
|
@ -45,20 +45,20 @@
|
||||||
* SCOOP2 jacket GPIOs
|
* SCOOP2 jacket GPIOs
|
||||||
*/
|
*/
|
||||||
#define TOSA_SCOOP_JC_GPIO_BASE (NR_BUILTIN_GPIO + 12)
|
#define TOSA_SCOOP_JC_GPIO_BASE (NR_BUILTIN_GPIO + 12)
|
||||||
#define TOSA_SCOOP_JC_BT_LED SCOOP_GPCR_PA11
|
#define TOSA_GPIO_BT_LED (TOSA_SCOOP_JC_GPIO_BASE + 0)
|
||||||
#define TOSA_GPIO_NOTE_LED (TOSA_SCOOP_JC_GPIO_BASE + 1)
|
#define TOSA_GPIO_NOTE_LED (TOSA_SCOOP_JC_GPIO_BASE + 1)
|
||||||
#define TOSA_GPIO_CHRG_ERR_LED (TOSA_SCOOP_JC_GPIO_BASE + 2)
|
#define TOSA_GPIO_CHRG_ERR_LED (TOSA_SCOOP_JC_GPIO_BASE + 2)
|
||||||
#define TOSA_GPIO_USB_PULLUP (TOSA_SCOOP_JC_GPIO_BASE + 3)
|
#define TOSA_GPIO_USB_PULLUP (TOSA_SCOOP_JC_GPIO_BASE + 3)
|
||||||
#define TOSA_SCOOP_JC_TC6393_SUSPEND SCOOP_GPCR_PA15
|
#define TOSA_SCOOP_JC_TC6393_SUSPEND SCOOP_GPCR_PA15
|
||||||
#define TOSA_SCOOP_JC_TC3693_L3V_ON SCOOP_GPCR_PA16
|
#define TOSA_SCOOP_JC_TC3693_L3V_ON SCOOP_GPCR_PA16
|
||||||
#define TOSA_SCOOP_JC_WLAN_DETECT SCOOP_GPCR_PA17
|
#define TOSA_SCOOP_JC_WLAN_DETECT SCOOP_GPCR_PA17
|
||||||
#define TOSA_SCOOP_JC_WLAN_LED SCOOP_GPCR_PA18
|
#define TOSA_GPIO_WLAN_LED (TOSA_SCOOP_JC_GPIO_BASE + 7)
|
||||||
#define TOSA_SCOOP_JC_CARD_LIMIT_SEL SCOOP_GPCR_PA19
|
#define TOSA_SCOOP_JC_CARD_LIMIT_SEL SCOOP_GPCR_PA19
|
||||||
|
|
||||||
/* GPIO Direction 1 : output mode / 0:input mode */
|
/* GPIO Direction 1 : output mode / 0:input mode */
|
||||||
#define TOSA_SCOOP_JC_IO_DIR ( TOSA_SCOOP_JC_BT_LED | \
|
#define TOSA_SCOOP_JC_IO_DIR ( \
|
||||||
TOSA_SCOOP_JC_TC6393_SUSPEND | TOSA_SCOOP_JC_TC3693_L3V_ON | \
|
TOSA_SCOOP_JC_TC6393_SUSPEND | TOSA_SCOOP_JC_TC3693_L3V_ON | \
|
||||||
TOSA_SCOOP_JC_WLAN_LED | TOSA_SCOOP_JC_CARD_LIMIT_SEL )
|
TOSA_SCOOP_JC_CARD_LIMIT_SEL )
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Timing Generator
|
* Timing Generator
|
||||||
|
|
Loading…
Reference in New Issue