[U-Boot] uart test

2014-09-21 Thread shobin b
Hi,I am using toradex carrier board with colibri t30 module.In that X13 and X14 are uart.first uart X13 is default serial console.In that i need to check the second uart X14. How can i use second uart or how can i check second uart X14.please help me.Regards,shobin.b

Re: [U-Boot] Many questions about U-Boot's Driver Model

2014-09-21 Thread Simon Glass
Hi Masahiro, On 20 September 2014 00:56, Masahiro YAMADA wrote: > Hi Simon, > > > > 2014-09-20 7:25 GMT+09:00 Simon Glass : > >> - the bind/unbind allows you to have devices which are known to the >> system, but not yet probed. This is important in a boot loader (e.g. >> we don't want to probe de

Re: [U-Boot] [PATCH 6/7] arm: ls102xa: Add SD boot support for LS1021AQDS board

2014-09-21 Thread Huan Wang
Hi, Albert, > > On Thu, 18 Sep 2014 13:47:18 +0800, Alison Wang > > wrote: > > > > > + > > > + . = ALIGN(4); > > > + .u_boot_list : { > > > + KEEP(*(SORT(.u_boot_list*_i2c_*))); > > > + } > > > > IS this required? And if it is, could it not be added to the > > arch/arm/cpu

Re: [U-Boot] [PATCH] usb: f_mass_storage: set removable flag in do_inquiry based on LUN

2014-09-21 Thread Lukasz Majewski
Hi Marek, Eric > On Saturday, September 20, 2014 at 02:06:46 AM, Eric Nelson wrote: > > Without this flag, tools like Alex Page's USB Image Tool > > won't see drives exposed over USB Gadget as removable, > > and won't allow access to them. > > http://www.alexpage.de/usb-image-tool/ > > > > Th

Re: [U-Boot] [U-Boot, 2/3] image: move all function comments to header file

2014-09-21 Thread Simon Glass
Hi Masahiro, On 19 September 2014 23:34, Masahiro YAMADA wrote: > Hi. > > I vote for comments near the implementation. > > I have been digging into the driver model code recently, > but I have to admit it is unreadable because most of comments > are placed in its header files. > (and I am plannin

Re: [U-Boot] [PATCH v4 2/6] serial: add UniPhier serial driver

2014-09-21 Thread Simon Glass
Hi Masahiro, On 20 September 2014 01:18, Masahiro YAMADA wrote: > Hi Simon, > > > 2014-09-20 1:30 GMT+09:00 Simon Glass : >>> >>> It looks like CONFIG_DM_SERIAL depends on CONFIG_OF_CONTROL. >>> >>> >>> UniPhier SoCs do not support device tree control. >>> Is the driver model serial still availab

Re: [U-Boot] [PATCH 2/7] ls102xa: pblimage: Add pblimage tool support for LS102xA

2014-09-21 Thread Huan Wang
Hi, Albert, > On Thu, 18 Sep 2014 13:47:14 +0800, Alison Wang > wrote: > > > @@ -111,6 +115,14 @@ static void pbl_parser(char *name) > > size_t len = 0; > > > > fname = name; > > + > > + if (strstr(fname, "ls102xa")) { > > + next_pbl_cmd = 0x8101a000; > > + pbl_cmd_

Re: [U-Boot] [PATCH 1/7] spl: pbl: Add new SPL image for pblimage tool

2014-09-21 Thread Huan Wang
Hi, Albert, > > > On Thu, 18 Sep 2014 13:47:13 +0800, Alison Wang > > > > > > wrote: > > > > > > > For the pblimage tool, the SPL image is splitted into 64 byte > > > > chunks, and PBL needs a command for each piece. In current > > > > pblimage structure, the size of the SPL image should be a fix

Re: [U-Boot] [PATCH 6/7] ARM: sun6i: Setup the A31 UART0 muxing

2014-09-21 Thread Michael Trimarchi
Hi Il 08/set/2014 15:36 "Chen-Yu Tsai" ha scritto: > > From: Maxime Ripard > > Signed-off-by: Maxime Ripard > Signed-off-by: Hans de Goede > [w...@csie.org: commit message was "ARM: sunxi: Setup the A31 UART0 muxing"] > Signed-off-by: Chen-Yu Tsai > --- > arch/arm/cpu/armv7/sunxi/board.c | 4

[U-Boot] [PATCH] tools: remove reformat.py

2014-09-21 Thread Masahiro Yamada
This tools is unnecessary since commit f6c8f38ec601 (tools/genboardscfg.py: improve performance more with Kconfiglib). Signed-off-by: Masahiro Yamada --- tools/reformat.py | 132 -- 1 file changed, 132 deletions(-) delete mode 100755 tools/re

[U-Boot] [PATCH] powerpc/t104xrdb: make T104x board compliant in u-boot

2014-09-21 Thread Vijay Rai
When booted with upstream code, it shows error in u-boot that board is not compliant. This patch will make board compliant with upstream code changes in u-boot. Signed-off-by: Vijay Rai --- include/configs/T1040QDS.h |2 ++ include/configs/T104xRDB.h |2 ++ 2 files changed, 4 insertions(

Re: [U-Boot] [PATCH 0/4] ls102xa: HYP/non-sec: for ls102xa.

2014-09-21 Thread li.xi...@freescale.com
Ping :) Thanks, BRs Xiubo > -Original Message- > From: Xiubo Li [mailto:li.xi...@freescale.com] > Sent: Tuesday, September 16, 2014 10:48 AM > To: albert.u.b...@aribaud.net; Wang Huan-B18965; i...@hellion.org.uk; > hdego...@redhat.com; Kushwaha Prabhakar-B32579; Wang Huan-B18965; > andr

Re: [U-Boot] [PATCH] arm: ls102xa: Fixed a register definition error

2014-09-21 Thread Yuantian Tang
OK, if you say so. Thanks, Yuantian > -Original Message- > From: Albert ARIBAUD [mailto:albert.u.b...@aribaud.net] > Sent: Friday, September 19, 2014 11:59 PM > To: Tang Yuantian-B29983 > Cc: Wang Huan-B18965; Lu Jingchang-B35083; Jin Zhengxiong-R64188; > Kushwaha Prabhakar-B32579; u-boot

Re: [U-Boot] [PATCH 5/7] ARM: sunxi-mmc: Add mmc support for sun6i / A31

2014-09-21 Thread Chen-Yu Tsai
On Mon, Sep 22, 2014 at 2:44 AM, Ian Campbell wrote: > On Mon, 2014-09-08 at 21:28 +0800, Chen-Yu Tsai wrote: >> From: Hans de Goede >> >> Signed-off-by: Hans de Goede >> [w...@csie.org: use setbits_le32 for reset control, drop obsolete changes, >> squash "sunxi-mmc: sun6i has its

Re: [U-Boot] [PATCH 3/7] ARM: sun6i: Add support for the new power control module found on the A31

2014-09-21 Thread Chen-Yu Tsai
Hi, On Mon, Sep 22, 2014 at 1:05 AM, Ian Campbell wrote: > On Mon, 2014-09-08 at 21:28 +0800, Chen-Yu Tsai wrote: >> From: Oliver Schinagl >> >> To setup clocks and control voltages. > > perhaps add "... For P2WI and PIO", since that is apparently what it is > doing? Sounds good. I'll expand th

Re: [U-Boot] [PATCH 0/3] arm: add interrupt support

2014-09-21 Thread Masahiro Yamada
On Sun, 21 Sep 2014 23:33:47 +0200 Georges Savoundararadj wrote: > Hi folks, > > I wanted to use interrupt on U-Boot on my Raspberry Pi but I have > found that it did not work properly. > > My patches intend to make interrupt work. I am not sure if interrupt feature is necessary for a boot

[U-Boot] [PATCH 3/3] arm: enable_interrupts: set sp in IRQ/FIQ modes

2014-09-21 Thread Georges Savoundararadj
This commit sets the stack pointers for IRQ and FIQ modes. Signed-off-by: Georges Savoundararadj --- arch/arm/lib/interrupts.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/lib/interrupts.c b/arch/arm/lib/interrupts.c index f6b7c03..49c1bf3 100644 --- a/arch/a

[U-Boot] [PATCH 2/3] arm1176: move exception vectors after relocation

2014-09-21 Thread Georges Savoundararadj
ARM1176 has security extensions which includes the Vector Base Address Register (VBAR) useful to move the exception vector after relocation. This fix is similar to what is done for the ARMv7 (f8b9d1d3). Signed-off-by: Georges Savoundararadj --- arch/arm/cpu/arm1176/start.S | 6 ++ 1 file cha

[U-Boot] [PATCH 0/3] arm: add interrupt support

2014-09-21 Thread Georges Savoundararadj
Hi folks, I wanted to use interrupt on U-Boot on my Raspberry Pi but I have found that it did not work properly. My patches intend to make interrupt work. Regards, Georges ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/list

[U-Boot] [PATCH 1/3] arm: make .vectors section allocatable

2014-09-21 Thread Georges Savoundararadj
Before the commit 41623c91, the exception vector was in a .text section which is allocatable. After this, the .vectors section was introduced to contain the exception vector without specifying it as a .text section but only as a executable section ("x"). This fix marks the section .vectors as alloc

Re: [U-Boot] [PATCH 2/7] usb: ehci: Move interrupt packet length check to create_int_queue

2014-09-21 Thread Marek Vasut
On Sunday, September 21, 2014 at 10:00:24 PM, Michael Trimarchi wrote: > Hi Marek > > On Sun, Sep 21, 2014 at 9:36 PM, Marek Vasut wrote: > > On Sunday, September 21, 2014 at 07:53:35 PM, Hans de Goede wrote: > >> Hi, > > > > [...] > > > >> >> - if (length > usb_maxpacket(dev, pipe)) { >

Re: [U-Boot] [PATCH 2/7] usb: ehci: Move interrupt packet length check to create_int_queue

2014-09-21 Thread Michael Trimarchi
Hi Marek On Sun, Sep 21, 2014 at 9:36 PM, Marek Vasut wrote: > On Sunday, September 21, 2014 at 07:53:35 PM, Hans de Goede wrote: >> Hi, > [...] >> >> - if (length > usb_maxpacket(dev, pipe)) { >> >> - printf("%s: Interrupt transfers requiring several " >> >> -

Re: [U-Boot] [PATCH 2/7] usb: ehci: Move interrupt packet length check to create_int_queue

2014-09-21 Thread Marek Vasut
On Sunday, September 21, 2014 at 07:53:35 PM, Hans de Goede wrote: > Hi, [...] > >> - if (length > usb_maxpacket(dev, pipe)) { > >> - printf("%s: Interrupt transfers requiring several " > >> - "transactions are not supported.\n", __func__); > >> -

Re: [U-Boot] [PATCH 7/7] ARM: sunxi: Add basic A31 support

2014-09-21 Thread Maxime Ripard
Hi Ian, On Sun, Sep 21, 2014 at 07:51:17PM +0100, Ian Campbell wrote: > On Mon, 2014-09-08 at 21:28 +0800, Chen-Yu Tsai wrote: > > From: Maxime Ripard > > > > Add a new sun6i machine that doesn't do much for now. > > Can you briefly outline here what it _does_ do, please. When I contributed th

Re: [U-Boot] [PATCH 7/7] ARM: sunxi: Add basic A31 support

2014-09-21 Thread Ian Campbell
On Mon, 2014-09-08 at 21:28 +0800, Chen-Yu Tsai wrote: > From: Maxime Ripard > > Add a new sun6i machine that doesn't do much for now. Can you briefly outline here what it _does_ do, please. The actual code looks ok to me. There is some possibility we might consolidate some of these Kconfig opt

Re: [U-Boot] [PATCH 6/7] ARM: sun6i: Setup the A31 UART0 muxing

2014-09-21 Thread Ian Campbell
On Mon, 2014-09-08 at 21:28 +0800, Chen-Yu Tsai wrote: > From: Maxime Ripard > > Signed-off-by: Maxime Ripard > Signed-off-by: Hans de Goede > [w...@csie.org: commit message was "ARM: sunxi: Setup the A31 UART0 muxing"] > Signed-off-by: Chen-Yu Tsai Acked-by: Ian Campbell _

Re: [U-Boot] [PATCH 5/7] ARM: sunxi-mmc: Add mmc support for sun6i / A31

2014-09-21 Thread Ian Campbell
On Mon, 2014-09-08 at 21:28 +0800, Chen-Yu Tsai wrote: > From: Hans de Goede > > Signed-off-by: Hans de Goede > [w...@csie.org: use setbits_le32 for reset control, drop obsolete changes, > squash "sunxi-mmc: sun6i has its fifo at a different address"] > Signed-off-by: Chen-Yu Tsai

Re: [U-Boot] [PATCH 4/7] ARM: sun6i: Add clock support

2014-09-21 Thread Ian Campbell
On Mon, 2014-09-08 at 21:28 +0800, Chen-Yu Tsai wrote: > +#ifdef CONFIG_SPL_BUILD Since there is no SPL support this is dead code right now, correct? I'm wondering whether we should leave it out of mainline until the SPL stuff is done, so SPL will be upstreamed all at once. What do others think?

Re: [U-Boot] [PATCH 6/7] usb: kbd: Cache pipe, interval and packetsize

2014-09-21 Thread Hans de Goede
Hi, On 09/20/2014 07:53 PM, Michael Trimarchi wrote: > Hi > > On Sat, Sep 20, 2014 at 5:01 PM, Hans de Goede wrote: >> Instead of looking them up every time we need them. >> > > split subject and patch description > >> Signed-off-by: Hans de Goede >> --- >> common/usb_kbd.c | 34

Re: [U-Boot] [PATCH 2/7] usb: ehci: Move interrupt packet length check to create_int_queue

2014-09-21 Thread Hans de Goede
Hi, On 09/20/2014 07:42 PM, Michael Trimarchi wrote: > Hi > > On Sat, Sep 20, 2014 at 5:01 PM, Hans de Goede wrote: >> Preperation patch to use create_int_queue outside of ehci-hcd.c . >> >> Signed-off-by: Hans de Goede >> --- >> drivers/usb/host/ehci-hcd.c | 36 +++

[U-Boot] Pul request: u-boot-arm/master

2014-09-21 Thread Albert ARIBAUD
Hi Tom, The following changes since commit 9170818a4e004af7893fa0113f6e5b4afafded55: kconfiglib: change SPDX-License-Identifier to ISC (2014-09-17 21:03:18 -0400) are available in the git repository at: git://git.denx.de/u-boot-arm master for you to fetch changes up to 2a8c9c86b92a9ccee3

Re: [U-Boot] [PATCH 3/7] ARM: sun6i: Add support for the new power control module found on the A31

2014-09-21 Thread Ian Campbell
On Mon, 2014-09-08 at 21:28 +0800, Chen-Yu Tsai wrote: > From: Oliver Schinagl > > To setup clocks and control voltages. perhaps add "... For P2WI and PIO", since that is apparently what it is doing? > HdG: Rename the files from the somewhat generic pmu name to prcm.{c,h} > HdG: Make the prcm c

Re: [U-Boot] Please pull u-boot-ti/master

2014-09-21 Thread Albert ARIBAUD
Hi Tom, On Thu, 18 Sep 2014 08:34:22 -0400, Tom Rini wrote: > Hello, > > The following changes since commit c292adae170fa8c27dca75963bdb0a9afc640e57: > > Merge branch 'u-boot-imx/master' into 'u-boot-arm/master' (2014-09-17 > 23:35:34 +0200) > > are available in the git repository at: > >

Re: [U-Boot] [PATCH v5 14/14] dm: tegra: Enable driver model for serial

2014-09-21 Thread Simon Glass
On 4 September 2014 16:27, Simon Glass wrote: > Use driver model for serial ports. > > Since Tegra now uses driver model for serial, adjust the definition of > V_NS16550_CLK so that it is clear that this is only used for SPL. > > Signed-off-by: Simon Glass Applied to u-boot-dm/master and now in

Re: [U-Boot] [PATCH v5 13/14] tegra: dts: Add serial port details

2014-09-21 Thread Simon Glass
On 4 September 2014 16:27, Simon Glass wrote: > Some Tegra device tree files do not include information about the serial > ports. Add this and also add information about the input clock speed. > > The console alias needs to be set up to indicate which port is used for > the console. > > Also add a

Re: [U-Boot] [PATCH v5 12/14] dm: serial: Add driver model support for ns16550

2014-09-21 Thread Simon Glass
On 4 September 2014 16:27, Simon Glass wrote: > Add driver model support so that ns16550 can support operation both with > and without driver model. > > The driver needs a clock frequency so cannot stand alone unfortunately. The > clock frequency must be provided by a separate driver. > > Signed-o

Re: [U-Boot] [PATCH v5 11/14] dm: serial: Collect common baud rate code in ns16550

2014-09-21 Thread Simon Glass
On 4 September 2014 16:27, Simon Glass wrote: > The same sequence is used in several places, so move it into a function. > Note that UART_LCR_BKSE is an alias for UART_LCR_DLAB. > > Signed-off-by: Simon Glass Applied to u-boot-dm/master and now in mainline. __

Re: [U-Boot] [PATCH v5 10/14] dm: serial: Move baud rate calculation to ns16550.c

2014-09-21 Thread Simon Glass
On 4 September 2014 16:27, Simon Glass wrote: > Move the function that calculates the baud rate divisor into ns16550.c so > it can be used by that file. > > Signed-off-by: Simon Glass Applied to u-boot-dm/master and now in mainline. ___ U-Boot mailing

Re: [U-Boot] [PATCH v5 07/14] sandbox: dts: Add a serial console node

2014-09-21 Thread Simon Glass
On 4 September 2014 16:27, Simon Glass wrote: > If the sandbox device tree is provided to U-Boot (with the -d flag) then it > will use the device tree version in preference to the built-in device. The > only difference is the colour. > > Signed-off-by: Simon Glass Applied to u-boot-dm/master and

Re: [U-Boot] [PATCH v5 06/14] sandbox: serial: Support a coloured console

2014-09-21 Thread Simon Glass
On 4 September 2014 16:27, Simon Glass wrote: > The current sandbox serial driver is a pretty trivial example and does not > have the featues that might be needed for other board serial drivers. To > help provide a better example, add a text colour property to the device > tree for sandbox. This u

Re: [U-Boot] [PATCH v5 05/14] sandbox: Convert serial driver to use driver model

2014-09-21 Thread Simon Glass
On 4 September 2014 16:27, Simon Glass wrote: > Adjust the sandbox serial driver to use the new driver model uclass. The > driver works much as before, but within the new framework. > > Signed-off-by: Simon Glass Applied to u-boot-dm/master and now in mainline. __

Re: [U-Boot] [PATCH v5 04/14] dm: Add a uclass for serial devices

2014-09-21 Thread Simon Glass
On 4 September 2014 16:27, Simon Glass wrote: > Serial devices support simple byte input/output and a few operations to find > out whether data is available. Add a basic uclass for serial devices to be > used by drivers that are converted to driver model. > > Signed-off-by: Simon Glass Applied t

Re: [U-Boot] [PATCH v5 03/14] dm: Adjust lists_bind_fdt() to return the bound device

2014-09-21 Thread Simon Glass
On 4 September 2014 16:27, Simon Glass wrote: > Allow the caller to find out the device that was bound in response to this > call. > > Signed-off-by: Simon Glass Applied to u-boot-dm/master and now in mainline. ___ U-Boot mailing list U-Boot@lists.denx

Re: [U-Boot] [PATCH v5 02/14] dm: fdt: Add a function to look up a chosen node

2014-09-21 Thread Simon Glass
On 4 September 2014 16:27, Simon Glass wrote: > Within /chosen we may have a node which points to another node, similar > to how /aliases works. Add a helper function to do this lookup. > > Signed-off-by: Simon Glass Applied to u-boot-dm/master and now in mainline. __

Re: [U-Boot] [PATCH v5 01/14] serial: Set up the 'priv' pointer when creating a serial device

2014-09-21 Thread Simon Glass
On 4 September 2014 16:27, Simon Glass wrote: > The stdio_dev structure has a private pointer for its creator, but it is > not set up by the serial system. Set it to point to the serial device so > that it can be found by code called by stdio. > > Signed-off-by: Simon Glass Applied to u-boot-dm/

Re: [U-Boot] [PATCH v7 05/13] tegra: Convert tegra GPIO driver to use driver model

2014-09-21 Thread Simon Glass
On 3 September 2014 17:37, Simon Glass wrote: > This is an implementation of GPIOs for Tegra that uses driver model. It has > been tested on trimslice and also using the new iotrace feature. > > The implementation uses a top-level GPIO device (which has no actual GPIOS). > Under this all the banks

Re: [U-Boot] [PATCH v7 04/13] dm: tegra: Set up a pre-reloc malloc()

2014-09-21 Thread Simon Glass
On 3 September 2014 17:37, Simon Glass wrote: > Allocate 1KB so that driver model can operate before relocation. > > Signed-off-by: Simon Glass Applied to u-boot-dm/master and now in mainline. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.d

Re: [U-Boot] [PATCH v7 03/13] dm: Make driver model available before board_init()

2014-09-21 Thread Simon Glass
On 3 September 2014 17:37, Simon Glass wrote: > For some boards board_init() will change GPIOs, so we need to have driver > model available before then. Adjust the board init to arrange this, but > enable it for driver model only, just to be safe. > > This does create additional #ifdef logic, but

Re: [U-Boot] [PATCH v7 02/13] Set up stdio earlier when using driver model

2014-09-21 Thread Simon Glass
On 3 September 2014 17:37, Simon Glass wrote: > Since driver model registers itself with the stdio subsystem, and we > want to avoid delayed registration and other complexity associated with > the current serial console, move the stdio subsystem init earlier when > driver model is used for serial.

Re: [U-Boot] [PATCH v7 01/13] dm: Move pre-reloc init earlier to cope with board_early_init_f()

2014-09-21 Thread Simon Glass
On 3 September 2014 17:36, Simon Glass wrote: > > In order to support GPIO access in board_early_init_f() we must set up > driver model before this function is called. In any case, earlier is > better since driver model is (or will become) a key function for most > init. > > Signed-off-by: Simon G

Re: [U-Boot] [PATCH 1/3] arm: goni: make board generic

2014-09-21 Thread Simon Glass
Hi Robert, On 17 September 2014 02:03, Robert Baldyga wrote: > Define CONFIG_SYS_GENERIC_BOARD to make board generic. > > Signed-off-by: Robert Baldyga > Please see this patch too: http://patchwork.ozlabs.org/patch/389163/ Regards, Simon ___ U-Boot

Re: [U-Boot] [PULL] u-boot-atmel/master -> u-boot-arm/master

2014-09-21 Thread Albert ARIBAUD
Hi Andreas, On Fri, 19 Sep 2014 08:32:28 +0200, Andreas Bießmann wrote: > Dear Albert Aribaud, > > please pull the following changes into u-boot-arm/master. > > The following changes since commit 9170818a4e004af7893fa0113f6e5b4afafded55: > > kconfiglib: change SPDX-License-Identifier to ISC

Re: [U-Boot] [PATCH 2/7] ARM: sun6i: Add base address for the new controllers in A31

2014-09-21 Thread Ian Campbell
On Mon, 2014-09-08 at 21:28 +0800, Chen-Yu Tsai wrote: > From: Oliver Schinagl > > A31 has several new and changed memory address. This patch adds them. > > Signed-off-by: Oliver Schinagl > Signed-off-by: Hans de Goede > Signed-off-by: Chen-Yu Tsai Acked-by: Ian Campbell _

Re: [U-Boot] [PATCH 1/7] ARM: sunxi: Fix build break when CONFIG_USB_EHCI is not defined

2014-09-21 Thread Ian Campbell
On Mon, 2014-09-08 at 21:28 +0800, Chen-Yu Tsai wrote: > BOOT_TARGET_DEVICES includes USB unconditionally. This breaks when > CONFIG_CMD_USB is not defined. Use a secondary macro to conditionally > include it when CONFIG_EHCI is enabled, as we do for CONFIG_AHCI. > > Signed-off-by: Chen-Yu Tsai

Re: [U-Boot] [PATCH] cm_fx6: Remove CONFIG_NETMASK

2014-09-21 Thread Nikita Kiryanov
Hi Fabio, On 21/09/14 02:05, Fabio Estevam wrote: From: Fabio Estevam We should not hardcode CONFIG_NETMASK in the config file. Signed-off-by: Fabio Estevam --- Acked-by: Nikita Kiryanov -- Regards, Nikita Kiryanov ___ U-Boot mailing list U-Boo

Re: [U-Boot] [PATCH] ARM: mx6: Add support for Kosagi Novena

2014-09-21 Thread Marek Vasut
On Tuesday, September 16, 2014 at 01:00:11 PM, Stefano Babic wrote: > On 30/08/2014 16:20, Marek Vasut wrote: > > On Saturday, August 30, 2014 at 03:55:48 PM, Fabio Estevam wrote: > >> On Sat, Aug 30, 2014 at 9:40 AM, Marek Vasut wrote: > >>> On Friday, August 29, 2014 at 07:08:54 PM, Fabio Esteva

[U-Boot] [PATCH V3] ARM: mx6: Add support for Kosagi Novena

2014-09-21 Thread Marek Vasut
Add support for the Kosagi Novena board. Currently supported are: - I2C busses - FEC Ethernet - MMC0, MMC1, Booting from MMC - SATA - USB ports - USB Ethernet Signed-off-by: Marek Vasut --- arch/arm/Kconfig | 4 + board/kosagi/novena/Kconfig | 23 ++ board/kosagi/novena/M

[U-Boot] [PATCH 3/3] arm: rpi: Enable USB support on RPi

2014-09-21 Thread Marek Vasut
Enable DWC2 USB, storage and ethernet support. Tested on RPi B+. Signed-off-by: Marek Vasut Cc: Stephen Warren Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- include/configs/rpi_b.h | 15 +-- 1 file changed, 9 insertio

[U-Boot] [PATCH 1/3] usb: dwc2: Add driver for Synopsis DWC2 USB IP block

2014-09-21 Thread Marek Vasut
From: Oleksandr Tymoshenko This is the USB host controller used on the Altera SoCFPGA and Raspbery Pi. This code has three checkpatch warnings, but to make sure it stays at least readable and clear, these are not fixed. These bugs are in the USB request handling combinatorial logic, so any abstr

[U-Boot] [PATCH 0/3] usb: dwc2: Add and enable DWC2 driver

2014-09-21 Thread Marek Vasut
This series adds reworked DWC2 USB driver based on work from Oleksandr. This series also enables that driver on Altera SoCFPGA Cyclone V SoC and RPi B+ . The patch 2/3 in this series depends on another series, but as this series is targetting next, that would be no problem or it can be skipped. Th

[U-Boot] [PATCH 2/3] arm: socfpga: config: Enable USB support

2014-09-21 Thread Marek Vasut
Enable support for the DWC2 USB controller. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- include/configs/socfpga_cyclone5_common.h | 8 1 file changed, 8 insertions(+) diff --git a/include/con

[U-Boot] [PATCH 50/51] arm: socfpga: Split SoCFPGA configuration

2014-09-21 Thread Marek Vasut
From: Pavel Machek Split the SoCFPGA configuration into SoC-specific part which is common for all boards (socfpga_cyclone5_common.h) and a board specific part. There is currently only one board, which is the generic SoCFPGA board (socfpga_cyclone5.h), but there are more to come. This is necessar

[U-Boot] [PATCH 51/51] arm: socfpga: Use CMD_FS_GENERIC

2014-09-21 Thread Marek Vasut
Enable and use the CONFIG_CMD_FS_GENERIC to avoid hard-coding the filesystem type into the environment. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- include/configs/socfpga_cyclone5.h | 5 +++-- 1 file

[U-Boot] [PATCH 49/51] arm: socfpga: Clean up SoCFPGA configuration

2014-09-21 Thread Marek Vasut
From: Pavel Machek Reorganize and cleanup the configuration file for SoCFPGA. There is no functional change after this cleanup. This was necessary, since the file was a wild mess and it was impossible to make sense of it's content, let alone change something without breaking some other thing. Thi

[U-Boot] [PATCH 47/51] arm: socfpga: Move cache_enable to CPU code

2014-09-21 Thread Marek Vasut
Move icache_enable() and dcache_enable() function calls from board code into the CPU code and into the enable_caches() function. This is how the cache enabling code was designed to work. Signed-off-by: Marek Vasut Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Tom Rini Cc: Albert Aribau

[U-Boot] [PATCH 46/51] arm: socfpga: Enable SDMMC boot for SOCFPGA U-Boot

2014-09-21 Thread Marek Vasut
From: Chin Liang See Enable the SDMMC boot as default boot for SOCFPGA U-Boot dev kit. Enable the bootz command as zImage is used instead uImage. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Tom Rini Cc: Albert Aribaud Cc: Wolfgang Denk --- include/c

[U-Boot] [PATCH 48/51] arm: socfpga: Add command to control HPS-FPGA bridges

2014-09-21 Thread Marek Vasut
From: Pavel Machek Add command to enable and disable the bridges between HPS and FPGA. This patch does have a checkpatch issue with the assembler portion, checkpatch correctly complains that there should be no whitespace before quoted newline. I do not agree that fixing this specific checkpatch

[U-Boot] [PATCH 43/51] arm: socfpga: pl310: Map SDRAM to 0x0

2014-09-21 Thread Marek Vasut
Configure the PL310 address filter to make sure DRAM is mapped to 0x0. This code also configures the "remap" register of NIC-301 and sets the required 'mpuzero' bit. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Mach

[U-Boot] [PATCH 45/51] arm: socfpga: Enable DWMMC for SOCFPGA

2014-09-21 Thread Marek Vasut
From: Chin Liang See Enable the DesignWare MMC controller driver support for SOCFPGA Cyclone5 dev kit Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Tom Rini Cc: Albert Aribaud Cc: Wolfgang Denk --- include/configs/socfpga_cyclone5.h | 16 +

[U-Boot] [PATCH 42/51] arm: socfpga: nic301: Add NIC-301 GPV register file

2014-09-21 Thread Marek Vasut
Add register definition for the NIC-301 used on SoCFPGA. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek Acked-by: Pavel Machek --- arch/arm/include/asm/arch-socfpga/nic301.h | 195 +++

[U-Boot] [PATCH 44/51] arm: socfpga: nic301: Add NIC-301 configuration code

2014-09-21 Thread Marek Vasut
From: Pavel Machek Add code which configures the AMBA NIC-301 and the SCU on the SoCFPGA . The code sets the access permissions for the CPU to the AMBA slaves such that the CPU can access them in both secure and non-secure mode. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc

[U-Boot] [PATCH 41/51] arm: socfpga: scu: Add SCU register file

2014-09-21 Thread Marek Vasut
Add the Snoop Control Unit register definition file. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek Acked-by: Pavel Machek --- arch/arm/include/asm/arch-socfpga/scu.h | 23 +++ 1 file cha

[U-Boot] [PATCH 40/51] arm: socfpga: cache: Enable PL310 L2 cache

2014-09-21 Thread Marek Vasut
Enable the PL310 L2 cache controller support for the SoCFPGA. With the cache related issues resolved, this is safe to be done. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek Acked-by: Pavel Machek --- includ

[U-Boot] [PATCH 38/51] arm: socfpga: cache: Define cacheline size

2014-09-21 Thread Marek Vasut
The Cortex-A9 has 32-byte long L1 cachelines. Define this value. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek Acked-by: Pavel Machek --- include/configs/socfpga_cyclone5.h | 2 ++ 1 file changed, 2 inserti

[U-Boot] [PATCH 39/51] arm: socfpga: cache: Enable D-Cache

2014-09-21 Thread Marek Vasut
The code is now fixed to the point where we can safely enable the L1 data cache. Enable the D-Cache and set it as write-alloc. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek Acked-by: Pavel Machek --- board/

[U-Boot] [PATCH 33/51] fpga: altera: Turn the switches into table lookup

2014-09-21 Thread Marek Vasut
Add a table of FPGA family with matching functions associated with it and make all the code just look up the family in that table and call the associated function instead of the horrible switch voodoo which was duplicated all over the place. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh

[U-Boot] [PATCH 36/51] arm: socfpga: sysmgr: Add FPGA bits into system manager

2014-09-21 Thread Marek Vasut
Add missing system manager bits from Altera U-Boot to make the code comparable. These are the bits which depend on the FPGA manager. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- arch/arm/cpu/armv7/socfp

[U-Boot] [PATCH 37/51] arm: cache: Add support for write-allocate D-Cache

2014-09-21 Thread Marek Vasut
Add configuration for the write-allocate mode of L1 D-Cache on ARM. This is needed for D-Cache operation on Cortex-A9 on the SoCFPGA . Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek Acked-by: Pavel Machek ---

[U-Boot] [PATCH V2 34/51] arm: socfpga: fpga: Add SoCFPGA FPGA programming interface

2014-09-21 Thread Marek Vasut
From: Pavel Machek Add code necessary to program the FPGA part of SoCFPGA from U-Boot with an RBF blob. This patch also integrates the code into the FPGA driver framework in U-Boot so it can be used via the 'fpga' command. Signed-off-by: Pavel Machek Signed-off-by: Marek Vasut Cc: Chin Liang S

[U-Boot] [PATCH 30/51] fpga: altera: Move altera_validate to the top

2014-09-21 Thread Marek Vasut
Move the function to the top of the file to avoid forward declaration. No functional change. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- drivers/fpga/altera.c | 58 +++--

[U-Boot] [PATCH 35/51] arm: socfpga: reset: Add function to reset FPGA bridges

2014-09-21 Thread Marek Vasut
Add function to enable and disable FPGA bridges. This code is used by the FPGA manager to disable the bridges before programming the FPGA and will later be also used by the initialization code for the chip to put the chip into well defined state during startup. Signed-off-by: Marek Vasut Cc: Chin

[U-Boot] [PATCH 31/51] fpga: altera: Make altera_validate return normal values

2014-09-21 Thread Marek Vasut
Make the function return either 0 or -EINVAL, that is, normal expected error codes and success codes instead of true/false nonsense. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- drivers/fpga/altera.c |

[U-Boot] [PATCH 32/51] fpga: altera: Clean up enums in altera.h

2014-09-21 Thread Marek Vasut
Get rid of the line-over-80 problems and zap the typedef that went alongside those enums. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- include/altera.h | 76 -

[U-Boot] [PATCH 29/51] fpga: altera: More indentation trimdown

2014-09-21 Thread Marek Vasut
Further improve the indentation in the rest of the file, where the indentation is initially a bit less brutal. There is no functional change in this patch. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- d

[U-Boot] [PATCH 28/51] fpga: altera: Clean up altera_validate function

2014-09-21 Thread Marek Vasut
Boldly go, where no programmer has gone before and just clean up the indentation mayhem. No functional change. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- drivers/fpga/altera.c | 43 +++

[U-Boot] [PATCH 27/51] fpga: altera: Clean up the printing and debug

2014-09-21 Thread Marek Vasut
Clean up the printf() statements and get rid of the PRINTF() macro by replacing it with debug_cond(). Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- drivers/fpga/altera.c | 117 +--

Re: [U-Boot] [PATCH 0/7] Add a better USB keyboard polling method

2014-09-21 Thread Marek Vasut
On Saturday, September 20, 2014 at 05:01:05 PM, Hans de Goede wrote: > Hi Marek, > > This time a patch-set for next :) > > Currently one can choose between 2 poll methods for usb keyboards, both of > which are suboptimal. One option is to use control messages to get reports, > which some devices

Re: [U-Boot] [PATCH fix for v2014.10 1/5] usb: ehci: Properly set hub devnum and portnr with usb-1 hubs in the chain

2014-09-21 Thread Marek Vasut
On Saturday, September 20, 2014 at 04:51:22 PM, Hans de Goede wrote: > For full / low speed devices we need to get the devnum and portnr of the > tt, so of the first upstream usb-2 hub, not of the parent device (which > may be a usb-1 hub). > > Signed-off-by: Hans de Goede Applied all, thanks a

Re: [U-Boot] [PATCH 0/2] Misc. USB fixes

2014-09-21 Thread Marek Vasut
On Saturday, September 20, 2014 at 05:03:51 PM, Hans de Goede wrote: > Hi Marek, > > And last 2 misc. fixes for USB for next. The first patch is self > explanatory, the second patch is a result of me looking into why u-boot's > usb scanning is so slww, not that it really helps there, but i

Re: [U-Boot] [PATCH fix for v2014.10 0/5] USB keyboard: don't crash on "usb reset"

2014-09-21 Thread Marek Vasut
On Saturday, September 20, 2014 at 04:54:33 PM, Hans de Goede wrote: > Hi Marek, > > Here is the second set of USB patches / fixes I've been working on, > currently u-boot does "really bad things" (tm) when doing "usb reset" > while using an usb keyboard. This set fixes this. > > Given that these

[U-Boot] [PATCH 25/51] arm: socfpga: board: Correctly set ATAG position

2014-09-21 Thread Marek Vasut
From: Pavel Machek The bi_boot_params must point to offset 0x100 in DRAM. Make it so. Signed-off-by: Pavel Machek Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- board/altera/socfpga/socfpga_cyclone5.c

[U-Boot] [PATCH 26/51] arm: socfpga: board: Align checkboard() output

2014-09-21 Thread Marek Vasut
Cosmetic change to the checkboard() function output. Align the output with the rest of initial output produced by U-Boot. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek Acked-by: Pavel Machek --- board/alter

[U-Boot] [PATCH 24/51] arm: socfpga: misc: Align print_cpuinfo() output

2014-09-21 Thread Marek Vasut
From: Pavel Machek Cosmetic change to the print_cpuinfo() function output. Align the output with the rest of initial output produced by U-Boot. Signed-off-by: Pavel Machek Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: P

[U-Boot] [PATCH 23/51] arm: socfpga: misc: Add SD controller init

2014-09-21 Thread Marek Vasut
From: Pavel Machek Add CPU function to register and initialize the dw_mmc SD controller. This allows us to use the HPS SDMMC block. Signed-off-by: Pavel Machek Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek

[U-Boot] [PATCH 22/51] arm: socfpga: misc: Add proper ethernet initialization

2014-09-21 Thread Marek Vasut
From: Pavel Machek Add function to initialize the EMAC blocks upon board startup. The preprocessor guards against building on SoCFPGA-VT and against SPL build are not needed as those are handled implicitly via both SPL framework and the socfpga_cyclone5.h config file, which will not define CONFIG

[U-Boot] [PATCH 21/51] arm: socfpga: reset: Add EMAC reset functions

2014-09-21 Thread Marek Vasut
Add functions to reset the EMAC ethernet blocks. We cannot handle two EMAC ethernet blocks yet, therefore the ifdefs. Once there is hardware using both EMAC blocks, this ifdef will have to go. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wo

[U-Boot] [PATCH 20/51] arm: socfpga: timer: Pull the timer reload value from config file

2014-09-21 Thread Marek Vasut
The timer reload value is a property of the timer hardware and there is no reason for this to be configurable. Place this into the timer driver just like on the other hardware. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc:

[U-Boot] [PATCH 19/51] arm: socfpga: mmc: Pick the clock from clock manager

2014-09-21 Thread Marek Vasut
From: Pavel Machek Make the SoCFPGA MMC stub pick clock via the clock manager frequency accessors instead of hard-coding the frequency. Also fix calloc() misuse. Signed-off-by: Pavel Machek Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: W

[U-Boot] [PATCH 17/51] arm: socfpga: clock: Clean up bit definitions

2014-09-21 Thread Marek Vasut
Clean up the clock code definitions so they are aligned with mainline standards. There are no functional changes in this patch. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- arch/arm/cpu/armv7/socfpga/cl

[U-Boot] [PATCH 18/51] arm: socfpga: clock: Sync with reference code

2014-09-21 Thread Marek Vasut
Add the missing pieces from the reference clock code from Altera. This puts the code on par with the Altera U-Boot fork for all but the SDRAM self-refresh bits, which are not part of this patch. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc:

  1   2   >