[U-Boot] [PATCH 5/5] am335x_evm: add new config with forced USB booting

2012-12-31 Thread Ilya Yanok
Currently AM335X hardware has bug in it's ROM code that prevents USB booting from working normally. So we have to load SPL via serial console instead. But it's feasible to use USB for loading the main U-Boot image. This patch adds additional am335x_evm configuration for this. Signed-of

[U-Boot] [PATCH 0/5] am335x_evm: support for booting via USB

2012-12-31 Thread Ilya Yanok
These series add support for booting via USB on TI AM335X based boards. Tested on BeagleBone. Ilya Yanok (5): spl: support for booting via usbeth am33xx: support for booting via usbeth am335x_evm: enable support for booting via USB spl: add possibility to force boot device am335x_evm

[U-Boot] [PATCH 3/5] am335x_evm: enable support for booting via USB

2012-12-31 Thread Ilya Yanok
This adds necessary config options to enable usb booting and fixes board_eth_init() function to take into account that we may have USB ether support in SPL now. Signed-off-by: Ilya Yanok --- board/ti/am335x/board.c | 3 ++- include/configs/am335x_evm.h | 8 2 files changed, 10

[U-Boot] [PATCH 4/5] spl: add possibility to force boot device

2012-12-31 Thread Ilya Yanok
Sometimes (for debugging purposes mostly but also to overcome some hardware limitations) it's desirable to be able to force boot device to some fixed value. This patch adds this possibility via CONFIG_SPL_FORCE_BOOT_DEVICE option. Signed-off-by: Ilya Yanok --- common/spl/spl.c | 4 1

[U-Boot] [PATCH 1/5] spl: support for booting via usbeth

2012-12-31 Thread Ilya Yanok
In case of usbeth booting just call net_load_image("usb_ether"). This patch also adds CONFIG_SPL_USBETH_SUPPORT and CONFIG_SPL_MUSB_NEW_SUPPORT config options to enable linking of SPL against USB gagdet support and new MUSB driver resp. Signed-off-by: Ilya Yanok --- common/spl

[U-Boot] [PATCH 2/5] am33xx: support for booting via usbeth

2012-12-31 Thread Ilya Yanok
This patch adds BOOT_DEVICE define for USB booting and fixes spl_board_init function to call arch_misc_init (this is the place there musb is initialized). Signed-off-by: Ilya Yanok --- arch/arm/cpu/armv7/omap-common/boot-common.c | 3 +++ arch/arm/include/asm/arch-am33xx/spl.h | 1 + 2

Re: [U-Boot] [PATCH v2 3/8] am33xx: NAND support

2012-11-15 Thread Ilya Yanok
Hi Peter, On Thu, Nov 8, 2012 at 10:33 AM, Peter Korsgaard wrote: > Ilya> +void enable_gpmc_cs_config(const u32 *gpmc_config, struct gpmc_cs > *cs, u32 base, > Ilya> +u32 size) > Ilya> +{ > Ilya> +writel(0, &cs->config7); > Ilya> +sdelay(1000); > Ily

[U-Boot] [PATCH v5 13/13] omap3_beagle: use new MUSB intstead of the old one

2012-11-06 Thread Ilya Yanok
Enable using of new MUSB framework on Beagle. NOTE! This is not just a change of backend code: top-level behavior is also changed, we now use USB device port for USB Ethernet instead of serial. Signed-off-by: Ilya Yanok --- include/configs/omap3_beagle.h | 11 --- 1 file changed, 4

[U-Boot] [PATCH v5 09/13] OMAP3: am35x: add musb functions

2012-11-06 Thread Ilya Yanok
AM35XX specific functions for integrated USB PHY/MUSB IP. Signed-off-by: Ilya Yanok --- arch/arm/cpu/armv7/omap3/Makefile |1 + arch/arm/cpu/armv7/omap3/am35x_musb.c | 75 arch/arm/include/asm/arch-omap3/musb.h | 28 3 files changed

[U-Boot] [PATCH v5 12/13] omap3_beagle: add musb-new init

2012-11-06 Thread Ilya Yanok
Add initialization for new MUSB framework. Signed-off-by: Ilya Yanok --- board/ti/beagle/beagle.c | 43 include/configs/omap3_beagle.h |2 ++ 2 files changed, 45 insertions(+) diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c

[U-Boot] [PATCH v5 11/13] musb-new: omap2plus backend driver

2012-11-06 Thread Ilya Yanok
Backend driver for MUSB OTG controllers found on TI OMAP2/3/4 (tested only on OMAP3 Beagle). Signed-off-by: Ilya Yanok --- arch/arm/include/asm/omap_musb.h|4 + drivers/usb/musb-new/Makefile |1 + drivers/usb/musb-new/linux-compat.h |9 + drivers/usb/musb-new/omap2430.c

[U-Boot] [PATCH v5 10/13] am3517_evm: switch to musb-new

2012-11-06 Thread Ilya Yanok
Use new musb framework instead of the old one on AM3517_EVM. Signed-off-by: Ilya Yanok --- board/logicpd/am3517evm/am3517evm.c | 74 +++ include/configs/am3517_evm.h| 37 -- 2 files changed, 90 insertions(+), 21 deletions(-) diff

[U-Boot] [PATCH v5 08/13] OMAP3: am35x_def.h: add USB defines

2012-11-06 Thread Ilya Yanok
Add defines for MUSB IP block on AM35X SoCs. Signed-off-by: Ilya Yanok --- arch/arm/include/asm/arch-omap3/am35x_def.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/include/asm/arch-omap3/am35x_def.h b/arch/arm/include/asm/arch-omap3/am35x_def.h

[U-Boot] [PATCH v5 06/13] am335x_evm: enable both musb gadget and host

2012-11-06 Thread Ilya Yanok
Enable musb gadget in Ethernet mode on port 0 and musb host on port1. Signed-off-by: Ilya Yanok --- Changes in v5: - rebase onto master (board_eth_init moved to board/) - don't init usb ether in SPL board/ti/am335x/board.c | 23 +-- include/configs/am335x_

[U-Boot] [PATCH v5 07/13] musb-new: am35x backend driver

2012-11-06 Thread Ilya Yanok
h non-updated core registers. This confuses the code and result in hanged transfers. Add a small delay in am35x_interrupt as a workaround. Signed-off-by: Ilya Yanok --- arch/arm/include/asm/omap_musb.h|3 + drivers/usb/musb-new/Makefile |1 + drivers/usb/musb-new/am35x.c|

[U-Boot] [PATCH v5 05/13] am33xx: init OTG hardware and new musb gadget driver

2012-11-06 Thread Ilya Yanok
AM33xx has support for dual port MUSB OTG controller. This patch adds initialization for the controller using new MUSB gadget driver and ether gadget. Signed-off-by: Ilya Yanok --- Changes in v5: - rebase onto master (board_eth_init moved to board/) Changes in v3: - use clrsetbits_le32 for

[U-Boot] [PATCH v5 04/13] musb-new: dsps backend driver

2012-11-06 Thread Ilya Yanok
Backend driver for MUSB OTG controllers found on TI AM33xx and TI81xx SoCs (tested with AM33xx only). Signed-off-by: Ilya Yanok --- Changes in v2: - rename backend config option to CONFIG_USB_MUSB_DSPS - we are providing host support now so add yourself to usb.h arch/arm/include/asm

[U-Boot] [PATCH v5 01/13] linux/usb/ch9.h: update with the version from Linux tree

2012-11-06 Thread Ilya Yanok
Signed-off-by: Ilya Yanok --- drivers/usb/gadget/config.c |1 - drivers/usb/gadget/epautoconf.c |1 - drivers/usb/gadget/ether.c |1 - drivers/usb/gadget/s3c_udc_otg.c |1 - drivers/usb/gadget/usbstring.c |1 - include/linux/usb/ch9.h | 514

[U-Boot] [PATCH v5 02/13] usb: use linux/usb/ch9.h instead of usbdescriptors.h

2012-11-06 Thread Ilya Yanok
ely the only place that tries to include both are the old MUSB code and it needs usb.h only for USB_DMA_MINALIGN used in aligned attribute on musb_regs structure but this attribute seems to be unneeded (old MUSB code doesn't support any DMA at all). Signed-off-by: Ilya Yanok --- Changes in v5:

[U-Boot] [PATCH v5 0/13] Port of MUSB driver from Linux (changes from Linux)

2012-11-06 Thread Ilya Yanok
support compilation with only host or gadget enabled - rename backend config option to CONFIG_USB_MUSB_DSPS - we are providing host support now so add yourself to usb.h Ilya Yanok (13): linux/usb/ch9.h: update with the version from Linux tree usb: use linux/usb/ch9.h instead of usbdescripto

[U-Boot] [PATCH v2 7/8] am33xx_spl_bch: simple SPL nand loader for AM33XX

2012-11-06 Thread Ilya Yanok
AM33XX with BCH8 can't work with nand_spl_simple correctly because custom read_page implementation is required for proper syndrome generation. This simple driver mostly duplicates nand_spl_simple but has nand_read_page changed to suit our needs. Signed-off-by: Ilya Yanok --- drivers/mtd

[U-Boot] [PATCH v2 8/8] am335x_evm: enable SPL NAND support

2012-11-06 Thread Ilya Yanok
Enable booting from NAND support from AM335x boards as well as environment in NAND. Signed-off-by: Ilya Yanok --- include/configs/am335x_evm.h | 38 -- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/include/configs/am335x_evm.h b/include

[U-Boot] [PATCH v2 6/8] omap_gpmc: BCH8 support (ELM based)

2012-11-06 Thread Ilya Yanok
] Signed-off-by: Ilya Yanok --- drivers/mtd/nand/omap_gpmc.c | 403 +- 1 file changed, 402 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c index f1469d1..cee394e 100644 --- a/drivers/mtd/nand/omap_gpmc.c

[U-Boot] [PATCH v2 5/8] am33xx: add ELM support

2012-11-06 Thread Ilya Yanok
From: Mansoor Ahamed AM33XX has Error Location Module (ELM) that can be used in conjuction with GPMC controller to implement BCH codes fully in hardware. This code is mostly taken from arago tree. Signed-off-by: Mansoor Ahamed Signed-off-by: Ilya Yanok --- Changes in v2: - fix wrong braces

[U-Boot] [PATCH v2 4/8] am335x_evm: enable NAND support

2012-11-06 Thread Ilya Yanok
Enable NAND support for AM335X boards. Signed-off-by: Ilya Yanok --- Changes in v2: - rebased onto master - minor config style fix (wrt nand) board/ti/am335x/board.c |2 ++ include/configs/am335x_evm.h | 12 2 files changed, 14 insertions(+) diff --git a/board/ti

[U-Boot] [PATCH v2 3/8] am33xx: NAND support

2012-11-06 Thread Ilya Yanok
TI AM33XX has the same GPMC controller as OMAP3 so we could just use the existing omap_gpmc driver. This patch adds adds required definitions/intialization. Signed-off-by: Ilya Yanok --- Changes in v2: - rebased on current master - clean up mem.c (remove unused stuff that was copied from

[U-Boot] [PATCH v2 2/8] am335x_evm: add nand pinmux definition

2012-11-06 Thread Ilya Yanok
Add NAND pins mux settings for AM335X devices. Enable NAND pins for AM335X EVM board. Signed-off-by: Ilya Yanok --- Changes in v2: -fix nand mux settings (profiles 2&3 don't have NAND) board/ti/am335x/mux.c | 22 ++ 1 file changed, 22 insertions(+) diff --gi

[U-Boot] [PATCH v2 1/8] OMAP: include sys_proto.h from boot-common

2012-11-06 Thread Ilya Yanok
Include asm/arch/sys_proto.h for gpmc_init prototype. Without this we get a warning while building for AM335x. Signed-off-by: Ilya Yanok --- arch/arm/cpu/armv7/omap-common/boot-common.c |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/cpu/armv7/omap-common/boot-common.c b/arch

[U-Boot] [PATCH v2 0/8] NAND support for AM33XX

2012-11-06 Thread Ilya Yanok
- minor config style fix (wrt nand) - fix wrong braces in Makefile Ilya Yanok (6): OMAP: include sys_proto.h from boot-common am335x_evm: add nand pinmux definition am33xx: NAND support am335x_evm: enable NAND support am33xx_spl_bch: simple SPL nand loader for AM33XX am335x_evm: enable

Re: [U-Boot] SMSC LAN9514 on TI DM37x board

2012-11-06 Thread Ilya Yanok
On Tue, Nov 6, 2012 at 9:24 AM, Felix Radensky wrote: > Hi Marek, > > > On 11/06/2012 12:57 AM, Marek Vasut wrote: > >> Can you please avoid top-posting? Does U-Boot even support your USB >> device? >> >> > Sorry about top-posting. My USB device is supported by smsc95xx.c driver > in drivers/usb/e

Re: [U-Boot] [PATCH v1 7/8] am33xx_spl_bch: simple SPL nand loader for AM33XX

2012-11-03 Thread Ilya Yanok
Hi Tom, On Wed, Oct 31, 2012 at 1:03 AM, Tom Rini wrote: > > > + for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { > > + this->ecc.hwctl(&mtd, NAND_ECC_READ); + > nand_command(block, > > page, data_pos, NAND_CMD_RNDOUT); + + this->read_buf(&mtd, p, > > eccsi

[U-Boot] [PATCH v4 13/13] omap3_beagle: use new MUSB intstead of the old one

2012-11-03 Thread Ilya Yanok
Enable using of new MUSB framework on Beagle. NOTE! This is not just a change of backend code: top-level behavior is also changed, we now use USB device port for USB Ethernet instead of serial. Signed-off-by: Ilya Yanok --- include/configs/omap3_beagle.h | 11 --- 1 file changed, 4

[U-Boot] [PATCH v4 11/13] musb-new: omap2plus backend driver

2012-11-03 Thread Ilya Yanok
Backend driver for MUSB OTG controllers found on TI OMAP2/3/4 (tested only on OMAP3 Beagle). Signed-off-by: Ilya Yanok --- arch/arm/include/asm/omap_musb.h|4 + drivers/usb/musb-new/Makefile |1 + drivers/usb/musb-new/linux-compat.h |9 + drivers/usb/musb-new/omap2430.c

[U-Boot] [PATCH v4 12/13] omap3_beagle: add musb-new init

2012-11-03 Thread Ilya Yanok
Add initialization for new MUSB framework. Signed-off-by: Ilya Yanok --- board/ti/beagle/beagle.c | 43 include/configs/omap3_beagle.h |2 ++ 2 files changed, 45 insertions(+) diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c

[U-Boot] [PATCH v4 09/13] OMAP3: am35x: add musb functions

2012-11-03 Thread Ilya Yanok
AM35XX specific functions for integrated USB PHY/MUSB IP. Signed-off-by: Ilya Yanok --- arch/arm/cpu/armv7/omap3/Makefile |1 + arch/arm/cpu/armv7/omap3/am35x_musb.c | 75 arch/arm/include/asm/arch-omap3/musb.h | 28 3 files changed

[U-Boot] [PATCH v4 10/13] am3517_evm: switch to musb-new

2012-11-03 Thread Ilya Yanok
Use new musb framework instead of the old one on AM3517_EVM. Signed-off-by: Ilya Yanok --- board/logicpd/am3517evm/am3517evm.c | 74 +++ include/configs/am3517_evm.h| 37 -- 2 files changed, 90 insertions(+), 21 deletions(-) diff

[U-Boot] [PATCH v4 08/13] OMAP3: am35x_def.h: add USB defines

2012-11-03 Thread Ilya Yanok
Add defines for MUSB IP block on AM35X SoCs. Signed-off-by: Ilya Yanok --- arch/arm/include/asm/arch-omap3/am35x_def.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/include/asm/arch-omap3/am35x_def.h b/arch/arm/include/asm/arch-omap3/am35x_def.h

[U-Boot] [PATCH v4 07/13] musb-new: am35x backend driver

2012-11-03 Thread Ilya Yanok
h non-updated core registers. This confuses the code and result in hanged transfers. Add a small delay in am35x_interrupt as a workaround. Signed-off-by: Ilya Yanok --- arch/arm/include/asm/omap_musb.h|3 + drivers/usb/musb-new/Makefile |1 + drivers/usb/musb-new/am35x.c|

[U-Boot] [PATCH v4 05/13] am33xx: init OTG hardware and new musb gadget driver

2012-11-03 Thread Ilya Yanok
AM33xx has support for dual port MUSB OTG controller. This patch adds initialization for the controller using new MUSB gadget driver and ether gadget. Signed-off-by: Ilya Yanok --- Changes in v3: - use clrsetbits_le32 for USB PHY ops arch/arm/cpu/armv7/am33xx/board.c | 103

[U-Boot] [PATCH v4 06/13] am335x_evm: enable both musb gadget and host

2012-11-03 Thread Ilya Yanok
Enable musb gadget in Ethernet mode on port 0 and musb host on port1. Signed-off-by: Ilya Yanok --- include/configs/am335x_evm.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 339d4bd..77f7219

[U-Boot] [PATCH v4 04/13] musb-new: dsps backend driver

2012-11-03 Thread Ilya Yanok
Backend driver for MUSB OTG controllers found on TI AM33xx and TI81xx SoCs (tested with AM33xx only). Signed-off-by: Ilya Yanok --- Changes in v2: - rename backend config option to CONFIG_USB_MUSB_DSPS - we are providing host support now so add yourself to usb.h arch/arm/include/asm

[U-Boot] [PATCH v4 01/13] linux/usb/ch9.h: update with the version from Linux tree

2012-11-03 Thread Ilya Yanok
Signed-off-by: Ilya Yanok --- drivers/usb/gadget/config.c |1 - drivers/usb/gadget/epautoconf.c |1 - drivers/usb/gadget/ether.c |1 - drivers/usb/gadget/s3c_udc_otg.c |1 - drivers/usb/gadget/usbstring.c |1 - include/linux/usb/ch9.h | 514

[U-Boot] [PATCH v4 0/13] Port of MUSB driver from Linux (changes from Linux)

2012-11-03 Thread Ilya Yanok
conditionally to support compilation with only host or gadget enabled - added some more is_{host,peripheral}_capable guards to core code to support compilation with only host or gadget enabled - rename backend config option to CONFIG_USB_MUSB_DSPS - we are providing host support now so add yourself

[U-Boot] [PATCH v4 02/13] usb: use linux/usb/ch9.h instead of usbdescriptors.h

2012-11-03 Thread Ilya Yanok
ely the only place that tries to include both are the old MUSB code and it needs usb.h only for USB_DMA_MINALIGN used in aligned attribute on musb_regs structure but this attribute seems to be unneeded (old MUSB code doesn't support any DMA at all). Signed-off-by: Ilya Yanok --- Changes in v4:

[U-Boot] [PATCH v4 04/13] musb-new: dsps backend driver

2012-11-03 Thread Ilya Yanok
Backend driver for MUSB OTG controllers found on TI AM33xx and TI81xx SoCs (tested with AM33xx only). Signed-off-by: Ilya Yanok Signed-off-by: Ilya Yanok --- Changes in v2: - rename backend config option to CONFIG_USB_MUSB_DSPS - we are providing host support now so add yourself to usb.h

[U-Boot] [PATCH v4 02/13] usb: use linux/usb/ch9.h instead of usbdescriptors.h

2012-11-03 Thread Ilya Yanok
ely the only place that tries to include both are the old MUSB code and it needs usb.h only for USB_DMA_MINALIGN used in aligned attribute on musb_regs structure but this attribute seems to be unneeded (old MUSB code doesn't support any DMA at all). Signed-off-by: Ilya Yanok --- Changes in v4:

[U-Boot] [PATCH v4 01/13] linux/usb/ch9.h: update with the version from Linux tree

2012-11-03 Thread Ilya Yanok
Signed-off-by: Ilya Yanok Signed-off-by: Ilya Yanok --- drivers/usb/gadget/config.c |1 - drivers/usb/gadget/epautoconf.c |1 - drivers/usb/gadget/ether.c |1 - drivers/usb/gadget/s3c_udc_otg.c |1 - drivers/usb/gadget/usbstring.c |1 - include/linux/usb/ch9.h

[U-Boot] [PATCH v4 0/13] Port of MUSB driver from Linux (changes from Linux)

2012-11-03 Thread Ilya Yanok
pheral}_capable guards to core code to support compilation with only host or gadget enabled - rename backend config option to CONFIG_USB_MUSB_DSPS - we are providing host support now so add yourself to usb.h Ilya Yanok (13): linux/usb/ch9.h: update with the version from Linux tree usb: use l

Re: [U-Boot] [RFC PATCH v3 0/13] Port of MUSB driver from Linux (changes from Linux)

2012-11-03 Thread Ilya Yanok
Hi Tom, On Tue, Oct 23, 2012 at 1:45 AM, Tom Rini wrote: > In general, things look OK but please run it through checkpatch.pl, use > just one Signed-off-by line and fixup if (...) { ... one line ... } in > the glue code you add that's not synced up from the kernel (I saw one in > the am335x bits

[U-Boot] [PATCH v1 6/8] omap_gpmc: BCH8 support (ELM based)

2012-10-30 Thread Ilya Yanok
] Signed-off-by: Ilya Yanok --- arch/arm/cpu/armv7/am33xx/board.c |4 +- drivers/mtd/nand/omap_gpmc.c | 403 - 2 files changed, 405 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv7/am33xx/board.c b/arch/arm/cpu/armv7/am33xx/board.c index

[U-Boot] [PATCH v1 8/8] am335x_evm: enable SPL NAND support

2012-10-30 Thread Ilya Yanok
Enable booting from NAND support from AM335x boards as well as environment in NAND. Signed-off-by: Ilya Yanok --- include/configs/am335x_evm.h | 38 -- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/include/configs/am335x_evm.h b/include

[U-Boot] [PATCH v1 7/8] am33xx_spl_bch: simple SPL nand loader for AM33XX

2012-10-30 Thread Ilya Yanok
AM33XX with BCH8 can't work with nand_spl_simple correctly because custom read_page implementation is required for proper syndrome generation. This simple driver mostly duplicates nand_spl_simple but has nand_read_page changed to suit our needs. Signed-off-by: Ilya Yanok --- drivers/mtd

[U-Boot] [PATCH v1 5/8] am33xx: add ELM support

2012-10-30 Thread Ilya Yanok
From: Mansoor Ahamed AM33XX has Error Location Module (ELM) that can be used in conjuction with GPMC controller to implement BCH codes fully in hardware. This code is mostly taken from arago tree. Signed-off-by: Mansoor Ahamed Signed-off-by: Ilya Yanok --- arch/arm/cpu/armv7/am33xx/Makefile

[U-Boot] [PATCH v1 4/8] am335x_evm: enable NAND support

2012-10-30 Thread Ilya Yanok
Enable NAND support for AM335X boards. Signed-off-by: Ilya Yanok --- include/configs/am335x_evm.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 339d4bd..a89cdcd 100644 --- a/include/configs/am335x_evm.h

[U-Boot] [PATCH v1 3/8] am33xx: NAND support

2012-10-30 Thread Ilya Yanok
TI AM33XX has the same GPMC controller as OMAP3 so we could just use the existing omap_gpmc driver. This patch adds adds required definitions/intialization. Signed-off-by: Ilya Yanok --- arch/arm/cpu/armv7/am33xx/Makefile |1 + arch/arm/cpu/armv7/am33xx/board.c| 34

[U-Boot] [PATCH v1 2/8] am335x_evm: add nand pinmux definition

2012-10-30 Thread Ilya Yanok
Add NAND pins mux settings for AM335X devices. Enable NAND pins for AM335X EVM board. Signed-off-by: Ilya Yanok --- board/ti/am335x/mux.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/board/ti/am335x/mux.c b/board/ti/am335x/mux.c index 80becd5..a46c680 100644

[U-Boot] [PATCH v1 1/8] OMAP: include sys_proto.h from boot-common

2012-10-30 Thread Ilya Yanok
Include asm/arch/sys_proto.h for gpmc_init prototype. Without this we get a warning while building for AM335x. Signed-off-by: Ilya Yanok --- arch/arm/cpu/armv7/omap-common/boot-common.c |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/cpu/armv7/omap-common/boot-common.c b/arch

[U-Boot] [PATCH v1 0/8] NAND support for AM33XX

2012-10-30 Thread Ilya Yanok
GPMC to generate codes/syndromes and ELM to find the errors. Ilya Yanok (6): OMAP: include sys_proto.h from boot-common am335x_evm: add nand pinmux definition am33xx: NAND support am335x_evm: enable NAND support am33xx_spl_bch: simple SPL nand loader for AM33XX am335x_evm: enable SPL

Re: [U-Boot] [RFC PATCH v3 0/13] Port of MUSB driver from Linux (changes from Linux)

2012-10-24 Thread Ilya Yanok
Hi Tom, On Wed, Oct 24, 2012 at 4:24 PM, Tom Rini wrote: > > I'm a little lost. In the kernel, you can't use > > CONFIG_USB_G_SERIAL with CONFIG_USB_MUSB_${hw glue} ? > > > > > > You can. But we don't have g_serial in U-Boot yet. > > So we would need to port that, in order to remove the serial

Re: [U-Boot] [RFC PATCH v3 0/13] Port of MUSB driver from Linux (changes from Linux)

2012-10-24 Thread Ilya Yanok
Hi Tom, On Tue, Oct 23, 2012 at 1:45 AM, Tom Rini wrote: > > This is not a replacement for existing MUSB driver (at least for > > now), cause there are still consumers of USB serial gadget which > > uses old API and there is no support for serial with new API > > for now. > > I'm a little lost.

Re: [U-Boot] [RFC PATCH v3 13/13] omap3_beagle: use new MUSB intstead of the old one

2012-10-24 Thread Ilya Yanok
Dear Marek, On Tue, Oct 23, 2012 at 11:20 AM, Marek Vasut wrote: > > Signed-off-by: Ilya Yanok > > > > Signed-off-by: Ilya Yanok > > Double SoB line > Yeah, it's a mess with SoBs, I'm sorry. I think it's not only t

[U-Boot] [RFC PATCH v3 13/13] omap3_beagle: use new MUSB intstead of the old one

2012-10-18 Thread Ilya Yanok
Enable using of new MUSB framework on Beagle. NOTE! This is not just a change of backend code: top-level behavior is also changed, we now use USB device port for USB Ethernet instead of serial. Signed-off-by: Ilya Yanok Signed-off-by: Ilya Yanok --- include/configs/omap3_beagle.h | 11

[U-Boot] [RFC PATCH v3 10/13] am3517_evm: switch to musb-new

2012-10-18 Thread Ilya Yanok
Use new musb framework instead of the old one on AM3517_EVM. Signed-off-by: Ilya Yanok Signed-off-by: Ilya Yanok --- board/logicpd/am3517evm/am3517evm.c | 74 +++ include/configs/am3517_evm.h| 37 -- 2 files changed, 90 insertions

[U-Boot] [RFC PATCH v3 12/13] omap3_beagle: add musb-new init

2012-10-18 Thread Ilya Yanok
Add initialization for new MUSB framework. Signed-off-by: Ilya Yanok Signed-off-by: Ilya Yanok --- board/ti/beagle/beagle.c | 43 include/configs/omap3_beagle.h |2 ++ 2 files changed, 45 insertions(+) diff --git a/board/ti/beagle/beagle.c

[U-Boot] [RFC PATCH v3 11/13] musb-new: omap2plus backend driver

2012-10-18 Thread Ilya Yanok
Backend driver for MUSB OTG controllers found on TI OMAP2/3/4 (tested only on OMAP3 Beagle). Signed-off-by: Ilya Yanok Signed-off-by: Ilya Yanok --- arch/arm/include/asm/omap_musb.h|4 + drivers/usb/musb-new/Makefile |1 + drivers/usb/musb-new/linux-compat.h |9

[U-Boot] [RFC PATCH v3 07/13] musb-new: am35x backend driver

2012-10-18 Thread Ilya Yanok
h non-updated core registers. This confuses the code and result in hanged transfers. Add a small delay in am35x_interrupt as a workaround. Signed-off-by: Ilya Yanok Signed-off-by: Ilya Yanok --- arch/arm/include/asm/omap_musb.h|3 + drivers/usb/musb-new/Makefile |1 + drivers/usb

[U-Boot] [RFC PATCH v3 09/13] OMAP3: am35x: add musb functions

2012-10-18 Thread Ilya Yanok
AM35XX specific functions for integrated USB PHY/MUSB IP. Signed-off-by: Ilya Yanok Signed-off-by: Ilya Yanok --- arch/arm/cpu/armv7/omap3/Makefile |1 + arch/arm/cpu/armv7/omap3/am35x_musb.c | 75 arch/arm/include/asm/arch-omap3/musb.h | 28

[U-Boot] [RFC PATCH v3 08/13] OMAP3: am35x_def.h: add USB defines

2012-10-18 Thread Ilya Yanok
Add defines for MUSB IP block on AM35X SoCs. Signed-off-by: Ilya Yanok Signed-off-by: Ilya Yanok --- arch/arm/include/asm/arch-omap3/am35x_def.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/include/asm/arch-omap3/am35x_def.h b/arch/arm/include

[U-Boot] [RFC PATCH v3 06/13] am335x_evm: enable both musb gadget and host

2012-10-18 Thread Ilya Yanok
Enable musb gadget in Ethernet mode on port 0 and musb host on port1. Signed-off-by: Ilya Yanok --- include/configs/am335x_evm.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 339d4bd..77f7219

[U-Boot] [RFC PATCH v3 05/13] am33xx: init OTG hardware and new musb gadget driver

2012-10-18 Thread Ilya Yanok
AM33xx has support for dual port MUSB OTG controller. This patch adds initialization for the controller using new MUSB gadget driver and ether gadget. Signed-off-by: Ilya Yanok --- Changes in v3: - use clrsetbits_le32 for USB PHY ops arch/arm/cpu/armv7/am33xx/board.c | 103

[U-Boot] [RFC PATCH v3 04/13] musb-new: dsps backend driver

2012-10-18 Thread Ilya Yanok
Backend driver for MUSB OTG controllers found on TI AM33xx and TI81xx SoCs (tested with AM33xx only). Signed-off-by: Ilya Yanok Signed-off-by: Ilya Yanok --- Changes in v2: - rename backend config option to CONFIG_USB_MUSB_DSPS - we are providing host support now so add yourself to usb.h

[U-Boot] [RFC PATCH v3 01/13] linux/usb/ch9.h: update with the version from Linux tree

2012-10-18 Thread Ilya Yanok
Signed-off-by: Ilya Yanok Signed-off-by: Ilya Yanok --- drivers/usb/gadget/config.c |1 - drivers/usb/gadget/epautoconf.c |1 - drivers/usb/gadget/ether.c |1 - drivers/usb/gadget/s3c_udc_otg.c |1 - drivers/usb/gadget/usbstring.c |1 - include/linux/usb/ch9.h

[U-Boot] [RFC PATCH v3 02/13] usb: use linux/usb/ch9.h instead of usbdescriptors.h

2012-10-18 Thread Ilya Yanok
ely the only place that tries to include both are the old MUSB code and it needs usb.h only for USB_DMA_MINALIGN used in aligned attribute on musb_regs structure but this attribute seems to be unneeded (old MUSB code doesn't support any DMA at all). Signed-off-by: Ilya Yanok --- Changes in v

[U-Boot] [RFC PATCH v3 0/13] Port of MUSB driver from Linux (changes from Linux)

2012-10-18 Thread Ilya Yanok
ilation with only host or gadget enabled - rename backend config option to CONFIG_USB_MUSB_DSPS - we are providing host support now so add yourself to usb.h Ilya Yanok (13): linux/usb/ch9.h: update with the version from Linux tree usb: use linux/usb/ch9.h instead of usbdescriptors.h mus

Re: [U-Boot] [RFC PATCH v2 4/6] musb-new: dsps backend driver

2012-09-22 Thread Ilya Yanok
Dear Marek, On Sat, Sep 22, 2012 at 4:48 AM, Marek Vasut wrote: > > +COBJS-$(CONFIG_USB_MUSB_DSPS) += musb_dsps.o > CONFIG_MUSB_... ? > I'm following Linux here. We can change this, but should we? BTW, it looks to be in line with the current code where all USB lowlevel drivers have CONFIG_USB_*

Re: [U-Boot] [RFC PATCH v2 5/6] am33xx: init OTG hardware and new musb gadget driver

2012-09-22 Thread Ilya Yanok
Dear Marek, On Sat, Sep 22, 2012 at 4:49 AM, Marek Vasut wrote: > > > +{ > > + u32 usb_ctrl_reg; > > + > > + usb_ctrl_reg = readl(reg_addr); > > + if (on) { > > + usb_ctrl_reg &= ~(CM_PHY_PWRDN | CM_PHY_OTG_PWRDN); > > + usb_ctrl_reg |= (OTGVDET_EN | OTGSESSEN

Re: [U-Boot] [RFC PATCH v2 0/6] Port of MUSB driver from Linux

2012-09-22 Thread Ilya Yanok
Dear Marek, On Sat, Sep 22, 2012 at 4:55 AM, Marek Vasut wrote: > [...] > > I'm glad about this. But how can we make this work if we already have a > driver > for this in u-boot, now we will have another. Tom ? > What's so wrong in letting the two coexist for some time so people could migrate s

Re: [U-Boot] [PATCH v6 3/4] OMAP: networking support for SPL

2012-09-18 Thread Ilya Yanok
Hi Tom, On Tue, Sep 18, 2012 at 4:17 AM, Tom Rini wrote: > > Please add a GPLv2+ header to the file, thanks. > Done. > > > diff --git a/lib/vsprintf.c b/lib/vsprintf.c index e38a4b7..6bb819c > > 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -784,7 +784,7 > > @@ void panic(const char *fm

[U-Boot] [PATCH v7 3/4] OMAP: networking support for SPL

2012-09-18 Thread Ilya Yanok
other code so SPL size is increased significantly. No effort was done to decouple network code and environment so far. Signed-off-by: Ilya Yanok --- Changes in v3: - use BOOTP in SPL regardless of CONFIG_CMD_DHCP - add support for setting different VCI in SPL Changes in v4: - fix compilation

[U-Boot] [PATCH v6 1/4] net/bootp: add VCI support for BOOTP also

2012-09-17 Thread Ilya Yanok
Vendor Class Identifier option is common to BOOTP and DHCP and can be useful without PXE. So send VCI in both BOOTP and DHCP requests if CONFIG_BOOTP_VCI_STRING is defined. Signed-off-by: Ilya Yanok --- Changes in v4: - used strlen instead of sizeof - moved vci_strlen var inside macro net

[U-Boot] [PATCH v6 3/4] OMAP: networking support for SPL

2012-09-17 Thread Ilya Yanok
other code so SPL size is increased significantly. No effort was done to decouple network code and environment so far. Signed-off-by: Ilya Yanok --- Changes in v3: - use BOOTP in SPL regardless of CONFIG_CMD_DHCP - add support for setting different VCI in SPL Changes in v4: - fix compilation

[U-Boot] [PATCH v6 4/4] am335x_evm: enable networking in SPL

2012-09-17 Thread Ilya Yanok
This patch adds support for networking in SPL on TI AM335x based boards. Vendor Class Identifier used by SPL during BOOTP is "AM335x U-Boot SPL". Signed-off-by: Ilya Yanok --- Changes in v3: - set Vendor Class Identifier for SPL Changes in v4: - SPL_BOARD_INIT is not needed anymore

[U-Boot] [PATCH v6 0/4] OMAP: SPL networking support

2012-09-17 Thread Ilya Yanok
plicit undefs from net/net.c and net/bootp.c Ilya Yanok (4): net/bootp: add VCI support for BOOTP also OMAP: spl: call timer_init() from SPL OMAP: networking support for SPL am335x_evm: enable networking in SPL arch/arm/cpu/armv7/omap-common/Makefile |3 ++ arch/arm/cpu/armv7/omap

[U-Boot] [PATCH v6 2/4] OMAP: spl: call timer_init() from SPL

2012-09-17 Thread Ilya Yanok
We need to initialize timer properly, otherwise all delays inside SPL will be wrong. Signed-off-by: Ilya Yanok --- Changes in v6: - fix typo in patch name arch/arm/cpu/armv7/omap-common/spl.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/cpu/armv7/omap-common/spl.c b

Re: [U-Boot] [PATCH v5 4/5] OMAP: networking support for SPL

2012-09-17 Thread Ilya Yanok
On Mon, Sep 17, 2012 at 1:55 PM, Ilya Yanok wrote: > > +#include >> > +#include >> > +#include >> >> What in here needs this header? >> > > Looks like it's unneeded. Thanks, I'll remove it. >

Re: [U-Boot] [PATCH v5 4/5] OMAP: networking support for SPL

2012-09-17 Thread Ilya Yanok
BTW, I'm going to repost this serie soon. Shouldn't I rebase it on top of your SPL rework patches? Where can I find the tree? Regards, Ilya. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v5 4/5] OMAP: networking support for SPL

2012-09-17 Thread Ilya Yanok
On Mon, Sep 17, 2012 at 10:07 PM, Tom Rini wrote: > > That's not really about garbage collection in this case (net-spl). > > I want to disable some functionality of generic net code not some > > stuff used only by commands implementation. The confusion comes > > from the fact that this code is pr

Re: [U-Boot] [PATCH v5 4/5] OMAP: networking support for SPL

2012-09-17 Thread Ilya Yanok
Hi Tom, On Mon, Sep 17, 2012 at 9:04 PM, Tom Rini wrote: > > I agree it's not the best place... config_cmd_spl.h sounds a little > > bit crazy as we don't have any commands at all in SPL... > > > How about config_uncmd_spl.h then and a nice big comment up top > Well, it will be at least less co

Re: [U-Boot] [PATCH v5 4/5] OMAP: networking support for SPL

2012-09-17 Thread Ilya Yanok
Hi Joe, On Thu, Aug 30, 2012 at 1:25 AM, Joe Hershberger wrote: > > > diff --git a/arch/arm/cpu/armv7/omap-common/Makefile > b/arch/arm/cpu/armv7/omap-common/Makefile > > index d37b22d..f042078 100644 > > --- a/arch/arm/cpu/armv7/omap-common/Makefile > > +++ b/arch/arm/cpu/armv7/omap-common/Makef

[U-Boot] [RFC PATCH v2 6/6] am335x_evm: enable both musb gadget and host

2012-09-16 Thread Ilya Yanok
Enable musb gadget in Ethernet mode on port 0 and musb host on port1. Signed-off-by: Ilya Yanok --- Changes in v2: - host support enabled - define CONFIG_ARCH_INIT as now musb_register() is called from arch_init() - use new config options include/configs/am335x_evm.h | 27

[U-Boot] [RFC PATCH v2 5/6] am33xx: init OTG hardware and new musb gadget driver

2012-09-16 Thread Ilya Yanok
AM33xx has support for dual port MUSB OTG controller. This patch adds initialization for the controller using new MUSB gadget driver and ether gadget. Signed-off-by: Ilya Yanok --- Changes in v2: - init both musb IPs (conditionally) from arch_init not from eth_initialize arch/arm/cpu/armv7

[U-Boot] [RFC PATCH v2 2/6] usb: use linux/usb/ch9.h instead of usbdescriptors.h

2012-09-16 Thread Ilya Yanok
Also there is no point to put speed into pipe anymore so it's removed and a bunch of host drivers fixed to look at usb_device->speed instead. Old usbdescriptors.h included is not removed as it seems to be used by old USB device code. Signed-off-by: Ilya Yanok --- arch/arm/cpu/arm920t/

[U-Boot] [RFC PATCH v2 4/6] musb-new: dsps backend driver

2012-09-16 Thread Ilya Yanok
Backend driver for MUSB OTG controllers found on TI AM33xx and TI81xx SoCs (tested with AM33xx only). Signed-off-by: Ilya Yanok --- Changes in v2: - rename backend config option to CONFIG_USB_MUSB_DSPS - we are providing host support now so add yourself to usb.h arch/arm/include/asm

[U-Boot] [RFC PATCH v2 0/6] Port of MUSB driver from Linux

2012-09-16 Thread Ilya Yanok
w musb_register() is called from arch_init() - use new config options Ilya Yanok (6): linux/usb/ch9.h: update with the version from Linux tree usb: use linux/usb/ch9.h instead of usbdescriptors.h musb-new: port of Linux musb driver musb-new: dsps backend driver am33xx: init OTG hardware

[U-Boot] [RFC PATCH v2 1/6] linux/usb/ch9.h: update with the version from Linux tree

2012-09-16 Thread Ilya Yanok
Signed-off-by: Ilya Yanok --- drivers/usb/gadget/config.c |1 - drivers/usb/gadget/epautoconf.c |1 - drivers/usb/gadget/ether.c |1 - drivers/usb/gadget/s3c_udc_otg.c |1 - drivers/usb/gadget/usbstring.c |1 - include/linux/usb/ch9.h | 514

Re: [U-Boot] patman doesn't send patches

2012-08-29 Thread Ilya Yanok
Hi Stefan, Stefan Roese denx.de> writes: > >> Or does patman not even try to send, once checkpatch warning/errors are > >> detected? That's it. Normally you don't want to send patches that are not chackpatch-clean. If you are sure that problems are irrelevant use -i switch to ignore them. Regar

Re: [U-Boot] [RFC PATCH 0/5] Port of MUSB gadget driver from Linux

2012-08-10 Thread Ilya Yanok
Argh, sorry. could = could not. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [RFC PATCH 0/5] Port of MUSB gadget driver from Linux

2012-08-10 Thread Ilya Yanok
Marek, Wolfgang, On Fri, Aug 10, 2012 at 9:56 PM, Ilya Yanok wrote: > Dear Marek, Wolfgang, > > On Thu, Aug 9, 2012 at 11:23 PM, Wolfgang Denk wrote: > >> >> > I hate to say it ... but given that this will cause duplication of >> code, I'm >> >

Re: [U-Boot] [PATCH v4 4/7] usb_storage: Remove EHCI constraints

2012-08-10 Thread Ilya Yanok
Hi Benoit, On Fri, Aug 10, 2012 at 8:23 PM, Benoît Thébaudeau < benoit.thebaud...@advansee.com> wrote: > diff --git u-boot-usb-4f8254e.orig/common/usb_storage.c > u-boot-usb-4f8254e/common/usb_storage.c > index 0cd6399..822bd64 100644 > --- u-boot-usb-4f8254e.orig/common/usb_storage.c > +++ u-boo

Re: [U-Boot] [PATCH v4 5/7] usb_storage: Adjust time-outs

2012-08-10 Thread Ilya Yanok
Hi Benoit, On Fri, Aug 10, 2012 at 8:23 PM, Benoît Thébaudeau < benoit.thebaud...@advansee.com> wrote: > Adjust time-out value for the new EHCI mechanism. > Could you please be a bit more specific? ;) How this timeout is related to the new mechanism? Is it really EHCI specific? If it is, that's

  1   2   3   4   5   >