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
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
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
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
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
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
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
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
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
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
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
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
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
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_
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|
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
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
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
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:
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
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
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
]
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
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
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
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
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
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
- 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
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
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
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
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
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
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
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
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
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|
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
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
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
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
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
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:
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
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:
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
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
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
]
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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_*
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
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
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
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
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
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
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
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
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
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.
>
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
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
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
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
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
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
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/
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
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
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
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
Argh, sorry. could = could not.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
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
>> >
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
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 - 100 of 498 matches
Mail list logo