Re: [U-Boot] [PATCH 0/3] spi: cadence_qspi: sram depth from DT fix for FIFO width

2015-06-23 Thread Vikas MANOCHA
Hi Stefan, -Original Message- From: Stefan Roese [mailto:s...@denx.de] Sent: Friday, June 12, 2015 5:10 AM To: Vikas MANOCHA; u-boot@lists.denx.de; grmo...@opensource.altera.com; dingu...@opensource.altera.com Subject: Re: [PATCH 0/3] spi: cadence_qspi: sram depth from DT fix for

Re: [U-Boot] corrupted tags in git://git.denx.de/u-boot ?

2015-06-23 Thread Igor Grinberg
Hi Wolfgang, Thanks for the quick reply! On 06/23/15 16:31, Wolfgang Denk wrote: Dear Igor, In message 55894d63@compulab.co.il you wrote: While running git fsck --full, I've noticed the following: ---cut- $ git fsck

Re: [U-Boot] [PATCH] cmd_mp: Add support for showing all CPU status by one command

2015-06-23 Thread Tom Rini
On Mon, Jun 22, 2015 at 11:17:39AM +0200, Michal Simek wrote: Use one command for showing overall CPU status than several without knowing how many cpus is available in the system. Signed-off-by: Michal Simek michal.si...@xilinx.com Reviewed-by: Tom Rini tr...@konsulko.com -- Tom

Re: [U-Boot] [PATCH 7/7] Move defaults from config_cmd_default.h to Kconfig

2015-06-23 Thread Tom Rini
On Mon, Jun 22, 2015 at 04:15:30PM -0500, Joe Hershberger wrote: This sets the default commands Kconfig to match include/config_cmd_default.h commands in the common/Kconfig and removes them from include/configs. [snip] diff --git a/common/Kconfig b/common/Kconfig index cb14592..2976cd7

[U-Boot] Pull request: u-boot-spi/master

2015-06-23 Thread Jagan Teki
Hi Tom, Please pull this request, few importent feature list on spi-flash front like data flash and spi flash MTD supports. thanks! Jagan. The following changes since commit c6265f7f3410b5e5763181cdd123a3f6fcd9fd58: CPCI4052: Remove CONFIG_SYS_LONGHELP (2015-06-18 16:19:00 -0400) are

Re: [U-Boot] [PATCH RESEND 0/7] spi: cadence_qspi: optimize fix indirect rd-writes

2015-06-23 Thread Vikas MANOCHA
Hi Graham, -Original Message- From: Graham Moore [mailto:grmo...@opensource.altera.com] Sent: Tuesday, June 23, 2015 7:37 AM To: Vikas MANOCHA Cc: Stefan Roese; u-boot@lists.denx.de; dingu...@opensource.altera.com; jt...@openedev.com Subject: Re: [PATCH RESEND 0/7] spi:

Re: [U-Boot] [PATCH 4/4] include: usb: Map USB controller base addresses for LS2085A

2015-06-23 Thread Badola Nikhil
-Original Message- From: Marek Vasut [mailto:ma...@denx.de] Sent: Tuesday, June 23, 2015 4:30 PM To: Badola Nikhil-B46172 Cc: u-boot@lists.denx.de Subject: Re: [PATCH 4/4] include: usb: Map USB controller base addresses for LS2085A On Tuesday, June 23, 2015 at 05:48:20 AM, Nikhil

Re: [U-Boot] corrupted tags in git://git.denx.de/u-boot ?

2015-06-23 Thread Wolfgang Denk
Dear Igor, In message 55894d63@compulab.co.il you wrote: While running git fsck --full, I've noticed the following: ---cut- $ git fsck --full Checking object directories: 100% (256/256), done. error in tag

Re: [U-Boot] [PATCH] keystone2: use detected ddr3a size

2015-06-23 Thread Tom Rini
On Tue, Jun 23, 2015 at 08:24:23AM -0400, Vitaly Andrianov wrote: On 06/18/2015 11:57 AM, Tom Rini wrote: On Mon, Jun 15, 2015 at 12:42:49PM -0400, Vitaly Andrianov wrote: On 06/15/2015 10:17 AM, Tom Rini wrote: On Mon, Jun 15, 2015 at 08:48:01AM -0400, Vitaly Andrianov wrote: KS2

Re: [U-Boot] [PATCH 4/7] arm: Make new baltos board not break on savedefconfig

2015-06-23 Thread Tom Rini
On Mon, Jun 22, 2015 at 04:15:27PM -0500, Joe Hershberger wrote: This config defined a CONS_INDEX as a config but did not define it in any Kconfig, so savedefconfig will delete that entry. Use CONFIG_SYS_EXTRA_OPTIONS for now until that is added to Kconfig. Signed-off-by: Joe Hershberger

Re: [U-Boot] Marvell Armada XP SATA support

2015-06-23 Thread Stefan Roese
Hi Anton, On 23.06.2015 13:23, Bin Meng wrote: On Tue, Jun 23, 2015 at 5:35 PM, Anton Schubert anton.schub...@gmx.de wrote: Hello, we are trying to replace an old marvell uboot on mv78260 with the current version, Great. Welcome. :) but noticed that there doesn't seem to be a driver for

Re: [U-Boot] [PATCH] keystone2: use detected ddr3a size

2015-06-23 Thread Vitaly Andrianov
On 06/18/2015 11:57 AM, Tom Rini wrote: On Mon, Jun 15, 2015 at 12:42:49PM -0400, Vitaly Andrianov wrote: On 06/15/2015 10:17 AM, Tom Rini wrote: On Mon, Jun 15, 2015 at 08:48:01AM -0400, Vitaly Andrianov wrote: KS2 u-boot detects the ddr3a size installed to EVM. The detected size can be

Re: [U-Boot] [PATCH 4/4] include: usb: Map USB controller base addresses for LS2085A

2015-06-23 Thread Marek Vasut
On Tuesday, June 23, 2015 at 02:37:08 PM, Badola Nikhil wrote: -Original Message- From: Marek Vasut [mailto:ma...@denx.de] Sent: Tuesday, June 23, 2015 4:30 PM To: Badola Nikhil-B46172 Cc: u-boot@lists.denx.de Subject: Re: [PATCH 4/4] include: usb: Map USB controller base

[U-Boot] corrupted tags in git://git.denx.de/u-boot ?

2015-06-23 Thread Igor Grinberg
Hi guys, While running git fsck --full, I've noticed the following: ---cut- $ git fsck --full Checking object directories: 100% (256/256), done. error in tag 9bf86baaa3b35b25baa2d664e2f7f6cafad689ee: unterminated header error in tag

[U-Boot] [PATCH 06/11 v2] drivers/net/vsc9953: Add commands to enable/disable HW learning

2015-06-23 Thread Codrin Ciubotariu
The command: ethsw [port port_no] learning { [help] | show | auto | disable } can be used to enable/disable HW learning on a port. Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed

[U-Boot] [PATCH 00/11 v2] Add more commands for VSC9953 L2 Switch

2015-06-23 Thread Codrin Ciubotariu
This patch set adds several features for VSC9953 L2 Switch: - VLAN configuration; - port statistics; - FDB table operations; - enable/disable HW learning; - private/shared VLAN learning. Also, the parser needed to be changed to allow commands with optional

[U-Boot] [PATCH 03/11 v2] drivers/net/vsc9953: Add default configuration for VSC9953 L2 Switch

2015-06-23 Thread Codrin Ciubotariu
At startup, the default configuration should be: - enable HW learning on all ports (HW default); - all ports are VLAN aware; - all ports are members of VLAN 1; - all ports have Port-based VLAN 1; - on all ports, the switch is allowed to remove maximum one VLAN tag, - on egress, the switch

[U-Boot] [PATCH 01/11 v2] drivers/net/vsc9953: Cleanup patch

2015-06-23 Thread Codrin Ciubotariu
This patch groups some macros defined for registers and replaces some magic numbers from vsc9953 with macros. Also, port and port_nr keywords are replaced with port_no. Also, in some places, this patch replaces in_le32 and out_le32 with clrbits_le32 and setbits_le32 to reduce the number of code

[U-Boot] [PATCH 04/11 v2] drivers/net/vsc9953: Refractor the parser for VSC9953 commands

2015-06-23 Thread Codrin Ciubotariu
In order to support multiple commands to configure the VSC9953 L2 Switch, the parser needs to be changed to be more flexible and to support more complex commands. This patch adds a parser that searches for defined keywords in the command and calls the proper function when a match is found. Also,

[U-Boot] [PATCH 05/11 v2] drivers/net/vsc9953: Add command to show/clear port counters

2015-06-23 Thread Codrin Ciubotariu
The new added command: ethsw [port port_no] statistics { [help] | [clear] } will print counters like the number of Rx/Tx frames, number of Rx/Tx bytes, number of Rx/Tx unicast frames, etc. Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - removed

[U-Boot] [PATCH 02/11 v2] drivers/net/vsc9953: Fix missing reserved register

2015-06-23 Thread Codrin Ciubotariu
The VSC9953 DS reserves a register between vlan_mask and anag_efil registers. Signed-off-by: Johnson Leung johnson.le...@freescale.com --- Changes for v2: - removed Change-id field; include/vsc9953.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/vsc9953.h

[U-Boot] [PATCH 07/11 v2] drivers/net/vsc9953: Add commands to manipulate the FDB for VSC9953

2015-06-23 Thread Codrin Ciubotariu
The new command: ethsw [port port_no] [vlan vid] fdb { [help] | show | flush | { add | del } mac } Can be used to add and delete FDB entries. Also, the command can be used to show entries from the FDB tables. When used with [port port_no] and [vlan vid], only the matching the FDB entries

[U-Boot] [PATCH 11/11 v2] drivers/net/vsc9953: Add GPL-2.0+ SPDX-License-Identifier

2015-06-23 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu codrin.ciubota...@freescale.com --- Changes for v2: - fixed the Copyright years from 2014-2015 to 2013, 2015; - removed Change-id field; include/vsc9953.h | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git

[U-Boot] [PATCH 08/11 v2] drivers/net/vsc9953: Add VLAN commands for VSC9953

2015-06-23 Thread Codrin Ciubotariu
The new added commands can be used to configure VLANs for a port on both ingress and egress. The new commands are: ethsw [port port_no] pvid { [help] | show | pvid } - set/show PVID (ingress and egress VLAN tagging) for a port; ethsw [port port_no] vlan { [help] | show | add vid | del vid } -

[U-Boot] [PATCH 10/11 v2] drivers/net/vsc9953: Add commands for VLAN ingress filtering

2015-06-23 Thread Codrin Ciubotariu
The command: ethsw [port port_no] ingress filtering { [help] | show | enable | disable } - enable/disable VLAN ingress filtering on port can be used to enable/disable/show VLAN ingress filtering on a port. Signed-off-by: Johnson Leung johnson.le...@freescale.com Signed-off-by: Codrin

[U-Boot] [PATCH 09/11 v2] drivers/net/vsc9953: Add command for shared/private VLAN learning

2015-06-23 Thread Codrin Ciubotariu
The command: ethsw vlan fdb { [help] | show | shared | private } - make VLAN learning shared or private configures the FDB to share the FDB entries learned on multiple VLANs or to keep them separated. By default, the FBD uses private VLAN learning. Signed-off-by: Johnson Leung

Re: [U-Boot] [PATCH RESEND 0/7] spi: cadence_qspi: optimize fix indirect rd-writes

2015-06-23 Thread Graham Moore
On 06/22/2015 06:31 PM, Vikas MANOCHA wrote: ... The point is if after applying above mentioned patch (...: fix indirect read/write start address), Read/write are working fine, then trigger_base value of 0xFFA00_ should also work fine. Can you please modify the trigger_base value from 0x0

Re: [U-Boot] [PATCH 2/5] sunxi: rsb: Enable R_PIO clock before configuring external pins

2015-06-23 Thread Maxime Ripard
On Tue, Jun 23, 2015 at 07:57:24PM +0800, Chen-Yu Tsai wrote: The original code was configuring the external pins after enabling the R_PIO clock, which meant the configuration never made it to the pin controller the first time in SPL. Why this was working before is uncertain. Maybe the state

[U-Boot] [PATCH v3 10/54] debug_uart: Remove use of asmlinkage

2015-06-23 Thread Simon Glass
This does not actually help any current arch. For x86 it makes it harder to call (requires stack) and for ARM it has no effect. Drop it. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None include/debug_uart.h | 22 ++ 1 file changed, 10

[U-Boot] [PATCH v3 22/54] dm: Correct the missing method check in cpu_get_info()

2015-06-23 Thread Simon Glass
This is checking the wrong method. Fix it. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/cpu/cpu-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpu/cpu-uclass.c b/drivers/cpu/cpu-uclass.c index

[U-Boot] [PATCH v3 07/54] dm: Reduce SPL device tree size

2015-06-23 Thread Simon Glass
The SPL device tree size must be minimised to save memory. Only include properties that are needed by SPL - this is determined by the presence of the u-boot,dm-pre-reloc property. Also remove a predefined list of unused properties from the nodes that remain. Signed-off-by: Simon Glass

[U-Boot] [PATCH v3 36/54] dm: pmic: Split output from function

2015-06-23 Thread Simon Glass
The regulator_autoset() function mixes printf() output and PMIC adjustment code. It provides a boolean to control the output. It is better to avoid missing logic and output, and this permits a smaller SPL code size. So split the output into a separate function. Also rename the function to have a

[U-Boot] [PATCH v3 18/54] dm: gpio: Add dm_gpio_lookup_name() to look up a GPIO name

2015-06-23 Thread Simon Glass
Provide a driver-model function to look up a GPIO name. Make the standard function use it. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/gpio/gpio-uclass.c | 34 ++ include/asm-generic/gpio.h | 13 +

[U-Boot] [PATCH v3 42/54] dm: Add support for RAM drivers

2015-06-23 Thread Simon Glass
Add support for a driver which sets up DRAM and can return information about the amount of RAM available. This is a first step towards moving RAM init to driver model. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/Kconfig | 2 ++

[U-Boot] [PATCH v3 33/54] dm: Add basic support for pin multiplexing (pinctrl)

2015-06-23 Thread Simon Glass
Add a uclass which permits pin multiplexing to be configured for a particular function. It uses the concept of a peripheral ID to specify the peripheral to adjust. Typically peripheral IDs are SPI0, SPI1, MMC0, etc. The uclass provides two methods: - get_periph_id() - returns the peripheral ID

[U-Boot] [PATCH v3 25/54] spl: Add debugging info for spl_mmc boot

2015-06-23 Thread Simon Glass
Add a few messages to indicate progress and failure. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None common/spl/spl_mmc.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index

[U-Boot] [PATCH v3 50/54] mkimage: Set up a file size parameter and keep it updated

2015-06-23 Thread Simon Glass
Some functions called by mkimage would like to know the output file size. Initially this is the same as the input file size, but it may be affected by adding headers, etc. Add this information to the image parameters. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes

[U-Boot] [PATCH v3 37/54] dm: power: Add a function to set up all regulators

2015-06-23 Thread Simon Glass
The device tree provides information about which regulators should be on at boot, or always on. Use this to set them up automatically. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/power/regulator/regulator-uclass.c | 22 ++

[U-Boot] [PATCH v3 41/54] Drop CONFIG_ERRNO_STR from SPL

2015-06-23 Thread Simon Glass
This bloats the code size quite a bit and is less useful in SPL where there is no command line. Avoid including this code in SPL. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH v3 20/54] dm: Add support for register maps (regmap)

2015-06-23 Thread Simon Glass
Add a simple implementaton of register maps, supporting only direct I/O for now. This can be enhanced later to support buses which have registers, such as I2C, SPI and PCI. It allows drivers which can operate with multiple buses to avoid dealing with the particulars of register access on that

[U-Boot] [PATCH v3 30/54] mmc: Add structure comments for dwmmc

2015-06-23 Thread Simon Glass
It took a little while to figure this out, so this patch adds documentation to help the next person who needs to do this. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None include/dwmmc.h | 18 +- 1 file changed, 17 insertions(+), 1

[U-Boot] dm-spi: spi_chip_select value

2015-06-23 Thread Jagan Teki
Hi Simon, I'm calling spi_chip_select(bus) from set_speed or claim_bus to get the cs value from sf probe. Seems like it returns the maximum number as 254, when I debug further seems like slave_platdata returns NULL int spi_chip_select(struct udevice *dev) { struct dm_spi_slave_platdata

[U-Boot] [PATCH v3 19/54] dm: gpio: Add dm_gpio_request() to manually request a GPIO

2015-06-23 Thread Simon Glass
This function can be used for testing to manually request a GPIO for use, without resorting to the legacy GPIO API. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/gpio/gpio-uclass.c | 2 +- include/asm-generic/gpio.h | 12 2 files

[U-Boot] [PATCH v3 06/54] fdt: Add fdtgrep tool

2015-06-23 Thread Simon Glass
This tool allows us to extract subsets of a device tree file. It is used by the SPL vuild, which needs to cut down the device tree size for use in limited memory. This tool was originally written for libfdt but it has not been accepted upstream, so for now, include it in U-Boot. Several utilfdt

[U-Boot] [PATCH v3 13/54] dm: Move the tree/uclass dump code into its own file

2015-06-23 Thread Simon Glass
In SPL it is sometimes useful to be able to obtain a dump of the current driver model state. Since commands are not available, provide a way to directly call the functions to output this information. Adjust the existing commands to use these functions. Signed-off-by: Simon Glass

[U-Boot] [PATCH v3 15/54] dm: core: Add a function to find any device from device tree

2015-06-23 Thread Simon Glass
In some rare cases it is useful to be able to locate a device given a device tree node offset. An example is when you have an alias that points to a node and you want to find the associated device. The device may be SPI, MMC or something else, but you don't need to know the uclass to find it. Add

[U-Boot] [PATCH v3 46/54] lib: Add function to extract a number from the end of a string

2015-06-23 Thread Simon Glass
Split out the code in fdtdec which finds a number at the end of a string. It can be useful in other situations. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None include/vsprintf.h | 26 ++ lib/fdtdec.c | 14 ++

[U-Boot] [PATCH v3 21/54] dm: Add support for generic system controllers (syscon)

2015-06-23 Thread Simon Glass
Many SoCs have a number of system controllers which are dealt with as a group by a single driver. It is a pain to have to add lots of compatible strings and/or separate drivers for each. Instead we can identify the controllers by a number and request the address of the one we want. Add a simple

[U-Boot] [PATCH v3 48/54] dm: spl: Allow device tree/driver model in board_init_f()

2015-06-23 Thread Simon Glass
Add an spl_init() function that does basic init such that board_init_f() can use simple malloc(), device tree and driver model. Each one is set up only if enabled for SPL. Note: We really should refactor SPL such that there is a single board_init_f() and rename the existing weak board_init_f()

[U-Boot] [PATCH v3 51/54] dm: Add a system reset uclass

2015-06-23 Thread Simon Glass
It is common for system reset to be available at multiple levels in modern hardware. For example, an SoC may provide a reset option, and a board may provide its own reset for reasons of security or thoroughness. It is useful to be able to model this hardware without hard-coding the behaviour in

[U-Boot] [PATCH v3 39/54] dm: pmic: Add functions to adjust PMIC registers

2015-06-23 Thread Simon Glass
It is a common requirement to update some PMIC registers. Provide some simple convenience functions to do this. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/power/pmic/pmic-uclass.c | 32 include/power/pmic.h

[U-Boot] [PATCH v3 38/54] dm: power: Use debug() for errors in regulator uclass

2015-06-23 Thread Simon Glass
To reduce unnecessary code size in an uncommon code path, use debug() where possible(). The driver returns an error which indicates failure. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/power/regulator/regulator-uclass.c | 2 +- 1 file

[U-Boot] [PATCH v3 28/54] mmc: Add debug() output on read errors

2015-06-23 Thread Simon Glass
Allow read errors to be diagnosed more easily. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/mmc/mmc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 4eab274..da47037

[U-Boot] [PATCH v3 02/54] sandbox: Enable dhry command

2015-06-23 Thread Simon Glass
Provide access to the dhrystone benchmark command. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 31fe2f9..3953ec3

[U-Boot] [PATCH v3 01/54] Add a dhrystone benchmark command

2015-06-23 Thread Simon Glass
Drystone provides a convenient sanity check that the CPU is running at full speed. Add this as a command which can be enabled as needed. Note: I investigated using Coremark for this but there was a license agreement and I could not work out if it was GPL-compatible. Signed-off-by: Simon Glass

[U-Boot] [PATCH v3 04/54] fdt: Add a function to remove unused strings from a device tree

2015-06-23 Thread Simon Glass
Property names are stored in a string table. When a node property is removed, the string table is not updated since other nodes may have a property with the same name. Thus it is possible for the string table to build up a number of unused strings. Add a function to remove these. This works by

[U-Boot] [PATCH v3 03/54] mkimage: Display a better list of available image types

2015-06-23 Thread Simon Glass
Offer to display the available image types in help. Also, rather than hacking the genimg_get_type_id() function to display a list of types, do this in the tool. Also, sort the list. The list of image types is quite long, and hard to discover. Print it out when we show help information.

[U-Boot] [PATCH v3 05/54] fdt: Add fdt_first/next_region() functions

2015-06-23 Thread Simon Glass
These have been sent upstream but not accepted to libfdt. For now, bring these into U-Boot to enable fdtgrep to operate. We will use fdtgrep to cut device tree files down for SPL. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: - Add new patch with

[U-Boot] [PATCH v3 09/54] Add a way of checking the position of a structure member

2015-06-23 Thread Simon Glass
U-Boot uses structures for hardware access so it is important that these structures are correct. Add a way of asserting that a structure member is at a particular offset. This can be created using the datasheet for the hardware. This implementation uses Static_assert() since BUILD_BUG_ON() only

[U-Boot] [PATCH v3 52/54] zynq: Rename struct clk_ops to zynq_clk_ops

2015-06-23 Thread Simon Glass
Since we want clk_ops to be used in U-Boot as a whole, rename the Zynq version until it can be converted to driver model. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None arch/arm/mach-zynq/clk.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[U-Boot] [PATCH v3 44/54] ns16550: Improve debug UART so it can work with 32-bit access

2015-06-23 Thread Simon Glass
Since Rockchip requires 32-bit serial access, add this to the driver. Refactor a little to make this easier. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/serial/ns16550.c | 36 +--- 1 file changed, 21

[U-Boot] [PATCH v3 47/54] fdt: Provide debug info when a device tree cannot be found

2015-06-23 Thread Simon Glass
It can be quite confusing with a new platform to figure out why the device tree cannot be located. Add some debug information for this case. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None lib/fdtdec.c | 7 +++ 1 file changed, 7 insertions(+) diff

[U-Boot] [PATCH v3 54/54] power: pmic: Use trailing_strtol() instead of a local function

2015-06-23 Thread Simon Glass
Use the common function to obtain the number from the end of the string, instead of a local function. Also tweak the position of a debug() statement. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Split this series apart from the Rockchip series Changes in v2: None

[U-Boot] [PATCH v3 34/54] dm: power: Avoid case-insensitve match for child names

2015-06-23 Thread Simon Glass
This is not user input (i.e. from the command line). It should be possible to get the case correct and avoid the case-insensitive match. This will help avoid sloppy device tree setups. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v3 40/54] dm: power: Allow use of regulators in SPL

2015-06-23 Thread Simon Glass
This functionality may be useful for setting up regulators early during boot. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None scripts/Makefile.spl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index

[U-Boot] [PATCH v3 49/54] spl: Add a debug string before the jump to U-Boot

2015-06-23 Thread Simon Glass
As a debug option, add positive confirmation that SPL has completed execution. This can help with diagnosing the location of unexpected hangs. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None common/spl/spl.c | 1 + 1 file changed, 1 insertion(+) diff

[U-Boot] [PATCH v3 23/54] dm: Add support for LEDs

2015-06-23 Thread Simon Glass
Add a simple uclass for LEDs, so that these can be controlled by the device tree and activated when needed. LEDs are referred to by their label. This implementation requires a driver for each type of LED (e.g GPIO, I2C). Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None

[U-Boot] [PATCH v3 24/54] dm: led: Add a driver for GPIO-controlled LEDs

2015-06-23 Thread Simon Glass
Add a simple driver which allows use of LEDs attached to GPIOs. The linux device tree binding is used. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None doc/device-tree-bindings/leds/leds-gpio.txt | 52 ++ drivers/led/Kconfig

[U-Boot] [PATCH v3 17/54] dm: gpio: Allow GPIO uclass to be used in SPL

2015-06-23 Thread Simon Glass
Now that we support driver model in SPL, allow GPIO drivers to be used there also. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/gpio/Makefile | 4 1 file changed, 4 deletions(-) diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile

[U-Boot] [PATCH v3 53/54] dm: Add a clock uclass

2015-06-23 Thread Simon Glass
Clocks are an important feature of platforms and have become increasing complex with time. Most modern SoCs have multiple PLLs and dozens of clock dividers which distribute clocks to on-chip peripherals. Some SoC implementations have a clock API which is private to that SoC family, e.g. Tegra and

[U-Boot] [PATCH v3 35/54] dm: power: Add regulator flags to centralise auto-set logic

2015-06-23 Thread Simon Glass
Decide when the regulator is set up whether we want to auto-set the voltage or current. This avoids the complex logic spilling into the processing code. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/power/regulator/regulator-uclass.c | 12

[U-Boot] [PATCH v3 31/54] mmc: Support bypass mode with the get_mmc_clk() method

2015-06-23 Thread Simon Glass
Some SoCs want to adjust the input clock to the DWMMC block as a way of controlling the MMC bus clock. Update the get_mmc_clk() method to support this. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/mmc/dw_mmc.c| 2 +-

[U-Boot] [PATCH v3 32/54] mmc: Calculate dwmmc FIFO threshold size if not provided

2015-06-23 Thread Simon Glass
We can calculate this. Add code to do this if it is not provided. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/mmc/dw_mmc.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/dw_mmc.c

[U-Boot] [PATCH v3 12/54] sandbox: Drop special-case sandbox console code

2015-06-23 Thread Simon Glass
At present printf() skips output if it can see there is no console. This is really just an optimisation, and is not necessary. Also it is currently incorrect in some cases. Rather than update the logic, just remove it so that we don't need to keep it in sync. Signed-off-by: Simon Glass

[U-Boot] [PATCH v3 08/54] dm: arm: Put driver model I2C drivers before legacy ones

2015-06-23 Thread Simon Glass
Driver-model I2C drivers can be picked up by the linker script rule for legacy drivers. Change the order to avoid this. We could make the legacy code depend on !CONFIG_DM_I2C but that is not necessary and it is good to keep conditions to a minimum. Signed-off-by: Simon Glass s...@chromium.org

[U-Boot] [PATCH v3 11/54] dm: Allow debug UART to support an early console

2015-06-23 Thread Simon Glass
When there is no console ready, allow the debug UART to be used for output. This makes debugging of early code considerably easier. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None common/console.c | 19 +++ 1 file changed, 19

[U-Boot] [PATCH v3 27/54] mmc: Avoid using printf() for errors

2015-06-23 Thread Simon Glass
These bloat the code and cause problems for SPL. Use debug() where possible and try to return a useful error code instead. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/mmc/dw_mmc.c | 21 +++-- 1 file changed, 11 insertions(+),

[U-Boot] [PATCH v3 16/54] dm: core: Correct device_get_child_by_of_offset() parameter

2015-06-23 Thread Simon Glass
This parameter is named 'seq' but should be named 'of_offset'. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/core/device.c | 4 ++-- include/dm/device.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH v3 29/54] dm: mmc: Allow driver model to be used for MMC in SPL

2015-06-23 Thread Simon Glass
Enable MMC using driver model in SPL for consistency with U-Boot proper. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None common/spl/spl_mmc.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/common/spl/spl_mmc.c

[U-Boot] [PATCH v3 14/54] dm: core: Use debug() instead of printf() for failures

2015-06-23 Thread Simon Glass
To avoid bloating SPL code, use debug() where possible in the driver model core code. The error code is already returned, and can be investigated as needed. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/core/lists.c | 6 +++--- 1 file changed,

[U-Boot] [PATCH v3 45/54] Add rivest cipher 4 (rc4) implementation

2015-06-23 Thread Simon Glass
Add an implementation of RC4. This will be used by Rockchip booting but may be useful in other situations. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None include/rc4.h | 21 + lib/Makefile | 1 + lib/rc4.c | 49

[U-Boot] [PATCH v3 43/54] dm: spi: Make local functions static

2015-06-23 Thread Simon Glass
Several functions in this file should be marked as static. Update them. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/spi/spi-uclass.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-uclass.c

[U-Boot] [PATCH v3 26/54] dm: mmc: Add an MMC uclass

2015-06-23 Thread Simon Glass
Add basic support for MMC, providing a uclass which can set up an MMC device. This allows MMC drivers to move to using driver model. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/mmc/Kconfig | 10 ++ drivers/mmc/Makefile | 2

[U-Boot] [PATCH 2/5] sunxi: rsb: Enable R_PIO clock before configuring external pins

2015-06-23 Thread Chen-Yu Tsai
The original code was configuring the external pins after enabling the R_PIO clock, which meant the configuration never made it to the pin controller the first time in SPL. Why this was working before is uncertain. Maybe the state was left from a previous boot sequence, or RSB just happened to be

[U-Boot] [PATCH 3/5] sunxi: Add support for UART0 in PB pin group on A33

2015-06-23 Thread Chen-Yu Tsai
The A33 adds a pinmux function for UART0 in the PB pin group. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/cpu/armv7/sunxi/board.c | 4 arch/arm/include/asm/arch-sunxi/gpio.h | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/arm/cpu/armv7/sunxi/board.c

[U-Boot] [PATCH 5/5] sunxi: Add Sinlinx SinA33 defconfig

2015-06-23 Thread Chen-Yu Tsai
Sinlinx SinA33 is a core/daughter board SDK kit from Sinlinx. It has the A33 SoC, USB host, USB OTG, audio input/output, LCD, camera, SDIO and GPIO headers. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/dts/Makefile| 3 ++- board/sunxi/MAINTAINERS | 6 ++

[U-Boot] [PATCH 4/5] sunxi: Sync sun8i dts files with the linux kernel

2015-06-23 Thread Chen-Yu Tsai
Copy over all the latest dts changes from mripard/sunxi/dt-for-4.2. This adds a dts file for Sinlinx SinA33 dev board, and the required changes in the .dtsi files. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/dts/sun8i-a23-a33.dtsi| 10 ++ ...sun8i-a33.dtsi =

[U-Boot] [PATCH 0/5] sunxi: misc fixes and SinA33 support

2015-06-23 Thread Chen-Yu Tsai
Hi, This series adds support for Sinlinx SinA33, an A33 devboard, while also fixing some things I encountered along the way. Patch 1 fixes build break when using PORT F UART0. (It seems no one uses it now that we have LCD support.) Patch 2 fixes the RSB errors I ran into on my A33 devices.

[U-Boot] [PATCH 1/5] sunxi: hardware-feature-specific function index defines for PORT F UART0

2015-06-23 Thread Chen-Yu Tsai
Commit 487b327 (sunxi: GPIO pin mux hardware-feature-specific function index defines) renamed all GPIO index defines, but missed the PORT F UART0 setup functions. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/cpu/armv7/sunxi/board.c | 8 1 file changed, 4 insertions(+), 4

Re: [U-Boot] [PATCH v2] Initial support for ACPI Tables for qemu-x86 target.

2015-06-23 Thread Bin Meng
Hi Saket, Some more comments below. On Wed, Jun 17, 2015 at 10:25 AM, Saket Sinha saket.sinh...@gmail.com wrote: This patchset is an initial attempt to support ACPI Tables for qemu-x86 target. Changes in v2: Dynamic generation of AML code for DSDT table. Reading PCI

[U-Boot] [PATCH] ls2085a: esdhc: flush D-cache before 'mmc read'

2015-06-23 Thread Yangbo Lu
It needs to flush D-cache before 'mmc read' so that we can see the right data in DDR. And fix parameter for invalidate_dcache_range() after 'mmc read'. Signed-off-by: Yangbo Lu yangbo...@freescale.com Cc: York Sun york...@freescale.com --- drivers/mmc/fsl_esdhc.c | 21 +++-- 1

Re: [U-Boot] BTRFS support in u-boot?

2015-06-23 Thread Simon Glass
Hi, On 4 June 2015 at 10:32, Joakim Tjernlund joakim.tjernl...@transmode.se wrote: I have seen btrfs patches for u-boot flying around a year ago or so then it went silent. Is there any efforts ongoing to add btrfs support to u-boot? Jocke I'm not sure. It would be good to get that in - if

Re: [U-Boot] [PATCH 07/11] x86: pci: Tidy up the generic x86 PCI driver

2015-06-23 Thread Simon Glass
Hi Bin, On 7 June 2015 at 20:15, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Sun, Jun 7, 2015 at 10:50 PM, Simon Glass s...@chromium.org wrote: This driver should use the x86 PCI configuration functions. Also adjust its compatible string to something generic (i.e. without a vendor name).

Re: [U-Boot] [PATCH 11/11] dm: x86: baytrail: Correct PCI region 3 when driver model is used

2015-06-23 Thread Simon Glass
Hi, On 8 June 2015 at 06:32, Andrew Bradford and...@bradfordembedded.com wrote: Hi Bin / Simon, On 06/08 10:57, Bin Meng wrote: Hi Simon, On Sun, Jun 7, 2015 at 10:50 PM, Simon Glass s...@chromium.org wrote: Commit afbbd413a fixed this for non-driver-model. Make sure that the driver

Re: [U-Boot] [PATCH 4/7] arm: Make new baltos board not break on savedefconfig

2015-06-23 Thread Joe Hershberger
Hi Tom, On Tue, Jun 23, 2015 at 9:23 AM, Tom Rini tr...@konsulko.com wrote: On Mon, Jun 22, 2015 at 04:15:27PM -0500, Joe Hershberger wrote: This config defined a CONS_INDEX as a config but did not define it in any Kconfig, so savedefconfig will delete that entry. Use

Re: [U-Boot] [PATCH 10/11] dm: pci: Correct bus number when scanning sub-buses

2015-06-23 Thread Simon Glass
On 7 June 2015 at 08:50, Simon Glass s...@chromium.org wrote: The sub-bus passed to pciauto_prescan_setup_bridge() is incorrect. Fix it so that sub-buses are numbered correctly. Signed-off-by: Simon Glass s...@chromium.org --- drivers/pci/pci-uclass.c | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH 09/11] dm: pci: Use the correct hose when configuring devices

2015-06-23 Thread Simon Glass
On 7 June 2015 at 08:50, Simon Glass s...@chromium.org wrote: Only the PCI controller has access to the PCI region information. Make sure to use the controller (rather than any attached bridges) when configuring devices. This corrects a failure to scan and configure devices when driver model

Re: [U-Boot] [PATCH 7/7] Move defaults from config_cmd_default.h to Kconfig

2015-06-23 Thread Joe Hershberger
Hi Tom, On Tue, Jun 23, 2015 at 9:33 AM, Tom Rini tr...@konsulko.com wrote: On Mon, Jun 22, 2015 at 04:15:30PM -0500, Joe Hershberger wrote: This sets the default commands Kconfig to match include/config_cmd_default.h commands in the common/Kconfig and removes them from include/configs.

Re: [U-Boot] [PATCH 07/11] x86: pci: Tidy up the generic x86 PCI driver

2015-06-23 Thread Bin Meng
Hi Simon, On Wed, Jun 24, 2015 at 11:18 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 7 June 2015 at 20:15, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Sun, Jun 7, 2015 at 10:50 PM, Simon Glass s...@chromium.org wrote: This driver should use the x86 PCI configuration functions.

Re: [U-Boot] [PATCH v3 22/25] rockchip: Add SPI driver

2015-06-23 Thread Jagan Teki
On 24 June 2015 at 04:59, Simon Glass s...@chromium.org wrote: Add a SPI driver for the Rockchip RK3288, using driver model. It should work for other Rockchip SoCs also. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/spi/Kconfig | 10

  1   2   >