* [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support [not found] <20111112053752.97565ggsw3sbifm8@mail.fossilshale.com> @ 2011-11-12 16:08 ` Marek Vasut [not found] ` <201111121706.31311.marek.vasut@gmail.com> 1 sibling, 0 replies; 11+ messages in thread From: Marek Vasut @ 2011-11-12 16:08 UTC (permalink / raw) To: u-boot > Hi Marek, > > u-boot-v2011.09 doesn't support for imx28. I need complete support patch > for mx28. where can i get those patches? > > for which version of u-boot this patches supports..? > > > Regards, > Manoj Can you please learn to Cc mailing list when asking something ? Here is the latest version: http://git.denx.de/?p=u-boot/u-boot-imx.git;a=summary M ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <201111121706.31311.marek.vasut@gmail.com>]
* [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support [not found] ` <201111121706.31311.marek.vasut@gmail.com> @ 2011-11-14 7:59 ` Manojkumar 2011-11-14 10:48 ` Marek Vasut 0 siblings, 1 reply; 11+ messages in thread From: Manojkumar @ 2011-11-14 7:59 UTC (permalink / raw) To: u-boot Marek Vasut wrote: >> Hi Marek, >> >> u-boot-v2011.09 doesn't support for imx28. I need complete support patch >> for mx28. where can i get those patches? >> >> for which version of u-boot this patches supports..? >> >> >> Regards, >> Manoj >> > > http://git.denx.de/?p=u-boot/u-boot-imx.git;a=summary > > M > > Thanks Marek, Patches applied.. on usb start command i'm getting "scanning bus for devices... New Device 0" then its freezes after getting the debug message "enabling power on all ports usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 length 0x0" can u help me on this further? Regards, Manoj ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support 2011-11-14 7:59 ` Manojkumar @ 2011-11-14 10:48 ` Marek Vasut 2011-11-14 13:17 ` Manojkumar 0 siblings, 1 reply; 11+ messages in thread From: Marek Vasut @ 2011-11-14 10:48 UTC (permalink / raw) To: u-boot > Marek Vasut wrote: > >> Hi Marek, > >> > >> u-boot-v2011.09 doesn't support for imx28. I need complete support patch > >> for mx28. where can i get those patches? > >> > >> for which version of u-boot this patches supports..? > >> > >> > >> Regards, > >> Manoj > > > > http://git.denx.de/?p=u-boot/u-boot-imx.git;a=summary > > > > M > > Thanks Marek, > Patches applied.. > on usb start command i'm getting "scanning bus for devices... New Device > 0" then its freezes after getting the debug message > "enabling power on all ports > usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 > length 0x0" > can u help me on this further? > > Regards, > Manoj There is a mail with subject "[U-Boot] [PATCH] GCC4.6: Fix common/usb.c on xscale" in uboot ML ... apply the patch and retry. What GCC do you use? M ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support 2011-11-14 10:48 ` Marek Vasut @ 2011-11-14 13:17 ` Manojkumar 2011-11-14 14:21 ` Marek Vasut 0 siblings, 1 reply; 11+ messages in thread From: Manojkumar @ 2011-11-14 13:17 UTC (permalink / raw) To: u-boot Marek Vasut wrote: >> Marek Vasut wrote: >> >>>> Hi Marek, >>>> >>>> u-boot-v2011.09 doesn't support for imx28. I need complete support patch >>>> for mx28. where can i get those patches? >>>> >>>> for which version of u-boot this patches supports..? >>>> >>>> >>>> Regards, >>>> Manoj >>>> >>> http://git.denx.de/?p=u-boot/u-boot-imx.git;a=summary >>> >>> M >>> >> Thanks Marek, >> Patches applied.. >> on usb start command i'm getting "scanning bus for devices... New Device >> 0" then its freezes after getting the debug message >> "enabling power on all ports >> usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 >> length 0x0" >> can u help me on this further? >> >> Regards, >> Manoj >> > > There is a mail with subject "[U-Boot] [PATCH] GCC4.6: Fix common/usb.c on > xscale" in uboot ML ... apply the patch and retry. What GCC do you use? > > M > > Hello Marek, I'm using u-boot version : u-boot-imx gcc version:4.3.3 When i try to add this Patch "[U-Boot] [PATCH] GCC4.6: Fix common/usb.c on xscale" I'm getting: patching file usb.c Hunk #1 FAILED at 263. Hunk #2 FAILED at 313. 2 out of 2 hunks FAILED -- saving rejects to file usb.c.rej then i made some changes for common/usb.c as per the patch,even it gets freezes after printing the debug msg. "enabling power on all ports usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 length 0x0" Regards, Manoj ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support 2011-11-14 13:17 ` Manojkumar @ 2011-11-14 14:21 ` Marek Vasut 2011-11-17 9:07 ` Manojkumar 0 siblings, 1 reply; 11+ messages in thread From: Marek Vasut @ 2011-11-14 14:21 UTC (permalink / raw) To: u-boot > Marek Vasut wrote: > >> Marek Vasut wrote: > >>>> Hi Marek, > >>>> > >>>> u-boot-v2011.09 doesn't support for imx28. I need complete support > >>>> patch for mx28. where can i get those patches? > >>>> > >>>> for which version of u-boot this patches supports..? > >>>> > >>>> > >>>> Regards, > >>>> Manoj > >>> > >>> http://git.denx.de/?p=u-boot/u-boot-imx.git;a=summary > >>> > >>> M > >> > >> Thanks Marek, > >> Patches applied.. > >> on usb start command i'm getting "scanning bus for devices... New Device > >> 0" then its freezes after getting the debug message > >> "enabling power on all ports > >> usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 > >> length 0x0" > >> can u help me on this further? > >> > >> Regards, > >> Manoj > > > > There is a mail with subject "[U-Boot] [PATCH] GCC4.6: Fix common/usb.c > > on xscale" in uboot ML ... apply the patch and retry. What GCC do you > > use? > > > > M > > Hello Marek, > > I'm using > u-boot version : u-boot-imx > > gcc version:4.3.3 > > When i try to add this Patch "[U-Boot] [PATCH] GCC4.6: Fix common/usb.c > on xscale" > I'm getting: > patching file usb.c > Hunk #1 FAILED at 263. > Hunk #2 FAILED at 313. > 2 out of 2 hunks FAILED -- saving rejects to file usb.c.rej > > then i made some changes for common/usb.c as per the patch,even it gets > freezes after printing the debug msg. > "enabling power on all ports > usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 > length 0x0" > > Regards, > Manoj Are you using top-of-the-tree u-boot-imx/master? You shouldn't need to apply any patches. That'd explain why you're getting errors applying the last USB patch I suggested. Also, please try ELDK5.0 toolchain. M ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support 2011-11-14 14:21 ` Marek Vasut @ 2011-11-17 9:07 ` Manojkumar 2011-11-17 18:04 ` Marek Vasut 0 siblings, 1 reply; 11+ messages in thread From: Manojkumar @ 2011-11-17 9:07 UTC (permalink / raw) To: u-boot Marek Vasut wrote: >> Marek Vasut wrote: >> >>>> Marek Vasut wrote: >>>> >>>>>> Hi Marek, >>>>>> >>>>>> u-boot-v2011.09 doesn't support for imx28. I need complete support >>>>>> patch for mx28. where can i get those patches? >>>>>> >>>>>> for which version of u-boot this patches supports..? >>>>>> >>>>>> >>>>>> Regards, >>>>>> Manoj >>>>>> >>>>> http://git.denx.de/?p=u-boot/u-boot-imx.git;a=summary >>>>> >>>>> M >>>>> >>>> Thanks Marek, >>>> Patches applied.. >>>> on usb start command i'm getting "scanning bus for devices... New Device >>>> 0" then its freezes after getting the debug message >>>> "enabling power on all ports >>>> usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 >>>> length 0x0" >>>> can u help me on this further? >>>> >>>> Regards, >>>> Manoj >>>> >>> There is a mail with subject "[U-Boot] [PATCH] GCC4.6: Fix common/usb.c >>> on xscale" in uboot ML ... apply the patch and retry. What GCC do you >>> use? >>> >>> M >>> >> Hello Marek, >> >> I'm using >> u-boot version : u-boot-imx >> >> gcc version:4.3.3 >> >> When i try to add this Patch "[U-Boot] [PATCH] GCC4.6: Fix common/usb.c >> on xscale" >> I'm getting: >> patching file usb.c >> Hunk #1 FAILED at 263. >> Hunk #2 FAILED at 313. >> 2 out of 2 hunks FAILED -- saving rejects to file usb.c.rej >> >> then i made some changes for common/usb.c as per the patch,even it gets >> freezes after printing the debug msg. >> "enabling power on all ports >> usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 >> length 0x0" >> >> Regards, >> Manoj >> > > Are you using top-of-the-tree u-boot-imx/master? You shouldn't need to apply any > patches. That'd explain why you're getting errors applying the last USB patch I > suggested. > > Also, please try ELDK5.0 toolchain. > > M > > Marek, ya i'm using master code and now its working fine.. Regards, Manoj ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support 2011-11-17 9:07 ` Manojkumar @ 2011-11-17 18:04 ` Marek Vasut 0 siblings, 0 replies; 11+ messages in thread From: Marek Vasut @ 2011-11-17 18:04 UTC (permalink / raw) To: u-boot > Marek Vasut wrote: > >> Marek Vasut wrote: > >>>> Marek Vasut wrote: > >>>>>> Hi Marek, > >>>>>> > >>>>>> u-boot-v2011.09 doesn't support for imx28. I need complete support > >>>>>> patch for mx28. where can i get those patches? > >>>>>> > >>>>>> for which version of u-boot this patches supports..? > >>>>>> > >>>>>> > >>>>>> Regards, > >>>>>> Manoj > >>>>> > >>>>> http://git.denx.de/?p=u-boot/u-boot-imx.git;a=summary > >>>>> > >>>>> M > >>>> > >>>> Thanks Marek, > >>>> Patches applied.. > >>>> on usb start command i'm getting "scanning bus for devices... New > >>>> Device 0" then its freezes after getting the debug message > >>>> "enabling power on all ports > >>>> usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 > >>>> length 0x0" > >>>> can u help me on this further? > >>>> > >>>> Regards, > >>>> Manoj > >>> > >>> There is a mail with subject "[U-Boot] [PATCH] GCC4.6: Fix common/usb.c > >>> on xscale" in uboot ML ... apply the patch and retry. What GCC do you > >>> use? > >>> > >>> M > >> > >> Hello Marek, > >> > >> I'm using > >> u-boot version : u-boot-imx > >> > >> gcc version:4.3.3 > >> > >> When i try to add this Patch "[U-Boot] [PATCH] GCC4.6: Fix common/usb.c > >> on xscale" > >> I'm getting: > >> patching file usb.c > >> Hunk #1 FAILED at 263. > >> Hunk #2 FAILED at 313. > >> 2 out of 2 hunks FAILED -- saving rejects to file usb.c.rej > >> > >> then i made some changes for common/usb.c as per the patch,even it gets > >> freezes after printing the debug msg. > >> "enabling power on all ports > >> usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 > >> length 0x0" > >> > >> Regards, > >> Manoj > > > > Are you using top-of-the-tree u-boot-imx/master? You shouldn't need to > > apply any patches. That'd explain why you're getting errors applying the > > last USB patch I suggested. > > > > Also, please try ELDK5.0 toolchain. > > > > M > > Marek, > > ya i'm using master code and now its working fine.. Is it because of "[U-Boot] [PATCH] GCC4.6: Fix common/usb.c on xscale" or ELDK5.0 or Using u-boot/master ? What did you change? Anyway, it's good to hear!! M ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] [PATCH 00/20 FINAL] Support for the DENX M28 SoM @ 2011-11-09 9:18 Marek Vasut 2011-11-09 9:18 ` [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support Marek Vasut 0 siblings, 1 reply; 11+ messages in thread From: Marek Vasut @ 2011-11-09 9:18 UTC (permalink / raw) To: u-boot This series adds support for DENX M28 SoM and M28EVK kit. This series depends on previous series: * Support for both FEC interfaces on i.MX28 * Random NAND fixes and improvements * SPL modifications NOTE: Final version of the patchset, rebased on top of u-boot-imx/master as of commit 021ac2c4c80d272f140cd24ac292b826066d6c3c Marek Vasut (20): iMX28: Initial support for iMX28 CPU iMX28: Add SSP MMC driver FEC: Add support for iMX28 quirks iMX28: Add PINMUX control iMX28: Add I2C bus driver iMX28: Add GPIO control iMX28: Add SPI driver iMX28: Add APBH DMA driver iMX28: Add GPMI NAND driver iMX28: Add driver for internal RTC iMX28: Add image header generator tool iMX28: Add u-boot.sb target to Makefile iMX28: Add support for DENX M28EVK board M28: Add MMC SPL M28: Add doc/README.m28 documentation iMX28: Fix ARM vector handling M28: Add memory detection into SPL iMX28: Add USB and USB PHY register definitions iMX28: Add USB HOST driver M28EVK: Enable USB HOST support .gitignore | 1 + MAINTAINERS | 1 + Makefile | 5 + arch/arm/cpu/arm926ejs/mx28/Makefile | 46 + arch/arm/cpu/arm926ejs/mx28/clock.c | 355 +++++++ arch/arm/cpu/arm926ejs/mx28/iomux.c | 109 +++ arch/arm/cpu/arm926ejs/mx28/mx28.c | 221 +++++ arch/arm/cpu/arm926ejs/mx28/timer.c | 141 +++ arch/arm/include/asm/arch-mx28/clock.h | 61 ++ arch/arm/include/asm/arch-mx28/dma.h | 170 ++++ arch/arm/include/asm/arch-mx28/gpio.h | 32 + arch/arm/include/asm/arch-mx28/imx-regs.h | 39 + arch/arm/include/asm/arch-mx28/iomux-mx28.h | 537 +++++++++++ arch/arm/include/asm/arch-mx28/iomux.h | 168 ++++ arch/arm/include/asm/arch-mx28/regs-apbh.h | 466 +++++++++ arch/arm/include/asm/arch-mx28/regs-base.h | 88 ++ arch/arm/include/asm/arch-mx28/regs-bch.h | 230 +++++ arch/arm/include/asm/arch-mx28/regs-clkctrl.h | 312 ++++++ arch/arm/include/asm/arch-mx28/regs-common.h | 66 ++ arch/arm/include/asm/arch-mx28/regs-gpmi.h | 222 +++++ arch/arm/include/asm/arch-mx28/regs-i2c.h | 207 ++++ arch/arm/include/asm/arch-mx28/regs-ocotp.h | 173 ++++ arch/arm/include/asm/arch-mx28/regs-pinctrl.h | 1284 +++++++++++++++++++++++++ arch/arm/include/asm/arch-mx28/regs-power.h | 413 ++++++++ arch/arm/include/asm/arch-mx28/regs-rtc.h | 147 +++ arch/arm/include/asm/arch-mx28/regs-ssp.h | 349 +++++++ arch/arm/include/asm/arch-mx28/regs-timrot.h | 171 ++++ arch/arm/include/asm/arch-mx28/regs-usb.h | 178 ++++ arch/arm/include/asm/arch-mx28/regs-usbphy.h | 151 +++ arch/arm/include/asm/arch-mx28/sys_proto.h | 32 + board/denx/m28evk/Makefile | 56 ++ board/denx/m28evk/m28_init.h | 41 + board/denx/m28evk/m28evk.c | 216 +++++ board/denx/m28evk/mem_init.c | 240 +++++ board/denx/m28evk/mmc_boot.c | 273 ++++++ board/denx/m28evk/power_init.c | 913 ++++++++++++++++++ board/denx/m28evk/start.S | 234 +++++ board/denx/m28evk/u-boot-spl.lds | 87 ++ board/denx/m28evk/u-boot.bd | 14 + boards.cfg | 1 + doc/README.m28 | 223 +++++ drivers/dma/Makefile | 1 + drivers/dma/apbh_dma.c | 691 +++++++++++++ drivers/gpio/Makefile | 1 + drivers/gpio/mxs_gpio.c | 136 +++ drivers/i2c/Makefile | 1 + drivers/i2c/mxs_i2c.c | 246 +++++ drivers/mmc/Makefile | 1 + drivers/mmc/mxsmmc.c | 351 +++++++ drivers/mtd/nand/Makefile | 1 + drivers/mtd/nand/mxs_nand.c | 1118 +++++++++++++++++++++ drivers/net/fec_mxc.c | 44 +- drivers/rtc/Makefile | 1 + drivers/rtc/mxsrtc.c | 86 ++ drivers/spi/Makefile | 1 + drivers/spi/mxs_spi.c | 186 ++++ drivers/usb/host/Makefile | 1 + drivers/usb/host/ehci-mxs.c | 154 +++ include/configs/m28evk.h | 303 ++++++ tools/.gitignore | 1 + tools/Makefile | 6 + tools/mxsboot.c | 684 +++++++++++++ 62 files changed, 12685 insertions(+), 2 deletions(-) create mode 100644 arch/arm/cpu/arm926ejs/mx28/Makefile create mode 100644 arch/arm/cpu/arm926ejs/mx28/clock.c create mode 100644 arch/arm/cpu/arm926ejs/mx28/iomux.c create mode 100644 arch/arm/cpu/arm926ejs/mx28/mx28.c create mode 100644 arch/arm/cpu/arm926ejs/mx28/timer.c create mode 100644 arch/arm/include/asm/arch-mx28/clock.h create mode 100644 arch/arm/include/asm/arch-mx28/dma.h create mode 100644 arch/arm/include/asm/arch-mx28/gpio.h create mode 100644 arch/arm/include/asm/arch-mx28/imx-regs.h create mode 100644 arch/arm/include/asm/arch-mx28/iomux-mx28.h create mode 100644 arch/arm/include/asm/arch-mx28/iomux.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-apbh.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-base.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-bch.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-clkctrl.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-common.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-gpmi.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-i2c.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-ocotp.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-pinctrl.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-power.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-rtc.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-ssp.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-timrot.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-usb.h create mode 100644 arch/arm/include/asm/arch-mx28/regs-usbphy.h create mode 100644 arch/arm/include/asm/arch-mx28/sys_proto.h create mode 100644 board/denx/m28evk/Makefile create mode 100644 board/denx/m28evk/m28_init.h create mode 100644 board/denx/m28evk/m28evk.c create mode 100644 board/denx/m28evk/mem_init.c create mode 100644 board/denx/m28evk/mmc_boot.c create mode 100644 board/denx/m28evk/power_init.c create mode 100644 board/denx/m28evk/start.S create mode 100644 board/denx/m28evk/u-boot-spl.lds create mode 100644 board/denx/m28evk/u-boot.bd create mode 100644 doc/README.m28 create mode 100644 drivers/dma/apbh_dma.c create mode 100644 drivers/gpio/mxs_gpio.c create mode 100644 drivers/i2c/mxs_i2c.c create mode 100644 drivers/mmc/mxsmmc.c create mode 100644 drivers/mtd/nand/mxs_nand.c create mode 100644 drivers/rtc/mxsrtc.c create mode 100644 drivers/spi/mxs_spi.c create mode 100644 drivers/usb/host/ehci-mxs.c create mode 100644 include/configs/m28evk.h create mode 100644 tools/mxsboot.c Cc: Stefano Babic <sbabic@denx.de> Cc: Wolfgang Denk <wd@denx.de> Cc: Detlev Zundel <dzu@denx.de> -- 1.7.7.1 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support 2011-11-09 9:18 [U-Boot] [PATCH 00/20 FINAL] Support for the DENX M28 SoM Marek Vasut @ 2011-11-09 9:18 ` Marek Vasut 2011-11-10 13:16 ` Stefano Babic 2011-11-11 14:07 ` Veli-Pekka Peltola 0 siblings, 2 replies; 11+ messages in thread From: Marek Vasut @ 2011-11-09 9:18 UTC (permalink / raw) To: u-boot This enables the second port, aka. the port with the USB connector on the M28EVK. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Wolfgang Denk <wd@denx.de> Cc: Detlev Zundel <dzu@denx.de> Cc: Remy Bohmer <linux@bohmer.net> --- board/denx/m28evk/m28evk.c | 7 +++++++ include/configs/m28evk.h | 12 ++++++++++++ 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/board/denx/m28evk/m28evk.c b/board/denx/m28evk/m28evk.c index 168ceeb..8cf3dc9 100644 --- a/board/denx/m28evk/m28evk.c +++ b/board/denx/m28evk/m28evk.c @@ -52,6 +52,13 @@ int board_early_init_f(void) /* SSP2 clock at 96MHz */ mx28_set_sspclk(MXC_SSPCLK2, 96000, 0); +#ifdef CONFIG_CMD_USB + mxs_iomux_setup_pad(MX28_PAD_SSP2_SS1__USB1_OVERCURRENT); + mxs_iomux_setup_pad(MX28_PAD_AUART3_TX__GPIO_3_13 | + MXS_PAD_12MA | MXS_PAD_3V3 | MXS_PAD_PULLUP); + gpio_direction_output(MX28_PAD_AUART3_TX__GPIO_3_13, 0); +#endif + return 0; } diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h index c8b0cf5..52dcd4a 100644 --- a/include/configs/m28evk.h +++ b/include/configs/m28evk.h @@ -75,6 +75,7 @@ #define CONFIG_CMD_SETEXPR #define CONFIG_CMD_SF #define CONFIG_CMD_SPI +#define CONFIG_CMD_USB /* * Memory configurations @@ -218,6 +219,17 @@ #endif /* + * USB + */ +#ifdef CONFIG_CMD_USB +#define CONFIG_USB_EHCI +#define CONFIG_USB_EHCI_MXS +#define CONFIG_EHCI_MXS_PORT 1 +#define CONFIG_EHCI_IS_TDI +#define CONFIG_USB_STORAGE +#endif + +/* * SPI */ #ifdef CONFIG_CMD_SPI -- 1.7.7.1 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support 2011-11-09 9:18 ` [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support Marek Vasut @ 2011-11-10 13:16 ` Stefano Babic 2011-11-11 14:07 ` Veli-Pekka Peltola 1 sibling, 0 replies; 11+ messages in thread From: Stefano Babic @ 2011-11-10 13:16 UTC (permalink / raw) To: u-boot On 11/09/2011 10:18 AM, Marek Vasut wrote: > This enables the second port, aka. the port with the USB connector on the > M28EVK. > > Signed-off-by: Marek Vasut <marek.vasut@gmail.com> > Cc: Stefano Babic <sbabic@denx.de> > Cc: Wolfgang Denk <wd@denx.de> > Cc: Detlev Zundel <dzu@denx.de> > Cc: Remy Bohmer <linux@bohmer.net> > --- > board/denx/m28evk/m28evk.c | 7 +++++++ > include/configs/m28evk.h | 12 ++++++++++++ > 2 files changed, 19 insertions(+), 0 deletions(-) > > diff --git a/board/denx/m28evk/m28evk.c b/board/denx/m28evk/m28evk.c > index 168ceeb..8cf3dc9 100644 > --- a/board/denx/m28evk/m28evk.c > +++ b/board/denx/m28evk/m28evk.c > @@ -52,6 +52,13 @@ int board_early_init_f(void) > /* SSP2 clock at 96MHz */ > mx28_set_sspclk(MXC_SSPCLK2, 96000, 0); > > +#ifdef CONFIG_CMD_USB > + mxs_iomux_setup_pad(MX28_PAD_SSP2_SS1__USB1_OVERCURRENT); > + mxs_iomux_setup_pad(MX28_PAD_AUART3_TX__GPIO_3_13 | > + MXS_PAD_12MA | MXS_PAD_3V3 | MXS_PAD_PULLUP); > + gpio_direction_output(MX28_PAD_AUART3_TX__GPIO_3_13, 0); > +#endif > + > return 0; > } > > diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h > index c8b0cf5..52dcd4a 100644 > --- a/include/configs/m28evk.h > +++ b/include/configs/m28evk.h > @@ -75,6 +75,7 @@ > #define CONFIG_CMD_SETEXPR > #define CONFIG_CMD_SF > #define CONFIG_CMD_SPI > +#define CONFIG_CMD_USB > > /* > * Memory configurations > @@ -218,6 +219,17 @@ > #endif > > /* > + * USB > + */ > +#ifdef CONFIG_CMD_USB > +#define CONFIG_USB_EHCI > +#define CONFIG_USB_EHCI_MXS > +#define CONFIG_EHCI_MXS_PORT 1 > +#define CONFIG_EHCI_IS_TDI > +#define CONFIG_USB_STORAGE > +#endif > + > +/* > * SPI > */ > #ifdef CONFIG_CMD_SPI Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de ===================================================================== ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support 2011-11-09 9:18 ` [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support Marek Vasut 2011-11-10 13:16 ` Stefano Babic @ 2011-11-11 14:07 ` Veli-Pekka Peltola 2011-11-11 17:49 ` Marek Vasut 1 sibling, 1 reply; 11+ messages in thread From: Veli-Pekka Peltola @ 2011-11-11 14:07 UTC (permalink / raw) To: u-boot Hi Marek, On 11/09/2011 11:18 AM, Marek Vasut wrote: > This enables the second port, aka. the port with the USB connector on the > M28EVK. Which version of GCC you are using? I noticed that "usb start" freezes after message "scanning bus for devices..." if I had memory stick connected. I used GCC 4.6.1 that comes with Yocto 1.1. Without stick I did not have any such problems. The board is very similar to M28EVK. With GCC 4.3.4 it works fine. I also tested both compilers on our Atmel AT91SAM9260 based device but I didn't have such problems. Any ideas how to debug this further? I noticed some comments related to GCC in common/usb.c before usb_set_maxpacket_ep function. I also printed out i and ii in usb_set_maxpacket. Results were something that I didn't expect: i: 0, ii: 0 i: 0, ii: 1 i: 4, ii: -30879 i: 4, ii: -30878 -- Veli-Pekka Peltola ^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support 2011-11-11 14:07 ` Veli-Pekka Peltola @ 2011-11-11 17:49 ` Marek Vasut 0 siblings, 0 replies; 11+ messages in thread From: Marek Vasut @ 2011-11-11 17:49 UTC (permalink / raw) To: u-boot > Hi Marek, > > On 11/09/2011 11:18 AM, Marek Vasut wrote: > > This enables the second port, aka. the port with the USB connector on the > > M28EVK. > > Which version of GCC you are using? I noticed that "usb start" freezes > after message "scanning bus for devices..." if I had memory stick > connected. I used GCC 4.6.1 that comes with Yocto 1.1. Without stick I > did not have any such problems. The board is very similar to M28EVK. > With GCC 4.3.4 it works fine. > > I also tested both compilers on our Atmel AT91SAM9260 based device but I > didn't have such problems. > > Any ideas how to debug this further? I noticed some comments related to > GCC in common/usb.c before usb_set_maxpacket_ep function. I also printed > out i and ii in usb_set_maxpacket. Results were something that I didn't > expect: > i: 0, ii: 0 > i: 0, ii: 1 > i: 4, ii: -30879 > i: 4, ii: -30878 > > -- > Veli-Pekka Peltola Can you try this patch please: Subject: [PATCH] GCC4.6: Fix common/usb.c on xscale Message-Id: <1320532609-2408-1-git-send-email-marek.vasut@gmail.com> I had the same issue with gcc4.6 on xscale, if it fixes your problem, can you also try with 3.4.3 and give me your ACK? M ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2011-11-17 18:04 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20111112053752.97565ggsw3sbifm8@mail.fossilshale.com>
2011-11-12 16:08 ` [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support Marek Vasut
[not found] ` <201111121706.31311.marek.vasut@gmail.com>
2011-11-14 7:59 ` Manojkumar
2011-11-14 10:48 ` Marek Vasut
2011-11-14 13:17 ` Manojkumar
2011-11-14 14:21 ` Marek Vasut
2011-11-17 9:07 ` Manojkumar
2011-11-17 18:04 ` Marek Vasut
2011-11-09 9:18 [U-Boot] [PATCH 00/20 FINAL] Support for the DENX M28 SoM Marek Vasut
2011-11-09 9:18 ` [U-Boot] [PATCH 20/20] M28EVK: Enable USB HOST support Marek Vasut
2011-11-10 13:16 ` Stefano Babic
2011-11-11 14:07 ` Veli-Pekka Peltola
2011-11-11 17:49 ` Marek Vasut
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox