Skip to content

Commit acc12c6

Browse files
committed
Merge pull request #993 from notro/usb
BCM270x: Add USB controller to Device Tree
2 parents 75b4e19 + 392df2a commit acc12c6

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

arch/arm/boot/dts/bcm2708_common.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@
121121
status = "disabled";
122122
};
123123

124+
usb: usb@7e980000 {
125+
compatible = "brcm,bcm2708-usb";
126+
reg = <0x7e980000 0x10000>,
127+
<0x7e006000 0x1000>;
128+
interrupts = <2 0>,
129+
<1 9>;
130+
};
131+
124132
leds: leds {
125133
compatible = "gpio-leds";
126134
};

arch/arm/mach-bcm2708/bcm2708.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ void __init bcm2708_init(void)
955955
#endif
956956
bcm_register_device(&bcm2708_systemtimer_device);
957957
bcm_register_device_dt(&bcm2708_fb_device);
958-
bcm_register_device(&bcm2708_usb_device);
958+
bcm_register_device_dt(&bcm2708_usb_device);
959959
bcm_register_device(&bcm2708_uart1_device);
960960
bcm_register_device(&bcm2708_powerman_device);
961961

arch/arm/mach-bcm2709/bcm2709.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ void __init bcm2709_init(void)
978978
bcm_register_device(&bcm2708_systemtimer_device);
979979
#endif
980980
bcm_register_device_dt(&bcm2708_fb_device);
981-
bcm_register_device(&bcm2708_usb_device);
981+
bcm_register_device_dt(&bcm2708_usb_device);
982982
bcm_register_device(&bcm2708_uart1_device);
983983
bcm_register_device(&bcm2708_powerman_device);
984984

drivers/usb/host/dwc_otg/dwc_otg_driver.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,9 +1043,16 @@ static struct platform_device_id platform_ids[] = {
10431043
};
10441044
MODULE_DEVICE_TABLE(platform, platform_ids);
10451045

1046+
static const struct of_device_id dwc_otg_of_match_table[] = {
1047+
{ .compatible = "brcm,bcm2708-usb", },
1048+
{},
1049+
};
1050+
MODULE_DEVICE_TABLE(of, dwc_otg_of_match_table);
1051+
10461052
static struct platform_driver dwc_otg_driver = {
10471053
.driver = {
10481054
.name = (char *)dwc_driver_name,
1055+
.of_match_table = dwc_otg_of_match_table,
10491056
},
10501057
.id_table = platform_ids,
10511058

0 commit comments

Comments
 (0)