Skip to content

Commit

Permalink
mb86hxx: musb
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitzbube committed Oct 29, 2023
1 parent c4911e2 commit 0c3fc47
Show file tree
Hide file tree
Showing 11 changed files with 464 additions and 5 deletions.
12 changes: 11 additions & 1 deletion arch/arm/boot/dts/mb86h60.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
reg = <0xe0000000 0x1000>;
#interrupt-cells = <1>;
valid-mask = <0xffffffff>;
valid-wakeup-mask = <0xffffffff>;
valid-wakeup-mask = <0x00000000>;
};

clock: clock-controller@ca000000 {
Expand All @@ -55,5 +55,15 @@
clock-names = "uartclk", "apb_pclk";
status = "disabled";
};

usb: usb@c7008000 {
compatible = "fujitsu,mb86hxx-musb";
reg = <0xc7000800 0x1000>, <0xc7000000 0x800>;
reg-names = "mc", "dma";
interrupt-parent = <&vic>;
interrupts = <21>;
interrupt-names = "mc";
status = "disabled";
};
};
};
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/mb86hxx.dts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@
&uart0 {
status = "okay";
};

&usb {
status = "okay";
};
4 changes: 4 additions & 0 deletions arch/arm/configs/mb86hxx_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_USER=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE="/mnt/"
CONFIG_USB=y
CONFIG_USB_MUSB_HDRC=y
CONFIG_MUSB_PIO_ONLY=y
CONFIG_USB_MUSB_MB86HXX=y
2 changes: 1 addition & 1 deletion arch/arm/mach-mb86hxx/mb86hxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/* IRC */
#define IRC_VA_BASE MB86HXX_IRC_VA_BASE
#define IRC_ARC_VALID_IRQ_MASK 0x0 /* mask all */
#define IRC_ARM_VALID_IRQ_MASK 0xFFFFFFFF /* no mask */
#define IRC_ARM_VALID_IRQ_MASK 0xffffffff //0xFFDFFFFF /* no mask */

#define IRC_ARC_IRQMASK 0x0
#define IRC_ARC_IRQXOR 0x4
Expand Down
4 changes: 4 additions & 0 deletions drivers/usb/musb/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ config USB_MUSB_MEDIATEK
depends on GENERIC_PHY
select USB_ROLE_SWITCH

config USB_MUSB_MB86HXX
tristate "MB86Hxx platforms"
depends on ARCH_MB86HXX

comment "MUSB DMA mode"

config MUSB_PIO_ONLY
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/musb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ obj-$(CONFIG_USB_MUSB_UX500) += ux500.o
obj-$(CONFIG_USB_MUSB_JZ4740) += jz4740.o
obj-$(CONFIG_USB_MUSB_SUNXI) += sunxi.o
obj-$(CONFIG_USB_MUSB_MEDIATEK) += mediatek.o
obj-$(CONFIG_USB_MUSB_MB86HXX) += mb86hxx.o

# the kconfig must guarantee that only one of the
# possible I/O schemes will be enabled at a time ...
Expand Down
Loading

0 comments on commit 0c3fc47

Please sign in to comment.