brcm63xx: update development kernel to linux 3.14
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 106-MIPS-BCM63XX-register-OHCI-controller-if-board-enabl.patch
1 From 33ef960aed15f9a98a2c51d8d794cd72418e0be4 Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <florian@openwrt.org>
3 Date: Mon, 28 Jan 2013 20:06:25 +0100
4 Subject: [PATCH 07/11] MIPS: BCM63XX: register OHCI controller if board
5 enables it
6
7 BCM63XX-based boards can control the registration of the OHCI controller
8 by setting their has_ohci0 flag to 1. Handle this in the generic
9 code dealing with board registration and call the actual helper to
10 register the OHCI controller.
11
12 Signed-off-by: Florian Fainelli <florian@openwrt.org>
13 ---
14 arch/mips/bcm63xx/boards/board_bcm963xx.c | 4 ++++
15 1 file changed, 4 insertions(+)
16
17 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
18 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
19 @@ -26,6 +26,7 @@
20 #include <bcm63xx_dev_hsspi.h>
21 #include <bcm63xx_dev_pcmcia.h>
22 #include <bcm63xx_dev_spi.h>
23 +#include <bcm63xx_dev_usb_ohci.h>
24 #include <bcm63xx_dev_usb_usbd.h>
25 #include <board_bcm963xx.h>
26
27 @@ -898,6 +899,9 @@ int __init board_register_devices(void)
28 if (board.has_usbd)
29 bcm63xx_usbd_register(&board.usbd);
30
31 + if (board.has_ohci0)
32 + bcm63xx_ohci_register();
33 +
34 if (board.has_dsp)
35 bcm63xx_dsp_register(&board.dsp);
36