Commit ac7eef716e6298feea81a927904b25efe1f492ac
Committed by
Marek Vasut
1 parent
03b8e04632
Exists in
v2017.01-smarct4x
and in
29 other branches
board: pic32mzda: enable USB-host, USB-storage support.
Enable MUSB host and USB storage support for Microchip PIC32MZ[DA] Starter Kit. Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>
Showing 4 changed files with 29 additions and 0 deletions Side-by-side Diff
arch/mips/dts/pic32mzda.dtsi
... | ... | @@ -171,5 +171,17 @@ |
171 | 171 | #address-cells = <1>; |
172 | 172 | #size-cells = <0>; |
173 | 173 | }; |
174 | + | |
175 | + usb: musb@1f8e3000 { | |
176 | + compatible = "microchip,pic32mzda-usb"; | |
177 | + reg = <0x1f8e3000 0x1000>, | |
178 | + <0x1f884000 0x1000>; | |
179 | + reg-names = "mc", "control"; | |
180 | + interrupts = <132 IRQ_TYPE_EDGE_RISING>, | |
181 | + <133 IRQ_TYPE_LEVEL_HIGH>; | |
182 | + clocks = <&clock PB5CLK>; | |
183 | + clock-names = "usb_clk"; | |
184 | + status = "disabled"; | |
185 | + }; | |
174 | 186 | }; |
arch/mips/dts/pic32mzda_sk.dts
configs/pic32mzdask_defconfig
... | ... | @@ -14,6 +14,7 @@ |
14 | 14 | CONFIG_CMD_MEMTEST=y |
15 | 15 | CONFIG_CMD_MEMINFO=y |
16 | 16 | # CONFIG_CMD_FLASH is not set |
17 | +CONFIG_CMD_USB=y | |
17 | 18 | # CONFIG_CMD_FPGA is not set |
18 | 19 | CONFIG_CMD_GPIO=y |
19 | 20 | CONFIG_CMD_RARP=y |
... | ... | @@ -30,6 +31,11 @@ |
30 | 31 | CONFIG_PINCTRL=y |
31 | 32 | # CONFIG_PINCTRL_FULL is not set |
32 | 33 | CONFIG_USE_PRIVATE_LIBGCC=y |
34 | +CONFIG_USB=y | |
35 | +CONFIG_DM_USB=y | |
36 | +CONFIG_USB_MUSB_HOST=y | |
37 | +CONFIG_USB_MUSB_PIC32=y | |
38 | +CONFIG_USB_STORAGE=y | |
33 | 39 | CONFIG_USE_TINY_PRINTF=y |
34 | 40 | CONFIG_CMD_DHRYSTONE=y |
include/configs/pic32mzdask.h
... | ... | @@ -105,6 +105,12 @@ |
105 | 105 | #define CONFIG_GENERIC_MMC |
106 | 106 | #define CONFIG_CMD_MMC |
107 | 107 | |
108 | +/*-------------------------------------------------- | |
109 | + * USB Configuration | |
110 | + */ | |
111 | +#define CONFIG_USB_MUSB_PIO_ONLY | |
112 | +#define CONFIG_SYS_CACHELINE_SIZE 16 | |
113 | + | |
108 | 114 | /*----------------------------------------------------------------------- |
109 | 115 | * File System Configuration |
110 | 116 | */ |
... | ... | @@ -153,6 +159,7 @@ |
153 | 159 | |
154 | 160 | #define BOOT_TARGET_DEVICES(func) \ |
155 | 161 | func(MMC, mmc, 0) \ |
162 | + func(USB, usb, 0) \ | |
156 | 163 | func(DHCP, dhcp, na) |
157 | 164 | |
158 | 165 | #include <config_distro_bootcmd.h> |