]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mips: bmips: add support for bcm6348 usb
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Sun, 4 Feb 2018 10:18:25 +0000 (11:18 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 21 Mar 2018 22:23:13 +0000 (23:23 +0100)
Signed-off-by: Ã\81lvaro Fernández Rojas <noltari@gmail.com>
arch/mips/dts/brcm,bcm6348.dtsi
include/configs/bmips_bcm6348.h

index 540b9fea5ba9901f025ec87be5dbba513d3ec161..92fb91afc1bfd92875412f57d98a3a56c6f389ef 100644 (file)
                        status = "disabled";
                };
 
+               ohci: usb-controller@fffe1b00 {
+                       compatible = "brcm,bcm6348-ohci", "generic-ohci";
+                       reg = <0xfffe1b00 0x100>;
+                       phys = <&usbh>;
+                       big-endian;
+
+                       status = "disabled";
+               };
+
+               usbh: usb-phy@fffe1c00 {
+                       compatible = "brcm,bcm6348-usbh";
+                       reg = <0xfffe1c00 0x4>;
+                       #phy-cells = <0>;
+                       clocks = <&periph_clk BCM6348_CLK_USBH>;
+                       clock-names = "usbh";
+                       resets = <&periph_rst BCM6348_RST_USBH>;
+
+                       status = "disabled";
+               };
+
                memory-controller@fffe2300 {
                        compatible = "brcm,bcm6338-mc";
                        reg = <0xfffe2300 0x38>;
index e9f53d6811784b907e582df95ffb3b58bd9a7d29..6c9c33b822fa8e8f163e05c4d7b9c8d1a01bd5b3 100644 (file)
 #define CONFIG_NR_DRAM_BANKS           1
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
+/* USB */
+#define CONFIG_SYS_OHCI_SWAP_REG_ACCESS
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2
+#define CONFIG_USB_OHCI_NEW
+
 /* U-Boot */
 #define CONFIG_SYS_LOAD_ADDR           CONFIG_SYS_SDRAM_BASE + 0x100000