[U-Boot] [PATCH v2 9/9] x86: crownbay: Add MP initialization

2015-06-11 Thread Bin Meng
Intel Crown Bay board has a TunnelCreek processor which supports hyper-threading. Add /cpus node in the crownbay.dts and enable the MP initialization. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v2: - Move CONFIG_MAX_CPUS after CONFIG_SMP in crownbay_defconfig to match the o

[U-Boot] [PATCH v2 8/9] x86: Clean up lapic codes

2015-06-11 Thread Bin Meng
This commit cleans up the lapic codes: - Delete arch/x86/include/asm/lapic_def.h, and move register and bit defines into arch/x86/include/asm/lapic.h - Use MSR defines from msr-index.h in enable_lapic() and disable_lapic() - Remove unnecessary stuff like NEED_LAPIC, X86_GOOD_APIC and CONFIG_AP_

[U-Boot] [PATCH v2 6/9] x86: kconfig: Fix minor nits in MAX_CPUS

2015-06-11 Thread Bin Meng
Move MAX_CPUS definition after SMP so that it shows below SMP in the menuconfig. Also replace the leading spaces in the MAX_CPUS section with tabs to conform coding standard. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v2: None arch/x86/Kconfig | 24

[U-Boot] [PATCH v2 1/9] dm: cpu: Fix undefined ENOSYS build error

2015-06-11 Thread Bin Meng
Include otherwise ENOSYS is undefined. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v2: None common/cmd_cpu.c | 1 + drivers/cpu/cpu-uclass.c | 1 + 2 files changed, 2 insertions(+) diff --git a/common/cmd_cpu.c b/common/cmd_cpu.c index c3e229f..b4af64f 100644 --- a/

[U-Boot] [PATCH v2 4/9] x86: Move MP initialization codes into a common place

2015-06-11 Thread Bin Meng
Most of the MP initialization codes in arch/x86/cpu/baytrail/cpu.c is common to all x86 processors, except detect_num_cpus() which varies from cpu to cpu. Move these to arch/x86/cpu/cpu.c and declare a weak detect_num_cpus() which just returns 2 which is minimally required. Signed-off-by: Bin Meng

[U-Boot] [PATCH v2 7/9] x86: Move lapic_setup() call into init_bsp()

2015-06-11 Thread Bin Meng
Currently lapic_setup() is called before calling mp_init(), which then calls init_bsp() where it calls enable_lapic(), which was already enabled in lapic_setup(). Hence move lapic_setup() call into init_bsp() to avoid the duplication. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in

[U-Boot] [PATCH v2 5/9] x86: kconfig: Make MAX_CPUS and AP_STACK_SIZE depend on SMP

2015-06-11 Thread Bin Meng
MAX_CPUS and AP_STACK_SIZE are only meaningful when SMP is on. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v2: None arch/x86/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 3506ba2..d4cd9ed 100644 --- a/arch/x86/Kconfig

[U-Boot] [PATCH v2 2/9] dm: cpu: Test against cpu_ops->get_info in cpu_get_info()

2015-06-11 Thread Bin Meng
In cpu_get_info() it wrongly tests against cpu_ops->get_desc to see if it is NULL. It should test against cpu_ops->get_info. Signed-off-by: Bin Meng --- 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/d

[U-Boot] [PATCH v2 3/9] x86: dm: Clean up cpu drivers

2015-06-11 Thread Bin Meng
This commit does the following to clean up x86 cpu dm drivers: - Move cpu_x86 driver codes from arch/x86/cpu/cpu.c to a dedicated file arch/x86/cpu/cpu_x86.c - Rename x86_cpu_get_desc() to cpu_x86_get_desc() to keep consistent naming with other dm drivers - Add a new cpu_x86_bind() in the cpu_x

Re: [U-Boot] Possible incoherence in UBI attaching, incorrect bad PEBs

2015-06-11 Thread Heiko Schocher
Hello Walter, Am 11.06.2015 19:04, schrieb Walter Mollica: Hi everyone, I am writing to get some information about what seems to be an incongruency in the U-Boot's UBI subsystem. I am using U-Boot 2015.04/2015.01 (haven't tried with previous versions), cloned today from the git tree on denx.de,

Re: [U-Boot] [PATCH 4/9] x86: Move MP initialization codes into a common place

2015-06-11 Thread Bin Meng
Hi Simon, On Fri, Jun 12, 2015 at 7:39 AM, Simon Glass wrote: > Hi Bin, > > On 9 June 2015 at 01:45, Bin Meng wrote: >> Most of the MP initialization codes in arch/x86/cpu/baytrail/cpu.c is >> common to all x86 processors, except detect_num_cpus() which varies >> from cpu to cpu. Move these to a

[U-Boot] [PATCH] mmc_write.c: Make mmc_berase do 32bit safe 64bit math

2015-06-11 Thread Tom Rini
We want to see if the requested start or total block count are unaligned. We discard the whole numbers and only care about the remainder. Update the code to use div_u64_rem here and add a comment. Cc: Hans de Goede Cc: Pantelis Antoniou Cc: Bernhard Nortmann Reported-by: Simon Glass Signed-o

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

2015-06-11 Thread Tom Rini
On Thu, Jun 11, 2015 at 11:08:44AM -0400, Tom Rini wrote: > On Thu, Jun 11, 2015 at 03:44:10PM +0200, Hans de Goede wrote: > > Hi, > > > > On 11-06-15 14:56, Tom Rini wrote: > > >On Thu, Jun 11, 2015 at 09:41:29AM +0200, Hans de Goede wrote: > > >>Hi, > > >> > > >>On 11-06-15 04:49, Simon Glass wr

Re: [U-Boot] [PATCH 7/9] x86: Move lapic_setup() call into init_bsp()

2015-06-11 Thread Simon Glass
On 9 June 2015 at 01:45, Bin Meng wrote: > Currently lapic_setup() is called before calling mp_init(), which > then calls init_bsp() where it calls enable_lapic(), which was > already enabled in lapic_setup(). Hence move lapic_setup() call > into init_bsp() to avoid the duplication. > > Signed-off

Re: [U-Boot] [PATCH 9/9] x86: crownbay: Add MP initialization

2015-06-11 Thread Simon Glass
On 9 June 2015 at 01:45, Bin Meng wrote: > Intel Crown Bay board has a TunnelCreek processor which supports > hyper-threading. Add /cpus node in the crownbay.dts and enable > the MP initialization. > > Signed-off-by: Bin Meng > > --- > > arch/x86/dts/crownbay.dts | 20 > co

Re: [U-Boot] [PATCH 1/9] dm: cpu: Fix undefined ENOSYS build error

2015-06-11 Thread Simon Glass
On 9 June 2015 at 01:45, Bin Meng wrote: > > Include otherwise ENOSYS is undefined. > > Signed-off-by: Bin Meng > --- > > common/cmd_cpu.c | 1 + > drivers/cpu/cpu-uclass.c | 1 + > 2 files changed, 2 insertions(+) Acked-by: Simon Glass ___

Re: [U-Boot] [PATCH 8/9] x86: Clean up lapic codes

2015-06-11 Thread Simon Glass
On 9 June 2015 at 01:45, Bin Meng wrote: > This commit cleans up the lapic codes: > - Delete arch/x86/include/asm/lapic_def.h, and move register and bit > defines into arch/x86/include/asm/lapic.h > - Use MSR defines from msr-index.h in enable_lapic() and disable_lapic() > - Remove unnecessary s

Re: [U-Boot] [PATCH 5/9] x86: kconfig: Make MAX_CPUS and AP_STACK_SIZE depend on SMP

2015-06-11 Thread Simon Glass
On 9 June 2015 at 01:45, Bin Meng wrote: > > MAX_CPUS and AP_STACK_SIZE are only meaningful when SMP is on. > > Signed-off-by: Bin Meng > --- > > arch/x86/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Simon Glass ___ U-Boot mailing list

Re: [U-Boot] [PATCH 6/9] x86: kconfig: Fix minor nits in MAX_CPUS

2015-06-11 Thread Simon Glass
On 9 June 2015 at 01:45, Bin Meng wrote: > Move MAX_CPUS definition after SMP so that it shows below SMP in the > menuconfig. Also replace the leading spaces in the MAX_CPUS section > with tabs to conform coding standard. > > Signed-off-by: Bin Meng > --- > > arch/x86/Kconfig | 24 --

Re: [U-Boot] [PATCH 3/9] x86: dm: Clean up cpu drivers

2015-06-11 Thread Simon Glass
On 9 June 2015 at 01:45, Bin Meng wrote: > This commit does the following to clean up x86 cpu dm drivers: > - Move cpu_x86 driver codes from arch/x86/cpu/cpu.c to a dedicated > file arch/x86/cpu/cpu_x86.c > - Rename x86_cpu_get_desc() to cpu_x86_get_desc() to keep consistent > naming with othe

Re: [U-Boot] [PATCH 4/9] x86: Move MP initialization codes into a common place

2015-06-11 Thread Simon Glass
Hi Bin, On 9 June 2015 at 01:45, Bin Meng wrote: > Most of the MP initialization codes in arch/x86/cpu/baytrail/cpu.c is > common to all x86 processors, except detect_num_cpus() which varies > from cpu to cpu. Move these to arch/x86/cpu/cpu.c and declare a weak > detect_num_cpus() which just retu

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

2015-06-11 Thread Simon Glass
Hi Tom, These are mostly the pre-work to enable device tree/driver model in SPL. They were originally sent as part of a rockchip series. I've applied these now since they've been sitting for a while, but unfortunately the rockchip work has expanded considerably and in any case is not ready to send

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

2015-06-11 Thread Bernhard Nortmann
(The post to the ML was here: http://lists.denx.de/pipermail/u-boot/2015-June/216284.html) I've been asking around a bit on the issue on IRC in #linux-sunxi and #u-boot (and originally contacted Hans on this). The user "Kasreyn" brought the subject up on #linux-sunxi, reporting that his Banana Pi

Re: [U-Boot] dtoverlay for mx6 ARM

2015-06-11 Thread Johann Obermayr
Am 11.06.2015 um 22:13 schrieb Jakub Kiciński: On Thu, 11 Jun 2015 21:49:57 +0200, Johann Obermayr wrote: Hello, Hi there, for raspberyy pi there are some "features" available. dtoverlay, dtparam, ... we have a Freescale mx6 CPU. How we can add/enable this features ? I'm new to U-Boot but

Re: [U-Boot] [PATCH v2 05/18] Add a simple version of memalign()

2015-06-11 Thread Simon Glass
On 12 May 2015 at 14:55, Simon Glass wrote: > This is used when the full malloc() is not available. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add a new patch for memalign_simple() > > common/malloc_simple.c | 14 ++ > 1 file changed, 14 insertions(+) Applied to u-b

Re: [U-Boot] [PATCH v2 78/80] dm: usb: tegra: Drop legacy USB code

2015-06-11 Thread Simon Glass
On 25 March 2015 at 12:23, Simon Glass wrote: > Drop the code that doesn't use driver model for USB. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > board/nvidia/common/board.c | 3 - > drivers/usb/host/ehci-tegra.c | 150 > -- > incl

Re: [U-Boot] [PATCH 03/14] sandbox: Move CONFIG_SANDBOX_SERIAL to Kconfig

2015-06-11 Thread Simon Glass
On 6 March 2015 at 13:19, Simon Glass wrote: > Move this over to Kconfig and tidy up. > > Signed-off-by: Simon Glass > --- > > configs/sandbox_defconfig | 1 + > drivers/serial/Kconfig | 20 > drivers/serial/serial-uclass.c | 5 +++-- > include/configs/sandbox

Re: [U-Boot] [PATCH v2 06/18] Remove SPL undefine of CONFIG_OF_CONTROL

2015-06-11 Thread Simon Glass
On 12 May 2015 at 14:55, Simon Glass wrote: > Allow SPL to be built with this option so that we can support device tree > control. Disable the simple bus for now in SPL. It may be needed later. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/core/Makefile | 2 ++ >

Re: [U-Boot] [PATCH v2 04/18] dm: serial: Don't support CONFIG_CONS_INDEX with device tree

2015-06-11 Thread Simon Glass
On 12 May 2015 at 14:55, Simon Glass wrote: > This feature should be deprecated for new boards, and significantly adds > to SPL code size. Drop it. Instead, we can use stdout-path in the /chosen > node. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/serial/serial-uclass

Re: [U-Boot] [PATCH v2 03/18] dts: Disable device tree for SPL on all boards

2015-06-11 Thread Simon Glass
On 12 May 2015 at 14:55, Simon Glass wrote: > We plan to enable device tree in SPL by default. Before doing this, > explicitly disable it for all boards. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/arm/Kconfig | 2 ++ > arch/arm/cpu/armv7/exynos/

Re: [U-Boot] [PATCH v2 02/18] fdt: arm: Drop device tree padding

2015-06-11 Thread Simon Glass
On 12 May 2015 at 14:55, Simon Glass wrote: > The 4KB padding doesn't seem necessary since we don't normally adjust the > control device tree file within U-Boot. Also drop the memory table space. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Also drop the memory table space > > arc

Re: [U-Boot] [PATCH v2 01/18] dm: ns16550: Support CONFIG_SYS_NS16550_MEM32 with driver model

2015-06-11 Thread Simon Glass
On 12 May 2015 at 14:55, Simon Glass wrote: > This option is used by some boards, so support it with driver model. This > is really ugly - we should rewrite this driver once all users are moved to > driver model. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Simplify the support for

Re: [U-Boot] [PATCH v2 6/9] lcd: Support colour lookup table on 16bpp display in BMP images

2015-06-11 Thread Simon Glass
On 13 May 2015 at 07:02, Simon Glass wrote: > For 16-bit-per-pixel displays it is useful to support 8 bit-per-pixel > images to reduce image size. Add support for this when drawing BMP images. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > common/lcd.c | 23

Re: [U-Boot] [PATCH v2 5/9] Remove typedefs from bmp_layout.h

2015-06-11 Thread Simon Glass
On 13 May 2015 at 09:38, Joe Hershberger wrote: > Hi Simon, > > On Wed, May 13, 2015 at 8:02 AM, Simon Glass wrote: >> We try to avoid typedefs and these ones are easy enough to remove. Before >> changing this header in the next patch, remove the typedefs. >> >> Signed-off-by: Simon Glass >> Sug

Re: [U-Boot] [PATCH v2 4/9] sandbox: Add an implementation for cleanup_before_linux_select()

2015-06-11 Thread Simon Glass
On 13 May 2015 at 07:02, Simon Glass wrote: > Support this function so we can use Chrome OS verified boot with sandbox. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/sandbox/cpu/cpu.c | 5 + > 1 file changed, 5 insertions(+) Applied to u-boot-dm.

Re: [U-Boot] [PATCH v2 3/9] arm: Allow cleanup_before_linux() without disabling caches

2015-06-11 Thread Simon Glass
On 13 May 2015 at 07:02, Simon Glass wrote: > This function is used before jumping to U-Boot, but in that case we don't > always want to disable caches. > > Signed-off-by: Simon Glass > Signed-off-by: Vadim Bendebury > --- > > Changes in v2: None > > arch/arm/cpu/armv7/cpu.c | 47 ++

Re: [U-Boot] [PATCH] dm: tegra: usb: Move USB to driver model

2015-06-11 Thread Simon Glass
On 6 May 2015 at 20:16, Marek Vasut wrote: > On Wednesday, May 06, 2015 at 10:00:16 PM, Simon Glass wrote: >> Somehow this change was dropped in the various merges. I noticed when I >> came to turn off the non-driver-model support for Tegra. We need to make >> this change (and deal with any proble

Re: [U-Boot] [PATCH v2 2/9] arm: spl: Add an API to detect when U-Boot is started from SPL

2015-06-11 Thread Simon Glass
On 13 May 2015 at 07:02, Simon Glass wrote: > For secure boot systems it is common to have a read-only U-Boot which starts > the machine and jumps to a read-write U-Boot for actual booting the OS. This > allows the read-write U-Boot to be upgraded without risk of permanently > bricking the machine

Re: [U-Boot] [PATCH v2 1/9] dm: usb: Implement usb_detect_change() for driver model

2015-06-11 Thread Simon Glass
On 13 May 2015 at 07:02, Simon Glass wrote: > Support this function with driver model also (CONFIG_DM_USB). > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Fix use of 'hub' instead of 'dev' in usb_detect_change() > > drivers/usb/host/usb-uclass.c | 43 > +

Re: [U-Boot] [PATCH] dm: i2c: Add compatibility functions for dm_i2c_reg_read/write()

2015-06-11 Thread Simon Glass
On 18 May 2015 at 00:03, Heiko Schocher wrote: > > Hello Simon, > > Am 16.05.2015 23:01, schrieb Simon Glass: >> >> Add the legacy i2c_reg_read/write() functions to the compatibility layer >> so that they can be used when CONFIG_DM_I2C_COMPAT is defined. >> >> Signed-off-by: Simon Glass >> --- >>

Re: [U-Boot] dtoverlay for mx6 ARM

2015-06-11 Thread Jakub Kiciński
On Thu, 11 Jun 2015 21:49:57 +0200, Johann Obermayr wrote: > Hello, Hi there, > for raspberyy pi there are some "features" available. > dtoverlay, dtparam, ... > we have a Freescale mx6 CPU. > How we can add/enable this features ? I'm new to U-Boot but on RPi the "features" are provided by thei

Re: [U-Boot] [PATCH] board/BuR/common: support timer5 for pwm-backlight

2015-06-11 Thread Simon Glass
Hi, On 11 June 2015 at 04:25, Hannes Schmelzer wrote: > > in future we support yet another b&r am335x based board, where Timer 5 is > wired to backlight-driver. > > So we introduce a new driver-type '2' to setup timer5 instead timer6. > > Signed-off-by: Hannes Schmelzer > Reviewed-by: Simon Gla

[U-Boot] dtoverlay for mx6 ARM

2015-06-11 Thread Johann Obermayr
Hello, for raspberyy pi there are some "features" available. dtoverlay, dtparam, ... we have a Freescale mx6 CPU. How we can add/enable this features ? regards Johann ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/

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

2015-06-11 Thread Vikas MANOCHA
Hi Stephen, Any comments on the patchset. Rgds, Vikas > -Original Message- > From: Vikas MANOCHA > Sent: Tuesday, June 09, 2015 6:25 PM > To: u-boot@lists.denx.de; s...@denx.de; grmo...@opensource.altera.com; > dingu...@opensource.altera.com > Cc: Vikas MANOCHA > Subject: [PATCH 0/3] spi:

[U-Boot] Very slow fatload on bcm2835

2015-06-11 Thread Jakub Kicinski
Hello! I'm using latest git source of U-Boot on Raspberry Pi Compute Module and performance of fatload is quite bad. Does anyone have any clue about what can be wrong? Is it the lack of cache? Sample boot log: U-Boot 2015.07-rc2-dirty (Jun 11 2015 - 17:03:17 +0200)

[U-Boot] Possible incoherence in UBI attaching, incorrect bad PEBs

2015-06-11 Thread Walter Mollica
Hi everyone, I am writing to get some information about what seems to be an incongruency in the U-Boot's UBI subsystem. I am using U-Boot 2015.04/2015.01 (haven't tried with previous versions), cloned today from the git tree on denx.de, on a SAMA5D3XEK hardware with a NAND Flash. There's a newly

Re: [U-Boot] [PATCH] sunxi: Select CONFIG_CMD_NET and CONFIG_CMD_SETEXPR by default

2015-06-11 Thread Joe Hershberger
Hi Tom, On Thu, Jun 11, 2015 at 10:12 AM, Tom Rini wrote: > On Thu, Jun 11, 2015 at 09:14:33AM -0500, Joe Hershberger wrote: >> Hi Tom, >> >> On Wed, Jun 3, 2015 at 5:12 PM, Tom Rini wrote: >> > On Wed, Jun 03, 2015 at 08:12:16PM +0200, Hans de Goede wrote: >> > >> >> Select CONFIG_CMD_NET and C

Re: [U-Boot] [PATCH] blackfin: fix undefined reference to srand and rand

2015-06-11 Thread Masahiro Yamada
2015-06-11 23:25 GMT+09:00 Joe Hershberger : > Hi Masahiro-san, > > On Thu, Jun 11, 2015 at 5:16 AM, Masahiro Yamada > wrote: >> Commit 9ba9e85f3f1c (net: Fix NET_RANDOM_ETHADDR dependencies) >> accidentally dropped CONFIG_LIB_RAND defines for 14 Blackfin boards. >> >> Prior to that commit, those

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

2015-06-11 Thread Codrin Ciubotariu
The VSC9953 DS reserves a register between vlan_mask and anag_efil registers. Signed-off-by: Johnson Leung Change-Id: Ia7998cfcae932e8c1146dec98d6c6493b6bc1192 --- include/vsc9953.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/vsc9953.h b/include/vsc9953.h index 920402f..2b88c5c 1

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

2015-06-11 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, th

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

2015-06-11 Thread Codrin Ciubotariu
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. Signed-off-by: Johnson Leung Signed-off-by: Codrin Ciubotariu Change-Id: I658ef613724e3e1

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

2015-06-11 Thread Codrin Ciubotariu
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. Signed-off-by: Codrin Ciubotariu Change-Id: I52c4ab024a60b62afe89d4ee3e37f50174597c4b --- drivers/net/vsc9953.c |

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

2015-06-11 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 c

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

2015-06-11 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 07/10] drivers/net/vsc9953: Add commands to manipulate the FDB for VSC9953

2015-06-11 Thread Codrin Ciubotariu
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 with [port ] and [vlan ], only the matching the FDB entries can be seen or flushed.

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

2015-06-11 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 Signed-off-by: C

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

2015-06-11 Thread Codrin Ciubotariu
The command: ethsw [port ] learning { [help] | show | auto | disable } can be used to enable/disable HW learning on a port. Signed-off-by: Johnson Leung Signed-off-by: Codrin Ciubotariu Change-Id: Id05691c342d9a9b253e591d9c64a8e13225c5e56 --- drivers/net/vsc9953.c | 188 +++

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

2015-06-11 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu Change-Id: Ifd82465cce10e310a4f974ae70dceab838ae27db --- include/vsc9953.h | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/include/vsc9953.h b/include/vsc9953.h index 26a08aa..753abba 100644 --- a/include/vsc9953.h +++ b/include/vsc

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

2015-06-11 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 p

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

2015-06-11 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 p

Re: [U-Boot] [PATCH 01/10] drivers/net/vsc9953: Cleanup patch

2015-06-11 Thread Codrin Constantin Ciubotariu
Please ignore this patch. I resent it. Sorry! Best regards, Codrin > -Original Message- > From: Codrin Ciubotariu [mailto:codrin.ciubota...@freescale.com] > Sent: Thursday, June 11, 2015 6:07 PM > To: u-boot@lists.denx.de > Cc: Kushwaha Prabhakar-B32579; Sun York-R58495; joe.hershber...@n

Re: [U-Boot] [PATCH 00/10] Add more commands for VSC9953 L2 Switch

2015-06-11 Thread Codrin Constantin Ciubotariu
Please ignore this cover letter. I resent it. Sorry! Best regards, Codrin > -Original Message- > From: Codrin Ciubotariu [mailto:codrin.ciubota...@freescale.com] > Sent: Thursday, June 11, 2015 6:07 PM > To: u-boot@lists.denx.de > Cc: Kushwaha Prabhakar-B32579; Sun York-R58495; joe.hershb

Re: [U-Boot] [PATCH] sunxi: Select CONFIG_CMD_NET and CONFIG_CMD_SETEXPR by default

2015-06-11 Thread Tom Rini
On Thu, Jun 11, 2015 at 09:14:33AM -0500, Joe Hershberger wrote: > Hi Tom, > > On Wed, Jun 3, 2015 at 5:12 PM, Tom Rini wrote: > > On Wed, Jun 03, 2015 at 08:12:16PM +0200, Hans de Goede wrote: > > > >> Select CONFIG_CMD_NET and CONFIG_CMD_SETEXPR by default rather then > >> needing to have this

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

2015-06-11 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 ] pvid { [help] | show | } - set/show PVID (ingress and egress VLAN tagging) for a port; ethsw [port ] vlan { [help] | show | add | del } - add a VLAN to a port (VLAN

Re: [U-Boot] MinnowBoard Max uboot

2015-06-11 Thread Beaman, Thomas
Hi Simon, I have enclosed both kernel boot files Thanks, Tom -Original Message- From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass Sent: Wednesday, June 10, 2015 9:15 PM To: Beaman, Thomas Cc: u-boot@lists.denx.de Subject: Re: MinnowBoard Max uboot Hi Thomas, On 10

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

2015-06-11 Thread Tom Rini
On Thu, Jun 11, 2015 at 03:44:10PM +0200, Hans de Goede wrote: > Hi, > > On 11-06-15 14:56, Tom Rini wrote: > >On Thu, Jun 11, 2015 at 09:41:29AM +0200, Hans de Goede wrote: > >>Hi, > >> > >>On 11-06-15 04:49, Simon Glass wrote: > >>>Hi, > >>> > >>>On 10 June 2015 at 08:56, Tom Rini wrote: >

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

2015-06-11 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 c

Re: [U-Boot] [PATCH] net: davinci_emac: don't teardown inactive rx channel

2015-06-11 Thread Joe Hershberger
Hi Jeroen, On Thu, Jun 11, 2015 at 12:51 AM, Tony Lindgren wrote: > * Joe Hershberger [150610 07:26]: >> Hi Jeroen, >> >> On Sun, Jun 7, 2015 at 10:30 AM, Jeroen Hofstee wrote: >> > Tearing down an unitialized rx channel causes a pending address hole >> > event to be queued. When booting linux

Re: [U-Boot] [PATCH] blackfin: fix undefined reference to srand and rand

2015-06-11 Thread Joe Hershberger
Hi Masahiro-san, On Thu, Jun 11, 2015 at 5:16 AM, Masahiro Yamada wrote: > Commit 9ba9e85f3f1c (net: Fix NET_RANDOM_ETHADDR dependencies) > accidentally dropped CONFIG_LIB_RAND defines for 14 Blackfin boards. > > Prior to that commit, those boards defined CONFIG_LIB_RAND, but not > CONFIG_NET_RAN

Re: [U-Boot] [PATCH] sunxi: Select CONFIG_CMD_NET and CONFIG_CMD_SETEXPR by default

2015-06-11 Thread Joe Hershberger
Hi Tom, On Wed, Jun 3, 2015 at 5:12 PM, Tom Rini wrote: > On Wed, Jun 03, 2015 at 08:12:16PM +0200, Hans de Goede wrote: > >> Select CONFIG_CMD_NET and CONFIG_CMD_SETEXPR by default rather then >> needing to have this in every sunxi defconfig file. >> >> This also fixes the Merrii_A80_Optimus def

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

2015-06-11 Thread Hans de Goede
Hi, On 11-06-15 14:56, Tom Rini wrote: On Thu, Jun 11, 2015 at 09:41:29AM +0200, Hans de Goede wrote: Hi, On 11-06-15 04:49, Simon Glass wrote: Hi, On 10 June 2015 at 08:56, Tom Rini wrote: On Wed, Jun 10, 2015 at 04:54:50PM +0200, Hans de Goede wrote: Hi Tom, Please pull u-boot-sunxi/m

[U-Boot] [PATCH 2/3] common: cmd_part: start and size sub-commands introduction

2015-06-11 Thread Paul Kocialkowski
This introduces the part start and part size sub-commands. The purpose of these is to store the start block and size of a partition in a variable, given the device and partition number. This allows reading raw data that fits a single partition more easily. For instance, this could be used to figur

[U-Boot] [PATCH 3/3] common: cmd_part: Error prints on failures

2015-06-11 Thread Paul Kocialkowski
When a failure occurs when selecting the device or partition, the user should be notified through an error print. Signed-off-by: Paul Kocialkowski --- common/cmd_part.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/common/cmd_part.c b/common/cmd_pa

[U-Boot] [PATCH 1/3] common: cmd_part: Proper alignment

2015-06-11 Thread Paul Kocialkowski
This fixes a misaligned declaration. Signed-off-by: Paul Kocialkowski --- common/cmd_part.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_part.c b/common/cmd_part.c index 8483c12..4bdbf90 100644 --- a/common/cmd_part.c +++ b/common/cmd_part.c @@ -88,7 +88,7 @@ st

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

2015-06-11 Thread Tom Rini
On Thu, Jun 11, 2015 at 09:41:29AM +0200, Hans de Goede wrote: > Hi, > > On 11-06-15 04:49, Simon Glass wrote: > >Hi, > > > >On 10 June 2015 at 08:56, Tom Rini wrote: > >>On Wed, Jun 10, 2015 at 04:54:50PM +0200, Hans de Goede wrote: > >> > >>>Hi Tom, > >>> > >>>Please pull u-boot-sunxi/master in

Re: [U-Boot] [PATCH] README.scrapyard: add entries for dead AVR32 boards

2015-06-11 Thread Tom Rini
On Thu, Jun 11, 2015 at 07:13:49PM +0900, Masahiro Yamada wrote: > Some AVR32 boards were dropped by the following commits: > 9eb45aabe078 (avr32: delete non generic board favr-32-ezkit) > e36930764471 (avr32: delete non generic board hammerhead) > c62d2f8fc5c6 (avr32: delete non generic board

Re: [U-Boot] [PATCH v2 00/18] dm: Introduce device tree support in SPL (for Rockchip)

2015-06-11 Thread Tom Rini
On Wed, Jun 10, 2015 at 08:50:53PM -0600, Simon Glass wrote: > Hi Tom, > > On 4 June 2015 at 17:48, Simon Glass wrote: > > Hi Tom, > > > > On 12 May 2015 at 14:55, Simon Glass wrote: > >> With driver model SPL support in place the remaining driver difference > >> between U-Boot proper and SPL i

Re: [U-Boot] [PATCH] mx6cuboxi: Fix boot of hummingboard dual-lite

2015-06-11 Thread Fabio Estevam
Hi Stefano, On Fri, May 29, 2015 at 8:05 PM, Andrei Gherzan wrote: > Hi, > > On Fri, May 29, 2015 at 6:00 PM, Fabio Estevam > wrote: >> Hummingboard dual-lite is picking the incorrect calibration structure. >> >> Fix it so that it can boot. >> >> While at it, also fix p1_mpdgctrl1 register to ma

Re: [U-Boot] [PATCH] avr32: move CONFIG_SYS_GENERIC_BOARD to Kconfig

2015-06-11 Thread Andreas Bießmann
On 06/11/2015 12:14 PM, Masahiro Yamada wrote: > Now all the AVR32 boards have been converted into Generic Board. > Select it in Kconfig and clean up defines in header files. > > Signed-off-by: Masahiro Yamada > --- > Acked-by: Andreas Bießmann @Tom: Could you please pick it up directly? And

Re: [U-Boot] [PATCH] README.scrapyard: add entries for dead AVR32 boards

2015-06-11 Thread Andreas Bießmann
On 06/11/2015 12:13 PM, Masahiro Yamada wrote: > Some AVR32 boards were dropped by the following commits: > 9eb45aabe078 (avr32: delete non generic board favr-32-ezkit) > e36930764471 (avr32: delete non generic board hammerhead) > c62d2f8fc5c6 (avr32: delete non generic board mimc200) > e5354b8

Re: [U-Boot] [PATCH v2 22/22] x86: Add support for Intel Minnowboard Max

2015-06-11 Thread Andrew Bradford
Hi Simon, On 05/28 10:30, Simon Glass wrote: > Hi Andrew, > > On 27 May 2015 at 08:39, Andrew Bradford wrote: > > On 05/27 13:19, Bin Meng wrote: > >> Hi Simon, ->8-- > >> I just noticed that Intel has released FSP specification v1.1 [1] in > >> April. After a rough rea

[U-Boot] [PATCH] DM: crypto/rsa_mod_exp - Correct copyright on rsa-mod-exp.h

2015-06-11 Thread Ruchika Gupta
Signed-off-by: Ruchika Gupta --- include/u-boot/rsa-mod-exp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/u-boot/rsa-mod-exp.h b/include/u-boot/rsa-mod-exp.h index fce445a..d250694 100644 --- a/include/u-boot/rsa-mod-exp.h +++ b/include/u-boot/rsa-mod-exp.h @@ -1,5

Re: [U-Boot] [PATCH v3] armv8: caches: Added routine to set non cacheable region

2015-06-11 Thread Mark Rutland
On Thu, Jun 11, 2015 at 08:17:15AM +0100, Siva Durga Prasad Paladugu wrote: > > Hi Mark, > > > -Original Message- > > From: Mark Rutland [mailto:mark.rutl...@arm.com] > > Sent: Thursday, May 28, 2015 3:10 PM > > To: Siva Durga Prasad Paladugu > > Cc: u-boot@lists.denx.de; Michal Simek; Si

[U-Boot] [PATCH] board/BuR/tseries: remove lpj= from environment-variable

2015-06-11 Thread Hannes Schmelzer
since we have now various processor-speeds it isn't useful anymore to preinitialize kernels-delay loop. Rather we want the kernel to calibrate it on every boot. This wastes around 80ms boottime but is compatible to all CPU-speeds. Signed-off-by: Hannes Schmelzer --- include/configs/tseries.h

[U-Boot] [PATCH v2 8/8] imx: mx6qp: Adjust AQos settings for peripherals

2015-06-11 Thread Peng Fan
To resolve USB camera bandwidth issue, increase the priority to make peripheral can fetch data from memory in time. Recommended AQoS setting from IC team value for peripheral and only on imx6qp. The address is: 0xbb0608, the value is: 0x8201 Signed-off-by: Ye.Li Signed-off-by: Peng Fan ---

[U-Boot] [PATCH v2 6/8] imx: mx6qp Enable PRG clock and AQoS setting for IPU

2015-06-11 Thread Peng Fan
The i.MX6DQP has a PRG module, need to enable its clock for using IPU. Bypass QoS for IPU and increase bankwidth threshold for PRE to get better performance for video. Signed-off-by: Peng Fan Signed-off-by: Brown Oliver Signed-off-by: Ye.Li --- Changes v2: 1. runtime check 2. introduce ipu

[U-Boot] [PATCH v2 7/8] imx: mx6qpsabreauto: Add MX6QP SABREAUTO CPU3 board support

2015-06-11 Thread Peng Fan
1. Add DDR script for mx6qpsabreauto board. 2. On CPU3 board, enet RGMII tx clock is from internal PLL. Set the GPR5[9] and init the enet pll output to 125Mhz. 3. On CPU3 board, SW1ABC=VDDSOC_IN, SW2=VDDARM_IN. Build target: mx6qpsabreauto_config Boot Log: U-Boot 2015.07-rc2-00034-gba46bb1 (Ju

[U-Boot] [PATCH v2 2/8] imx: mx6 correct get_cpu_rev

2015-06-11 Thread Peng Fan
The DIGPROG register map: 23 --- 16 | 15 -- 8 | 7 --- 0 | Major upper | Major Lower | Minor | We also need to account for Major Lower. Signed-off-by: Ye.Li Signed-off-by: Peng Fan --- Changes v2: split from PATCH v1 2/8. This piece code should be in a single patch. arch/arm/cpu/

[U-Boot] [PATCH v2 4/8] imx: mx6: ccm: Change the clock settings for i.MX6QP

2015-06-11 Thread Peng Fan
Since i.MX6QP changes some CCM registers, so modify the clocks settings to follow the hardware changes. In c files, use runtime check and discard #ifdef. A new CONFIG_MX6QP is introduced here and is used for the CCM difference, only used in header files for different bits. At default CONFIG_MX6Q

[U-Boot] [PATCH v2 5/8] imx: mx6: hab : Remove the cache issue workaroud in hab for i.MX6QP

2015-06-11 Thread Peng Fan
From: "Ye.Li" Since the i.MX6QP has fixed the issue in boot ROM, so remove the workaround for i.MX6QP. Signed-off-by: Ye.Li Signed-off-by: Peng Fan --- Changes v2: None arch/arm/cpu/armv7/mx6/hab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/mx6

[U-Boot] [PATCH v2 3/8] imx: mx6 introuduce macro is_mx6dqp

2015-06-11 Thread Peng Fan
Add a new revision CHIP_REV_2_0. Introudce macro is_mx6dqp, dqp means Dual/Quad Plus. Since Dual/Quad Plus use same cpu type with Dual/Quad, but different revision(Major Lower), we use this macro for Dual/Quad Plus. Signed-off-by: Ye.Li Signed-off-by: Peng Fan --- Changes v2: Split from PATCH

[U-Boot] [PATCH v2 1/8] imx: mx6 correct is_soc_rev usage

2015-06-11 Thread Peng Fan
is_soc_rev should return a bool value, so use "==", but not "-", change (is_soc_rev(CHIP_REV_1_0) > 0) to (soc_rev() > CHIP_REV_1_0). This patch also add space between "&" for cpu_type(rev) macro. Signed-off-by: Peng Fan --- Changes v2: new patch arch/arm/imx-common/timer.c | 4

[U-Boot] [PATCH] common/cmd_bdinfo: show gd->board_type

2015-06-11 Thread Hannes Schmelzer
sometimes it is usefull to know if board-detection has written the correct value into gd->board_type. For this we add some output to the bdinfo command. Signed-off-by: Hannes Schmelzer --- common/cmd_bdinfo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/cmd_bdinfo.c b/common/

[U-Boot] [PATCH] board/BuR/common: support timer5 for pwm-backlight

2015-06-11 Thread Hannes Schmelzer
in future we support yet another b&r am335x based board, where Timer 5 is wired to backlight-driver. So we introduce a new driver-type '2' to setup timer5 instead timer6. Signed-off-by: Hannes Schmelzer --- board/BuR/common/common.c | 14 +++--- 1 file changed, 11 insertions(+), 3 del

[U-Boot] [PATCH] blackfin: fix undefined reference to srand and rand

2015-06-11 Thread Masahiro Yamada
Commit 9ba9e85f3f1c (net: Fix NET_RANDOM_ETHADDR dependencies) accidentally dropped CONFIG_LIB_RAND defines for 14 Blackfin boards. Prior to that commit, those boards defined CONFIG_LIB_RAND, but not CONFIG_NET_RANDOM_ETHADDR. So, commit 9ba9e85f3f1c should not have touched them, but in fact it r

[U-Boot] [PATCH] avr32: move CONFIG_SYS_GENERIC_BOARD to Kconfig

2015-06-11 Thread Masahiro Yamada
Now all the AVR32 boards have been converted into Generic Board. Select it in Kconfig and clean up defines in header files. Signed-off-by: Masahiro Yamada --- arch/Kconfig | 1 + include/configs/atngw100.h | 1 - include/configs/atngw100mkii.h | 1 - include/configs/atstk1

[U-Boot] [PATCH] README.scrapyard: add entries for dead AVR32 boards

2015-06-11 Thread Masahiro Yamada
Some AVR32 boards were dropped by the following commits: 9eb45aabe078 (avr32: delete non generic board favr-32-ezkit) e36930764471 (avr32: delete non generic board hammerhead) c62d2f8fc5c6 (avr32: delete non generic board mimc200) e5354b8a9e2a (avr32: delete non generic board's atstk100{3, 4, 6

[U-Boot] [PATCH 14/14][v2] driver/ldpaa_eth:Avoid infinite loop in QBMAN buf release

2015-06-11 Thread Prabhakar Kushwaha
Change infinite loop mechanism to timer based polling. Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Sending as it is for patchset drivers/net/ldpaa_eth/ldpaa_eth.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/dr

[U-Boot] [PATCH 10/14][v2] armv8/fsl-lsch3: device tree fixups for PCI stream IDs

2015-06-11 Thread Prabhakar Kushwaha
From: Stuart Yoder This patch adds the infrastructure to update device tree nodes to convey SMMU stream IDs in the device tree. Fixups are implemented for PCI controllers initially. Signed-off-by: Stuart Yoder Signed-off-by: Prabhakar Kushwaha --- changes for v2 - define in fdt_fixup_smmu_p

[U-Boot] [PATCH 13/14][v2] driver/ldpaa_eth: Avoid TX conf frames

2015-06-11 Thread Prabhakar Kushwaha
Polling of TX conf frames is not a mandatory option. Packets can be transferred via WRIOP without TX conf frame. Configure ldpaa_eth driver to use TX path without confirmation frame Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Sending as it is for patchset drivers/net/ldpaa_eth/ldpaa

  1   2   >