mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-10-04 04:32:00 +03:00
add switch gpio init for bcm57xx (untested, see #2744)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9642 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
addc1928bd
commit
99d53e81cb
@ -131,6 +131,14 @@ static void __init bcm4780_init(void) {
|
|||||||
schedule_timeout(HZ * 5);
|
schedule_timeout(HZ * 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void __init bcm57xx_init(void) {
|
||||||
|
int pin = 1 << 2;
|
||||||
|
|
||||||
|
gpio_outen(pin, pin);
|
||||||
|
gpio_control(pin, 0);
|
||||||
|
gpio_out(pin, pin);
|
||||||
|
}
|
||||||
|
|
||||||
static struct platform_t __initdata platforms[] = {
|
static struct platform_t __initdata platforms[] = {
|
||||||
/* Linksys */
|
/* Linksys */
|
||||||
[WAP54GV1] = {
|
[WAP54GV1] = {
|
||||||
@ -219,6 +227,7 @@ static struct platform_t __initdata platforms[] = {
|
|||||||
{ .name = "usb_blink", .gpio = 1 << 10, .polarity = REVERSE },
|
{ .name = "usb_blink", .gpio = 1 << 10, .polarity = REVERSE },
|
||||||
{ .name = "usb", .gpio = 1 << 11, .polarity = REVERSE },
|
{ .name = "usb", .gpio = 1 << 11, .polarity = REVERSE },
|
||||||
},
|
},
|
||||||
|
.platform_init = bcm57xx_init,
|
||||||
},
|
},
|
||||||
/* Asus */
|
/* Asus */
|
||||||
[WLHDD] = {
|
[WLHDD] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user