Re: [U-Boot] [PATCH 07/20] dm: rtc: Rename to_tm() to rtc_to_tm() and add error code

2015-04-20 Thread Heiko Schocher
Hello Simon, Am 20.04.2015 20:37, schrieb Simon Glass: Rename this function so that it is clear that it is provided by the RTC. Also return an error when it cannot function as expected. This is unlikely to occur since it works for dates since 1752 and many RTCs do not support such old dates. Sti

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

2015-04-20 Thread Joe Hershberger
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, which tests a large chunk of the USB stack. > > Signed-off-by: Simon Glass I'm seeing a seg fault when running the dm tests and bisected it

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

2015-04-20 Thread Jan Kiszka
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 Linux - add cleanup patch for CONFIG_ARMV7_NONSEC/

[U-Boot] [PATCH v7 11/17] ARM: Add board-specific initialization hook for PSCI

2015-04-20 Thread Jan Kiszka
Tegra boards will have to initialize power management for the PSCI support this way. Signed-off-by: Jan Kiszka --- arch/arm/cpu/armv7/virt-v7.c | 6 ++ arch/arm/include/asm/psci.h | 1 + 2 files changed, 7 insertions(+) diff --git a/arch/arm/cpu/armv7/virt-v7.c b/arch/arm/cpu/armv7/virt-v7

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

2015-04-20 Thread Jan Kiszka
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 Przywara Signed-off-by: Jan Ki

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

2015-04-20 Thread Jan Kiszka
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. Signed-off-by: Ian Campbell Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed

[U-Boot] [PATCH v7 07/17] ARM: Put target PC for PSCI CPU_ON on per-CPU stack

2015-04-20 Thread Jan Kiszka
Use a per-CPU variable for saving the target PC during CPU_ON operations. This allows us to run this service independently on targets that have more than 2 cores and also core-local power control. CC: Marc Zyngier Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed-by: Thierry Reding Test

[U-Boot] [PATCH v7 13/17] tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0

2015-04-20 Thread Jan Kiszka
From: Ian Campbell These registers can be used to prevent non-secure world from accessing a megabyte aligned region of RAM, use them to protect the u-boot secure monitor code. At first I tried to do this from s_init(), however this inexplicably causes u-boot's networking (e.g. DHCP) to fail, whi

[U-Boot] [PATCH v7 15/17] ARM: tegra: Enable SMMU when going non-secure

2015-04-20 Thread Jan Kiszka
From: Thierry Reding Make sure to enable the SMMU when booting the kernel in non-secure mode. This is necessary because some of the SMMU registers are restricted to TrustZone-secured requestors, hence the kernel wouldn't be able to turn the SMMU on. At the same time, enable translation for all me

[U-Boot] [PATCH v7 16/17] tegra: Boot in non-secure mode by default

2015-04-20 Thread Jan Kiszka
Upstream Linux is broken with default configs when PSCI, thus non-secure mode is enabled. So the user should explicitly enable this mode, e.g. when she disabled CONFIG_CPU_IDLE in Linux (in which case it's safe to use). We can revert this workaround once Linux got fixed. Signed-off-by: Jan Kiszka

[U-Boot] [PATCH v7 14/17] tegra: Set CNTFRQ for secondary CPUs

2015-04-20 Thread Jan Kiszka
We only set CNTFRQ in arch_timer_init for the boot CPU. But this has to happen for all cores. Fixing this resolves problems of KVM with emulating the generic timer/counter. Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed-by: Thierry Reding Tested-by: Thierry Reding Tested-by: Ian Cam

[U-Boot] [PATCH v7 03/17] ARM: Factor out common psci_get_cpu_id

2015-04-20 Thread Jan Kiszka
Will be required for obtaining the ID of the current CPU in shared PSCI functions. The default implementation requires a dense ID space and only supports a single cluster. Therefore, the functions can be overloaded in cases where these assumptions do not hold. CC: Marc Zyngier Signed-off-by: Jan

[U-Boot] [PATCH v7 12/17] tegra124: Add PSCI support for Tegra124

2015-04-20 Thread Jan Kiszka
This is based on Thierry Reding's work and uses Ian Campell's preparatory patches. It comes with full support for CPU_ON/OFF PSCI services. The algorithm used in this version for turning CPUs on and off was proposed by Peter De Schrijver and Thierry Reding in http://thread.gmane.org/gmane.comp.boot

[U-Boot] [PATCH v7 05/17] ARM: Factor out reusable psci_cpu_entry

2015-04-20 Thread Jan Kiszka
_sunxi_cpu_entry can be converted completely into a reusable psci_cpu_entry. Tegra124 will use it as well. As with psci_disable_smp, also the enabling is designed to be overloaded in cased SMP is not controlled via ACTLR. CC: Marc Zyngier Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewe

[U-Boot] [PATCH v7 04/17] ARM: Factor out reusable psci_cpu_off_common

2015-04-20 Thread Jan Kiszka
Move parts of sunxi's psci_cpu_off into psci_cpu_off_common, namely cache disabling and flushing, clrex and the disabling of SMP for the dying CPU. These steps are apparently generic for ARMv7 and will be reused for Tegra124 support. As the way of disabled SMP is not architectural, though commonly

[U-Boot] [PATCH v7 02/17] sun7i: Remove duplicate call to psci_arch_init

2015-04-20 Thread Jan Kiszka
This is already invoked a few cycles later in monitor mode by _secure_monitor (_sunxi_cpu_entry calls _do_nonsec_entry which triggers _secure_monitor via smc #0). Drop it here, it serves no purpose. CC: Marc Zyngier Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed-by: Thierry Reding Te

[U-Boot] [PATCH v7 08/17] tegra124: Add more registers to struct mc_ctlr

2015-04-20 Thread Jan Kiszka
From: Ian Campbell I will need mc_security_cfg0/1 in a future patch and I added the rest while debugging, so thought I might as well commit them. Signed-off-by: Ian Campbell Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed-by: Thierry Reding Tested-by: Thierry Reding Tested-by: Ian

[U-Boot] [PATCH v7 10/17] tegra: Make tegra_powergate_power_on public

2015-04-20 Thread Jan Kiszka
Will be used for unpowergating CPUs. Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed-by: Thierry Reding Tested-by: Thierry Reding Tested-by: Ian Campbell --- arch/arm/include/asm/arch-tegra/powergate.h | 1 + arch/arm/mach-tegra/powergate.c | 2 +- 2 files changed, 2 ins

[U-Boot] [PATCH v7 06/17] ARM: Factor out reusable psci_get_cpu_stack_top

2015-04-20 Thread Jan Kiszka
This algorithm will be useful on Tegra as well, plus we will need it for making _psci_target_pc per-CPU. CC: Marc Zyngier Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed-by: Thierry Reding Tested-by: Thierry Reding Tested-by: Ian Campbell --- arch/arm/cpu/armv7/psci.S | 14 ++

[U-Boot] [PATCH v7 09/17] virt-dt: Allow reservation of secure region when in a RAM carveout

2015-04-20 Thread Jan Kiszka
In this case the secure code lives in RAM, and hence the memory node in the device tree needs to be adjusted. This avoids that the OS will map and possibly access the reservation. Add support for setting CONFIG_ARMV7_SECURE_RESERVE_SIZE to carve out such a region. We only support cutting off memor

Re: [U-Boot] [PATCH 08/20] dm: rtc: Rename mktime() and reduce the number of parameters

2015-04-20 Thread Heiko Schocher
Hello Simon, Am 20.04.2015 20:37, schrieb Simon Glass: Most callers unpack the structure and pass each member. It seems better to pass the whole structure instead, as with the C library. Also add an rtc_ prefix. Signed-off-by: Simon Glass --- drivers/rtc/at91sam9_rtt.c | 3 +-- drivers/rt

Re: [U-Boot] [PATCH 06/20] dm: rtc: Rename gregorian day function

2015-04-20 Thread Heiko Schocher
Hello Simon, Am 20.04.2015 20:37, schrieb Simon Glass: Change this function name to something more descriptive. Also return a failure code if it cannot calculate a correct value. Signed-off-by: Simon Glass --- common/cmd_date.c| 2 +- drivers/rtc/date.c | 9 +++-- drivers/rtc/

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

2015-04-20 Thread Bin Meng
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 addresses, U-Boot boots up and will not show "Error: dwmac.90006000 address not set" message. Signed-off-by: Bin Meng --- include/co

Re: [U-Boot] [PATCH 03/20] dm: i2c: Add functions to read and write a register

2015-04-20 Thread Heiko Schocher
Hello Simon, Am 20.04.2015 20:37, schrieb Simon Glass: Add driver model versions of the legacy functions to read and write a single byte register. These are a useful shortcut in many cases. Signed-off-by: Simon Glass --- drivers/i2c/i2c-uclass.c | 19 +++ include/i2c.h

Re: [U-Boot] [PATCH 02/20] dm: i2c: sandbox: Add debugging to the speed limit

2015-04-20 Thread Heiko Schocher
Hello Simon, Am 20.04.2015 20:37, schrieb Simon Glass: Print a debug() message with the I2C speed is exceeded. Signed-off-by: Simon Glass --- drivers/i2c/sandbox_i2c.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/sandbox_i2c.c b/drivers/i2c/sandbox_i2c

[U-Boot] [PATCH] SPDX: add X11 SPDX-License-Identifier

2015-04-20 Thread Masahiro Yamada
These is a growing trend to license DT files dual GPL and X11 especially in the Linux community. It allows easier reuse of device trees for other software projects. This commit prepares for doing so in U-Boot too, since DT files are often copied from the kernel to U-Boot. Signed-off-by: Masahiro

Re: [U-Boot] [PATCH v4 9/9] sandbox: add config_distro_defaults and config_distro_bootcmd

2015-04-20 Thread Joe Hershberger
Hi Sjoerd, On Mon, Apr 13, 2015 at 3:54 PM, Sjoerd Simons wrote: > Make the sandbox setup more generic/examplary by including > config_distro_defaults.h and config_distro_bootcmd.h. > > Among other things this makes it easy to test whether images will boot > though with the standard distro bootcm

Re: [U-Boot] [PATCH 02/10] board_init_f_mem(): Don't require memset()

2015-04-20 Thread Masahiro Yamada
2015-04-21 12:47 GMT+09:00 Simon Glass : > Hi Masahiro, > > On 20 April 2015 at 21:42, Masahiro Yamada > wrote: >> Hi Simon, >> >> >> >> 2015-04-16 10:14 GMT+09:00 Simon Glass : >>> Unfortunately memset() is not always available, so provide a substitute when >>> needed. >>> >>> Signed-off-by: Simo

[U-Boot] [PATCH] mpc85xx/T1042D4RDB: Select DIU in cpld mux for T1042D4RDB

2015-04-20 Thread Dongsheng Wang
From: Wang Dongsheng Base on CPLD changes, so DIU switch channel also need to fix. Signed-off-by: Wang Dongsheng --- This patch depends on T1042D4RDB platform code patches. Priyanka Jain has send T1042D4RDB patches to upstrem, but I cannot found them in U-boot patchworks. So just comments in th

[U-Boot] Loopback mode on Xilinx zc702 evaluation board

2015-04-20 Thread Subashgowda Siddaramappa
Hi All, I want to test Ethernet loop back mode on the Xilinx Zc702 evaluation mode from u-boot. I search the u-boot for setting the control register to loopback mode but could not find one. Please let me know if any of you have tested the same and any pointers to do the same. Thanks in advance.

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

2015-04-20 Thread Bin Meng
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 ++--- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/arch/x86/lib/zimage.c b/arch/x86/lib/zimage.c index 566b048..c3

[U-Boot] [PATCH 6/6] ARM: socfpga: abolish CONFIG_SOCFPGA

2015-04-20 Thread Masahiro Yamada
CONFIG_SOCFPGA is only referenced by arch/arm/dts/Makefile. Replace it with CONFIG_ARCH_SOCFPGA. Signed-off-by: Masahiro Yamada --- arch/arm/dts/Makefile| 2 +- include/configs/socfpga_common.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/dts/Makefi

[U-Boot] [PATCH 1/2] x86: Clean up arch/x86/include/asm/e820.h

2015-04-20 Thread Bin Meng
There are lots of unused codes defined in e820.h, clean it up. Signed-off-by: Bin Meng --- arch/x86/include/asm/e820.h | 133 +--- 1 file changed, 2 insertions(+), 131 deletions(-) diff --git a/arch/x86/include/asm/e820.h b/arch/x86/include/asm/e820.h in

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

2015-04-20 Thread Masahiro Yamada
Masahiro Yamada (6): ARM: socfpga: do not add board directory to header search path ARM: socfpga: remove redundant config.mk ARM: socfpga: move board select into mach-socfpga/Kconfig ARM: socfpga: move SoC sources to mach-socfpga ARM: socfpga: move SoC headers to mach-socfpga/include/m

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

2015-04-20 Thread Masahiro Yamada
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. Because SPL always enables compiler's garbage collection, this chang

[U-Boot] [PATCH] mpc85xx/T1042D4RDB: Select DIU in cpld mux for T1042D4RDB

2015-04-20 Thread Dongsheng Wang
From: Wang Dongsheng T1042D4RDB CPLD SFPCSR register defined has changed to 0:1 QE_MUX. There have two bits to control DVI, DFP, PROFIBUS, TMD MUX select. So we need to update a macro define value to switch to DIU channel. Signed-off-by: Wang Dongsheng --- This patch depends on T1042D4RDB plat

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

2015-04-20 Thread Tim Harvey
On Thu, Apr 16, 2015 at 3:36 PM, 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

Re: [U-Boot] [PATCH] mpc85xx/T1042D4RDB: Select DIU in cpld mux for T1042D4RDB

2015-04-20 Thread dongsheng.w...@freescale.com
Hi all, Sorry, please ignore this patch. The description of my patch is incorrect. I will change patchworks status. Sorry again. Regards, -Dongsheng > -Original Message- > From: Dongsheng Wang [mailto:dongsheng.w...@freescale.com] > Sent: Tuesday, April 21, 2015 12:09 PM > To: Sun York

Re: [U-Boot] [PATCH v2] fdt: add new fdt_fixup_display function to configure display

2015-04-20 Thread Tim Harvey
On Thu, Apr 9, 2015 at 10:56 AM, Simon Glass wrote: > Hi Tim, > > On 8 April 2015 at 12:45, Tim Harvey wrote: >> >> Add 'fdt_fixup_display' function to fixup device-tree native-mode property >> of display-timings node to select timings for a specific display. >> This is useful if a device-tree ha

Re: [U-Boot] [PATCH 0/4] ARM: zynq: move sources to mach-zynq

2015-04-20 Thread Masahiro Yamada
Hi Michal, 2015-03-16 16:43 GMT+09:00 Masahiro Yamada : > > > > Masahiro Yamada (4): > ARM: zynq: pass "-mfpu=neon" only to lowlevel_init.S > ARM: zynq: move SoC sources to mach-zynq > ARM: zynq: move SoC headers to mach-zynq/include/mach > ARM: zynq: rename CONFIG_ZYNQ to CONFIG_ARCH_ZYN

Re: [U-Boot] [PATCH 02/10] board_init_f_mem(): Don't require memset()

2015-04-20 Thread Simon Glass
Hi Masahiro, On 20 April 2015 at 21:42, Masahiro Yamada wrote: > Hi Simon, > > > > 2015-04-16 10:14 GMT+09:00 Simon Glass : >> Unfortunately memset() is not always available, so provide a substitute when >> needed. >> >> Signed-off-by: Simon Glass >> --- >> >> common/init/global_data.c | 8

Re: [U-Boot] [PATCH 02/10] board_init_f_mem(): Don't require memset()

2015-04-20 Thread Masahiro Yamada
Hi Simon, 2015-04-16 10:14 GMT+09:00 Simon Glass : > Unfortunately memset() is not always available, so provide a substitute when > needed. > > Signed-off-by: Simon Glass > --- > > common/init/global_data.c | 8 > 1 file changed, 8 insertions(+) > > diff --git a/common/init/global_dat

[U-Boot] [PATCH 4/5] ARM: integrator: abolish CONFIG_INTEGRATOR

2015-04-20 Thread Masahiro Yamada
Switch to CONFIG_ARCH_INTEGRATOR defined by Kconfig. Signed-off-by: Masahiro Yamada Cc: Linus Walleij --- arch/arm/cpu/arm946es/cpu.c | 4 ++-- include/configs/integrator-common.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/cpu/arm946es/cpu.c b/arch/

[U-Boot] [PATCH 3/5] ARM: integrator: split board select into AP/CP select and CM select

2015-04-20 Thread Masahiro Yamada
Select integrator boards by the combination of platform select (AP/CP) and core module select (CM720T, CM920T, ...). This allows us to remove CONFIG_SYS_EXTRA_OPTIONS and make Kconfig much cleaner. Signed-off-by: Masahiro Yamada Cc: Linus Walleij --- arch/arm/mach-integrator/Kconfig|

[U-Boot] [PATCH 2/5] ARM: integrator: move board select into mach-integrator/Kconfig

2015-04-20 Thread Masahiro Yamada
The board/SoC select menu in arch/arm/Kconfig is still cluttered. Add ARCH_INTEGRATOR into arch/arm/Kconfig and move the board select under arch/arm/mach-integrator. Signed-off-by: Masahiro Yamada Cc: Linus Walleij --- arch/arm/Kconfig| 38 ++-- arch/arm/mach-i

[U-Boot] [PATCH 5/5] ARM: integrator: remove CONFIG_ARCH_CINTEGRATOR

2015-04-20 Thread Masahiro Yamada
This macro is not referenced at all. Signed-off-by: Masahiro Yamada Cc: Linus Walleij --- include/configs/integratorcp.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/integratorcp.h b/include/configs/integratorcp.h index 7c1ef24..7518b60 100644 --- a/include/configs/integr

[U-Boot] [PATCH 1/5] ARM: ARM720t: remove empty asm/arch/hardware.h

2015-04-20 Thread Masahiro Yamada
arch/arm/cpu/arm720t/start.S includes , but the hardware.h headers of ARM720T boards are all empty. Signed-off-by: Masahiro Yamada Cc: Linus Walleij Cc: Stephen Warren Cc: Tom Warren --- arch/arm/cpu/arm720t/start.S | 1 - arch/arm/include/asm/arch-arm720t/hardware.h | 17

[U-Boot] [PATCH 0/5] ARM: integrator: Kconfig Clean up

2015-04-20 Thread Masahiro Yamada
Masahiro Yamada (5): ARM: ARM720t: remove empty asm/arch/hardware.h ARM: integrator: move board select into mach-integrator/Kconfig ARM: integrator: split board select into AP/CP select and CM select ARM: integrator: abolish CONFIG_INTEGRATOR ARM: integrator: remove CONFIG_ARCH_CINTEGR

[U-Boot] [PATCH] git-mailrc: add Marek as SOCFPGA maintainer

2015-04-20 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- doc/git-mailrc | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/git-mailrc b/doc/git-mailrc index 5f8438e..218349b 100644 --- a/doc/git-mailrc +++ b/doc/git-mailrc @@ -64,6 +64,7 @@ alias rmobileuboot, iwamatsu alias s3csamsung alia

[U-Boot] [PATCH 4/6] ARM: socfpga: move SoC sources to mach-socfpga

2015-04-20 Thread Masahiro Yamada
Our recent trend is to collect SoC files into arch/arm/mach-(SOC). Signed-off-by: Masahiro Yamada --- arch/arm/Makefile| 1 + arch/arm/cpu/armv7/Makefile | 1 - arch/arm/{cpu/armv7/socfpga => mach-socfpga}/Make

[U-Boot] [PATCH 1/6] ARM: socfpga: do not add board directory to header search path

2015-04-20 Thread Masahiro Yamada
The compiler option "-Iboard/$(VENDOR)/$(BOARD)" just exists here for iocsr_config.c to be able to include iocsr_config.h. Use "..." instead of <...> to include a header in the same directory. Signed-off-by: Masahiro Yamada --- arch/arm/cpu/armv7/socfpga/config.mk | 3 --- board/altera/socfpga

[U-Boot] [PATCH 5/6] ARM: socfpga: move SoC headers to mach-socfpga/include/mach

2015-04-20 Thread Masahiro Yamada
Move headers to mach-socfpga as well. Signed-off-by: Masahiro Yamada --- .../asm/arch-socfpga => mach-socfpga/include/mach}/clock_manager.h| 0 arch/arm/{include/asm/arch-socfpga => mach-socfpga/include/mach}/dwmmc.h | 0 .../asm/arch-socfpga => mach-socfpga/include/mach}/fpga_manager.

[U-Boot] [PATCH 3/6] ARM: socfpga: move board select into mach-socfpga/Kconfig

2015-04-20 Thread Masahiro Yamada
Switch to a more standard way of board select; put the SoC select into arch/arm/Kconfig and move the board select menu under arch/arm/mach-socfpga/Kconfig. Also, consolidate SYS_BOARD, SYS_VENDOR, SYS_SOC, SYS_CONFIG_NAME. Signed-off-by: Masahiro Yamada --- arch/arm/Kconfig |

[U-Boot] [PATCH 2/6] ARM: socfpga: remove redundant config.mk

2015-04-20 Thread Masahiro Yamada
Because all the SOCFPGA boards define CONFIG_SPL_FRAMEWORK (see include/configs/socfpga_common.h), u-boot.img is automatically added to the target image list by the top Makefile. Signed-off-by: Masahiro Yamada --- arch/arm/cpu/armv7/socfpga/config.mk | 8 1 file changed, 8 deletions(-)

Re: [U-Boot] [PATCH v2 8/8] mtd: vf610_nfc: enable ONFI detection

2015-04-20 Thread Scott Wood
On Wed, 2015-04-08 at 16:44 +0200, Stefan Agner wrote: > + case ALT_BUF_ONFI: > + /* Reverse byte since the controller uses big endianness */ > + c = nfc->column % 4; > + c = nfc->column - c + (3 - c); These two lines can be simplified to "c = nfc->column ^

[U-Boot] Pull request: u-boot-net.git master

2015-04-20 Thread Joe Hershberger
The following changes since commit 1733259d25015c28c47990ec11af99b3f62f811c: Merge branch 'master' of git://git.denx.de/u-boot-video (2015-04-20 09:13:52 -0400) are available in the git repository at: git://git.denx.de/u-boot-net.git master for you to fetch changes up to 523bb66f5a8e2cee22

Re: [U-Boot] [PATCH] net: pch_gbe: Fix pch_gbe device name

2015-04-20 Thread Joe Hershberger
Hi Bin Meng, On Tue, Apr 14, 2015 at 9:02 PM, Bin Meng wrote: > The name "pch_gbe.%x" exceeds the limit of the name in the > 'struct eth_device'. Rename it as just "pch_gbe". > > Signed-off-by: Bin Meng Applied to u-boot-net/next, thanks! -Joe ___ U-

Re: [U-Boot] [patch] socfpga: move configuration options to config file

2015-04-20 Thread Pavel Machek
On Mon 2015-04-20 23:32:33, Marek Vasut wrote: > On Monday, April 20, 2015 at 10:27:02 PM, Pavel Machek wrote: > > On Mon 2015-04-20 21:23:23, Marek Vasut wrote: > > > On Monday, April 20, 2015 at 02:30:48 PM, Pavel Machek wrote: > > > > Setting configuration options in header file leads to incosis

Re: [U-Boot] [patch] socfpga: move configuration options to config file

2015-04-20 Thread Marek Vasut
On Monday, April 20, 2015 at 10:27:02 PM, Pavel Machek wrote: > On Mon 2015-04-20 21:23:23, Marek Vasut wrote: > > On Monday, April 20, 2015 at 02:30:48 PM, Pavel Machek wrote: > > > Setting configuration options in header file leads to incosistency > > > between .config user sees, and .config he h

Re: [U-Boot] [PATCH V5 1/3] dm: core: remove type 'static' of function uclass_get_device_tail()

2015-04-20 Thread Simon Glass
On 20 April 2015 at 05:32, Przemyslaw Marczak wrote: > > Uclass API provides a few functions for get/find the device. > To provide a complete function set of uclass-internal functions, > for use by the drivers, the function uclass_get_device_tail() > should be non-static. > > Signed-off-by: Przemy

Re: [U-Boot] [PATCH V5 3/3] dm: core: precise comments for get/find device by name

2015-04-20 Thread Simon Glass
On 20 April 2015 at 05:32, Przemyslaw Marczak wrote: > The functions: > - uclass_find_device_by_name() > - uclass_get_device_by_name() > searches the required device for the exactly given name. > This patch, presice this fact for both function's comments. > > Signed-off-by: Przemyslaw Marczak > C

Re: [U-Boot] [PATCH V5 2/3] dm: test: Add tests for get/find uclass's device by name

2015-04-20 Thread Simon Glass
On 20 April 2015 at 05:32, Przemyslaw Marczak wrote: > This commit introduces simple tests for functions: > - uclass_find_device_by_name() > - uclass_get_device_by_name() > > Tests added by this commit: > - Test: dm_test_uclass_devices_find_by_name: for uclass id: UCLASS_TEST_FDT > * get uclass's

[U-Boot] Please pull u-boot-mpc85xx master

2015-04-20 Thread York Sun
Tom, The following changes since commit b8d7652c81689a69bc6eaa206cf875bbe632831c: Merge branch 'buildman' of git://git.denx.de/u-boot-x86 (2015-04-18 19:24:13 -0400) are available in the git repository at: git://git.denx.de/u-boot-mpc85xx.git master for you to fetch changes up to 221fbd22

Re: [U-Boot] [PATCH] powerpc/mpc8641hpcn: Move environment to avoid conflict

2015-04-20 Thread York Sun
On 04/15/2015 02:13 PM, Scott Wood wrote: > U-Boot on this board grew a long time ago past the 384 KiB that > it reserves for the U-Boot image, before the environment. Thus, > saveenv overwrites the U-Boot image and bricks the board. > > I tried to find out when U-Boot grew beyond this point, b

Re: [U-Boot] [PATCH] board/t2080rdb: enable CONFIG_PHY_AQUANTIA

2015-04-20 Thread York Sun
On 04/07/2015 08:12 PM, Shengzhou Liu wrote: > CONFIG_PHY_AQ1202 is no longer needed, use CONFIG_PHY_AQUANTIA. > > Signed-off-by: Shengzhou Liu > --- Applied to mpc85xx master, awaiting upstream. York ___ U-Boot mailing list U-Boot@lists.denx.de htt

Re: [U-Boot] [PATCH 2/2] powerpc/mpc85xx: Remove some dead code

2015-04-20 Thread York Sun
On 04/07/2015 06:20 PM, Scott Wood wrote: > U-Boot does not have system calls (the services it exposes to > standalone commands use a different mechanism), so the syscall handler > is dead code. It's also broken code, as it assumes it is located at > 0xc00 -- while even before the patch to stop

Re: [U-Boot] [PATCH 1/2] powerpc/mpc85xx: Don't relocate exception vectors

2015-04-20 Thread York Sun
On 04/07/2015 06:20 PM, Scott Wood wrote: > Booke does not require exception vectors to be located at address zero. > U-Boot was doing so anyway, simply because that's how it had been done > on other PPC. The downside of this is that once the OS is loaded to > address zero, the exception vectors

Re: [U-Boot] [PATCH v2] powerpc/t2080rdb: update ddr to support 1866MT/s

2015-04-20 Thread York Sun
On 03/27/2015 12:53 AM, Shengzhou Liu wrote: > Support SODIMM D3XP12081XL10AA 1866MT/s on T2080RDB. > Enable CONFIG_CMD_MEMTEST as well. > > Signed-off-by: Shengzhou Liu > --- > v2: refined commit description. Applied to mpc85xx master, awaiting upstream. York

Re: [U-Boot] [PATCH] T4240RDB: Enable CONFIG_SYS_CORTINA_FW_IN_NOR config

2015-04-20 Thread York Sun
On 03/24/2015 12:10 AM, Chunhe Lan wrote: > Now cortina driver uses macro CONFIG_SYS_CORTINA_FW_IN_NOR > to define that firmware of cortina driver is stored in the > nor flash. > > Signed-off-by: Chunhe Lan > --- Applied to mpc85xx master, awaiting upstream. York _

Re: [U-Boot] [PATCH] board/t208xrdb: VID support

2015-04-20 Thread York Sun
On 03/09/2015 11:21 PM, ying.zh...@freescale.com wrote: > From: Ying Zhang > > The fuse status register provides the values from on-chip > voltage ID efuses programmed at the factory. > These values define the voltage requirements for > the chip. u-boot reads FUSESR and translates the values >

Re: [U-Boot] [PATCH] powerpc/t2080: enable erratum_a007186 for t2080 rev1.1

2015-04-20 Thread York Sun
On 03/09/2015 02:12 AM, Shengzhou Liu wrote: > T2080 rev1.1 also needs erratum a007186. > > Signed-off-by: Shengzhou Liu > --- Applied to mpc85xx master, awaiting upstream. York ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailm

Re: [U-Boot] [PATCH] qemu-ppce500: Add support for 64bit CCSR map

2015-04-20 Thread York Sun
On 03/06/2015 05:10 PM, Alexander Graf wrote: > QEMU 2.3 changes the address layout of the CCSR map in the PV ppce500 machine > to reside in higher address space. > > Unfortunately, this exposed a glitch in u-boot for ppce500: While providing > a function to dynamically evaluate the CCSR region'

Re: [U-Boot] [PATCH 1/1] MPC8541/MPC8555: Enable SS_EN in DDR_SDRAM_CLK_CNLT register

2015-04-20 Thread York Sun
On 02/13/2015 10:57 AM, Curt Brune wrote: > According to the MPC8555/MPC8541 reference manual the SS_EN (source > synchronous enable) bit in the DDR_SDRAM_CLK_CNLT register must be set > during initialization. > > From section 9.4.1.8 of that manual: > >Source synchronous enable. This bit fi

Re: [U-Boot] [patch] socfpga: move configuration options to config file

2015-04-20 Thread Pavel Machek
On Mon 2015-04-20 21:23:23, Marek Vasut wrote: > On Monday, April 20, 2015 at 02:30:48 PM, Pavel Machek wrote: > > Setting configuration options in header file leads to incosistency > > between .config user sees, and .config he has. What is worse, a lot of > > compile warnings is presented for any

[U-Boot] [PATCH] Fix mxc_hab documenation

2015-04-20 Thread Ulises.Cardenas
From: Ulises Cardenas It is necessary to modify the configuration file for the target board. It wasn't well documented that to enable any of the secure boot modes, it is required to add CONFIG_SECURE_BOOT to the board configuration file. Also, fixed a typo in the encrypted boot section. Signed-

Re: [U-Boot] [REGRESSION] commit e04916a "SECURE_BOOT : enable esbc_validate..." breaks MX6

2015-04-20 Thread Ulises Cardenas
On 04/02/2015 02:18 PM, Tom Rini wrote: On Thu, Apr 02, 2015 at 10:19:11AM -0600, Ulises Cardenas wrote: Hi, The aforementioned commit e04916a721a2069fc770412c57974d02e153ad18, causes MX6 boards to break Configuring CONFIG_SECURE_BOOT makes the u-boot build fail for any MX6 board. This was r

Re: [U-Boot] [patch] socfpga: move configuration options to config file

2015-04-20 Thread Marek Vasut
On Monday, April 20, 2015 at 02:30:48 PM, Pavel Machek wrote: > Setting configuration options in header file leads to incosistency > between .config user sees, and .config he has. What is worse, a lot of > compile warnings is presented for any such config option user sets in > .config. Can you ple

Re: [U-Boot] [PATCH] fdt: Fix handling of paths with options in them

2015-04-20 Thread Hans de Goede
Hi, On 20-04-15 17:39, Simon Glass wrote: Hi Hans, On 20 April 2015 at 03:13, Hans de Goede wrote: After syncing the sunxi dts files with the upstream kernel dm/fdt sunxi builds would no longer boot. The problem is that stdout-path is now set like this in the upstream dts files: stdout-path

[U-Boot] [PATCH 00/20] dm: rtc: Add driver model support for real-time clocks

2015-04-20 Thread Simon Glass
When driver model is used for I2C, the real-time clock functionality does not work (e.g. the 'date' command gives build errors when CONFIG_DM_I2C is defined). It is possible to work around this by using driver model I2C functions. But what is really needed is an RTC uclass. This series: - renames

[U-Boot] [PATCH 10/20] dm: rtc: Split structure definition into its own file

2015-04-20 Thread Simon Glass
Move the definition of struct rtc_time into a separate file so that sandbox can include it without requiring common.h and the like. Signed-off-by: Simon Glass --- include/rtc.h | 26 +- include/rtc_def.h | 36 2 files changed, 37

[U-Boot] [PATCH 15/20] dm: rtc: Convert 'date' command to support driver model

2015-04-20 Thread Simon Glass
Adjust this command so that it supports using driver model for I2C, i.e. CONFIG_DM_I2C. This will permit it to be used in sandbox also. Signed-off-by: Simon Glass --- common/cmd_date.c | 53 +++-- 1 file changed, 39 insertions(+), 14 deletions(-)

[U-Boot] [PATCH 09/20] dm: Remove unnecessary types in bcd.h

2015-04-20 Thread Simon Glass
We don't need to use u8, and if we avoid it, it isn't so much of a problem that rtc.h includes this header. With this change we can include rtc.h from sandbox files. Signed-off-by: Simon Glass --- include/bcd.h | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/

[U-Boot] [PATCH 14/20] dm: rtc: sandbox: Add a driver for the sandbox I2C RTC

2015-04-20 Thread Simon Glass
Add a driver which communicates with the sandbox I2C emulation RTC device and permits it to be used in U-Boot. This driver is very simple - it just reads and writes selected I2C registers in the device. Signed-off-by: Simon Glass --- drivers/rtc/Makefile | 3 ++ drivers/rtc/sandbox_rtc.c

Re: [U-Boot] [PATCH 16/20] dm: net: rtc: Support using driver model for rtc in sntp

2015-04-20 Thread Joe Hershberger
Hi Simon, On Mon, Apr 20, 2015 at 1:37 PM, Simon Glass wrote: > When setting the date, support driver model RTC also. > > Signed-off-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/l

[U-Boot] [PATCH 07/20] dm: rtc: Rename to_tm() to rtc_to_tm() and add error code

2015-04-20 Thread Simon Glass
Rename this function so that it is clear that it is provided by the RTC. Also return an error when it cannot function as expected. This is unlikely to occur since it works for dates since 1752 and many RTCs do not support such old dates. Still it is better to be accurate. Signed-off-by: Simon Glas

[U-Boot] [PATCH 20/20] dm: rtc: Add tests for real-time clocks

2015-04-20 Thread Simon Glass
Add some simple tests to verify that the RTC uclass works correctly in U-Boot. Signed-off-by: Simon Glass --- test/dm/Makefile | 1 + test/dm/rtc.c| 175 +++ test/dm/test.dts | 18 ++ 3 files changed, 194 insertions(+) create mode

[U-Boot] [PATCH 17/20] dm: sandbox: dts: Add a real-time clock attached to I2C

2015-04-20 Thread Simon Glass
Add an emulated RTC device for sandbox, so that the 'date' command can be used. Signed-off-by: Simon Glass --- arch/sandbox/dts/sandbox.dts | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts index efa2097.

[U-Boot] [PATCH 11/20] dm: sandbox: Add os_localtime() to obtain the system time

2015-04-20 Thread Simon Glass
Add a function to read the system time into U-Boot. Signed-off-by: Simon Glass --- arch/sandbox/cpu/os.c | 18 ++ include/os.h | 11 +++ 2 files changed, 29 insertions(+) diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index 4d5f805..e6dd17e 100644 -

[U-Boot] [PATCH 12/20] dm: rtc: Add a uclass for real-time clocks

2015-04-20 Thread Simon Glass
Add a uclass for real-time clocks which support getting the current time, setting it and resetting the chip to a known-working state. Some RTCs have additional registers which can be used to store settings, so also provide an interface to these. Signed-off-by: Simon Glass --- drivers/rtc/Kconfi

[U-Boot] [PATCH 13/20] dm: rtc: sandbox: Add an emulated I2C RTC device

2015-04-20 Thread Simon Glass
Add a sandbox I2C emulation device which emulates a real-time clock. The clock works off an offset from the current system time, and supports setting and getting the clock, as well as access to byte-width regisers in the RTC. It does not support changing the system time. This device can be used fo

[U-Boot] [PATCH 04/20] dm: i2c: Add an explicit test mode to the sandbox I2C driver

2015-04-20 Thread Simon Glass
At present this driver has a few test features. They are needed for running the driver model unit tests but are confusing and unnecessary if using sandbox at the command line. Add a flag to enable the test mode, and don't enable it by default. Signed-off-by: Simon Glass --- arch/sandbox/include

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

2015-04-20 Thread Simon Glass
Sort these aliases to avoid confusion as to what is present. Signed-off-by: Simon Glass --- test/dm/test.dts | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/dm/test.dts b/test/dm/test.dts index d0c40be..dd6d0ac 100644 --- a/test/dm/test.dts +++ b/test/dm/test.dt

[U-Boot] [PATCH 08/20] dm: rtc: Rename mktime() and reduce the number of parameters

2015-04-20 Thread Simon Glass
Most callers unpack the structure and pass each member. It seems better to pass the whole structure instead, as with the C library. Also add an rtc_ prefix. Signed-off-by: Simon Glass --- drivers/rtc/at91sam9_rtt.c | 3 +-- drivers/rtc/bfin_rtc.c | 3 +-- drivers/rtc/date.c | 23 +

[U-Boot] [PATCH 01/20] dm: spi: Correct the comment on spi_get_ops()

2015-04-20 Thread Simon Glass
This comment should refer to SPI, not serial. Signed-off-by: Simon Glass --- include/spi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spi.h b/include/spi.h index c58e453..aa0598b 100644 --- a/include/spi.h +++ b/include/spi.h @@ -612,7 +612,7 @@ int sandbox_spi_

[U-Boot] [PATCH 03/20] dm: i2c: Add functions to read and write a register

2015-04-20 Thread Simon Glass
Add driver model versions of the legacy functions to read and write a single byte register. These are a useful shortcut in many cases. Signed-off-by: Simon Glass --- drivers/i2c/i2c-uclass.c | 19 +++ include/i2c.h| 21 + 2 files changed, 40 inser

[U-Boot] [PATCH 06/20] dm: rtc: Rename gregorian day function

2015-04-20 Thread Simon Glass
Change this function name to something more descriptive. Also return a failure code if it cannot calculate a correct value. Signed-off-by: Simon Glass --- common/cmd_date.c| 2 +- drivers/rtc/date.c | 9 +++-- drivers/rtc/ds1306.c | 2 +- include/rtc.h| 12 +++- 4 f

[U-Boot] [PATCH 18/20] dm: rtc: sandbox: Enable real-time clock support

2015-04-20 Thread Simon Glass
Enable real-time-clock support in sandbox. Signed-off-by: Simon Glass --- configs/sandbox_defconfig | 1 + drivers/rtc/Makefile | 2 -- include/configs/sandbox.h | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig inde

[U-Boot] [PATCH 16/20] dm: net: rtc: Support using driver model for rtc in sntp

2015-04-20 Thread Simon Glass
When setting the date, support driver model RTC also. Signed-off-by: Simon Glass --- net/sntp.c | 12 1 file changed, 12 insertions(+) diff --git a/net/sntp.c b/net/sntp.c index d7b9e55..9c8ee34 100644 --- a/net/sntp.c +++ b/net/sntp.c @@ -7,6 +7,7 @@ #include #include +#inc

[U-Boot] [PATCH 05/20] fdt: Correct warning in fdt_setup_simplefb_node()

2015-04-20 Thread Simon Glass
Adjust the printf() string to avoid a warning on sandbox. Signed-off-by: Simon Glass --- common/fdt_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index 8266bca..6211a82 100644 --- a/common/fdt_support.c +++ b/common/fdt

[U-Boot] [PATCH 02/20] dm: i2c: sandbox: Add debugging to the speed limit

2015-04-20 Thread Simon Glass
Print a debug() message with the I2C speed is exceeded. Signed-off-by: Simon Glass --- drivers/i2c/sandbox_i2c.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/sandbox_i2c.c b/drivers/i2c/sandbox_i2c.c index d6adc0f..621caec 100644 --- a/drivers/i2c/sandbox_i

  1   2   >