[U-Boot] [PATCH 3/4] include:configs:ls1021atwr: Enable USB IP support

2015-04-21 Thread Ramneek Mehresh
Enable USB IP support for both EHCI and XHCI for ls1021atwr platform Signed-off-by: Ramneek Mehresh --- include/configs/ls1021atwr.h | 29 + include/linux/usb/xhci-fsl.h | 5 + 2 files changed, 34 insertions(+) diff --git a/include/configs/ls1021atwr.h b/include

[U-Boot] [PATCH 4/4] include:configs:ls1021aqds: Enable USB IP support

2015-04-21 Thread Ramneek Mehresh
Enable USB IP support for both EHCI and XHCI for ls1021aqds platform Signed-off-by: Ramneek Mehresh --- include/configs/ls1021aqds.h | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/include/configs/ls1021aqds.h b/include/configs/ls1021aqds.h index 5de41

Re: [U-Boot] Ethernet problem on A20 Lime2

2015-04-21 Thread Hans de Goede
Hi Tom, On 21-04-15 16:57, Tom Rini wrote: On Tue, Apr 21, 2015 at 04:11:34PM +0200, Hans de Goede wrote: Hi Tom, On 21-04-15 16:03, Tom Rini wrote: Hey, I've run into a problem with ethernet on the A20 Lime2: sunxi# setenv autoload no sunxi# dhcp Speed: 1000, full duplex BOOTP broadcast 1 D

Re: [U-Boot] [PATCH v3 1/9] sf: Update SST flash params

2015-04-21 Thread Bin Meng
Hi Jagan, On Tue, Apr 21, 2015 at 8:47 PM, Jagan Teki wrote: > Hi Bin, > > On 20 April 2015 at 15:02, Bin Meng wrote: >> Hi Jagan, >> >> On Fri, Apr 17, 2015 at 4:48 PM, Jagan Teki wrote: >>> Hi Bin, >>> >>> On 17 April 2015 at 07:14, Bin Meng wrote: Hi Jagan, On Fri, Apr 17, 20

[U-Boot] [PATCH 1/4] drivers:usb:dwc3: Add DWC3 controller driver support

2015-04-21 Thread Ramneek Mehresh
Add support for DWC3 XHCI controller driver Signed-off-by: Ramneek Mehresh --- drivers/usb/host/Makefile| 1 + drivers/usb/host/xhci-dwc3.c | 75 include/linux/usb/dwc3.h | 4 +++ 3 files changed, 80 insertions(+) create mode 100644 drivers

[U-Boot] [PATCH 2/4] drivers:usb:fsl: Add XHCI driver support

2015-04-21 Thread Ramneek Mehresh
Add xhci driver support for all FSL socs Signed-off-by: Ramneek Mehresh --- drivers/usb/host/Makefile| 1 + drivers/usb/host/xhci-fsl.c | 110 +++ include/linux/usb/xhci-fsl.h | 58 +++ 3 files changed, 169 insertions(+) create

Re: [U-Boot] single build of uboot supporting env stored in dynamically detected boot device

2015-04-21 Thread Igor Grinberg
Hi Tim, Sorry for that late reply. I guess better late then never... On 04/10/15 19:39, Simon Glass wrote: > Hi Tim, > > On 10 April 2015 at 09:42, Tim Harvey wrote: >> On Thu, Apr 9, 2015 at 11:07 PM, Stefan Roese wrote: >>> Hi Tim, >>> >>> (added Igor to cc) >>> >>> >>> On 10.04.2015 00:58,

Re: [U-Boot] [RFC PATCH] arm: mx6: Clamp MMDC and DDR3 clocks for timing calculations

2015-04-21 Thread Igor Grinberg
On 04/17/15 01:36, Nikolay Dimitrov wrote: > This is proposal for clamping the MMDC/DDR3 clocks to the maximum supported > frequencies as per imx6 SOC models, and for dynamically calculating valid > clock value based on mem_speed. > > Currently the code uses impossible values for mem_speed (1333,

Re: [U-Boot] [PATCH v7 01/17] ARM: Clean up CONFIG_ARMV7_NONSEC/VIRT/PSCI conditions

2015-04-21 Thread Huan Wang
Hi, Jan, > > CONFIG_ARMV7_VIRT depends on CONFIG_ARMV7_NONSEC, thus doesn't need to > be taken into account additionally. CONFIG_ARMV7_PSCI is only set on > boards that support CONFIG_ARMV7_NONSEC, and it only works on those. > > CC: Tang Yuantian > CC: York Sun > CC: Steve Rae > CC: Andre Pr

[U-Boot] [PATCH v3 3/4] mmc: fsl_esdhc: Add peripheral clock support

2015-04-21 Thread Yangbo Lu
The SD clock could be generated by platform clock or peripheral clock for some platforms. This patch adds peripheral clock support for T1024/T1040/T2080. To enable it, define CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK. Signed-off-by: Yangbo Lu Cc: York Sun Cc: Pantelis Antoniou --- Changes for v3:

[U-Boot] [PATCH v3 2/4] powerpc/t2080qds: enable eSDHC adapter card type identification

2015-04-21 Thread Yangbo Lu
Enable eSDHC adapter card type identification and this will do some corresponding operations and set 'adapter-type' property for device tree according SDHC Card ID. Signed-off-by: Yangbo Lu Cc: York Sun Cc: Pantelis Antoniou --- Changes for v3: - Add Pantelis Antoniou to Cc list --- ---

[U-Boot] [PATCH v3 4/4] powerpc/t2080qds: enable eSDHC peripheral clock support

2015-04-21 Thread Yangbo Lu
Enable eSDHC peripheral clock support. u-boot and linux will use SD clock generated by peripheral clock instead of platform clock. Signed-off-by: Yangbo Lu Cc: York Sun Cc: Pantelis Antoniou --- Changes for v3: - Add Pantelis Antoniou to Cc list - Modify commit message --- ---

[U-Boot] [PATCH v3 1/4] mmc: fsl_esdhc: Add adapter card type identification support

2015-04-21 Thread Yangbo Lu
Add adapter card type identification support by reading FPGA STAT_PRES1 register SDHC Card ID[0:2] bits. To use this function, define CONFIG_FSL_ESDHC_ADAPTER_IDENT. Signed-off-by: Yangbo Lu Cc: York Sun Cc: Pantelis Antoniou --- Changes for v3: - Add Pantelis Antoniou to Cc list Change

[U-Boot] [PATCH] board/t2080rdb: reset cs4315 phy

2015-04-21 Thread Shengzhou Liu
CS4315 PHY doesn't support phy-reset by software, it needs to reset it by hardware via CPLD control. Signed-off-by: Shengzhou Liu --- board/freescale/t208xrdb/cpld.h | 3 +++ board/freescale/t208xrdb/t208xrdb.c | 7 +++ 2 files changed, 10 insertions(+) diff --git a/board/freescale/t208

[U-Boot] [PATCH 4/4] x86: queensbay: Implement PIRQ routing

2015-04-21 Thread Bin Meng
Implement Intel Queensbay platform-specific PIRQ routing support. The chipset PIRQ routing setup is called in the arch_mist_init(). Signed-off-by: Bin Meng --- arch/x86/cpu/queensbay/Makefile | 2 +- arch/x86/cpu/queensbay/irq.c | 236 +++

[U-Boot] [PATCH 3/4] x86: Support platform PIRQ routing

2015-04-21 Thread Bin Meng
On x86 boards, platform chipset receives up to four different interrupt signals from PCI devices (INTA/B/C/D), which in turn will be routed to chipset internal PIRQ lines then routed to 8259 PIC finally if configuring the whole system to work under the so-called PIC mode (in contrast to symmetric I

[U-Boot] [PATCH 2/4] x86: Write configuration tables in last_stage_init()

2015-04-21 Thread Bin Meng
We can write the configuration table in last_stage_init() for all x86 boards, but not with coreboot since coreboot already has them. Signed-off-by: Bin Meng --- arch/x86/cpu/cpu.c| 10 + arch/x86/include/asm/tables.h | 49 +++ arch/x86

[U-Boot] [PATCH 0/4] x86: Add platform PIRQ routing

2015-04-21 Thread Bin Meng
Although by default (without pci=nomsi in the kernel bootline) Linux device drivers try to use MSI for device's interrupt generation, there are still some devices which only support INTx generation. Currently U-Boot on some x86 boards do not configure those devices' IRQ and route them to 8259 PIC,

[U-Boot] [PATCH 1/4] x86: Add a function to assign IRQ numbers to PCI device

2015-04-21 Thread Bin Meng
Add a function to assign an IRQ number to PCI device's interrupt line register in its configuration space, so that the PCI device can have its interrupt working under PIC mode after OS boots up. Signed-off-by: Bin Meng --- arch/x86/cpu/pci.c | 21 + arch/x86/include/

Re: [U-Boot] [PATCH 2/2] x86: Install a default e820 table in the __weak install_e820_map()

2015-04-21 Thread Bin Meng
Hi Simon, On Tue, Apr 21, 2015 at 9:52 PM, Simon Glass wrote: > Hi Bin, > > On 20 April 2015 at 22:21, Bin Meng wrote: >> Create a default e820 table with 3 entries which is enough to boot >> a Linux kernel. >> >> Signed-off-by: Bin Meng >> --- >> >> arch/x86/lib/zimage.c | 29

Re: [U-Boot] [PATCH] x86: galileo: Define mac addresses for the on-chip ethernet ports

2015-04-21 Thread Bin Meng
Hi Joe, On Wed, Apr 22, 2015 at 8:26 AM, Joe Hershberger wrote: > Hi Bin, > > On Tue, Apr 21, 2015 at 7:20 PM, Bin Meng wrote: >> Hi Joe, >> >> On Wed, Apr 22, 2015 at 3:41 AM, Joe Hershberger >> wrote: >>> Hi Bin Meng, >>> >>> On Tue, Apr 21, 2015 at 8:54 AM, Simon Glass wrote: Hi Bin, >

Re: [U-Boot] [U-Boot PATCH 3/8] spi: Zap ftssp010_spi driver

2015-04-21 Thread Axel Lin
2015-04-22 2:26 GMT+08:00 Jagannadha Sutradharudu Teki : > Zap ftssp010_spi driver since the boards used this driver > is no longer been active. I'm not sure if this is correct thing to do... It's fine to drop unmaintained boards, but a driver can/may be used by different boards. So If someday the

[U-Boot] [PATCH 2/2] overo: u-boot breaks for the Overo boards after v2014.10

2015-04-21 Thread Arun Bharadwaj
u-boot breaks for the Overo boards since the following commit: a6b541b09022acb6f7c2754100ae26bd44eed1d9 This is because the gd pointer is not set early enough anymore, such that the i2c_set_bus_num in get_board_revision can safely execute. This results in a console hang at SPL and the boot does no

[U-Boot] [PATCH 1/2] overo: Code cleanup; split into SPL-specific and u-boot-specific code

2015-04-21 Thread Arun Bharadwaj
This separates the SPL-specific code from the u-boot-specific code for the Overo board following the discussion at http://lists.denx.de/pipermail/u-boot/2015-April/211622.html The code is split up into spl.c, overo.c and common.c (which has the code common to both) Signed-off-by: Arun Bharadwaj

[U-Boot] [PATCH 02/11] kconfig: Move REGEX to Kconfig

2015-04-21 Thread Joe Hershberger
Having this as a Kconfig allows it to be a dependent feature. Signed-off-by: Joe Hershberger --- configs/acadia_defconfig | 1 + configs/bamboo_defconfig | 1 + configs/bubinga_defconfig | 1 + configs/canyonlands_defconfig | 1 + configs/dlvision-10g_defconfig

[U-Boot] [PATCH 00/11] Improve env var handling for net stack

2015-04-21 Thread Joe Hershberger
This includes moving CONFIG_REGEX to Kconfig and adding support for regex to the env_attr lists (when CONFIG_REGEX is enabled). This allows ethaddrs to all be checked for access and format by default. Also use callbacks to keep network stack variables up to date instead of polling them on each cal

Re: [U-Boot] Question regarding MLO size

2015-04-21 Thread Arun Bharadwaj
Hi Tom, Thanks for your inputs. I have cleaned up the board/overo/ code like you suggested. I will send a separate email with the patches requesting for review. -Arun On Tue, Apr 21, 2015 at 1:16 PM, Tom Rini wrote: > On Tue, Apr 21, 2015 at 01:12:37PM -0700, Ash Charles wrote: > > On Tue, Apr

[U-Boot] [PATCH 0/2] overo: Code cleanup and reduce the size of MLO binary.

2015-04-21 Thread Arun Bharadwaj
Hi, This set of two patches attempts to cleanup the code for board/overo. The first patch separates the SPL-specific code from the u-boot-specific code. This prevents the unnecessary compilation of u-boot-related code in the SPL binary due to this bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?i

Re: [U-Boot] [PATCH] x86: galileo: Define mac addresses for the on-chip ethernet ports

2015-04-21 Thread Joe Hershberger
Hi Bin, On Tue, Apr 21, 2015 at 7:20 PM, Bin Meng wrote: > Hi Joe, > > On Wed, Apr 22, 2015 at 3:41 AM, Joe Hershberger > wrote: >> Hi Bin Meng, >> >> On Tue, Apr 21, 2015 at 8:54 AM, Simon Glass wrote: >>> Hi Bin, >>> >>> On 20 April 2015 at 23:05, Bin Meng wrote: Not like other x86 chip

Re: [U-Boot] [PATCH] x86: galileo: Define mac addresses for the on-chip ethernet ports

2015-04-21 Thread Bin Meng
Hi Joe, On Wed, Apr 22, 2015 at 3:41 AM, Joe Hershberger wrote: > Hi Bin Meng, > > On Tue, Apr 21, 2015 at 8:54 AM, Simon Glass wrote: >> Hi Bin, >> >> On 20 April 2015 at 23:05, Bin Meng wrote: >>> Not like other x86 chipset, there is no EEPROM for the ethernet >>> controller on the Intel Quar

Re: [U-Boot] [PATCH] x86: galileo: Define mac addresses for the on-chip ethernet ports

2015-04-21 Thread Bin Meng
Hi Simon, On Tue, Apr 21, 2015 at 9:54 PM, Simon Glass wrote: > Hi Bin, > > On 20 April 2015 at 23:05, Bin Meng wrote: >> Not like other x86 chipset, there is no EEPROM for the ethernet >> controller on the Intel Quark SoC to retreive the mac address >> after power up. With pre-defined mac addre

Re: [U-Boot] [PATCH v2] net: Update hardware MAC address if it changes in env

2015-04-21 Thread Joe Hershberger
On Tue, Mar 31, 2015 at 6:41 AM, Michal Simek wrote: > On 03/30/2015 08:08 PM, Joe Hershberger wrote: >> Hi Michal, >> >> On Tue, Mar 24, 2015 at 2:41 AM, Joe Hershberger >> wrote: >>> >>> When the ethaddr changes in the env, the hardware should also be updated >>> so that MAC filtering will work

Re: [U-Boot] [PATCH] net/phy: Add support for realtek RTL8211F

2015-04-21 Thread Joe Hershberger
Hi Shengzhou Liu, On Thu, Mar 12, 2015 at 5:54 AM, Shengzhou Liu wrote: > RTL8211F has different registers from RTL8211E. > This patch adds support for RTL8211F PHY which > can be found on Freescale's T1023 RDB board. > > Signed-off-by: Shengzhou Liu Please Cc me in the future. Applied to u-bo

Re: [U-Boot] [PATCH 1/2] integrator: stop zeroing the gd flags

2015-04-21 Thread Simon Glass
On 21 April 2015 at 07:35, Linus Walleij wrote: > This assignment conflicts with code that add flags with > gd->flags |= FOO prior to the execution of this function. > Seems like a historical artifact and creates bugs with > early alloc(). > > Cc: Masahiro Yamada > Signed-off-by: Linus Walleij >

Re: [U-Boot] [PATCH 2/2] integrator: switch to DM serial port

2015-04-21 Thread Simon Glass
Hi Linus, On 21 April 2015 at 07:36, Linus Walleij wrote: > This switches the Integrator boards over to using the device model > for its serial ports. > > Cc: Masahiro Yamada > Signed-off-by: Linus Walleij > --- > board/armltd/integrator/integrator.c | 18 ++ > include/configs/

Re: [U-Boot] [PATCH 06/11] env: Allow env_attr_walk to pass a priv * to callback

2015-04-21 Thread Joe Hershberger
Hi All, On Tue, Apr 21, 2015 at 5:02 PM, Joe Hershberger wrote: > In some cases it can be helpful to have context in the callback about > the calling situation. This is needed for following patches. > > Signed-off-by: Joe Hershberger > --- 8<--snip-->8 > diff --git a/common/env_attr.c b/common

[U-Boot] [PATCH 08/11] env: Distinguish finer between source of env change

2015-04-21 Thread Joe Hershberger
We already could tell the difference in the callback between an import and "other" which we called interactive. Now add further distinction between interactive (i.e. running env set / env edit / env ask / etc. from the U-Boot command line) and programmatic (i.e. when u-boot source calls any variant

[U-Boot] [PATCH 10/11] net: Use env callbacks for net variables

2015-04-21 Thread Joe Hershberger
Instead of checking for changes to the env each time we enter the net_loop, use the env callbacks to update the values of the variables. Don't update the variables when the source was programmatic, since the variables were the source of the new value. Signed-off-by: Joe Hershberger --- include/

[U-Boot] [PATCH 06/11] env: Allow env_attr_walk to pass a priv * to callback

2015-04-21 Thread Joe Hershberger
In some cases it can be helpful to have context in the callback about the calling situation. This is needed for following patches. Signed-off-by: Joe Hershberger --- common/cmd_nvedit.c | 10 ++ common/env_attr.c | 15 ++- common/env_callback.c | 6 +++--- common/env_

[U-Boot] [PATCH 07/11] env: Add regex support to env_attrs

2015-04-21 Thread Joe Hershberger
Allow the features that use env_attrs to specify regexs for the name Signed-off-by: Joe Hershberger --- common/env_attr.c | 85 ++ include/env_callback.h | 10 -- 2 files changed, 93 insertions(+), 2 deletions(-) diff --git a/common/env_

[U-Boot] [PATCH 03/11] sandbox: Enable regex support

2015-04-21 Thread Joe Hershberger
Enable regex support on sandbox. Signed-off-by: Joe Hershberger --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 5de7fbe..340f5eb 100644 --- a/configs/sandbox_defconfig +++ b/configs/sandbox_defconfig @

[U-Boot] [PATCH 11/11] net: Add default flags for common net env vars

2015-04-21 Thread Joe Hershberger
Check that the common network stack's env vars conform to the proper format for IP addresses. Signed-off-by: Joe Hershberger --- include/env_flags.h | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/env_flags.h b/include/env_flags.h index fc6d0d8..2d2de88

[U-Boot] [PATCH 04/11] env: Fix return values in env_attr_lookup()

2015-04-21 Thread Joe Hershberger
This function returned numbers for error codes. Change them to error codes. Signed-off-by: Joe Hershberger --- common/env_attr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/env_attr.c b/common/env_attr.c index 64baca5..e791f44 100644 --- a/common/env_attr.c

[U-Boot] [PATCH 09/11] net: Apply default format rules to all ethaddr

2015-04-21 Thread Joe Hershberger
Use a regular expression to apply the default formatting flags for all ethaddr env vars. Signed-off-by: Joe Hershberger --- include/env_flags.h | 11 --- test/dm/eth.c | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/env_flags.h b/include/env_flags.h

[U-Boot] [PATCH 05/11] env: Simplify the reverse_strstr() interface

2015-04-21 Thread Joe Hershberger
The logic to find the whole matching name was split needlessly between the reverse_strstr function and its caller. Fully contain it to make the interface for calling it more consistent. Signed-off-by: Joe Hershberger --- common/env_attr.c | 79 +--

[U-Boot] [PATCH 01/11] sandbox: Enable some ENV commands

2015-04-21 Thread Joe Hershberger
Enable some additional ENV commands in sandbox to aid in build testing and run testing. Signed-off-by: Joe Hershberger --- include/configs/sandbox.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 3bf45a2..6079898 100644 --- a

Re: [U-Boot] Question regarding MLO size

2015-04-21 Thread Tom Rini
On Tue, Apr 21, 2015 at 01:12:37PM -0700, Ash Charles wrote: > On Tue, Apr 21, 2015 at 12:23 PM, Tom Rini wrote: > > Sadly it may make sense to move some SPL-only > > functions out into a file that is only built/linked for SPL due to this > > bug. > Ah---that is a funky bug. > Is it reasonable to

Re: [U-Boot] [PATCH v2 77/80] dm: usb: Add tests for the USB uclass

2015-04-21 Thread Simon Glass
Hi Joe, On 21 April 2015 at 14:10, Joe Hershberger wrote: > Hi Simon, > > On Tue, Apr 21, 2015 at 12:00 PM, Simon Glass wrote: >> Hi Joe, >> >> On 21 April 2015 at 10:57, Joe Hershberger wrote: >>> Hi Simon, >>> >>> On Tue, Apr 21, 2015 at 11:19 AM, Simon Glass wrote: Hi Joe, On

Re: [U-Boot] Question regarding MLO size

2015-04-21 Thread Ash Charles
On Tue, Apr 21, 2015 at 12:23 PM, Tom Rini wrote: > Sadly it may make sense to move some SPL-only > functions out into a file that is only built/linked for SPL due to this > bug. Ah---that is a funky bug. Is it reasonable to wrap the offending lines in a #ifndef CONFIG_SPL_BUILD #endif // CONFIG_

Re: [U-Boot] [PATCH v2 77/80] dm: usb: Add tests for the USB uclass

2015-04-21 Thread Joe Hershberger
Hi Simon, On Tue, Apr 21, 2015 at 12:00 PM, Simon Glass wrote: > Hi Joe, > > On 21 April 2015 at 10:57, Joe Hershberger wrote: >> Hi Simon, >> >> On Tue, Apr 21, 2015 at 11:19 AM, Simon Glass wrote: >>> Hi Joe, >>> >>> On 21 April 2015 at 10:05, Joe Hershberger >>> wrote: Hi Simon,

Re: [U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Felipe Balbi
Hi, On Tue, Apr 21, 2015 at 03:07:48PM -0400, Tom Rini wrote: > On Tue, Apr 21, 2015 at 01:05:24PM -0500, Felipe Balbi wrote: > > On Tue, Apr 21, 2015 at 02:01:31PM -0400, Matt Porter wrote: > > > On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: > > > > On Tue, Apr 21, 2015 at 01:36:5

Re: [U-Boot] [PATCH] x86: galileo: Define mac addresses for the on-chip ethernet ports

2015-04-21 Thread Joe Hershberger
Hi Bin Meng, On Tue, Apr 21, 2015 at 8:54 AM, Simon Glass wrote: > Hi Bin, > > On 20 April 2015 at 23:05, Bin Meng wrote: >> Not like other x86 chipset, there is no EEPROM for the ethernet >> controller on the Intel Quark SoC to retreive the mac address >> after power up. With pre-defined mac ad

Re: [U-Boot] Question regarding MLO size

2015-04-21 Thread Tom Rini
On Tue, Apr 21, 2015 at 11:56:05AM -0700, Arun Bharadwaj wrote: > Hi all, > > I am using a Gumstix Overo (omap3), running the u-boot v2015.04 and have > the following issue: > > I have made a few modifications to the misc_init_r() routine in the > board/overo/overo.c file; the resulting MLO file

[U-Boot] Question regarding MLO size

2015-04-21 Thread Arun Bharadwaj
Hi all, I am using a Gumstix Overo (omap3), running the u-boot v2015.04 and have the following issue: I have made a few modifications to the misc_init_r() routine in the board/overo/overo.c file; the resulting MLO file is 61,220 bytes and the console hangs at "reading u-boot.img" during the boot

Re: [U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Tom Rini
On Tue, Apr 21, 2015 at 01:05:24PM -0500, Felipe Balbi wrote: > On Tue, Apr 21, 2015 at 02:01:31PM -0400, Matt Porter wrote: > > On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: > > > On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: > > > > On ARM v7M, the processor will re

[U-Boot] [PATCH 0/3] test: Speed up test timeouts by advancing time

2015-04-21 Thread Joe Hershberger
Add support for advancing time in sandbox and make use of the new API to speed up the existing dm/eth tests that wait for timeouts. This series is based on u-boot-dm/test-working Joe Hershberger (3): sandbox: Add test function to advance time sandbox: eth: Add a function to skip ping timeout

[U-Boot] [PATCH 2/3] sandbox: eth: Add a function to skip ping timeouts

2015-04-21 Thread Joe Hershberger
When called, the next call to receive will trigger a 10-second leap forward in time to avoid waiting for time to pass when tests are evaluating timeout behavior. Signed-off-by: Joe Hershberger --- arch/sandbox/include/asm/eth.h | 2 ++ drivers/net/sandbox.c | 17 + 2 f

[U-Boot] [PATCH 3/3] test: dm: eth: Skip timeouts on ping tests

2015-04-21 Thread Joe Hershberger
Indicate to the emulated sandbox Ethernet driver when we expect a timeout and tell it to leap forward. Signed-off-by: Joe Hershberger --- test/dm/eth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/dm/eth.c b/test/dm/eth.c index 4891f3a..196eba8 100644 --- a/test/dm/eth.c +++ b/tes

[U-Boot] [PATCH 1/3] sandbox: Add test function to advance time

2015-04-21 Thread Joe Hershberger
Add a function that maintains an offset to include in the system timer values returned from the lib/time.c APIs. This will allow timeouts to be skipped instantly in tests Signed-off-by: Joe Hershberger --- arch/sandbox/cpu/cpu.c | 5 - arch/sandbox/include/asm/test.h | 8 +++

[U-Boot] [U-Boot PATCH] linux/bitops.h: Add BIT macro

2015-04-21 Thread Jagannadha Sutradharudu Teki
Updated in spi relevent files. Signed-off-by: Jagannadha Sutradharudu Teki --- drivers/mtd/spi/sandbox.c | 4 +-- drivers/mtd/spi/sf_internal.h | 10 +++ drivers/spi/altera_spi.c | 26 - drivers/spi/atmel_spi.h| 52 +- driv

[U-Boot] [U-Boot PATCH 7/8] spi: davinci_spi: Move header code to driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
Move the header code into driver for more readable and easy to access it. Signed-off-by: Jagannadha Sutradharudu Teki Cc: Rex Chang Cc: Murali Karicheri --- drivers/spi/davinci_spi.c | 110 - drivers/spi/davinci_spi.h | 121 --

[U-Boot] [U-Boot PATCH 8/8] spi: davinci_spi: Driver cleanup

2015-04-21 Thread Jagannadha Sutradharudu Teki
Arrange driver code in more readable format[1] for easy accessing and readable. [1] http://lists.denx.de/pipermail/u-boot/2013-August/160473.html Signed-off-by: Jagannadha Sutradharudu Teki Cc: Rex Chang Cc: Murali Karicheri --- drivers/spi/davinci_spi.c | 343 +++--

[U-Boot] [U-Boot PATCH 5/8] spi: xilinx_spi: Move header code to driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
Move the header code into driver for more readable and easy to access it. Signed-off-by: Jagannadha Sutradharudu Teki Cc: Michal Simek --- drivers/spi/xilinx_spi.c | 113 +- drivers/spi/xilinx_spi.h | 138 --- 2 fil

[U-Boot] [U-Boot PATCH 0/8] spi: Driver cleanup series

2015-04-21 Thread Jagannadha Sutradharudu Teki
Driver cleanup series list - Minor code cleanups - tab space, comments etc - Zapping unneeded drivers - Moving header code into driver .c files for easy accessing - Arranged the driver code format to [1] for more readable [1] http://lists.denx.de/pipermail/u-boot/2013-August/160473.html thanks!

[U-Boot] [U-Boot PATCH 1/8] sf: Adjust tab space's

2015-04-21 Thread Jagannadha Sutradharudu Teki
Tab space's got adjusted on relevent files. Signed-off-by: Jagannadha Sutradharudu Teki --- drivers/mtd/spi/sf_internal.h | 20 ++-- include/spi.h | 12 ++-- include/spi_flash.h | 8 3 files changed, 20 insertions(+), 20 deletions(-) d

[U-Boot] [U-Boot PATCH 3/8] spi: Zap ftssp010_spi driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
Zap ftssp010_spi driver since the boards used this driver is no longer been active. Signed-off-by: Jagannadha Sutradharudu Teki Cc: Kuo-Jung Su Cc: Axel Lin --- drivers/spi/Makefile | 1 - drivers/spi/ftssp010_spi.c | 498 - 2 files changed,

[U-Boot] [U-Boot PATCH 4/8] spi: Zap oc_tiny_spi driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
Zap oc_tiny_spi driver since the boards used this driver is no longer been active. Signed-off-by: Jagannadha Sutradharudu Teki Cc: Thomas Chou --- drivers/spi/Makefile | 1 - drivers/spi/oc_tiny_spi.c | 245 -- 2 files changed, 246 deletions(-)

[U-Boot] [U-Boot PATCH 6/8] spi: xilinx_spi: Driver clean-up

2015-04-21 Thread Jagannadha Sutradharudu Teki
- Zap unneeded macros - Re-arrange the code - Removed __attribute__((weak)) - Replace __func__ macro with func names to save macro transition. - Re-arranged comment lines. - Arrange driver code in more readable format[1] [1] http://lists.denx.de/pipermail/u-boot/2013-August/160473.html Signed-off

[U-Boot] [U-Boot PATCH 2/8] spi: Zap andes_spi driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
Zap andes_spi driver since the boards used this driver is no longer been active. Signed-off-by: Jagannadha Sutradharudu Teki Cc: Macpaul Lin --- drivers/spi/Makefile| 1 - drivers/spi/andes_spi.c | 284 drivers/spi/andes_spi.h | 115 ---

Re: [U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Matt Porter
On Tue, Apr 21, 2015 at 01:05:24PM -0500, Felipe Balbi wrote: > On Tue, Apr 21, 2015 at 02:01:31PM -0400, Matt Porter wrote: > > On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: > > > On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: > > > > On ARM v7M, the processor will re

Re: [U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Matt Porter
On Tue, Apr 21, 2015 at 12:57:09PM -0500, Felipe Balbi wrote: > On Tue, Apr 21, 2015 at 12:54:26PM -0500, Felipe Balbi wrote: > > On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: > > > On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: > > > > On ARM v7M, the processor will r

Re: [U-Boot] [PATCH v7 17/17] jetson-tk1: Add PSCI configuration options and reserve secure code

2015-04-21 Thread Jan Kiszka
On 2015-04-21 19:58, Ian Campbell wrote: > On Tue, 2015-04-21 at 07:18 +0200, Jan Kiszka wrote: >> From: Ian Campbell >> >> The secure world code is relocated to the MB just below the top of 4G, we >> reserve it in the FDT (by setting CONFIG_ARMV7_SECURE_RESERVE_SIZE) but it is >> not protected in

Re: [U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Felipe Balbi
On Tue, Apr 21, 2015 at 02:01:31PM -0400, Matt Porter wrote: > On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: > > On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: > > > On ARM v7M, the processor will return to ARM mode when executing > > > a blx instruction with bit 0 of

Re: [U-Boot] [PATCH v2 0/6] ARM: socfpga: refactoring, move files to arch/arm/mach-socfpga

2015-04-21 Thread Marek Vasut
On Tuesday, April 21, 2015 at 01:38:17 PM, Masahiro Yamada wrote: > Changes in v2: > - Rebase on the top of u-boot-socfpga/master (commit b284d268a) > > Masahiro Yamada (6): > ARM: socfpga: do not add board directory to header search path > ARM: socfpga: remove redundant config.mk > ARM: s

Re: [U-Boot] [PATCH] spl: descend into lib/ for all the SPL boards

2015-04-21 Thread York Sun
On 04/20/2015 08:37 PM, Masahiro Yamada wrote: > Currently, CONFIG_SPL_LIBGENERIC_SUPPORT must be defined > to build under lib/ directory for SPL. > > This directory contains very basic functions such as memcpy, memset > in lib/string.c, so it should be very useful for all the boards. > > Becau

Re: [U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Matt Porter
On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: > On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: > > On ARM v7M, the processor will return to ARM mode when executing > > a blx instruction with bit 0 of the address == 0. Always set it > > but that's what the 'x' is for,

Re: [U-Boot] [PATCH v7 17/17] jetson-tk1: Add PSCI configuration options and reserve secure code

2015-04-21 Thread Ian Campbell
On Tue, 2015-04-21 at 07:18 +0200, Jan Kiszka wrote: > From: Ian Campbell > > The secure world code is relocated to the MB just below the top of 4G, we > reserve it in the FDT (by setting CONFIG_ARMV7_SECURE_RESERVE_SIZE) but it is > not protected in h/w. See next patch. Next patch, but this is

Re: [U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Felipe Balbi
On Tue, Apr 21, 2015 at 12:54:26PM -0500, Felipe Balbi wrote: > On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: > > On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: > > > On ARM v7M, the processor will return to ARM mode when executing > > > a blx instruction with bit 0 of

Re: [U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Felipe Balbi
On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: > On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: > > On ARM v7M, the processor will return to ARM mode when executing > > a blx instruction with bit 0 of the address == 0. Always set it > > but that's what the 'x' is for,

Re: [U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Felipe Balbi
On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: > On ARM v7M, the processor will return to ARM mode when executing > a blx instruction with bit 0 of the address == 0. Always set it but that's what the 'x' is for, right ? eXchange the CPU mode. > to 1 to stay in thumb mode. > > Signe

[U-Boot] [PATCH v2 6/6] board: add stm3210e-eval board support

2015-04-21 Thread Matt Porter
Add support for the STM32F1-based stm3210e-eval boards from ST. UART, Flash, GPIO, and LEDs are supported. Signed-off-by: Matt Porter --- arch/arm/Kconfig | 5 ++ board/st/stm3210e-eval/Kconfig | 19 ++ board/st/stm3210e-eval/MAINTAINERS | 5 ++ board/s

[U-Boot] [PATCH v2 0/6] Add ARMv7M STM32F1 and STM3210E-EVAL board support

2015-04-21 Thread Matt Porter
This series adds support for the STM32F1 SoC family and the STM3210E-EVAL board on top of the STM32F4 SoC family support [1]. Since this board has no DRAM the first patch fixes the build when CONFIG_NR_DRAM_BANKS is not set. A patch is also required to force the processor to stay in Thumb mode whe

[U-Boot] [PATCH v2 4/6] gpio: stm32: add stm32f1 support

2015-04-21 Thread Matt Porter
Add support for the STM32F1 family to the STM32 gpio driver. Signed-off-by: Matt Porter --- Since v1: - Explicitly check for F4/F1 family and error if not set to a supported STM32 family. drivers/gpio/stm32_gpio.c | 109 +- 1 file ch

[U-Boot] [PATCH v2 3/6] ARMv7M: add STM32F1 support

2015-04-21 Thread Matt Porter
Add ARMv7M STM32F1 support including clocks, timer, gpio, and flash. Signed-off-by: Matt Porter --- arch/arm/cpu/armv7m/Makefile | 1 + arch/arm/cpu/armv7m/stm32f1/Makefile | 13 ++ arch/arm/cpu/armv7m/stm32f1/clock.c | 195 ++ arch/arm/cpu/

[U-Boot] [PATCH v2 5/6] serial: stm32: add stm32f1 support

2015-04-21 Thread Matt Porter
Add support for the STM32F1 famly to the STM32 serial driver. Signed-off-by: Matt Porter --- Since v1: - Explicitly check for F4/F1 family and error if not set to a supported STM32 family. drivers/serial/serial_stm32.c | 9 + 1 file changed, 9 insertions(+) diff --git

[U-Boot] [PATCH v2 1/6] image: fix build when CONFIG_NR_DRAM_BANKS is disabled on ARM

2015-04-21 Thread Matt Porter
common/image.c currently implicitly depends on CONFIG_NR_DRAM_BANKS when CONFIG_ARM is enabled. Make this requirement explicit. Signed-off-by: Matt Porter --- common/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/image.c b/common/image.c index 162b682..73c24f5

[U-Boot] [PATCH v2 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-04-21 Thread Matt Porter
On ARM v7M, the processor will return to ARM mode when executing a blx instruction with bit 0 of the address == 0. Always set it to 1 to stay in thumb mode. Signed-off-by: Matt Porter --- common/cmd_boot.c | 4 1 file changed, 4 insertions(+) diff --git a/common/cmd_boot.c b/common/cmd_boo

Re: [U-Boot] [PATCH v2 2/3] ARM: zynq: use separate configuration for ZC702 and ZC706

2015-04-21 Thread Sören Brinkmann
On Fri, 2015-04-17 at 10:38AM +0900, Masahiro Yamada wrote: > Hi Sören, > > > 2015-04-15 1:03 GMT+09:00 Sören Brinkmann : > > On Tue, 2015-04-14 at 04:50PM +0900, Masahiro Yamada wrote: > >> Separate CONFIG_TARGET_ZYNQ_{ZC702,ZC706} which is necessary > >> for the next commit. Adjust doc/README.

Re: [U-Boot] [PATCH 2/5] dm: usb: Add a terminator to the string destructor list

2015-04-21 Thread Simon Glass
Hi Marek, Yes, will do. I need to review the pmic stuff too. Regards, Simon On 21 April 2015 at 11:08, Marek Vasut wrote: > On Tuesday, April 21, 2015 at 05:40:00 PM, Joe Hershberger wrote: >> Hi Simon, >> >> On Sun, Apr 19, 2015 at 8:20 AM, Simon Glass wrote: >> > The terminator is missing.

[U-Boot] [PATCH] mpc85xx/T4240EMU: Remove T4240EMU board

2015-04-21 Thread York Sun
T4240 SoC has been available for a long time. Emulator support is no longer needed. Signed-off-by: York Sun --- arch/powerpc/cpu/mpc85xx/Kconfig |3 - board/freescale/t4qds/Kconfig | 13 --- board/freescale/t4qds/MAINTAINERS |6 -- board/freescale/t4qds/Makefile|1 - board

Re: [U-Boot] [PATCH 2/5] dm: usb: Add a terminator to the string destructor list

2015-04-21 Thread Marek Vasut
On Tuesday, April 21, 2015 at 05:40:00 PM, Joe Hershberger wrote: > Hi Simon, > > On Sun, Apr 19, 2015 at 8:20 AM, Simon Glass wrote: > > The terminator is missing. Add it for completeness. > > > > Signed-off-by: Simon Glass > > Reviewed-by: Joe Hershberger > Tested-by: Joe Hershberger Hi S

Re: [U-Boot] [PATCH v2 77/80] dm: usb: Add tests for the USB uclass

2015-04-21 Thread Joe Hershberger
Hi Simon, On Tue, Apr 21, 2015 at 11:19 AM, Simon Glass wrote: > Hi Joe, > > On 21 April 2015 at 10:05, Joe Hershberger wrote: >> >> Hi Simon, >> >> On Tue, Apr 21, 2015 at 8:14 AM, Simon Glass wrote: >> > Hi Joe, >> > >> > On 20 April 2015 at 23:24, Joe Hershberger >> > wrote: >> >> Hi Simon

Re: [U-Boot] [PATCH v2 77/80] dm: usb: Add tests for the USB uclass

2015-04-21 Thread Simon Glass
Hi Joe, On 21 April 2015 at 10:57, Joe Hershberger wrote: > Hi Simon, > > On Tue, Apr 21, 2015 at 11:19 AM, Simon Glass wrote: >> Hi Joe, >> >> On 21 April 2015 at 10:05, Joe Hershberger wrote: >>> >>> Hi Simon, >>> >>> On Tue, Apr 21, 2015 at 8:14 AM, Simon Glass wrote: >>> > Hi Joe, >>> > >>

Re: [U-Boot] [PATCH v2 77/80] dm: usb: Add tests for the USB uclass

2015-04-21 Thread Simon Glass
Hi Joe, On 21 April 2015 at 10:05, Joe Hershberger wrote: > > Hi Simon, > > On Tue, Apr 21, 2015 at 8:14 AM, Simon Glass wrote: > > Hi Joe, > > > > On 20 April 2015 at 23:24, Joe Hershberger > > wrote: > >> Hi Simon, > >> > >> On Wed, Mar 25, 2015 at 1:23 PM, Simon Glass wrote: > >>> This add

Re: [U-Boot] [PATCH v2 77/80] dm: usb: Add tests for the USB uclass

2015-04-21 Thread Joe Hershberger
Hi Simon, On Tue, Apr 21, 2015 at 8:14 AM, Simon Glass wrote: > Hi Joe, > > On 20 April 2015 at 23:24, Joe Hershberger wrote: >> Hi Simon, >> >> On Wed, Mar 25, 2015 at 1:23 PM, Simon Glass wrote: >>> This adds a simple test for probing and a functional test using the flash >>> stick emulator,

Re: [U-Boot] [PATCH 5/5] dm: test: Don't clear global_data in dm_test_uclass_before_ready()

2015-04-21 Thread Joe Hershberger
Hi Simon, On Sun, Apr 19, 2015 at 8:21 AM, Simon Glass wrote: > We must not clear global_data even in tests, since the ram_buffer (which > is used by malloc()) will also be lost, and subsequent tests will fail. > > Zero only the global_data fields that are required for the test to function. > > S

Re: [U-Boot] [PATCH 4/5] dm: Update the README to reflect the current test output

2015-04-21 Thread Joe Hershberger
Hi Simon, On Sun, Apr 19, 2015 at 8:21 AM, Simon Glass wrote: > There are a lot more tests now. To avoid confusion add the updated test > output to the driver model README. > > Signed-off-by: Simon Glass > --- Reviewed-by: Joe Hershberger ___ U-Boot

Re: [U-Boot] [PATCH 2/5] dm: usb: Add a terminator to the string destructor list

2015-04-21 Thread Joe Hershberger
Hi Simon, On Sun, Apr 19, 2015 at 8:20 AM, Simon Glass wrote: > The terminator is missing. Add it for completeness. > > Signed-off-by: Simon Glass Reviewed-by: Joe Hershberger Tested-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de h

Re: [U-Boot] [PATCH v7 00/17] Add PSCI support for Jetson TK1/Tegra124 + CNTFRQ fix

2015-04-21 Thread Stephen Warren
On 04/20/2015 11:18 PM, Jan Kiszka wrote: Changes in v7: - rebased over master - fixed issue that prevented secure boot with all cores => replace ap_pm_init with psci_board_init hook - enable CONFIG_ARMV7_BOOT_SEC_DEFAULT for tegra to avoid problems with default config of current Li

Re: [U-Boot] [PATCH 19/20] dm: test: dts: Sort the aliases in the test device tree file

2015-04-21 Thread Joe Hershberger
Hi Simon, On Mon, Apr 20, 2015 at 1:37 PM, Simon Glass wrote: > Sort these aliases to avoid confusion as to what is present. > > Signed-off-by: Simon Glass > --- Reviewed-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.d

  1   2   >