Re: [U-Boot] [PATCH] kconfig: remove DEFCONFIG_LIST

2014-08-18 Thread Michal Simek
On 08/15/2014 07:50 PM, Masahiro Yamada wrote: > CONFIG_DEFCONFIG_LIST specifies the default defconfig. > It is used by "make savedefconfig" when .config is missing. > But that's it. I could not find other useful cases. > > As a side effect, CONFIG_DEFCONFIG_LIST="configs/sandbox_defconfig" > is

[U-Boot] [PATCH v4] powerpc/t104xrdb: Add T1042RDB board support

2014-08-18 Thread Vijay Rai
T1042RDB is a Freescale reference board that hosts the T1042 SoC (and variants). The board is similar to T1040RDB, T1042 is a reduced personality of T1040 SoC without Integrated 8-port Gigabit(L2 Switch). T1042RDB is configured with serdes protocol 0x86 which can support following interfaces - 2 R

[U-Boot] [PATCH v5 16/16] video: dcu: Add Sii9022A HDMI Transmitter support

2014-08-18 Thread Alison Wang
On LS1021ATWR, Silicon's Sii9022A HDMI Transmitter is used. This patch adds the common setting for this chip. Signed-off-by: Alison Wang --- Change log: v5: Change the patch order. v4: Add commit messages. v3: New file. board/freescale/common/Makefile | 2 + board/freescale/common/dc

[U-Boot] [PATCH v5 14/16] video: dcu: Add DCU driver support

2014-08-18 Thread Alison Wang
From: Wang Huan This patch is to add DCU driver support. DCU also named 2D-ACE(Two Dimensional Animation and Compositing Engine) is a system master that fetches graphics stored in internal or external memory and displays them on a TFT LCD panel. Signed-off-by: Alison Wang --- Change log: v5: C

[U-Boot] [PATCH v5 15/16] ls102xa: dcu: Add platform support for DCU on LS1021ATWR board

2014-08-18 Thread Alison Wang
From: Wang Huan This patch adds the TWR_LCD_RGB card/HDMI options and the common configuration for DCU on LS1021ATWR board. Signed-off-by: Alison Wang --- Change log: v5: Change the patch order. v4: Add commit messages. v3: New file. board/freescale/ls1021atwr/Makefile | 1 + board/fr

[U-Boot] [PATCH v5 12/16] net: tsec: Remove tx snooping support from LS1

2014-08-18 Thread Alison Wang
From: Claudiu Manoil Remove the DMCTRL Tx snooping bits (TDSEN and TBDSEN) as a workaround for LS1. It has been observed that currently the Tx stops functioning after a fair amount of Tx traffic with these settings on. These bits are sticky and once set they cannot be reset from Linux, for inst

[U-Boot] [PATCH v5 01/16] arm: ls102xa: Add Freescale LS102xA SoC support

2014-08-18 Thread Alison Wang
From: Wang Huan The QorIQ LS1 family is built on Layerscape architecture, the industry's first software-aware, core-agnostic networking architecture to offer unprecedented efficiency and scale. Freescale LS102xA is a set of SoCs combines two ARM Cortex-A7 cores that have been optimized for high

[U-Boot] [PATCH v5 11/16] arm: ls102xa: Add basic support for LS1021ATWR board

2014-08-18 Thread Alison Wang
From: Wang Huan LS102xA is an ARMv7 implementation. This patch is to add basic support for LS1021ATWR board. One DDR controller DUART1 is used as the console For the detail board information, please refer to README. Signed-off-by: Chen Lu Signed-off-by: Yuan Yao Signed-off-by: Alison Wang

[U-Boot] [PATCH v5 10/16] arm: ls102xa: Add basic support for LS1021AQDS board

2014-08-18 Thread Alison Wang
From: Wang Huan LS102xA is an ARMv7 implementation. This patch is to add basic support for LS1021AQDS board. One DDR controller DUART1 is used as the console For the detail board information, please refer to README. Signed-off-by: Alison Wang Signed-off-by: Jason Jin Signed-off-by: York Sun

[U-Boot] [PATCH v5 13/16] serial: lpuart: add 32-bit registers lpuart support

2014-08-18 Thread Alison Wang
From: Jingchang Lu On vybrid, lpuart's registers are 8-bit. On LS102xA, lpuart's registers are 32-bit. This patch adds the support for 32-bit registers on LS102xA. Signed-off-by: Jingchang Lu Signed-off-by: Yuan Yao --- Change log: v5: No change. v4: Add commit messages. v3: New file. dri

[U-Boot] [PATCH v5 09/16] driver/ddr/fsl: Add support of overriding chip select write leveling

2014-08-18 Thread Alison Wang
From: York Sun JEDEC spec allows DRAM vendors to use prime DQ for write leveling. This is not an issue unless some DQ pins are not connected. If a platform uses regular DIMMs but with reduced DDR ECC pins, the prime DQ may end up on those floating pins for the second rank. The workaround is to us

[U-Boot] [PATCH v5 08/16] driver/ddr/freescale: Fix DDR3 driver for ARM

2014-08-18 Thread Alison Wang
From: York Sun Reading DDR register should use ddr_in32() for proper endianess. This patch fixes incorrect waiting time for ARM platforms. Signed-off-by: York Sun --- Change log: v5: No change. v4: No change. v3: No change. v2: No change. drivers/ddr/fsl/arm_ddr_gen3.c | 2 +- 1 file chan

[U-Boot] [PATCH v5 03/16] net: Merge asm/fsl_enet.h into fsl_mdio.h

2014-08-18 Thread Alison Wang
From: Claudiu Manoil fsl_enet.h defines the mapping of the usual MII management registers, which are included in the MDIO register block common to Freescale ethernet controllers. So it shouldn't depend on the CPU architecture but it should be actually part of the arch independent fsl_mdio.h. To

[U-Boot] [PATCH v5 05/16] ls102xa: etsec: Add etsec support for LS102xA

2014-08-18 Thread Alison Wang
For LS102xA, RxBDs and TxBDs are interpreted with little-endian bytes ordering. The offset for each of eTSECs and MDIOs is 256K bytes. Signed-off-by: Alison Wang --- Change log: v5: No change. v4: No change. v3: No change. v2: Add private mdio read and write support. drivers/net/tsec.c | 7

[U-Boot] [PATCH v5 07/16] driver/ddr/freescale: Add support of accumulate ECC

2014-08-18 Thread Alison Wang
From: York Sun If less than 8 ECC pins are used for DDR data bus width smaller than 64 bits, the 8-bit ECC code will be transmitted/received across several beats, and it will be used to check 64-bits of data once 8-bits of ECC are accumulated. Signed-off-by: York Sun --- Change log: v5: No cha

[U-Boot] [PATCH v5 06/16] ls102xa: esdhc: Add esdhc support for LS102xA

2014-08-18 Thread Alison Wang
For LS102xA, the platform is little endian, while esdhc IP is big endian. So two macros are added, CONFIG_SYS_FSL_ESDHC_LE and CONFIG_SYS_FSL_ESDHC_BE, to determine the registers' reading/writing in big or little endian format. Signed-off-by: Alison Wang --- Change log: v5: No change. v4: No ch

[U-Boot] [PATCH v5 0/16] arm: ls102xa: Add Freescale LS102xA SoC and LS1021AQDS/TWR board support

2014-08-18 Thread Alison Wang
This series contain the support for Freescale LS102xA SoC and LS1021AQDS/TWR board. The QorIQ LS1 family is built on Layerscape architecture, the industry's first software-aware, core-agnostic networking architecture to offer unprecedented efficiency and scale. Freescale LS102xA is a set of SoCs

[U-Boot] [PATCH v5 02/16] ls102xa: i2c: Add i2c support for LS102xA

2014-08-18 Thread Alison Wang
The existing i.MX's I2C driver mxc_i2c.c is compatible with the controller of LS102xA. As I2C's registers are 8-bit on LS102xA, I2C_QUIRK_REG is enabled to use 8-bit driver. This patch is to add I2C 1,2,3 support for LS102xA. Signed-off-by: Alison Wang --- Change log: v5: Add detailed commit me

[U-Boot] [PATCH v5 04/16] net: mdio: Use mb() to be compatible for both ARM and PowerPC

2014-08-18 Thread Alison Wang
Use mb() instead of sync assembly instruction to be compatible for both ARM and PowerPC. Signed-off-by: Alison Wang --- Change log: v5: No change. v4: No change. v3: Use mb() to be compatible for both ARM and PowerPC. Split from the 0004-arm-ls102xa-Add-etsec-support-for-LS102xA patch. v

Re: [U-Boot] [PATCH v2] kconfig: convert Kconfig helper script into a shell script

2014-08-18 Thread Masahiro Yamada
Hi Stephen, On Mon, 18 Aug 2014 10:36:48 -0600 Stephen Warren wrote: > On 08/18/2014 10:27 AM, Simon Glass wrote: > > Hi, > > > > On 18 August 2014 10:20, Stephen Warren > > wrote: > > > > On 08/16/2014 10:56 PM, Masahiro Yamada wrote: > > > > Commit 5

Re: [U-Boot] [PATCH v2] kconfig: convert Kconfig helper script into a shell script

2014-08-18 Thread Masahiro Yamada
Hi. On Mon, 18 Aug 2014 10:27:29 -0600 Simon Glass wrote: > Hi, > > On 18 August 2014 10:20, Stephen Warren wrote: > > > On 08/16/2014 10:56 PM, Masahiro Yamada wrote: > > > >> Commit 51148790 added scripts/multiconfig.py written in Python 2 > >> to adjust Kconfig for U-Boot. > >> > >> It h

Re: [U-Boot] [PATCH 0/4] Introduce low-level debug for ARM architecture

2014-08-18 Thread York Sun
On 08/16/2014 11:16 PM, Masahiro Yamada wrote: > I have been in trouble for a while to debug some nasty problem > where neighter a debugger nor printf() function is available. > > I found the lowlevel debug feature in ARM Linux can be used as is > in U-Boot too. > > I tested this series on our So

[U-Boot] [PATCH] arm: tegra: initial support for apalis t30

2014-08-18 Thread Marcel Ziswiler
This patch adds board support for the Toradex Apalis T30 a computer on module which can be used on different carrier boards. For the sake of ease of use we do not distinguish between different carrier boards for now as the base module features are deemed sufficient enough for regular booting. The

[U-Boot] Automatic firmware upgrade using USB DFU

2014-08-18 Thread Tamás Bondár
Dear All, I am trying to implement an automatic firmware upgrade functionality on a U-Boot / embedded Linux board the following way. If anyone has done something similar before, please, comment if this is the right approach to the problem or I should choose a different solution? The hardware i

Re: [U-Boot] DFU to MMC #1

2014-08-18 Thread Tamás Bondár
Hi Lukasz, I'm not sure what to check. Could you specify it more exactly? I'm quite sure that on the BeagleBone Black MMC0 is the SD card and MMC1 is the eMMC. I'm not familiar with the U-Boot source code, but what I was trying to point out is that the parameter from the dfu command might b

Re: [U-Boot] [PATCH 23/23] ARM: tegra: Enable PCIe on Jetson TK1

2014-08-18 Thread Simon Glass
Hi Thierry, On 18 August 2014 01:16, Thierry Reding wrote: > From: Thierry Reding > > The Jetson TK1 has an ethernet NIC connected to the PCIe bus and routes > the second root port to a miniPCIe slot. Enable the PCIe controller and > the network driver to allow the device to boot over the networ

Re: [U-Boot] [PATCH 08/23] Add pr_fmt() macro

2014-08-18 Thread Simon Glass
On 18 August 2014 01:16, Thierry Reding wrote: > From: Thierry Reding > > This macro can be overridden in source files (before including common.h) > and can be used to specify a prefix for debug and error messages. An > example of how to use this is shown below: > > #define pr_fmt(fmt) "f

Re: [U-Boot] [PATCH 04/23] fdt: Add a function to return PCI BDF triplet

2014-08-18 Thread Simon Glass
On 18 August 2014 01:16, Thierry Reding wrote: > From: Thierry Reding > > The fdtdec_pci_get_bdf() function returns the bus, device, function > triplet of a PCI device by parsing the "reg" property according to the > PCI device tree binding. > > Signed-off-by: Thierry Reding Acked-by: Simon Gla

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

2014-08-18 Thread Simon Glass
Hi, On 15 August 2014 16:56, Bryan Wu wrote: > On Fri, Aug 15, 2014 at 3:25 PM, York Sun wrote: >> On 08/15/2014 03:14 PM, Stephen Warren wrote: >>> On 08/15/2014 04:11 PM, Bryan Wu wrote: On Fri, Aug 15, 2014 at 3:10 PM, York Sun wrote: > On 08/15/2014 03:07 PM, Bryan Wu wrote: >>

Re: [U-Boot] [PATCH 05/23] fdt: Add a subnodes iterator macro

2014-08-18 Thread Simon Glass
On 18 August 2014 01:16, Thierry Reding wrote: > From: Thierry Reding > > The fdt_for_each_subnode() iterator macro provided by this patch can be > used to iterate over a device tree node's subnodes. At each iteration a > loop variable will be set to the next subnode. > > Signed-off-by: Thierry R

Re: [U-Boot] [PATCH 6/6] warp: Add initial WaRP Board support

2014-08-18 Thread Otavio Salvador
On Mon, Aug 18, 2014 at 2:57 PM, Fabio Estevam wrote: > On Mon, Aug 18, 2014 at 2:56 PM, Fabio Estevam wrote: >> Hi Otavio, >> >> On Sun, Jun 15, 2014 at 9:46 PM, Otavio Salvador >> wrote: >>> Signed-off-by: Otavio Salvador >>> --- >>> >>> board/warp/Makefile| 8 ++ >>> board/warp/warp.c

Re: [U-Boot] [PATCH 03/23] fdt: Add resource parsing functions

2014-08-18 Thread Simon Glass
Hi Thierry, On 18 August 2014 01:16, Thierry Reding wrote: > From: Thierry Reding > > Add the fdt_get_resource() and fdt_get_named_resource() functions which > can be used to parse resources (memory regions) from an FDT. A helper to > compute the size of a region is also provided. > > Signed-off

Re: [U-Boot] [PATCH] net: More BOOTP retry timeout improvements

2014-08-18 Thread Joe Hershberger
Hi Thierry, On Mon, Aug 18, 2014 at 1:45 AM, Thierry Reding wrote: > > From: Thierry Reding > > It's not unusual for DHCP servers to take a couple hundred milliseconds > to respond to DHCP discover messages. One possible reason for the delay > can be that the server checks (typically using an AR

Re: [U-Boot] [PATCH 02/23] fdt: Add a function to get the index of a string

2014-08-18 Thread Simon Glass
Hi Thierry, On 18 August 2014 01:16, Thierry Reding wrote: > From: Thierry Reding > > Given a device tree node and a property name, the fdt_get_string_index() > function will look up a given string in the string list contained in the > property's value and return its index. > > Signed-off-by: Th

Re: [U-Boot] [PATCH 6/6] warp: Add initial WaRP Board support

2014-08-18 Thread Fabio Estevam
Hi Otavio, On Sun, Jun 15, 2014 at 9:46 PM, Otavio Salvador wrote: > Signed-off-by: Otavio Salvador > --- > > board/warp/Makefile| 8 ++ > board/warp/warp.c | 111 +++ > boards.cfg | 1 + > include/configs/warp.h | 198 >

Re: [U-Boot] [PATCH 6/6] warp: Add initial WaRP Board support

2014-08-18 Thread Fabio Estevam
On Mon, Aug 18, 2014 at 2:56 PM, Fabio Estevam wrote: > Hi Otavio, > > On Sun, Jun 15, 2014 at 9:46 PM, Otavio Salvador > wrote: >> Signed-off-by: Otavio Salvador >> --- >> >> board/warp/Makefile| 8 ++ >> board/warp/warp.c | 111 +++ >> boards.cfg

Re: [U-Boot] [PATCH 01/23] fdt: Add functions to query a node's #address- and #size-cells

2014-08-18 Thread Simon Glass
Hi Thierry, On 18 August 2014 01:16, Thierry Reding wrote: > From: Thierry Reding > > Given a device tree node, the fdt_n_addr_cells() function will walk up > the device tree and search for an #address-cells property. It returns > the number of cells required by the device tree node to represent

Re: [U-Boot] [RFC PATCH 0/1] SPL JTAG boot mode

2014-08-18 Thread Sören Brinkmann
On Mon, 2014-08-11 at 09:17AM -0400, Tom Rini wrote: > On Mon, Aug 11, 2014 at 03:03:35PM +0200, Michal Simek wrote: > > > Hi, > > > > I have got this patch some time ago but I am not still > > 100% sure about use case. Anyway Soren uses this mode > > that's why let me send this patch and we can

Re: [U-Boot] [RFC/PATCH] sunxi: Populate the default environment for sunxi-based systems

2014-08-18 Thread Ian Campbell
On Mon, 2014-08-11 at 22:13 +0200, Karsten Merker wrote: (sorry for the delay, just getting back from vacation) (sorry again if this comes through twice, my MUA crashed the first time I hit send, I don't think the mail made it out though...) > > I've not yet send a pull-request for this because i

Re: [U-Boot] [PATCH] buildman: Create parent directories as necessary

2014-08-18 Thread Simon Glass
Hi Thierry, On 18 August 2014 00:54, Thierry Reding wrote: > > From: Thierry Reding > > When creating build directories also create parents as necessary. This > fixes a failure when building a hierarchical branch (i.e. foo/bar). > > Signed-off-by: Thierry Reding > --- > tools/buildman/buildert

Re: [U-Boot] [PATCH v2 3/4] mtd: nand: add Freescale NFC driver

2014-08-18 Thread Bill Pringlemeir
On 18 Aug 2014, ste...@agner.ch wrote: > Am 2014-08-14 23:12, schrieb Bill Pringlemeir: >>> On 14 Aug 2014, ste...@agner.ch wrote: >>> >>> This adds initial support for Freescale NFC (NAND Flash Controller) >>> found in ARM Vybrid SoC's, Power Architecture MPC5125 and others. >>> However, this dri

Re: [U-Boot] [PATCH v2] kconfig: convert Kconfig helper script into a shell script

2014-08-18 Thread Stephen Warren
On 08/18/2014 10:27 AM, Simon Glass wrote: Hi, On 18 August 2014 10:20, Stephen Warren mailto:swar...@wwwdotorg.org>> wrote: On 08/16/2014 10:56 PM, Masahiro Yamada wrote: Commit 51148790 added scripts/multiconfig.py written in Python 2 to adjust Kconfig for U-Boot.

Re: [U-Boot] [PATCH v2] kconfig: convert Kconfig helper script into a shell script

2014-08-18 Thread Simon Glass
Hi, On 18 August 2014 10:20, Stephen Warren wrote: > On 08/16/2014 10:56 PM, Masahiro Yamada wrote: > >> Commit 51148790 added scripts/multiconfig.py written in Python 2 >> to adjust Kconfig for U-Boot. >> >> It has been hard for Python 3 users because Python 2 and Python 3 >> are not compatible

[U-Boot] [PATCH v3 2/4] arm: vf610: add NFC clock support

2014-08-18 Thread Stefan Agner
Add vf610 NFC (NAND Flash Controller) clock support and enable them at board initialization time. Signed-off-by: Stefan Agner --- arch/arm/include/asm/arch-vf610/crm_regs.h | 14 ++ arch/arm/include/asm/arch-vf610/imx-regs.h | 1 + 2 files changed, 15 insertions(+) diff --git a/arc

[U-Boot] [PATCH v3 1/4] arm: vf610: add NFC pin mux

2014-08-18 Thread Stefan Agner
Add pin mux for vf610 NAND Flash Controller (NFC). NAND can be connected using 8 or 16 data lines, this patch adds pin mux entries for all of the 16 possible data lines. Signed-off-by: Stefan Agner --- arch/arm/include/asm/arch-vf610/iomux-vf610.h | 34 +++ arch/arm/inclu

[U-Boot] [PATCH v3 0/4] arm: vf610: add NAND flash support

2014-08-18 Thread Stefan Agner
This patch set adds NAND Flash Controller (NFC) support for Freescale Vybrid ARM SoCs (vf610). The driver is based on Bill Pringlemeirs prelineary patch sent in January 2014 to the MTD mailing list: http://lists.infradead.org/pipermail/linux-arm-kernel/2014-January/226623.html Changes in v3 - Fur

[U-Boot] [PATCH v3 3/4] mtd: nand: add Freescale vf610_nfc driver

2014-08-18 Thread Stefan Agner
This adds initial support for Freescale NFC (NAND Flash Controller) found in ARM Vybrid SoC's, Power Architecture MPC5125 and others. The driver is called vf610_nfc since this is the first supported and tested hardware platform supported by the driver. Signed-off-by: Stefan Agner --- drivers/mtd

[U-Boot] [PATCH v3 4/4] arm: vf610: add NAND support for vf610twr

2014-08-18 Thread Stefan Agner
This adds NAND support for the Vybrid tower system (TWR-VF65GS10) provided by the vf610_nfc driver. Full 16-Bit bus width is supported. Also an aditional config vf610twr_nand is introduced which gets the environment from NAND. However, booting U-Boot from NAND is not yet possible due to missing boo

Re: [U-Boot] [PATCH v3 3/3] test: ums: Add script for testing UMS gadget operation

2014-08-18 Thread Stephen Warren
On 08/18/2014 04:12 AM, Lukasz Majewski wrote: This commit adds new test for UMS USB gadget to u-boot mainline tree. It is similar in operation to the one already available in test/dfu directory. Acked-by: Stephen Warren ___ U-Boot mailing list U-Bo

Re: [U-Boot] [PATCH v2] kconfig: convert Kconfig helper script into a shell script

2014-08-18 Thread Stephen Warren
On 08/16/2014 10:56 PM, Masahiro Yamada wrote: Commit 51148790 added scripts/multiconfig.py written in Python 2 to adjust Kconfig for U-Boot. It has been hard for Python 3 users because Python 2 and Python 3 are not compatible with each other. We are not happy about adding a new host tool depen

Re: [U-Boot] [PATCH] net: More BOOTP retry timeout improvements

2014-08-18 Thread Stephen Warren
On 08/18/2014 12:45 AM, Thierry Reding wrote: From: Thierry Reding It's not unusual for DHCP servers to take a couple hundred milliseconds to respond to DHCP discover messages. One possible reason for the delay can be that the server checks (typically using an ARP request) that the IP it's abou

Re: [U-Boot] [PATCH] net: BOOTP retry timeout improvements

2014-08-18 Thread Tom Rini
On Mon, Aug 18, 2014 at 10:04:58AM -0600, Stephen Warren wrote: > On 08/15/2014 03:39 PM, Thierry Reding wrote: > >On Fri, Aug 15, 2014 at 10:02:40AM -0600, Stephen Warren wrote: > ... > >>Re-transmitting a DHCP request shouldn't prevent a response to the previous > >>request from being processed -

Re: [U-Boot] [PATCH] net: BOOTP retry timeout improvements

2014-08-18 Thread Stephen Warren
On 08/15/2014 03:39 PM, Thierry Reding wrote: On Fri, Aug 15, 2014 at 10:02:40AM -0600, Stephen Warren wrote: ... Re-transmitting a DHCP request shouldn't prevent a response to the previous request from being processed - AFAIK each request is idempotent. Can you debug what is causing the 8s del

Re: [U-Boot] [UBOOT RFC PATCH 00/13] DRA7xx: Add DWC3 USB driver and enable DFU

2014-08-18 Thread Tom Rini
On Mon, Aug 18, 2014 at 07:58:22PM +0530, Kishon Vijay Abraham I wrote: > Ported DWC3 driver from linux kernel v3.16 to uboot and enabled DFU in DRA7xx. > Tested only with DFU ram. > > While I kept the dwc3 driver pretty much the same from linux kernel, I have > created a single driver for both U

[U-Boot] [UBOOT RFC PATCH 07/13] usb: gadget: g_dnl: Explicitly set the max packet size in descriptor

2014-08-18 Thread Kishon Vijay Abraham I
Explicity set the max packet size in the device descriptor to 0x40 as specified in the device class specification for device firmware upgrade. Also changed debug to printf to explicitly notify the user if the device has been enumerated. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/gadge

[U-Boot] [UBOOT RFC PATCH 03/13] ARM: DRA7: Enable clocks for USB OTGSS and USB PHY

2014-08-18 Thread Kishon Vijay Abraham I
Enabled clocks for dwc3 controller and USB PHY present in DRA7. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/cpu/armv7/omap5/hw_data.c | 14 ++ arch/arm/cpu/armv7/omap5/prcm-regs.c | 6 -- arch/arm/include/asm/omap_common.h | 4 ++-- 3 files changed, 20 insertions(+),

[U-Boot] [UBOOT RFC PATCH 13/13] dwc3: core: Change the bounce buffer size to 4096

2014-08-18 Thread Kishon Vijay Abraham I
Bounce buffer is used for transferring requests which is not maxpacket aligned. In the case of DFU the requests can be upto 4096 bytes. While the actual fix for this should be using two chained TRBs to handle the transfer, this can be used as a temporary fix. Signed-off-by: Kishon Vijay Abraham I

[U-Boot] [UBOOT RFC PATCH 12/13] include: configs: Enable DWC3 and DFU in DRA7xx

2014-08-18 Thread Kishon Vijay Abraham I
Enabled dwc3, dwc3-omap and PHY for dwc3 are enabled. Also enabled support for DFU. Signed-off-by: Kishon Vijay Abraham I --- include/configs/dra7xx_evm.h | 59 +++ include/configs/ti_omap5_common.h | 1 + 2 files changed, 60 insertions(+) diff --git a/

[U-Boot] [UBOOT RFC PATCH 11/13] commom: usb: implement "__weak" functions to make compiler happy

2014-08-18 Thread Kishon Vijay Abraham I
Implemented __weak functions for board_usb_cleanup, board_usb_gadget_handle_interrupts and usb_gadget_handle_interrupts to get of compiler errors in platforms that haven't implemented these functions. Signed-off-by: Kishon Vijay Abraham I --- common/usb.c | 18 ++ 1 file changed,

[U-Boot] [UBOOT RFC PATCH 10/13] board: ti: DRA7: added USB initializtion code

2014-08-18 Thread Kishon Vijay Abraham I
Implemented board_usb_init(), board_usb_cleanup() and board_usb_gadget_handle_interrupts() in dra7xx board file that can be invoked by various gadget drivers. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/include/asm/arch-omap5/omap.h | 12 board/ti/dra7xx/evm.c | 106

[U-Boot] [UBOOT RFC PATCH 09/13] common: cmd_dfu: add an API that takes controller index for handling interrupts

2014-08-18 Thread Kishon Vijay Abraham I
Since there can be multiple USB controllers in the system, usb_gadget_handle_interrupts should take controller index as arguments. However such an API can only be added in board file so added board_usb_gadget_handle_interrupts(). usb_gadget_handle_interrupts() should be deprecated. Signed-off-by:

[U-Boot] [UBOOT RFC PATCH 08/13] common: cmd_dfu: invoke board_usb_cleanup() for cleaning up

2014-08-18 Thread Kishon Vijay Abraham I
Invoked board_usb_cleanup for cleaning up initialized USB. It will be invoked if the user enterts ctrl-C. Signed-off-by: Kishon Vijay Abraham I --- common/cmd_dfu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index a03538d..1e7d50c 100644 --- a/common/

[U-Boot] [UBOOT RFC PATCH 05/13] usb: dwc3-omap: Add dwc3 glue driver for OMAP

2014-08-18 Thread Kishon Vijay Abraham I
Ported dwc3-omap driver from linux kernel to uboot. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/Makefile | 2 + drivers/usb/dwc3/dwc3-omap.c | 447 ++ include/dwc3-omap-uboot.h | 32 +++ include/linux/usb/dwc3-omap.h | 19 ++ 4

[U-Boot] [UBOOT RFC PATCH 06/13] usb: dwc3: TI PHY: PHY driver for dwc3 in TI platforms

2014-08-18 Thread Kishon Vijay Abraham I
Added a single driver for both USB2 PHY programming and USB3 PHY programming. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/ti_usb_phy.c | 269 ++ include/ti-usb-phy-uboot.h| 22 3 files changed

[U-Boot] [UBOOT RFC PATCH 01/13] include: linux: preparation for porting dwc3 from linux kernel

2014-08-18 Thread Kishon Vijay Abraham I
Fixes a bunch of header files in linux/usb in order to seamlessly port dwc3 usb driver from linux kernel to uboot. Signed-off-by: Kishon Vijay Abraham I --- include/linux/compat.h | 12 +-- include/linux/usb/composite.h | 12 +++ include/linux/usb/gadget.h | 75 ++

[U-Boot] [UBOOT RFC PATCH 02/13] usb: gadget: udc-core: Add minimal udc-core from linux kernel

2014-08-18 Thread Kishon Vijay Abraham I
In order to support multiple USB device controllers in uboot, udc-core is needed. udc-core also helps to cleanly link the USB peripheral driver with the gadget driver. Hence Ported minimal udc-core from linux kernel. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/gadget/Makefile | 1 +

[U-Boot] [UBOOT RFC PATCH 00/13] DRA7xx: Add DWC3 USB driver and enable DFU

2014-08-18 Thread Kishon Vijay Abraham I
Ported DWC3 driver from linux kernel v3.16 to uboot and enabled DFU in DRA7xx. Tested only with DFU ram. While I kept the dwc3 driver pretty much the same from linux kernel, I have created a single driver for both USB2 and USB3 PHY programming. I have also adapted udc-core from linux kernel so tha

Re: [U-Boot] [UBOOT RFC PATCH 07/13] usb: gadget: g_dnl: Explicitly set the max packet size in descriptor

2014-08-18 Thread Lukasz Majewski
Hi Kishon, > On Mon, Aug 18, 2014 at 07:58:29PM +0530, Kishon Vijay Abraham I > wrote: > > Explicity set the max packet size in the device descriptor to 0x40 > > as specified in the device class specification for device firmware > > upgrade. Also changed debug to printf to explicitly notify the us

Re: [U-Boot] [UBOOT RFC PATCH 07/13] usb: gadget: g_dnl: Explicitly set the max packet size in descriptor

2014-08-18 Thread Lukasz Majewski
Hi Kishon, > > Explicity set the max packet size in the device descriptor to 0x40 > > as specified in the device class specification for device firmware > > upgrade. Also changed debug to printf to explicitly notify the user > > if the device has been enumerated. It seems like this patch slipped

Re: [U-Boot] DFU to MMC #1

2014-08-18 Thread Lukasz Majewski
Hi Tamás, > Dear All, > > I'm trying to do a firmware update on my BeagleBone Black using DFU > and nearly getting there: > > > U-Boot# dfu 0 mmc 1 > GADGET DRIVER: usb_dnl_dfu > musb-hdrc: peripheral reset irq lost! > > MMC write: dev # 0, block # 63, count 762 ... 762 blocks write: OK > # >

Re: [U-Boot] [UBOOT RFC PATCH 13/13] dwc3: core: Change the bounce buffer size to 4096

2014-08-18 Thread Felipe Balbi
On Mon, Aug 18, 2014 at 07:58:35PM +0530, Kishon Vijay Abraham I wrote: > Bounce buffer is used for transferring requests which is not maxpacket > aligned. In the case of DFU the requests can be upto 4096 bytes. > > While the actual fix for this should be using two chained TRBs to handle > the tra

Re: [U-Boot] [UBOOT RFC PATCH 10/13] board: ti: DRA7: added USB initializtion code

2014-08-18 Thread Felipe Balbi
On Mon, Aug 18, 2014 at 07:58:32PM +0530, Kishon Vijay Abraham I wrote: > Implemented board_usb_init(), board_usb_cleanup() and > board_usb_gadget_handle_interrupts() in dra7xx board file that > can be invoked by various gadget drivers. > > Signed-off-by: Kishon Vijay Abraham I > --- > arch/arm/

Re: [U-Boot] [UBOOT RFC PATCH 07/13] usb: gadget: g_dnl: Explicitly set the max packet size in descriptor

2014-08-18 Thread Felipe Balbi
On Mon, Aug 18, 2014 at 07:58:29PM +0530, Kishon Vijay Abraham I wrote: > Explicity set the max packet size in the device descriptor to 0x40 > as specified in the device class specification for device firmware upgrade. > Also changed debug to printf to explicitly notify the user if the > device has

Re: [U-Boot] [UBOOT RFC PATCH 04/13] usb: dwc3: Add dwc3 driver

2014-08-18 Thread Felipe Balbi
On Mon, Aug 18, 2014 at 07:58:26PM +0530, Kishon Vijay Abraham I wrote: > Ported dwc3 driver from linux kernel to uboot. > > Signed-off-by: Kishon Vijay Abraham I > --- > Makefile|1 + > drivers/usb/dwc3/Makefile |7 + > drivers/usb/dwc3/core.c | 64

Re: [U-Boot] [UBOOT RFC PATCH 02/13] usb: gadget: udc-core: Add minimal udc-core from linux kernel

2014-08-18 Thread Felipe Balbi
On Mon, Aug 18, 2014 at 07:58:24PM +0530, Kishon Vijay Abraham I wrote: > In order to support multiple USB device controllers in uboot, > udc-core is needed. udc-core also helps to cleanly link the USB peripheral > driver with the gadget driver. Hence Ported minimal udc-core from > linux kernel. >

Re: [U-Boot] [PATCH 02/11] imx: ventana: added cputype env var

2014-08-18 Thread Tim Harvey
On Thu, Aug 14, 2014 at 8:23 AM, Stefano Babic wrote: > On 08/08/2014 07:35, Tim Harvey wrote: >> There are many similarities between the IMX6QUAD/IMX6DUAL and there are >> many similarities between the IMX6SOLO/IMX6DUALITE. Add a 'soctype' env >> variable that tells you which type you have. >> >>

Re: [U-Boot] [PATCH] samsung: dfu: Provide correct Vendor and Product IDs for UMS gadget

2014-08-18 Thread Lukasz Majewski
Hi Minkyu, > On 29/07/14 18:10, Lukasz Majewski wrote: > > It is necessary to provide the same Vendor and Product IDs as the > > one in the original Linux kernel code. > > > > Without this change the USB mass storage gadget is not working with > > Windows7. > > > > Signed-off-by: Lukasz Majewski

[U-Boot] [PATCH v3 2/3] test: dfu: cosmetic: Add missing license information to DFU test scripts

2014-08-18 Thread Lukasz Majewski
By mistake I've forgotten to add the SPDX license tags for the DFU testing scripts. This commit fixes that and also provides some other relevant information. Signed-off-by: Lukasz Majewski Acked-by: Stephen Warren --- Changes for v2: - None Changes for v3: - None --- test/dfu/dfu_gadget_test.sh

[U-Boot] [PATCH v3 3/3] test: ums: Add script for testing UMS gadget operation

2014-08-18 Thread Lukasz Majewski
This commit adds new test for UMS USB gadget to u-boot mainline tree. It is similar in operation to the one already available in test/dfu directory. Signed-off-by: Lukasz Majewski --- Changes for v2: - Add -f switch for optional FS creation on target UMS partition - Remove need for passing FS ty

[U-Boot] [PATCH v3 1/3] test: dfu: Extend dfu_gadget_test_init.sh to accept sizes of test files

2014-08-18 Thread Lukasz Majewski
It is now possible to pass to the dfu_gadget_test_init.sh script the sizes of files to be generated. This feature is required by UMS tests which reuse this code. Signed-off-by: Lukasz Majewski Acked-by: Stephen Warren --- Changes for v2: - None Changes for v3: - None --- test/dfu/dfu_gadget_te

[U-Boot] [PATCH v3 0/3] test: Extending USB gadget tests infrastructure

2014-08-18 Thread Lukasz Majewski
New test for UMS regressions catching has been added. Moreover some DFU enhancements have been included as well. Lukasz Majewski (3): test: dfu: Extend dfu_gadget_test_init.sh to accept sizes of test files test: dfu: cosmetic: Add missing license information to DFU test scripts test:

Re: [U-Boot] [PATCH v8] nand/denali: Adding Denali NAND driver support

2014-08-18 Thread Chin Liang See
Hi Masahiro, On Mon, 2014-08-18 at 13:19 +0900, Masahiro Yamada wrote: > Hi Scott, > > > Unforunately, the author of this patch, Chin Liang See > is no longer responding in spite of pings several times. > > I definitely need this driver. > I feel really sad to see all our efforts come to nothi

Re: [U-Boot] [PATCH v2 3/4] mtd: nand: add Freescale NFC driver

2014-08-18 Thread Stefan Agner
Am 2014-08-14 23:12, schrieb Bill Pringlemeir: >> On 14 Aug 2014, ste...@agner.ch wrote: >> >> This adds initial support for Freescale NFC (NAND Flash Controller) >> found in ARM Vybrid SoC's, Power Architecture MPC5125 and others. >> However, this driver is only tested on Vybrid. > > This is only

Re: [U-Boot] [PATCH] samsung: dfu: Provide correct Vendor and Product IDs for UMS gadget

2014-08-18 Thread Minkyu Kang
On 29/07/14 18:10, Lukasz Majewski wrote: > It is necessary to provide the same Vendor and Product IDs as the one in > the original Linux kernel code. > > Without this change the USB mass storage gadget is not working with Windows7. > > Signed-off-by: Lukasz Majewski > --- > board/samsung/commo

Re: [U-Boot] [PATCH] samsung: dfu: Provide correct Vendor and Product IDs for UMS gadget

2014-08-18 Thread Lukasz Majewski
Hi Minkyu, > Dear Lukasz Majewski, > > On 14/08/14 15:56, Lukasz Majewski wrote: > > Hi Minkyu, > > > >> It is necessary to provide the same Vendor and Product IDs as the > >> one in the original Linux kernel code. > >> > >> Without this change the USB mass storage gadget is not working with > >

Re: [U-Boot] [PATCH v2] kconfig: convert Kconfig helper script into a shell script

2014-08-18 Thread Igor Grinberg
On 08/17/14 07:56, Masahiro Yamada wrote: > Commit 51148790 added scripts/multiconfig.py written in Python 2 > to adjust Kconfig for U-Boot. > > It has been hard for Python 3 users because Python 2 and Python 3 > are not compatible with each other. > > We are not happy about adding a new host too

[U-Boot] [PATCH 9/9] net: rtl8169: Add support for RTL-8168/8111g

2014-08-18 Thread Thierry Reding
From: Thierry Reding This network interface card in found on the NVIDIA Jetson TK1. Signed-off-by: Thierry Reding --- drivers/net/rtl8169.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index 1c04946d7691..a02968fa4a12 100644 --- a/drivers/ne

[U-Boot] [PATCH 7/9] net: rtl8169: Properly align buffers

2014-08-18 Thread Thierry Reding
From: Thierry Reding RX and TX descriptor rings should be aligned to 256 byte boundaries. Use the DEFINE_ALIGN_BUFFER() macro to define the buffers so that they don't have to be manually aligned later on. Also make sure that the buffers do align to cache-line boundaries in case the cache-line is

[U-Boot] [PATCH 8/9] net: rtl8169: Use non-cached memory if available

2014-08-18 Thread Thierry Reding
From: Thierry Reding To work around potential issues with explicit cache maintenance of the RX and TX descriptor rings, allocate them from a pool of uncached memory if the architecture supports it. Signed-off-by: Thierry Reding --- drivers/net/rtl8169.c | 43 +++

[U-Boot] [PATCH 6/9] net: rtl8169: Honor CONFIG_SYS_RX_ETH_BUFFER

2014-08-18 Thread Thierry Reding
From: Thierry Reding According to the top-level README file, this configuration setting can be used to override the number of receive buffers that an ethernet NIC uses. Signed-off-by: Thierry Reding --- drivers/net/rtl8169.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --gi

[U-Boot] [PATCH 5/9] ARM: tegra: Enable non-cached memory

2014-08-18 Thread Thierry Reding
From: Thierry Reding Some boards, most notably those with a PCIe ethernet NIC, require this to avoid cache coherency problems. Since the option adds very little code and overhead enable it across all Tegra generations. Other drivers may also start supporting this functionality at some point, so e

[U-Boot] [PATCH 3/9] malloc: Output region when debugging

2014-08-18 Thread Thierry Reding
From: Thierry Reding When DEBUG is set, output memory region used for malloc(). Signed-off-by: Thierry Reding --- common/dlmalloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/dlmalloc.c b/common/dlmalloc.c index f9873393c183..3d6391e60acf 100644 --- a/common/dlmalloc.c +++ b

[U-Boot] [PATCH 4/9] ARM: Implement non-cached memory support

2014-08-18 Thread Thierry Reding
From: Thierry Reding Implement an API that can be used by drivers to allocate memory from a poll that is mapped uncached. This is useful if drivers would otherwise need to do extensive cache maintenance (or explicitly maintaining the cache isn't safe). The API is protected using the new CONFIG_S

[U-Boot] [PATCH 2/9] ARM: cache-cp15: Use unsigned long for address and size

2014-08-18 Thread Thierry Reding
From: Thierry Reding size is always non-negative, so it should be unsigned, whereas the address and size can be larger than 32 bit on 64-bit architectures. Change the mmu_set_region_dcache_behaviour() to use these types in anticipation of making the API available on other architectures. Signed-o

[U-Boot] [PATCH 1/9] ARM: cache_v7: Various minor cleanups

2014-08-18 Thread Thierry Reding
From: Thierry Reding Remove two gratuituous blank lines, uses u32 (instead of int) as the type for values that will be written to a register, moves the beginning of the variable declaration section to a separate line (rather than the one with the opening brace) and keeps the function signature on

[U-Boot] [PATCH 0/9] net: rtl8169: Fix cache maintenance issues

2014-08-18 Thread Thierry Reding
From: Thierry Reding This series attempts to fix a long-standing problem in the rtl8169 driver (though the same problem may exist in other drivers as well). Let me first explain what exactly the issue is: The rtl8169 driver provides a set of RX and TX descriptors for the device to use. Once they

Re: [U-Boot] [PATCH] samsung: dfu: Provide correct Vendor and Product IDs for UMS gadget

2014-08-18 Thread Minkyu Kang
Dear Lukasz Majewski, On 14/08/14 15:56, Lukasz Majewski wrote: > Hi Minkyu, > >> It is necessary to provide the same Vendor and Product IDs as the one >> in the original Linux kernel code. >> >> Without this change the USB mass storage gadget is not working with >> Windows7. > > Do you have any

[U-Boot] [PATCH 07/23] pci: Honour pci_skip_dev()

2014-08-18 Thread Thierry Reding
From: Thierry Reding When enumerating devices, honour the pci_skip_dev() function. This can be used by PCI controller drivers to restrict which devices will be probed. This is required by the NVIDIA Tegra PCIe controller driver, which will fail with a data abort exception if an access is attempt

[U-Boot] [PATCH 06/23] pci: Abort early if bus does not exist

2014-08-18 Thread Thierry Reding
From: Thierry Reding When listing the devices on a PCI bus, the current code will blindly try to access all devices. Internally this causes pci_bus_to_hose() to be repeatedly called and output an error message every time. Prevent this by calling pci_bus_to_hose() once and abort early if no bus wa

[U-Boot] [PATCH 23/23] ARM: tegra: Enable PCIe on Jetson TK1

2014-08-18 Thread Thierry Reding
From: Thierry Reding The Jetson TK1 has an ethernet NIC connected to the PCIe bus and routes the second root port to a miniPCIe slot. Enable the PCIe controller and the network driver to allow the device to boot over the network. Signed-off-by: Thierry Reding --- arch/arm/dts/tegra124-jetson-t

  1   2   >