X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/504d88e2ae2cadedaa85f46f6b74bce139962fd4..af89f0c95c65add5e8b46d50acc6bfeadb44ee7b:/target/linux/brcm63xx/patches-3.2/200-extended-platform-devices.patch?ds=sidebyside diff --git a/target/linux/brcm63xx/patches-3.2/200-extended-platform-devices.patch b/target/linux/brcm63xx/patches-3.2/200-extended-platform-devices.patch index 2ec70c174..7fee1b7c1 100644 --- a/target/linux/brcm63xx/patches-3.2/200-extended-platform-devices.patch +++ b/target/linux/brcm63xx/patches-3.2/200-extended-platform-devices.patch @@ -1,8 +1,8 @@ --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c -@@ -917,6 +917,9 @@ int __init board_register_devices(void) - if (board.has_udc0) - bcm63xx_udc_register(); +@@ -911,6 +911,9 @@ int __init board_register_devices(void) + if (board.has_dsp) + bcm63xx_dsp_register(&board.dsp); + if (board.num_devs) + platform_add_devices(board.devs, board.num_devs); @@ -12,10 +12,10 @@ val &= MPI_CSBASE_BASE_MASK; --- a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h +++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h -@@ -61,6 +61,10 @@ struct board_info { +@@ -60,6 +60,10 @@ struct board_info { /* Buttons */ - struct gpio_button buttons[2]; + struct gpio_button buttons[4]; + + /* Additional platform devices */ + struct platform_device **devs;