[U-Boot] [PATCH 7/9] fat: add U-Boot to ff.c API conversion wrapper

2015-08-07 Thread Stephen Warren
Add a file that converts all the FAT-related APIs used by U-Boot into ff.c calls. This allows ff.c to provide the FAT implementation for U-Boot. Signed-off-by: Stephen Warren --- fs/fat/Kconfig| 0 fs/fat/Makefile | 7 ++ fs/fat/ff-uboot.c | 356

[U-Boot] [PATCH 6/9] fat: port integer.h to U-Boot types

2015-08-07 Thread Stephen Warren
ff.c uses a bunch of custom typedefs. Define these in terms of standard types from , so they'll automatically be the correct size for any build of U-Boot. Signed-off-by: Stephen Warren --- fs/fat/integer.h | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/fs

[U-Boot] [PATCH 2/9] fat: move to a different directory

2015-08-07 Thread Stephen Warren
A future patch will add a new implementation of the FAT filesystem in fat/. Move the old version to fat_orig/ so that the patches which add the new implementation can add it directly in the final location. Signed-off-by: Stephen Warren --- fs/Kconfig | 2 +- fs/Makefile

[U-Boot] [PATCH 8/9] fat: switch to new FAT implementation

2015-08-07 Thread Stephen Warren
Modify the U-Boot build system to build the new FAT implementation in fs/fat/ rather than the old implementation in fs/fat_orig/. Signed-off-by: Stephen Warren --- fs/Kconfig | 2 +- fs/Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/Kconfig b/fs/Kconfig ind

[U-Boot] [PATCH 5/9] fat: ffconf.h changes for U-Boot port

2015-08-07 Thread Stephen Warren
Turn on _FS_NORTC: This means we don't have to implement get_fattime() which simplifies life for now. Automatically set _FS_READONLY based on CONFIG_FAT_WRITE. This requires including since we reference CONFIG_*. Set _USE_LFN to enable long filename handling; an essential feature. Set _FS_RPATH

[U-Boot] [PATCH 1/9] disk: support host devices in dev_print()

2015-08-07 Thread Stephen Warren
Add a case statement for IF_TYPE_HOST in dev_print() so that it prints the device type rather than the "device type unknown" message. Signed-off-by: Stephen Warren --- disk/part.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/disk/part.c b/disk/part.c index 43485c9148b0..4e72257434b6 10

[U-Boot] [PATCH 9/9] fat: remove old implementation

2015-08-07 Thread Stephen Warren
Now that we've switched to the new FAT filesystem implementation, delete the old implementation. Signed-off-by: Stephen Warren --- fs/fat_orig/Kconfig |0 fs/fat_orig/Makefile| 11 - fs/fat_orig/fat.c | 1323 --- fs/fat_orig/fat_wri

[U-Boot] [PATCH 0/9] Replace the FAT filesystem code

2015-08-07 Thread Stephen Warren
The existing FAT filesystem implementation in U-Boot has some bugs that are tricky to fix cleanly without significant rework of the code. For example, see: http://lists.denx.de/pipermail/u-boot/2015-July/221054.html [PATCH] fat: handle paths that include ../ This series replaces U-Boot's FAT file

[U-Boot] [PATCH 4/9] fat: apply upstream bugfix to ff.c

2015-08-07 Thread Stephen Warren
This is a v0.11 post-release patch #1 (March 9, 2015) downloaded from: http://elm-chan.org/fsw/ff/patches.html on 20150804. Signed-off-by: Stephen Warren --- fs/fat/ff.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/fat/ff.c b/fs/fat/ff.c index 30d2e714c8d2..fe7764d6

Re: [U-Boot] driver model is not smp safe

2015-08-07 Thread Bin Meng
Hi Simon, On Sat, Aug 8, 2015 at 3:09 AM, Simon Glass wrote: > Hi Bin, > > On 5 August 2015 at 02:43, Bin Meng wrote: >> Hi Simon, Tom, >> >> On Tue, Aug 4, 2015 at 3:27 AM, Simon Glass wrote: >>> Hi Tom, >>> >>> On 3 August 2015 at 13:06, Tom Rini wrote: On Mon, Aug 03, 2015 at 12:52:19P

Re: [U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file

2015-08-07 Thread Bin Meng
Hi Simon, On Sat, Aug 8, 2015 at 3:26 AM, Simon Glass wrote: > Hi Bin, > > On 7 August 2015 at 03:28, Bin Meng wrote: >> Currently the microcode-tool writes microcode into a data block as >> well as the device tree properties which represents the first 48 >> bytes in the microcode data. Now we c

Re: [U-Boot] [PATCH v3 11/16] net/eth.c: Add function to validate a MAC address

2015-08-07 Thread York Sun
On 07/24/2015 06:55 AM, Codrin Ciubotariu wrote: > The code from common/env_flags.c that checks if a > string has the format of a MAC address has been moved > in net/eth.c as a separate function called > eth_validate_ethaddr_str(). > > Signed-off-by: Codrin Ciubotariu > --- > > Changes for v3: >

Re: [U-Boot] u-boot FIT image support

2015-08-07 Thread York Sun
On 08/07/2015 03:47 PM, Simon Glass wrote: > Hi York, > > On 7 August 2015 at 14:48, York Sun wrote: >> >> Simon, >> >> I was doing an experiment to put the load address and entry address of Linux >> to >> higher than 32-bit address. I found it is broken to process more than 32-bit >> addresse

Re: [U-Boot] [PATCH v3 07/16] common/cmd_ethsw: Add generic commands for Ethernet Switches

2015-08-07 Thread York Sun
On 08/07/2015 01:18 PM, Joe Hershberger wrote: >> + } >> + >> + /* if all our optional command's keywords perfectly match an >> +* optional pattern, then we can move to the next defined >> +* keywords in our command; remember the one tha

Re: [U-Boot] [PATCH v2 8/9] config: bbb: Configs necessary for running update via TFTP on Beagle Bone Black

2015-08-07 Thread Joe Hershberger
Hi Lukasz, On Sat, Jul 25, 2015 at 3:11 AM, Lukasz Majewski wrote: > Signed-off-by: Lukasz Majewski > --- > Changes for v2: > - Do not enable CONFIG_UPDATE_TFTP since CONFIG_DFU_TFTP enables the common > code > - Do not enable CONFIG_CMD_DFUTFTP since dfutftp commands has been removed > --- I

Re: [U-Boot] [PATCH v2 7/9] dfu: command: Extend "dfu" command to handle receiving data via TFTP

2015-08-07 Thread Joe Hershberger
Hi Lukasz, On Sat, Jul 25, 2015 at 3:11 AM, Lukasz Majewski wrote: > The "dfu" command has been extended to support transfers via TFTP protocol. > > Signed-off-by: Lukasz Majewski > --- > Changes for v2: > - Remove "dfutftp" command > - Modify "dfu" command to support optional [tftp] parameter >

Re: [U-Boot] [PATCH v2 6/9] update: tftp: dfu: Extend update_tftp() function to support DFU

2015-08-07 Thread Joe Hershberger
Hi Lukasz, On Sat, Jul 25, 2015 at 3:11 AM, Lukasz Majewski wrote: > This code allows using DFU defined mediums for storing data received via > TFTP protocol. > > It reuses and preserves functionality of legacy code at common/update.c. > > The update_tftp() function now accepts parameters - namel

Re: [U-Boot] [PATCH v2 9/9] dfu:tests: Modify dfu_gadget_test.sh to accept USB device major:minor number

2015-08-07 Thread Joe Hershberger
Hi Lukasz, On Sat, Jul 25, 2015 at 3:11 AM, Lukasz Majewski wrote: > In the dfu-util it is possible to set major:minor number by unsing -d flag > (-d 0451:d022). > Such option is very handy when many DFU devices are connected to a single > host PC. This commit allows testing when above situation

Re: [U-Boot] [PATCH v2 5/9] dfu: tftp: update: Add dfu_write_from_mem_addr() function

2015-08-07 Thread Joe Hershberger
Hi Lukasz, On Sat, Jul 25, 2015 at 3:11 AM, Lukasz Majewski wrote: > This function allows writing via DFU data stored from fixed buffer address > (like e.g. loadaddr env variable). > > Such predefined buffers are used in the update_tftp() code. In fact this > function is a wrapper on the dfu_writ

Re: [U-Boot] [PATCH v2 4/9] dfu: tftp: update: Provide tftp support for the DFU subsystem

2015-08-07 Thread Joe Hershberger
Hi Lukasz, On Sat, Jul 25, 2015 at 3:11 AM, Lukasz Majewski wrote: > This commit adds initial support for using tftp for downloading and > upgrading firmware on the device. > > Signed-off-by: Lukasz Majewski > --- > Changes for v2: > - Return -ENOSYS instead of plain -1 > - Remove interface and

Re: [U-Boot] u-boot FIT image support

2015-08-07 Thread Simon Glass
Hi York, On 7 August 2015 at 14:48, York Sun wrote: > > Simon, > > I was doing an experiment to put the load address and entry address of Linux > to > higher than 32-bit address. I found it is broken to process more than 32-bit > addresses. When I attempted to fix it, I was troubled by those cod

[U-Boot] [PATCH 3/3] ARM: tegra: represent RAM in 1 or 2 banks

2015-08-07 Thread Stephen Warren
From: Stephen Warren Represent all available RAM in either one or two banks. The first bank describes any RAM below 4GB. The second bank describes any RAM above 4GB. This split is driven by the following requirements: - The NVIDIA L4T kernel requires separate entries in the DT /memory/reg prop

[U-Boot] [PATCH 2/3] ARM: tegra: query_sdram_size() cleanup

2015-08-07 Thread Stephen Warren
From: Stephen Warren The return value of query_sdram_size() is assigned directly to gd->ram_size in dram_init(). Adjust the return type to match the field it's assigned to. This has the beneficial effect that on 64-bit systems, the return value can correctly represent large RAM sizes over 4GB. F

[U-Boot] [PATCH 1/3] ARM: tegra: move kernel_addr_r on T210

2015-08-07 Thread Stephen Warren
From: Stephen Warren The new value is the most likely value where the kernel wants to end up at run-time. Selecting this value as the load address likely avoids the need to copy the kernel image from the actual load address to the desired load address. Note that this isn't guaranteed since the ke

Re: [U-Boot] Please pull u-boot-dm

2015-08-07 Thread Tom Rini
On Thu, Aug 06, 2015 at 04:49:13PM -0600, Simon Glass wrote: > Hi Tom, > > This includes some driver model support for devres (managed device > resource framework), I2C multiplexers, some PMIC framework > improvements and USB Ethernet additions. It also includes support for > spring (Exynos5-base

Re: [U-Boot] [PATCH v3 01/16] drivers/net/vsc9953: Remove 'CONFIG_' from macros' name

2015-08-07 Thread York Sun
On 08/07/2015 02:07 PM, Joe Hershberger wrote: > Hi York, > > On Fri, Aug 7, 2015 at 4:02 PM, York Sun wrote: >> >> >> On 08/07/2015 01:17 PM, Joe Hershberger wrote: >>> Hi Codrin, >>> >>> On Fri, Jul 24, 2015 at 8:52 AM, Codrin Ciubotariu >>> wrote: Signed-off-by: Codrin Ciubotariu

Re: [U-Boot] [PATCH v3 01/16] drivers/net/vsc9953: Remove 'CONFIG_' from macros' name

2015-08-07 Thread Joe Hershberger
Hi York, On Fri, Aug 7, 2015 at 4:02 PM, York Sun wrote: > > > On 08/07/2015 01:17 PM, Joe Hershberger wrote: >> Hi Codrin, >> >> On Fri, Jul 24, 2015 at 8:52 AM, Codrin Ciubotariu >> wrote: >>> Signed-off-by: Codrin Ciubotariu >>> --- >> >> Acked-by: Joe Hershberger >> > > Joe, > > Do you wan

Re: [U-Boot] [PATCH v3 01/16] drivers/net/vsc9953: Remove 'CONFIG_' from macros' name

2015-08-07 Thread York Sun
On 08/07/2015 01:17 PM, Joe Hershberger wrote: > Hi Codrin, > > On Fri, Jul 24, 2015 at 8:52 AM, Codrin Ciubotariu > wrote: >> Signed-off-by: Codrin Ciubotariu >> --- > > Acked-by: Joe Hershberger > Joe, Do you want to take them in, or leave them to me? York _

Re: [U-Boot] [PATCH 4/6] arm: socfpga: scan: Factor out IO chain programming

2015-08-07 Thread Dinh Nguyen
On 8/3/15 9:22 AM, Marek Vasut wrote: > Factor out the code which sends JTAG instruction followed by data > into separate function to tidy the code up a little. > > Signed-off-by: Marek Vasut > --- > arch/arm/mach-socfpga/scan_manager.c | 113 > +-- > 1 file ch

[U-Boot] u-boot FIT image support

2015-08-07 Thread York Sun
Simon, I was doing an experiment to put the load address and entry address of Linux to higher than 32-bit address. I found it is broken to process more than 32-bit addresses. When I attempted to fix it, I was troubled by those code used for both host and target, like common/image-fit.c. For exampl

Re: [U-Boot] [PATCH] ARM: drop "optional" from target select in favor of ARCH_VERSATILE

2015-08-07 Thread Joe Hershberger
Hi Masahiro, On Sat, Aug 1, 2015 at 2:39 AM, Masahiro Yamada wrote: > Since commit a26cd04920dc ("arch: Make board selection choices > optional"), Kconfig could create such an insane .config file that > no SoC/board is selected. > > This is now a real problem for Buildroot, for example. > (http:/

Re: [U-Boot] [PATCH 3/6] arm: socfpga: scan: Clean up horrible macros

2015-08-07 Thread Dinh Nguyen
On 8/3/15 9:22 AM, Marek Vasut wrote: > Clean up the horrible macros present in the scan_manager.h . Firstly, > the function scan_mgr_io_scan_chain_prg() is static, yet all the macros > are used only within it, thus there is no point in having them in the > header file. Moreover, the macros are j

Re: [U-Boot] [PATCH 1/2] gpio: Add DW APB GPIO driver

2015-08-07 Thread Simon Glass
Hi Marek, On 7 August 2015 at 14:35, Marek Vasut wrote: > On Friday, August 07, 2015 at 09:13:45 PM, Simon Glass wrote: >> Hi Marek, > > Hi! > >> On 5 August 2015 at 19:49, Marek Vasut wrote: >> > On Wednesday, August 05, 2015 at 04:39:33 PM, Simon Glass wrote: >> >> Hi Marek, >> > >> > Hi Simon

Re: [U-Boot] [PATCH 1/2] gpio: Add DW APB GPIO driver

2015-08-07 Thread Marek Vasut
On Friday, August 07, 2015 at 09:13:45 PM, Simon Glass wrote: > Hi Marek, Hi! > On 5 August 2015 at 19:49, Marek Vasut wrote: > > On Wednesday, August 05, 2015 at 04:39:33 PM, Simon Glass wrote: > >> Hi Marek, > > > > Hi Simon, [...] > >> It's up to you. Normally each bank has a name and the

Re: [U-Boot] [PATCH 10/18] dm: eth: Avoid blocking on packet reception

2015-08-07 Thread Joe Hershberger
Hi Simon, On Mon, Jul 6, 2015 at 5:47 PM, Simon Glass wrote: > Some devices can take a long time to work out whether they have a new packet > or now. For example the ASIX USB Ethernet dongle can take 5 seconds to do > this, since it waits until it gets a new packet on the wire before allowing > t

Re: [U-Boot] CONFIG_DM_ETH USB_ETHER_ASIX Reception Issue on Tegra

2015-08-07 Thread Marek Vasut
On Friday, August 07, 2015 at 09:09:15 PM, Simon Glass wrote: > Hi Marcel, > > On 7 August 2015 at 00:41, Marcel Ziswiler wrote: > > On Thu, 2015-08-06 at 23:29 -0600, Simon Glass wrote: > >> The memalign() function arguments are around the wrong way! > > > > I assume you meant that one: > > >

Re: [U-Boot] [PATCH 2/6] arm: socfpga: scan: Introduce generic JTAG accessor

2015-08-07 Thread Dinh Nguyen
On 8/3/15 9:22 AM, Marek Vasut wrote: > Introduce generic function for accessing the JTAG scan chains in the > SCC manager. Make use of this function throughout the SCC manager to > replace the ad-hoc writes to registers and make the code less cryptic. > > Signed-off-by: Marek Vasut > --- > ar

Re: [U-Boot] [PATCH 1/6] arm: socfpga: scan: Clean up scan_chain_engine_is_idle()

2015-08-07 Thread Dinh Nguyen
On 8/3/15 9:22 AM, Marek Vasut wrote: > Rework this function so it's clear that it is only polling for certain > bits to be cleared. Add kerneldoc. Fix it's return value to be either > 0 on success and -ETIMEDOUT on error and propagate this through the > scan manager code. > > Signed-off-by: Mar

Re: [U-Boot] [PATCH v3 16/16] drivers/net/vsc9953: Add GPL-2.0+ SPDX-License-Identifier

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu wrote: > Signed-off-by: Codrin Ciubotariu > --- > > Changes for v2: > - removed Change-id field; > > Changes for v3: > - this patch also includes the Copyright year updates for the > modified values; > > drivers/net/

Re: [U-Boot] [PATCH v3 15/16] drivers/net/vsc9953: Add commands for VLAN ingress filtering

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu wrote: > The command: > ethsw [port ] 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. > This com

Re: [U-Boot] [PATCH v3 14/16] drivers/net/vsc9953: Add command for shared/private VLAN learning

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu wrote: > 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, t

Re: [U-Boot] [PATCH v3 13/16] drivers/net/vsc9953: Add VLAN commands for VSC9953

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu wrote: > The new added commands can be used to configure VLANs for a port > on both ingress and egress. > > The new commands are: > ethsw [port ] pvid { [help] | show | } > - set/show PVID (ingress and egress VLAN tagging) for a port

Re: [U-Boot] [PATCH v3 12/16] drivers/net/vsc9953: Add commands to manipulate the FDB for VSC9953

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu wrote: > The new command: > ethsw [port ] [vlan ] fdb > { [help] | show | flush | { add | del } } > > Can be used to add and delete FDB entries. Also, the command can be used > to show entries from the FDB tables. When used wi

Re: [U-Boot] [PATCH v3 11/16] net/eth.c: Add function to validate a MAC address

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu wrote: > The code from common/env_flags.c that checks if a > string has the format of a MAC address has been moved > in net/eth.c as a separate function called > eth_validate_ethaddr_str(). > > Signed-off-by: Codrin Ciubotariu > --- >

Re: [U-Boot] [PATCH v3 10/16] drivers/net/vsc9953: Add commands to enable/disable HW learning

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu wrote: > The command: > ethsw [port ] learning { [help] | show | auto | disable } > > can be used to enable/disable HW learning on a port. > This patch also adds this command to the generic ethsw parser from > cmd_ethsw. > > Signed-off

Re: [U-Boot] [PATCH v3 09/16] drivers/net/vsc9953: Add command to show/clear port counters

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu wrote: > The new added command: > ethsw [port ] 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. > This patch also adds this commnd i

Re: [U-Boot] [PATCH v3 05/16] include/bitfield: Add new bitfield operations

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu wrote: > These new operations allow manipulation of bitfields > within a word by using a mask instead of width and > shift values to extract/replace the bitfields. > > Signed-off-by: Codrin Ciubotariu > --- > > Changes for v3: >

Re: [U-Boot] [PATCH v3 08/16] drivers/net/vsc9953: Use the generic Ethernet Switch parser

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu wrote: > This patch replaces the parser used by VSC9953 L2 Switch driver with > the generic one. Also, the config macro that enables the > VSC9953 commands has been replaced in all the platforms that > use this driver with the config m

Re: [U-Boot] [PATCH v3 07/16] common/cmd_ethsw: Add generic commands for Ethernet Switches

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu wrote: > This patch creates a flexible parser for Ethernet Switch > configurations that should support complex commands. > The parser searches for predefined keywords in the command > and calls the proper function when a match is found

Re: [U-Boot] [PATCH v3 06/16] drivers/net/vsc9953: Add default configuration for VSC9953 L2 Switch

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu wrote: > 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,

Re: [U-Boot] [PATCH v3 01/16] drivers/net/vsc9953: Remove 'CONFIG_' from macros' name

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:52 AM, Codrin Ciubotariu wrote: > Signed-off-by: Codrin Ciubotariu > --- Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v3 03/16] drivers/net/vsc9953: Fix bug when enabling a port

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:52 AM, Codrin Ciubotariu wrote: > When a port is enabled at init time, the initializing function > touches more bits than necessary to enable a port (also touches > reserved bits and default bit values). This patch fixes this issue > by changing the value of t

Re: [U-Boot] [PATCH v3 04/16] drivers/net/vsc9953: Fix missing reserved register

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu wrote: > The VSC9953 DS reserves a register between vlan_mask and anag_efil > registers. > > Signed-off-by: Johnson Leung > Signed-off-by: Codrin Ciubotariu > --- > > Changes for v2: > - removed Change-id field; > > Changes f

Re: [U-Boot] [PATCH v3 02/16] drivers/net/vsc9953: Cleanup patch

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:52 AM, Codrin Ciubotariu wrote: > This patch groups some macros defined for registers and > replaces some magic numbers from vsc9953 with macros. Also, > "port" and "port_nr" words are replaced with "port_no", > puts each variable declaration on a line and rem

Re: [U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file

2015-08-07 Thread Simon Glass
Hi Bin, On 7 August 2015 at 03:28, Bin Meng wrote: > Currently the microcode-tool writes microcode into a data block as > well as the device tree properties which represents the first 48 > bytes in the microcode data. Now we change the tool to only write > the microcode without device tree stuff

Re: [U-Boot] [PATCH v3] common: Display >=4GiB memory bank size

2015-08-07 Thread Simon Glass
On 6 August 2015 at 02:31, Bin Meng wrote: > bd->bi_dram[] has both start address and size defined as 32-bit, > which is not the case on some platforms where >=4GiB memory bank > is used. Change them to support such memory banks. > > Signed-off-by: Bin Meng > > --- > > Changes in v3: > - Use %llx

Re: [U-Boot] [PATCH 1/2] gpio: Add DW APB GPIO driver

2015-08-07 Thread Simon Glass
Hi Marek, On 5 August 2015 at 19:49, Marek Vasut wrote: > On Wednesday, August 05, 2015 at 04:39:33 PM, Simon Glass wrote: >> Hi Marek, > > Hi Simon, > >> On 2 August 2015 at 18:16, Marek Vasut wrote: >> > On Monday, August 03, 2015 at 01:38:28 AM, Simon Glass wrote: >> >> Hi Marek, >> > >> > Hi

Re: [U-Boot] [PATCH V3 5/6] power: regulator: add pfuze100 support

2015-08-07 Thread Simon Glass
On 7 August 2015 at 02:43, Peng Fan wrote: > 1. Add new regulator driver pfuze100. >* Introduce struct pfuze100_regulator_desc for maintaining info > for one regulator. > 2. Add new Kconfig entry DM_REGULATOR_PFUZE100 for pfuze100. > 3. This driver intends to support PF100, PF200 and PF30

Re: [U-Boot] [PATCH] x86: baytrail: Add all IDE/SATA PCI device IDs

2015-08-07 Thread Simon Glass
On 6 August 2015 at 03:36, Bin Meng wrote: > The BayTrail SoC has 4 different PCI devices IDs regarding to IDE > and AHCI. Add these IDs in pci_ids.h and also add the other SATA > ID in the Bayley Bay and MinnowMax board configuration header. > > Signed-off-by: Bin Meng > --- > > include/configs

Re: [U-Boot] [PATCH 3/5] Allow arch-specific setting of global_data in board_init_f_mem()

2015-08-07 Thread Simon Glass
Hi Bin, On 6 August 2015 at 01:15, Bin Meng wrote: > Hi Simon, > > On Mon, Aug 3, 2015 at 8:10 AM, Simon Glass wrote: >> At present we have a simple assignment to gd. With some archs this is >> implemented as a register or through some other means; a simple assignment >> does not suit in all cas

Re: [U-Boot] CONFIG_DM_ETH USB_ETHER_ASIX Reception Issue on Tegra

2015-08-07 Thread Simon Glass
Hi Marcel, On 7 August 2015 at 00:41, Marcel Ziswiler wrote: > On Thu, 2015-08-06 at 23:29 -0600, Simon Glass wrote: > >> The memalign() function arguments are around the wrong way! > > I assume you meant that one: > > diff --git a/drivers/usb/eth/usb_ether.c b/drivers/usb/eth/usb_ether.c > index

Re: [U-Boot] driver model is not smp safe

2015-08-07 Thread Simon Glass
Hi Bin, On 5 August 2015 at 02:43, Bin Meng wrote: > Hi Simon, Tom, > > On Tue, Aug 4, 2015 at 3:27 AM, Simon Glass wrote: >> Hi Tom, >> >> On 3 August 2015 at 13:06, Tom Rini wrote: >>> On Mon, Aug 03, 2015 at 12:52:19PM -0600, Simon Glass wrote: Hi Tom, On 31 July 2015 at 08:31

[U-Boot] [PATCH] powerpc/t1024qds: Add missing T1024QDS_DDR4_defconfig

2015-08-07 Thread York Sun
T1024QDS with DDR4 has been supported. Add the missing defconfig. Signed-off-by: York Sun CC: Shengzhou Liu --- configs/T1024QDS_DDR4_defconfig |5 + 1 file changed, 5 insertions(+) create mode 100644 configs/T1024QDS_DDR4_defconfig diff --git a/configs/T1024QDS_DDR4_defconfig b/conf

Re: [U-Boot] [PATCH V3 2/6] power: regulator use node name when no regulator-name

2015-08-07 Thread Simon Glass
On 7 August 2015 at 02:43, Peng Fan wrote: > > If there is no property named 'regulator-name' for regulators, > choose node name instead, but not directly return failure value. > > Signed-off-by: Peng Fan > Cc: Przemyslaw Marczak > Cc: Simon Glass > --- > > Changes v3: > None. > > Changes v2:

Re: [U-Boot] [ANN] U-Boot v2015.07 released

2015-08-07 Thread Wolfgang Denk
Dear Jagan, In message you wrote: > > Any idea why would openedev missing on employer, does we need to > indicate some where > as all code was s-o-b openedev.com openedev.com has no entry in the domain-map. What should I add? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH,

Re: [U-Boot] [PATCH V2] imx: mx6 move TARGET_xx Kconfig option to mx6 specific Kconfig file

2015-08-07 Thread Otavio Salvador
On Fri, Aug 7, 2015 at 9:35 AM, Peng Fan wrote: > Move TARGET_xx Kconfig option based on mx6 to arch/arm/cpu/armv7/mx6/Kconfig. > Add enable "CONFIG_ARCH_MX6" for boards based on mx6. > Then we can choose target boards using "make ARCH=arm menuconfig" > with ARCH_MX6 defined. > > If using original

[U-Boot] [PATCH v3 10/11] arm: rpi: Move to driver model for USB

2015-08-07 Thread Simon Glass
Start using driver model for USB on the Raspberry Pi. The dwc2 supports this now so this is just a config change. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None configs/rpi_defconfig| 2 ++ include/configs/rpi-common.h | 5 - 2 files changed, 2 insertions(+)

[U-Boot] [PATCH v3 04/11] arm: rpi: Device tree modifications for U-Boot

2015-08-07 Thread Simon Glass
This updates the device tree from the kernel version to something suitable for U-Boot: - Add stdout-path alias for console - Mark the /soc node to be available pre-relocation so that the early serial console works (we need the 'ranges' property to be available) Signed-off-by: Simon Glass --- Ch

[U-Boot] [PATCH v3 06/11] arm: rpi: Enable device tree control for Rasberry Pi

2015-08-07 Thread Simon Glass
Enable device tree control so that we can use driver model fully and avoid using platform data. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None configs/rpi_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/rpi_defconfig b/configs/rpi_defconfig inde

[U-Boot] [PATCH v3 09/11] arm: rpi: Drop the GPIO platform data

2015-08-07 Thread Simon Glass
We can rely on the device tree to provide the GPIO information. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/mach-bcm283x/include/mach/gpio.h | 5 - board/raspberrypi/rpi/rpi.c | 9 - drivers/gpio/bcm2835_gpio.c | 20

[U-Boot] [PATCH v3 11/11] arm: rpi: Use driver model for Ethernet

2015-08-07 Thread Simon Glass
Enable CONFIG_DM_ETH so that driver model is used for the USB Ethernet device. Signed-off-by: Simon Glass --- Changes in v3: - Drop applied patches from series - Drop patch to introduce usbethaddr for driver model Changes in v2: None configs/rpi_defconfig | 1 + 1 file changed, 1 insertion(+)

[U-Boot] [PATCH v3 08/11] arm: rpi: Drop the UART console platform data

2015-08-07 Thread Simon Glass
We can rely on the device tree to provide the UART information. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None board/raspberrypi/rpi/rpi.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index

[U-Boot] [PATCH v3 07/11] arm: rpi: Enable device tree control for Rasberry Pi 2

2015-08-07 Thread Simon Glass
Enable device tree control so that we can use driver model fully and avoid using platform data. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Add support for Raspberry Pi 2 configs/rpi_2_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/rpi_2_def

[U-Boot] [PATCH v3 03/11] arm: rpi: Bring in kernel device tree files

2015-08-07 Thread Simon Glass
Bring in the device tree files from Linux v4.1. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/dts/Makefile | 2 + arch/arm/dts/bcm2835-rpi-b.dts| 23 arch/arm/dts/bcm2835-rpi.dtsi | 51 + arch/arm/dts/bcm2835.dt

[U-Boot] [PATCH v3 05/11] arm: rpi: Add device tree files for Raspberry Pi 2

2015-08-07 Thread Simon Glass
These are taken from Eric Anholt's April series here: https://patchwork.kernel.org/patch/6252531/ I doubt they final. We can update then here or bring in the kernel version when it lands. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Add support for Raspberry Pi 2 arch/

[U-Boot] [PATCH v3 01/11] dm: serial: Update binding for PL01x serial UART

2015-08-07 Thread Simon Glass
This binding differs from that of Linux. Update it and change existing users. Signed-off-by: Simon Glass --- Changes in v3: - Rename binding file to pl01x.txt Changes in v2: None arch/arm/dts/stv0991.dts | 2 +- doc/device-tree-bindings/serial/pl01x.txt | 55

[U-Boot] [PATCH v3 02/11] arm: rpi: Define CONFIG_TFTP_TSIZE to show tftp size info

2015-08-07 Thread Simon Glass
This shows a proper progress display and the total amount of data transferred. Enable it for Raspberry Pi. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/configs/rpi-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/rpi-common.h b/incl

Re: [U-Boot] [PATCH] imx: mx6 move TARGET_xx Kconfig option to mx6 specific Kconfig file

2015-08-07 Thread Masahiro Yamada
2015-08-07 19:02 GMT+09:00 Marek Vasut : > On Friday, August 07, 2015 at 09:33:02 AM, Stefano Babic wrote: >> Hi Peng, Soeren, > > Hi, > >> On 07/08/2015 09:19, Soeren Moch wrote: >> > Peng, >> > >> > Sorry for being unclear here. >> > >> > In your patch you add several options in arch/arm/cpu/armv

[U-Boot] [PATCH v3 00/11] arm: rpi: Enable USB and Ethernet driver model Raspberry Pi

2015-08-07 Thread Simon Glass
Raspberry Pi uses a DWC2 USB controller and a SMSC USB Ethernet adaptor. Driver model support for these was recently merged. This series does the following: - Move Raspberry Pi to use device tree control (u-boot-dtb.bin instead of u-boot.bin) - Remove GPIO platform data (now uses device tree)

[U-Boot] [PATCH 2/4] armv8: fsl-lsch3: Initiaze 4 MACs per QSGMII in dpmac_info

2015-08-07 Thread Prabhakar Kushwaha
Every QSGMII SerDes Protocol usage 4 MACs. So add/repeat QSGMII information for 4 MACs in dpmac_info strucuture. Signed-off-by: King Chung l...@freescale.com Signed-off-by: Prabhakar Kushwaha --- arch/arm/cpu/armv8/fsl-lsch3/fsl_lsch3_serdes.c | 33 - 1 file changed, 32

[U-Boot] [PATCH 2/4] armv8: fsl-lsch3: Initiaze 4 MACs per QSGMII in dpmac_info

2015-08-07 Thread Prabhakar Kushwaha
Every QSGMII SerDes Protocol usage 4 MACs. So add/repeat QSGMII information for 4 MACs in dpmac_info strucuture. Signed-off-by: King Chung l...@freescale.com Signed-off-by: Prabhakar Kushwaha --- arch/arm/cpu/armv8/fsl-lsch3/fsl_lsch3_serdes.c | 33 - 1 file changed, 32

Re: [U-Boot] [PATCH v4] x86: baytrail: Configure FSP UPD from device tree

2015-08-07 Thread Bin Meng
On Fri, Aug 7, 2015 at 8:36 PM, Andrew Bradford wrote: > From: Andrew Bradford > > Allow for configuration of FSP UPD from the device tree which will > override any settings which the FSP was built with itself. > > Modify the MinnowMax and BayleyBay boards to transfer sensible UPD > settings from

[U-Boot] [PATCH v4] x86: baytrail: Configure FSP UPD from device tree

2015-08-07 Thread Andrew Bradford
From: Andrew Bradford Allow for configuration of FSP UPD from the device tree which will override any settings which the FSP was built with itself. Modify the MinnowMax and BayleyBay boards to transfer sensible UPD settings from the Intel FSPv4 Gold release to the respective dts files, with the

[U-Boot] [PATCH V2] imx: mx6 move TARGET_xx Kconfig option to mx6 specific Kconfig file

2015-08-07 Thread Peng Fan
Move TARGET_xx Kconfig option based on mx6 to arch/arm/cpu/armv7/mx6/Kconfig. Add enable "CONFIG_ARCH_MX6" for boards based on mx6. Then we can choose target boards using "make ARCH=arm menuconfig" with ARCH_MX6 defined. If using original way, we have no chance to enable ARCH_MX6 when "make menuco

[U-Boot] [PATCH 1/4] armv8: ls2085a: Update serdes1_cfg_tbl for 0x33 & 0x35 protocol

2015-08-07 Thread Prabhakar Kushwaha
Update 0x33 and 0x35 serdes protocol as per updated SoC document in array serdes1_cfg_tbl. Signed-off-by: Prabhakar Kushwaha --- arch/arm/cpu/armv8/fsl-lsch3/ls2085a_serdes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/cpu/armv8/fsl-lsch3/ls2085a_serdes.c

[U-Boot] [PATCH 4/4] armv8: ls2085qds: Add support of X-QSGMII-16PORT riser card

2015-08-07 Thread Prabhakar Kushwaha
The X-QSGMII-16PORT is a 4xQSGMII/8xSGMII riser card with eighth SerDes interfaces implemented in PCIe form factor board. It supports followings - Card can operate with up to 4 QSGMII lane simultaneously - Card can operate with up to 8 SGMII lane simultaneously Add support of X-QSGMII-16PORT ris

[U-Boot] [PATCH 3/4] net: phy/vitesse: Add support for VSC8584 phy

2015-08-07 Thread Prabhakar Kushwaha
Add support of VSC8584 phy placed on new QSGMII/SGMII ethernet riser cards used on LS2085QDS platforms. Signed-off-by: King Chung l...@freescale.com Signed-off-by: Prabhakar Kushwaha --- drivers/net/phy/vitesse.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/phy/v

Re: [U-Boot] [PATCH v3] x86: baytrail: Configure FSP UPD from device tree

2015-08-07 Thread Bin Meng
Hi Andrew, On Fri, Aug 7, 2015 at 8:11 PM, Andrew Bradford wrote: > Hi Bin, > > On 08/07 08:23, Bin Meng wrote: >> Hi Andrew, >> >> On Fri, Aug 7, 2015 at 4:08 AM, Andrew Bradford >> wrote: >> > From: Andrew Bradford >> > >> > Allow for configuration of FSP UPD from the device tree which will >

[U-Boot] [PATCH] arm/ls102xa:add hwconfig setting to support disable unused devices.

2015-08-07 Thread Zhuoyu Zhang
DEVDISRn registers provides a mechanism for gating clocks of IP blocks that are not used. Here we implement hwconfig option to allow users to disable unused peripherals on the board. For ex. If eSDHC/qDMA/eDMA are unused and with disabled status in dts, User can also enable CONFIG_DEVICE_DISABLE a

Re: [U-Boot] [PATCH v3] x86: baytrail: Configure FSP UPD from device tree

2015-08-07 Thread Andrew Bradford
Hi Bin, On 08/07 08:23, Bin Meng wrote: > Hi Andrew, > > On Fri, Aug 7, 2015 at 4:08 AM, Andrew Bradford > wrote: > > From: Andrew Bradford > > > > Allow for configuration of FSP UPD from the device tree which will > > override any settings which the FSP was built with itself. > > > > Modify th

Re: [U-Boot] [PATCH] imx: mx6 move TARGET_xx Kconfig option to mx6 specific Kconfig file

2015-08-07 Thread Marek Vasut
On Friday, August 07, 2015 at 09:33:02 AM, Stefano Babic wrote: > Hi Peng, Soeren, Hi, > On 07/08/2015 09:19, Soeren Moch wrote: > > Peng, > > > > Sorry for being unclear here. > > > > In your patch you add several options in arch/arm/cpu/armv7/mx6/Kconfig > > under "MX6 board select". Some of

Re: [U-Boot] [PATCH 07/12] sniper: Serial number support, obtained from die ID

2015-08-07 Thread Paul Kocialkowski
Le mardi 04 août 2015 à 14:27 -0400, Tom Rini a écrit : > On Tue, Aug 04, 2015 at 08:22:39PM +0200, Paul Kocialkowski wrote: > > Le mardi 04 août 2015 à 14:16 -0400, Tom Rini a écrit : > > > On Tue, Aug 04, 2015 at 08:02:40PM +0200, Paul Kocialkowski wrote: > > > > Le lundi 03 août 2015 à 22:08 -04

[U-Boot] [PATCH 4/4] x86: baytrail: Support multiple microcode copies

2015-08-07 Thread Bin Meng
Intel FSP has the capability to walk through the microcode blocks which are passed as the TempRamInit() parameter from U-Boot and finds the most appropriate microcode which is suitable for the cpu on which it is running. Now we've seen several steppings for Intel BayTrail series processors, adding

[U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file

2015-08-07 Thread Bin Meng
Currently the microcode-tool writes microcode into a data block as well as the device tree properties which represents the first 48 bytes in the microcode data. Now we change the tool to only write the microcode without device tree stuff so that multiple microcode data blocks can be included in a s

[U-Boot] [PATCH 2/4] x86: Update microcode dtsi and board dts files per microcode-tool

2015-08-07 Thread Bin Meng
As the updated microcode-tool doesn't write dts properties into the microcode dtsi files, update the existing dtsi and board dts files to keep sync with the tool. Note for FSP based boards, add a new property "intel,fsp-parser" which indicates it will be consumed by Intel FSP and the properties for

[U-Boot] [PATCH V3 4/6] power: pmic: pfuze100 support driver model

2015-08-07 Thread Peng Fan
1. Support driver model for pfuze100. 2. Introduce a new Kconfig entry DM_PMIC_PFUZE100 for pfuze100 3. This driver intends to support PF100, PF200 and PF3000, so add the device id into the udevice_id array. 4. Rename PMIC_NUM_OF_REGS macro to PFUZE100_NUM_OF_REGS. Signed-off-by: Peng Fan Cc:

[U-Boot] [PATCH V3 5/6] power: regulator: add pfuze100 support

2015-08-07 Thread Peng Fan
1. Add new regulator driver pfuze100. * Introduce struct pfuze100_regulator_desc for maintaining info for one regulator. 2. Add new Kconfig entry DM_REGULATOR_PFUZE100 for pfuze100. 3. This driver intends to support PF100, PF200 and PF3000. 4. Add related macro definition in pfuze header fi

[U-Boot] [PATCH V3 6/6] fsl: common: pfuze: no use original pfuze code if DM_PMIC

2015-08-07 Thread Peng Fan
If enable DM PMIC and REGULATOR, we should not use original power framework. So need to comment out the pfuze code for original power framework, when CONFIG_DM_PMIC_PFUZE100 defined. Signed-off-by: Peng Fan Cc: Przemyslaw Marczak Cc: Simon Glass Cc: Stefano Babic Reviewed-by: Simon Glass ---

[U-Boot] [PATCH V3 3/6] power: regulator: update comments for regulator-name

2015-08-07 Thread Peng Fan
We do not need that "regulator-name" property must be provided in dts. If "regulator-name" property is not provided in dts, node name will chosen for settings '.name' field of uc_pdata. Signed-off-by: Peng Fan Cc: Przemyslaw Marczak Cc: Simon Glass --- Changes v3: Keep "regulator-name = "VDD_

[U-Boot] [PATCH V3 2/6] power: regulator use node name when no regulator-name

2015-08-07 Thread Peng Fan
If there is no property named 'regulator-name' for regulators, choose node name instead, but not directly return failure value. Signed-off-by: Peng Fan Cc: Przemyslaw Marczak Cc: Simon Glass --- Changes v3: None. Changes v2: None. The comments update patch, see 3/6. drivers/power/regulato

  1   2   >