Re: [U-Boot] [PATCH] ARM: uniphier: drop UniPhier specific SMP code

2015-11-08 Thread Tom Rini
On Sat, Nov 07, 2015 at 01:12:14AM +0900, Masahiro Yamada wrote: > 2015-11-06 22:46 GMT+09:00 Tom Rini : > > On Fri, Nov 06, 2015 at 10:16:30PM +0900, Masahiro Yamada wrote: > > > >> The latest Linux can directly handle SMP operations for UniPhier SoCs > >> without any help of

Re: [U-Boot] [PATCH] Makefile: Include vendor common library in include search path

2015-11-08 Thread Tom Rini
On Sun, Nov 08, 2015 at 09:56:18AM -0600, menon.nisha...@gmail.com wrote: > On Sat, Nov 7, 2015 at 8:18 PM, Tom Rini wrote: > > > Conceptually fine with me. Do we really need a config option for it > > tho? > > I was following the lines of CONFIG_CREATE_ARCH_SYMLINK here.

[U-Boot] [PATCH V4 08/13] spl: change return values of spl_*_load_image()

2015-11-08 Thread Nikita Kiryanov
Make spl_*_load_image() functions return a value instead of hanging if a problem is encountered. This enables main spl code to make the decision whether to hang or not, thus preparing it to support alternative boot devices. Some boot devices (namely nand and spi) do not hang on error. Instead,

[U-Boot] [PATCH V4 02/13] spl: mmc: add break statements in spl_mmc_load_image()

2015-11-08 Thread Nikita Kiryanov
The original intention of the mmc load_image() function was to try multiple boot modes before failing. This is evident by the lack of break statements in the switch, and the following line in the default case: puts("spl: mmc: no boot mode left to try\n"); This implementation is problematic

[U-Boot] [PATCH V4 12/13] arm: mx6: cm-fx6: define fallback boot devices for spl

2015-11-08 Thread Nikita Kiryanov
Use spl alternate boot device feature to define fallback to the main boot device as it is defined by hardware. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Stefano Babic Cc: Tom Rini Reviewed-by: Tom

[U-Boot] [PATCH V4 07/13] spl: mmc: get rid of emmc boot code duplication

2015-11-08 Thread Nikita Kiryanov
Get rid of emmc boot code duplication in spl_mmc_load_image() using a switch case fallthrough into MMCSD_MODE_RAW. Since the #ifdef CONFIG_SUPPORT_EMMC_BOOT check is not really necessary, remove it in the process. No functional changes. Signed-off-by: Nikita Kiryanov Cc:

[U-Boot] [PATCH V4 04/13] spl: mmc: remove #ifdef CONFIG_SPL_OS_BOOT check

2015-11-08 Thread Nikita Kiryanov
Implement default versions of falcon mode functions to make the CONFIG_SPL_OS_BOOT check in spl_mmc_load_image() unnecessary, thus reducing its #ifdef complexity. No functional changes. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul

[U-Boot] [PATCH V4 11/13] spl: announce boot devices

2015-11-08 Thread Nikita Kiryanov
Now that we support alternative boot devices, it can sometimes be unclear which boot devices was actually used. Provide a function to announce which boot devices are attempted during boot. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Tom

[U-Boot] [PATCH V4 10/13] spl: add support for alternative boot device

2015-11-08 Thread Nikita Kiryanov
Introduce spl_boot_list array, which defines a list of boot devices that SPL will try before hanging. By default this list will consist of only spl_boot_device(), but board_boot_order() can be overridden by board code to populate the array with custom values. Signed-off-by: Nikita Kiryanov

[U-Boot] [PATCH V4 13/13] spl: mmc: add support for BOOT_DEVICE_MMC2

2015-11-08 Thread Nikita Kiryanov
Currently the mmc device that SPL looks at is always mmc0, regardless of the BOOT_DEVICE_MMCx value. This forces some boards to implement hacks in order to boot from other mmc devices. Make SPL take into account the correct mmc device. Signed-off-by: Nikita Kiryanov

Re: [U-Boot] [PATCH v2 02/16] drivers: spi:ti_qspi: change ti_qspi_slave to ti_qspi_priv for driver model conversion

2015-11-08 Thread Tom Rini
On Wed, Nov 04, 2015 at 01:46:10PM +0530, Mugunthan V N wrote: > Changing the ti_qspi_priv structure and its instance names from > to priv for driver mode conversion. > > Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini -- Tom signature.asc

Re: [U-Boot] [PATCH v2 01/16] drivers: spi: ti_qspi: do not hard code chip select for memory map configuration

2015-11-08 Thread Tom Rini
On Wed, Nov 04, 2015 at 01:46:09PM +0530, Mugunthan V N wrote: > To enable memory map in dra7xx, specific chip select must be > written to control module register. But this hard coded to chip > select 1, fixing it by writing the specific chip select value to > control module register. > >

Re: [U-Boot] [PATCH v2 16/16] defconfig: am437x_sk_evm: enable spi driver model

2015-11-08 Thread Tom Rini
On Wed, Nov 04, 2015 at 01:46:24PM +0530, Mugunthan V N wrote: > enable mmc driver model for am437x_sk_evm as ti_qspi supports > driver model > > Signed-off-by: Mugunthan V N > Reviewed-by: Simon Glass Reviewed-by: Tom Rini -- Tom

Re: [U-Boot] [PATCH v4 3/7] ARM: omap-common: Add standard access for board description EEPROM

2015-11-08 Thread Tom Rini
On Thu, Nov 05, 2015 at 06:39:32PM -0600, Steve Kipisz wrote: > From: Lokesh Vutla > > Several TI EVMs have EEPROM that can contain board description information > such as revision, DDR definition, serial number, etc. In just about all > cases, these EEPROM are on the I2C

Re: [U-Boot] [PATCH v2 07/16] dts: dra7: add spi alias for qspi

2015-11-08 Thread Tom Rini
On Wed, Nov 04, 2015 at 01:46:15PM +0530, Mugunthan V N wrote: > add spi alias for qspi so that spi probes the device and driver > successfully. > > Signed-off-by: Mugunthan V N > Reviewed-by: Simon Glass > --- > arch/arm/dts/dra7.dtsi | 1 + > 1 file

Re: [U-Boot] [PATCH v2 05/16] spi: Add support for dual and quad mode

2015-11-08 Thread Tom Rini
On Wed, Nov 04, 2015 at 01:46:13PM +0530, Mugunthan V N wrote: > spi bus can support dual and quad wire data transfers for tx and > rx. So defining dual and quad modes for both tx and rx. Also add > support to parse bus width used for spi tx and rx transfers. > > Signed-off-by: Mugunthan V N

Re: [U-Boot] [PATCH v2 09/16] arm: dts: dra7: add qspi register maps for memory map and control module

2015-11-08 Thread Tom Rini
On Wed, Nov 04, 2015 at 01:46:17PM +0530, Mugunthan V N wrote: > Add qspi memory map and control module register maps to device tree. > > Signed-off-by: Mugunthan V N > Reviewed-by: Simon Glass > --- > arch/arm/dts/dra7.dtsi | 4 ++-- > 1 file changed,

Re: [U-Boot] [PATCH v2 13/16] defconfig: dra74_evm: enable spi driver model

2015-11-08 Thread Tom Rini
On Wed, Nov 04, 2015 at 01:46:21PM +0530, Mugunthan V N wrote: > enable mmc driver model for dra74_evm as ti_qspi supports > driver model > > Signed-off-by: Mugunthan V N > Reviewed-by: Simon Glass Reviewed-by: Tom Rini -- Tom

Re: [U-Boot] [PATCH v2 08/16] drivers: spi: ti_qspi: convert driver to adopt device driver model

2015-11-08 Thread Tom Rini
On Wed, Nov 04, 2015 at 01:46:16PM +0530, Mugunthan V N wrote: > adopt ti_qspi driver to device driver model > > Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH v2 12/16] defconfig: dra72_evm: enable spi driver model

2015-11-08 Thread Tom Rini
On Wed, Nov 04, 2015 at 01:46:20PM +0530, Mugunthan V N wrote: > enable mmc driver model for dra72_evm as ti_qspi supports > driver model > > Signed-off-by: Mugunthan V N > Reviewed-by: Simon Glass Reviewed-by: Tom Rini -- Tom

Re: [U-Boot] [PATCH v2 15/16] arm: dts: am4372: add qspi register maps for memory map

2015-11-08 Thread Tom Rini
On Wed, Nov 04, 2015 at 01:46:23PM +0530, Mugunthan V N wrote: > Add qspi memory map address to device tree. > > Signed-off-by: Mugunthan V N > Reviewed-by: Simon Glass > --- > arch/arm/dts/am4372.dtsi | 4 +++- > 1 file changed, 3 insertions(+), 1

Re: [U-Boot] [PATCH v4 5/7] ti: AM437x: Use generic EEPROM detection logic

2015-11-08 Thread Tom Rini
On Thu, Nov 05, 2015 at 06:39:34PM -0600, Steve Kipisz wrote: > From: Nishanth Menon > > Now that we have a generic TI eeprom logic which can be reused accross > platforms, reuse the same. > > Signed-off-by: Nishanth Menon > Signed-off-by: Steven Kipisz

[U-Boot] [PATCH V4 05/13] spl: mmc: get rid of #ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION check

2015-11-08 Thread Nikita Kiryanov
Implement defaults for the raw partition image loading so that the #ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION in spl_mmc_load_image() will no longer be necessary. This change makes it possible for mmc_load_image_raw_partition() and mmc_load_image_raw_sector() to coexist. Signed-off-by:

[U-Boot] [PATCH V4 00/13] SPL mmc refactor and alternate boot device feature

2015-11-08 Thread Nikita Kiryanov
This series has two parts: patches 1-7 perform refactors aimed at reducing the ifdef complexity of SPL mmc code (and some nand as well). This refactor also addresses a few design issues I noticed while working on the refactor. Image size comparison for arm modules can be seen here:

[U-Boot] [PATCH V4 09/13] common: spl: move image load to its own function

2015-11-08 Thread Nikita Kiryanov
Refactor spl image load code out of board_init_r and into its own function. This is a preparation for supporting alternative boot devices. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Tom Rini Cc: Simon Glass

[U-Boot] [PATCH V4 03/13] spl: mmc: refactor device location code to its own function

2015-11-08 Thread Nikita Kiryanov
Simplify spl_mmc_load_image() code by moving the part that finds the mmc device into its own function spl_mmc_find_device(), available in two flavors: DM and non-DM. This refactor fixes a bug in which an error in the device location sequence does not necessarily aborts the rest of the code. With

[U-Boot] [PATCH V4 01/13] spl: nand: remove code duplication

2015-11-08 Thread Nikita Kiryanov
Remove code duplication in spl_nand_load_image(). No functional changes. Signed-off-by: Nikita Kiryanov Cc: Scott Wood Cc: Igor Grinberg Acked-by: Scott Wood Reviewed-by: Simon Glass

[U-Boot] [PATCH V4 06/13] spl: mmc: move fs boot into its own function

2015-11-08 Thread Nikita Kiryanov
Move the code that handles fs boot out of spl_mmc_load_image() and into its own function to reduce the #ifdef complexity of spl_mmc_load_image(). No functional changes. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Paul Kocialkowski

Re: [U-Boot] [PATCH] Makefile: Include vendor common library in include search path

2015-11-08 Thread menon.nisha...@gmail.com
On Sat, Nov 7, 2015 at 8:18 PM, Tom Rini wrote: > Conceptually fine with me. Do we really need a config option for it > tho? I was following the lines of CONFIG_CREATE_ARCH_SYMLINK here. Is there some reason why you'd not want it so? Regards, Nishanth Menon

[U-Boot] [PATCH] openrisc: updating build tools naming convention

2015-11-08 Thread Guillaume REMBERT
Dear u-boot community, I just made a small change on the openrisc-generic platform configuration to take in account the new naming convention (or1k instead of or32, so the build process gets fine). Could you take care to review and approve the following patch, please? Kind regards, --

Re: [U-Boot] [PATCH V4 03/13] spl: mmc: refactor device location code to its own function

2015-11-08 Thread Tom Rini
On Sun, Nov 08, 2015 at 05:11:44PM +0200, Nikita Kiryanov wrote: > Simplify spl_mmc_load_image() code by moving the part that finds the mmc > device > into its own function spl_mmc_find_device(), available in two flavors: DM and > non-DM. > > This refactor fixes a bug in which an error in the

[U-Boot] [PATCH] include: net: Simplify the usage of __always_inline

2015-11-08 Thread Fabio Estevam
From: Fabio Estevam Since commit de4d2e9e7ce0f9 (" bitops: Add fls_long and __ffs64") is included in include/linux/bitops.h, which allows us to marking a function as 'always_inline' in a simpler format. Signed-off-by: Fabio Estevam ---

Re: [U-Boot] [Patch V8 12/17] armv8/ls1043ardb: Add LS1043ARDB board support

2015-11-08 Thread Hu Vincent
> -Original Message- > From: York Sun [mailto:york...@freescale.com] > Sent: Saturday, November 07, 2015 4:11 AM > To: Gong Qianyu-B52263; u-boot@lists.denx.de > Cc: Hu Mingkai-B21284; Sun York-R58495; Hou Zhiqiang-B48286; Xie > Shaohui-B21989; Song Wenbin-B53747; Wood Scott-B07421;

Re: [U-Boot] [RFC PATCH 3/8] lib: net_utils: make string_to_ip stricter

2015-11-08 Thread Chris Packham
On Mon, Oct 12, 2015 at 8:43 PM, Chris Packham wrote: > Previously values greater than 255 were implicitly truncated. Add some > stricter checking to reject addresses with components >255. > > With the input "1234192.168.1.1" the old behaviour would truncate the > address

Re: [U-Boot] [RESEND PATCH v3 15/20] rockchip: add rk3036 sdram driver

2015-11-08 Thread hl
Hi Simon, On 07/11/15 07:58, Simon Glass wrote: Hi Lin, On 6 November 2015 at 01:53, Lin Huang wrote: add rk3036 sdram driver so we can set up sdram in SPL Signed-off-by: Lin Huang --- Changes in v1: None Changes in v2: None Changes in v3: fix

Re: [U-Boot] [PATCH] arm: socfpga: Fix cache configuration

2015-11-08 Thread Marek Vasut
On Thursday, September 17, 2015 at 05:30:29 PM, Stefan Roese wrote: Hi! > By not defining CONFIG_SYS_ARM_CACHE_WRITEALLOC, the WRITEBACK cache > policy is selected. This leads to much better performance on the SoCFPGA. > A quick network test shows this: > > Without this patch: > => tftp 10

Re: [U-Boot] [PATCH v3 02/17] rockchip: move SYS_MALLOC_F_LEN to rk3288 own Kconfig

2015-11-08 Thread hl
Hi Simon, On 06/11/15 20:08, Simon Glass wrote: Hi, On 6 November 2015 at 01:33, Lin Huang wrote: since different rockchip SOC have different size of SRAM, So the size SYS_MALLOC_F_LEN may different, so move this config to rk3288 own Kconfig Signed-off-by: Lin Huang

Re: [U-Boot] [PATCH v3 02/17] rockchip: move SYS_MALLOC_F_LEN to rk3288 own Kconfig

2015-11-08 Thread Simon Glass
Hi Lin, On 8 November 2015 at 18:59, hl wrote: > Hi Simon, > > On 06/11/15 20:08, Simon Glass wrote: >> >> Hi, >> >> On 6 November 2015 at 01:33, Lin Huang wrote: >>> >>> since different rockchip SOC have different size of SRAM, >>> So the size

Re: [U-Boot] [PATCH 2/2] nios2: trim CONFIG_SYS_MEMTEST_END

2015-11-08 Thread Chin Liang See
Hi Thomas, On Thu, 2015-11-05 at 13:47 +0800, tho...@wytron.com.tw wrote: > Hi Chin Liang, > > On 2015年11月04日 22:27, Chin Liang See wrote: > >> +#define CONFIG_SYS_MEMTEST_END(CONFIG_SYS_MONITOR_BASE - \ > >> + CONFIG_ENV_SIZE - \ > >> +

[U-Boot] [PATCH v2 12/26] sandbox: usb: Allow up to 4 emulated devices on a hub

2015-11-08 Thread Simon Glass
To support more advanced testing, support 4 devices instead of 2. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/emul/sandbox_hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/emul/sandbox_hub.c

[U-Boot] [PATCH v2 03/26] Move console definitions into a new console.h file

2015-11-08 Thread Simon Glass
The console includes a global variable and several functions that are only used by a small subset of U-Boot files. Before adding more functions, move the definitions into their own header file. Signed-off-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v2 07/26] sandbox: Enable console recording and silent console

2015-11-08 Thread Simon Glass
Allow console recording so that tests can use it. Also allow the console output to be suppressed, to reduce test output 'noise'. Signed-off-by: Simon Glass --- Changes in v2: None configs/sandbox_defconfig | 3 +++ include/configs/sandbox.h | 1 + 2 files changed, 4

[U-Boot] [PATCH v2 08/26] test: Record and silence console in tests

2015-11-08 Thread Simon Glass
When running sandbox tests, silence the console to avoid unwanted output. Also, record the console in case tests want to check it. The -v option can be used to enable stdout during tests. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/start.c |

[U-Boot] [PATCH v2 06/26] console: Add a console buffer

2015-11-08 Thread Simon Glass
It is useful to be able to record console output and provide console input via a buffer. This provides sandbox with the ability to run a command and check its output. If the console is set to silent then no visible output is generated. This also provides a means to fix the problem where tests

Re: [U-Boot] [PATCH v2] mtd: add altera quadspi driver

2015-11-08 Thread Thomas Chou
On 2015年11月09日 14:52, Thomas Chou wrote: v2 change memory alllocation macros. add altera_qspi support. Sorry, wrong patch. Please ignore this one. - Thomas ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH v4 7/7] board: ti: AM57xx: Add detection logic for AM57xx-evm

2015-11-08 Thread Tom Rini
On Thu, Nov 05, 2015 at 06:39:36PM -0600, Steve Kipisz wrote: > Current AM57xx evm supports both BeagleBoard-X15 > (http://beagleboard.org/x15) and AM57xx EVM > (http://www.ti.com/tool/tmdxevm5728). > > The AM572x EValuation Module(EVM) provides an affordable platform to > quickly start

Re: [U-Boot] [PATCH v4 4/7] ti: am335x: Use generic EEPROM detection logic

2015-11-08 Thread Tom Rini
On Thu, Nov 05, 2015 at 06:39:33PM -0600, Steve Kipisz wrote: > From: Nishanth Menon > > Use the generic EEPROM detection logic instead of duplicating the AM > eeprom logic. > > Signed-off-by: Nishanth Menon > Signed-off-by: Steven Kipisz

[U-Boot] [PATCH v2 17/26] dm: usb: Deprecate usb_get_dev_index()

2015-11-08 Thread Simon Glass
This function should not be used with driver model. While there are users of USB Ethernet that use driver model for USB but not Ethernet, we have to keep it around. Add a comment to that effect. Signed-off-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v2 20/26] dm: test: usb: Add a test for device reordering

2015-11-08 Thread Simon Glass
Add tests that 'usb tree' produces the right output when a device changes order on the bus. Signed-off-by: Simon Glass --- Changes in v2: None test/dm/usb.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/test/dm/usb.c

[U-Boot] [PATCH v2] mtd: add altera quadspi driver

2015-11-08 Thread Thomas Chou
Add Altera Generic Quad SPI Controller support. The controller converts SPI NOR flash to parallel flash interface. So it is not like other SPI flash, but rather like CFI flash. Signed-off-by: Thomas Chou --- v2 change memory alllocation macros. add altera_qspi support.

[U-Boot] [PATCH v2 22/26] usb: Avoid open-coded USB constants in usb_kbd.c

2015-11-08 Thread Simon Glass
Replace the open-coded values with constants to make it clearer what they mean. Signed-off-by: Simon Glass --- Changes in v2: None common/usb_kbd.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/usb_kbd.c b/common/usb_kbd.c index

[U-Boot] [PATCH v2 25/26] sandbox: Enable USB keyboard

2015-11-08 Thread Simon Glass
Enable the USB keyboard on sandbox, now that we have a suitable emulation driver. Signed-off-by: Simon Glass --- Changes in v2: None configs/sandbox_defconfig | 2 ++ include/configs/sandbox.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 23/26] usb: sandbox: Add support for interrupt operations

2015-11-08 Thread Simon Glass
Allow USB device emulation to support interrupt URBs so that we can use USB keyboards with sandbox. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/emul/usb-emul-uclass.c | 12 drivers/usb/host/usb-sandbox.c | 19 +++

[U-Boot] [RFC PATCH v2 01/11] Initial net6.h

2015-11-08 Thread Chris Packham
The initial net6.h just has the definition of an IPv6 address and IPv6 header. Subsequent changes will build on this. Signed-off-by: Chris Packham --- Changes in v2: None include/net6.h | 48 1 file changed, 48

[U-Boot] [RFC PATCH v2 02/11] lib: vsprintf: add IPv6 compressed format %pI6c

2015-11-08 Thread Chris Packham
Add support for "human friendly" IPv6 address representations as specified in http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-00 This code has been adapted from Linux kernel with minimal modification. Signed-off-by: Chris Packham --- Changes in v2:

[U-Boot] [RFC PATCH v2 00/11] IPv6 support

2015-11-08 Thread Chris Packham
This series adds basic IPv6 support to U-boot. It is a reboot of my earlier work on this[1]. Most of this is ported from Allied Telesis' additions to u-boot[2]. (Note that I am employed by Allied Telesis[3]). The hard work was done some time ago by Angga, I've cleaned it up and made some

[U-Boot] [RFC PATCH v2 06/11] net: IPv6 skeleton and environment variables

2015-11-08 Thread Chris Packham
Create net6.c and add CONFIG_NET6 to Kconfig/Makefile. Also add support for the following environment variables: - ip6addr - gateway6 - serverip6 Signed-off-by: Chris Packham --- Changes in v2: - Split environment variables from main implementation - remove

[U-Boot] [RFC PATCH v2 03/11] lib: net_utils: make string_to_ip stricter

2015-11-08 Thread Chris Packham
Previously values greater than 255 were implicitly truncated. Add some stricter checking to reject addresses with components >255. With the input "1234192.168.1.1" the old behaviour would truncate the address to 192.168.1.1. New behaviour rejects the string outright and returns 0.0.0.0, which for

Re: [U-Boot] [PATCH v3 02/17] rockchip: move SYS_MALLOC_F_LEN to rk3288 own Kconfig

2015-11-08 Thread hl
Hi Simon, On 09/11/15 12:46, Simon Glass wrote: Hi Lin, On 8 November 2015 at 18:59, hl wrote: Hi Simon, On 06/11/15 20:08, Simon Glass wrote: Hi, On 6 November 2015 at 01:33, Lin Huang wrote: since different rockchip SOC have different size of

[U-Boot] [PATCH 5/5] net: altera_tse: add mSG-DMA support

2015-11-08 Thread Thomas Chou
The Modular Scatter-Gather DMA core is a new DMA core to work with the Altera Triple-Speed Ethernet MegaCore. It replaces the legacy Scatter-Gather Direct Memory Access (SG-DMA) controller core. Please find details on the "Embedded Peripherals IP User Guide" of Altera. Signed-off-by: Thomas Chou

[U-Boot] [PATCH 2/5] net: altera_tse: factor out stop mac func

2015-11-08 Thread Thomas Chou
Factor out the stop mac function to prepare msgdma support. Signed-off-by: Thomas Chou --- drivers/net/altera_tse.c | 36 +--- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/drivers/net/altera_tse.c

[U-Boot] [PATCH 1/5] net: zap altera_tse_initialize prototypes

2015-11-08 Thread Thomas Chou
Zap the altera_tse_initialize() prototypes, since it is converted to driver model. Signed-off-by: Thomas Chou --- include/netdev.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/netdev.h b/include/netdev.h index 3d5a54f..28eab46 100644 --- a/include/netdev.h

[U-Boot] [PATCH 0/5] net: altera_tse: add mSG-DMA support

2015-11-08 Thread Thomas Chou
The Modular Scatter-Gather DMA core is a new DMA core to work with the Altera Triple-Speed Ethernet MegaCore. It replaces the legacy Scatter-Gather Direct Memory Access (SG-DMA) controller core. Please find details on the "Embedded Peripherals IP User Guide" of Altera. Thomas Chou (5): net: zap

[U-Boot] [PATCH 4/5] net: altera_tse: add priv ops to prepare msgdma support

2015-11-08 Thread Thomas Chou
Add priv ops to prepare msgdma support. These ops are dma type specific. Signed-off-by: Thomas Chou --- drivers/net/altera_tse.c | 86 drivers/net/altera_tse.h | 20 --- 2 files changed, 81 insertions(+), 25

[U-Boot] [PATCH 3/5] net: altera_tse: wait sgdma in altera_tse_recv

2015-11-08 Thread Thomas Chou
Move the sgdma wait from free_pkt to recv. This is the proper place to wait recv sgdma done. Signed-off-by: Thomas Chou --- drivers/net/altera_tse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c

[U-Boot] [PATCH v2 13/26] sandbox: usb: Allow finding a USB emulator for a device

2015-11-08 Thread Simon Glass
Each USB device has an emulator. Currently this can only be found by supplying the 'pipe' value, which contains the device number. Add a way to find it directly from the emulated device. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/emul/usb-emul-uclass.c |

[U-Boot] [PATCH v2 11/26] sandbox: usb: Allow dynamic emulated USB device descriptors

2015-11-08 Thread Simon Glass
We would like the serial number to come from the device tree node name of the emulated device. This avoids them all having the same name. Adjust the code to support this. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/emul/sandbox_flash.c | 48

[U-Boot] [PATCH v2 15/26] Revert "dm: usb: Use device_unbind_children to clean up usb devs on stop"

2015-11-08 Thread Simon Glass
This reverts commit 6cda369509e0d3fa5f9e33c9d71589c4523799fa. We want to avoid having the USB stack rely on unbind. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/usb-uclass.c | 3 --- 1 file changed, 3 deletions(-) diff --git

[U-Boot] [PATCH v2 18/26] dm: usb: Remove inactive children after a bus scan

2015-11-08 Thread Simon Glass
Each scan of the USB bus may return different results. Existing driver-model devices are reused when found, but if a device no longer exists it will stay around, de-activated, but bound. Detect these devices and remove them after the scan completes. Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 10/26] dm: core: Add safe device iteration macros

2015-11-08 Thread Simon Glass
Add iteration macros which support unbinding a device within the loop. Signed-off-by: Simon Glass --- Changes in v2: None include/dm/device.h | 12 include/dm/uclass.h | 15 +++ 2 files changed, 27 insertions(+) diff --git a/include/dm/device.h

[U-Boot] [PATCH v2 09/26] usb: Refactor USB tree output code for testing

2015-11-08 Thread Simon Glass
Allow the 'usb tree' command to be used from test code, so that we can verify that it works correctly. Signed-off-by: Simon Glass --- Changes in v2: None common/cmd_usb.c | 58 include/usb.h| 8 2 files

[U-Boot] [PATCH v2 16/26] Revert "dm: Export device_remove_children / device_unbind_children"

2015-11-08 Thread Simon Glass
This reverts commit bb52b367f6ca4a3a918e77737f4ff6a1089912d9. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/device-remove.c | 22 ++ include/dm/device-internal.h | 26 -- 2 files changed, 18 insertions(+), 30

[U-Boot] [PATCH v2 14/26] Revert "dm: usb: Rename usb_find_child to usb_find_emul_child"

2015-11-08 Thread Simon Glass
This reverts commit 9b510df703d282effba4f56ac567aa8011d56e6b. We want to avoid having the USB stack rely on unbind. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/usb-uclass.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-)

[U-Boot] [PATCH v2] nios2: add 10m50 devboard support

2015-11-08 Thread Thomas Chou
Add 10m50 devboard support. It is based on the Golden Hardware Reference Design (GHRD), available at, http://rocketboards.org/foswiki/view/Documentation/ AlteraMAX1010M50RevCDevelopmentKitLinuxSetup Though we supported only one nios2-generic board in the past. Now, with the removal of the

[U-Boot] [PATCH v2 00/26] usb: Drop requirement for USB unbinding, add tests

2015-11-08 Thread Simon Glass
There was quite a bit of discussion about the change that required the unbinding of USB devices for the subsystem to function correctly. E.g. https://patchwork.ozlabs.org/patch/485637/ The key issue is the usb_get_dev_index() function which is not a good API for driver model. We can drop use of

[U-Boot] [PATCH v2 05/26] Add a circular memory buffer implementation

2015-11-08 Thread Simon Glass
This will be used to support console recording. It provides for a circular buffer which can be written at the head and read from the tail. It supports avoiding data copying by providing raw access to the data. Signed-off-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v2 02/26] dm: usb: Avoid time delays in sandbox tests

2015-11-08 Thread Simon Glass
Currently the USB tests take around two seconds to run. Remove these unnecessary time delays so that the tests run quickly. Signed-off-by: Simon Glass --- Changes in v2: None common/usb_hub.c| 10 +- test/dm/test-main.c | 2 ++ test/dm/usb.c | 3 +++ 3

[U-Boot] [PATCH v2 01/26] sandbox: Add a way to skip time delays

2015-11-08 Thread Simon Glass
Some tests are slow due to delays which are unnecessary on sandbox. The worst offender is USB where we lose two seconds. Add a way to disable time delays. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/cpu.c | 5 -

[U-Boot] [PATCH v2 04/26] Drop config.h header from display_options.c

2015-11-08 Thread Simon Glass
Since common.h will always include this automatically, it is not needed. Signed-off-by: Simon Glass --- Changes in v2: None lib/display_options.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/display_options.c b/lib/display_options.c index 4f2961f..29343fc 100644

[U-Boot] [PATCH v2 21/26] usb: Drop unused code in usb_kbd.c

2015-11-08 Thread Simon Glass
This was missed in the conversion to driver model. Signed-off-by: Simon Glass --- Changes in v2: None common/usb_kbd.c | 30 -- 1 file changed, 30 deletions(-) diff --git a/common/usb_kbd.c b/common/usb_kbd.c index 5a90f84..1d85212 100644 ---

[U-Boot] [PATCH v2 19/26] dm: test: usb: Add tests for the 'usb tree' command

2015-11-08 Thread Simon Glass
Add tests that this command produces the right output, even when a rescan results in a device disappearing from the bus. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/dts/test.dts | 14 - test/dm/usb.c | 156

[U-Boot] [PATCH v2 24/26] usb: sandbox: Add a USB emulation driver

2015-11-08 Thread Simon Glass
Add a simple USB keyboard driver for sandbox. It provides a function to 'load' it with input data, which it will then stream through to the normal U-Boot input subsystem. When the input data is exhausted, the keyboard stops providing data. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH v2 26/26] dm: test: usb: sandbox: Add keyboard tests for sandbox

2015-11-08 Thread Simon Glass
Add a test that verifies that USB keyboards work correctly on sandbox. This verifies some additional parts of the USB stack. Signed-off-by: Simon Glass --- Changes in v2: - Add various patches to support USB keyboards and additional tests arch/sandbox/dts/test.dts | 5

[U-Boot] [RFC PATCH v2 10/11] net: IPv6 documentation

2015-11-08 Thread Chris Packham
Signed-off-by: Chris Packham --- Changes in v2: None README | 3 +++ doc/README.ipv6 | 32 2 files changed, 35 insertions(+) create mode 100644 doc/README.ipv6 diff --git a/README b/README index ef8d437..64b431d 100644 ---

[U-Boot] [RFC PATCH v2 07/11] net: IPv6 support

2015-11-08 Thread Chris Packham
Adds basic support for IPv6. Neighbor discovery and ping6 are the only things supported at the moment. Helped-by: Hanna Hawa [endian & alignment fixes] Signed-off-by: Chris Packham --- Now we have something functional. With this and the next patch

[U-Boot] [RFC PATCH v2 09/11] net: TFTP over IPv6

2015-11-08 Thread Chris Packham
Add support for UDP/TFTP over IPv6. To support specifying an server IPv6 address in the command square brackets must be used to separate the address from the filename. e.g tftpboot6 [2001:db8::1]:zImage Signed-off-by: Chris Packham --- Changes in v2: None

[U-Boot] [RFC PATCH v2 08/11] net: Add ping6 command and implementation

2015-11-08 Thread Chris Packham
Signed-off-by: Chris Packham --- Changes in v2: - split ping6 support into it's own patch common/Kconfig | 6 +++ common/cmd_net.c | 28 ++ include/net.h| 4 +- net/net6.c | 7 net/ping6.c | 111

[U-Boot] [RFC PATCH v2 04/11] lib: net_utils: add string_to_ip6

2015-11-08 Thread Chris Packham
string_to_ip6 parses an IPv6 address from a string. Parsing v6 addresses is a bit more complicated than parsing v4 because there are a number of different formats that can be used. Signed-off-by: Chris Packham --- I'm sure the parsing can be better and done in less code

[U-Boot] [RFC PATCH v2 05/11] net: add definition of udp_hdr

2015-11-08 Thread Chris Packham
UDP is the same over IPv4 as it is over other protocols (i.e. IPv6) add a definition of just the UDP header independent of the IPv4 header that it may or may not be combined with. Signed-off-by: Chris Packham --- Ideally struct ip_udp_hdr would be defined as struct

[U-Boot] [RFC PATCH v2 11/11] net: e1000 enable multicast reception

2015-11-08 Thread Chris Packham
IPv6 neighbor discovery uses various multicast addresses to send the request and receive the response. For neighbor discovery to work properly in U-boot the Ethernet device needs to support joining/leaving various L2 multicast groups or it needs to support multicast/promiscuous mode. For the sake

Re: [U-Boot] [PATCH V2 0/5] Add support for additional splash screen locations

2015-11-08 Thread Nikita Kiryanov
Ping! On Thu, Oct 29, 2015 at 11:54:39AM +0200, Nikita Kiryanov wrote: > This series adds the following functionality to the splash_source library: > - load splash image from filesystem formatted usb storage > - load splash image from filesystem formatted mmc storage > - load splash image from