分类: LINUX
2012-06-09 11:09:04
/openwrt/backfire/build_dir/linux-brcm63xx/linux-2.6.32.10/arch/mips/bcm63xx/boards/ board_bcm963xx.c 只需要修改board_bcm963xx.c 此文件就可,并且此源码驱动RG100A时 LED GPIO定义是错误的. 另外 按键定义也是在这个文件里面. 附修改部分. static struct board_info __initdata board_96358vw2 = { .name = "96358VW2", .expected_cpu_id = 0x6358, .has_enet0 = 1, .has_enet1 = 1, .has_pci = 1, .enet0 = { .has_phy = 1, .use_internal_phy = 1, }, .enet1 = { .force_speed_100 = 1, .force_duplex_full = 1, }, .has_ohci0 = 1, .has_pccard = 1, .has_ehci0 = 1, .leds = { { .name = "adsl", .gpio = 22, .active_low = 1, }, { .name = "ppp-fail", .gpio = 8, .active_low = 1, }, { .name = "power", .gpio = 4, .active_low = 0, .default_trigger = "default-on", }, { .name = "wpsled", .gpio = 24, .active_low = 1, }, { .name = "usbled", .gpio = 0, .active_low = 1, }, }, }; 旧的源码 static struct board_info __initdata board_96358vw2 = { .name = "96358VW2", .expected_cpu_id = 0x6358, .has_enet0 = 1, .has_enet1 = 1, .has_pci = 1, .enet0 = { .has_phy = 1, .use_internal_phy = 1, }, .enet1 = { .force_speed_100 = 1, .force_duplex_full = 1, }, .has_ohci0 = 1, .has_pccard = 1, .has_ehci0 = 1, .leds = { { .name = "adsl", .gpio = 22, .active_low = 1, }, { .name = "ppp-fail", .gpio = 23, }, { .name = "power", .gpio = 5, .active_low = 1, .default_trigger = "default-on", }, { .name = "stop", .gpio = 4, .active_low = 1, }, }, }; |