[U-Boot] [PATCH v2 0/3] support enter download mode on rockchip platform

2017-09-14 Thread Andy Yan
Most rockchip platform based boards use a key to instruct the board enter download firmware mode, some boards use a adc to detect the key status, and some use a gpio. This series try to implement all the download mode related functions. Changes in v2: - correct the rk322x boot mode register addr

[U-Boot] [PATCH v2 1/3] rockchip: make boot_mode related codes reused across all platforms

2017-09-14 Thread Andy Yan
setup_boot_mode function use the same logic but different mode register address across all the rockchip platforms, so it's better to make this function reused across all the platforms, and let the mode register address setting from the config file. Signed-off-by: Andy Yan Reviewed-by: Simon Glass

[U-Boot] [PATCH v2 2/3] rockchip: add support for enter to bootrom download mode

2017-09-14 Thread Andy Yan
Rockchip bootrom will enter download mode if it returns from spl/tpl with a non-zero value and couldn't find a valid image in the backup partition. This patch provide a method to instruct the system to back to bootrom download mode by checking the BROM_DOWNLOAD_FLAG register. As the bootrom downloa

[U-Boot] [PATCH v2 3/3] rockchip: check download key before bootup

2017-09-14 Thread Andy Yan
Enter download mode if the download key pressed. Signed-off-by: Andy Yan --- Changes in v2: - more document - move adc key detect as the defaut arch/arm/mach-rockchip/boot_mode.c | 43 ++ 1 file changed, 43 insertions(+) diff --git a/arch/arm/mach-rockchip

[U-Boot] [PATCH 1/1] test/py: u_boot_console_base.py: fix typo

2017-09-14 Thread Heinrich Schuchardt
run_command does not have a parameter wait_for_each. Signed-off-by: Heinrich Schuchardt --- test/py/u_boot_console_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index b1f474236e..eedf73f858 100644 --- a

Re: [U-Boot] [U-Boot,1/8] adc: Add driver for Rockchip Saradc

2017-09-14 Thread David.Wu
Spam detection software, running on the system "lists.denx.de", has identified this incoming email as possible spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview:

Re: [U-Boot] [PATCH v3 00/14] uboot overlays, FIT image & unittest

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 09:03:38PM -0400, Tom Rini wrote: > On Wed, Sep 13, 2017 at 06:53:17PM -0600, Simon Glass wrote: > > Hi Pantelis, > > > > On 4 September 2017 at 14:12, Pantelis Antoniou > > wrote: > > > This patchset allows uboot to handle overlays in a manner that uses > > > a base DT bl

Re: [U-Boot] [PATCH v3 00/14] uboot overlays, FIT image & unittest

2017-09-14 Thread Tom Rini
On Thu, Sep 14, 2017 at 07:23:29AM -0400, Tom Rini wrote: > On Wed, Sep 13, 2017 at 09:03:38PM -0400, Tom Rini wrote: > > On Wed, Sep 13, 2017 at 06:53:17PM -0600, Simon Glass wrote: > > > Hi Pantelis, > > > > > > On 4 September 2017 at 14:12, Pantelis Antoniou > > > wrote: > > > > This patchset

[U-Boot] [PATCH v2] arm: am33xx: Make pin multiplexing functions optional

2017-09-14 Thread Felix Brack
This patch provides default implementations of the two functions set_uart_mux_conf and set_mux_conf_regs. Hence boards not using them do not need to provide their distinct empty definitions. Signed-off-by: Felix Brack --- Changes in v2: - removed weak attribute from function declarations - add

Re: [U-Boot] lib: disable hashtable and display options code in SPL

2017-09-14 Thread Tom Rini
On Mon, Aug 28, 2017 at 05:53:08PM +0200, Anatolij Gustschin wrote: > We do not need hashtable code in SPL when building > without environment support. Also display options > code is not used in current SPL configuration and > can be disabled. > > Signed-off-by: Anatolij Gustschin > --- > lib/M

Re: [U-Boot] [PATCH] Kconfig: BOOTCOMMAND: Define default set of boot commands in Kconfig

2017-09-14 Thread Tom Rini
On Mon, Sep 11, 2017 at 10:53:51PM +0200, Łukasz Majewski wrote: > On 09/11/2017 07:31 PM, Tom Rini wrote: > >On Sun, Sep 10, 2017 at 08:25:02PM +0200, Lukasz Majewski wrote: > > > >>This patch gives an opportunity to override the defined CONFIG_BOOTCOMMAND > >>(at files) with set of commands defi

Re: [U-Boot] [U-Boot, 6/8] clk: rockchip: Add rk3368 Saradc clock support

2017-09-14 Thread Dr. Philipp Tomsich
> On 14 Sep 2017, at 13:17, David.Wu wrote: > > Hi Philipp, > > 在 2017/9/14 4:41, Philipp Tomsich 写道: >>> +static ulong rk3368_saradc_get_clk(struct rk3368_cru *cru) >>> +{ >>> +u32 div, val; >>> + >>> +val = readl(&cru->clksel_con[25]); >>> +div = bitfield_extract(val, CLK_SARADC_D

Re: [U-Boot] [U-Boot, v2, 3/5] spl: fit: Eanble GZIP support for image decompression

2017-09-14 Thread York Sun
On 09/13/2017 09:27 PM, Heinrich Schuchardt wrote: > On 09/13/2017 11:07 PM, York Sun wrote: >> On 09/13/2017 01:38 PM, Heinrich Schuchardt wrote: >>> On 08/08/2017 01:16 AM, York Sun wrote: Add Kconfig option SPL_GZIP and SPL_ZLIB to enable gunzip support for SPL boot, eg. falcon boot co

Re: [U-Boot] [U-Boot, v2, 3/5] spl: fit: Eanble GZIP support for image decompression

2017-09-14 Thread Tom Rini
On Thu, Sep 14, 2017 at 03:20:18PM +, York Sun wrote: > On 09/13/2017 09:27 PM, Heinrich Schuchardt wrote: > > On 09/13/2017 11:07 PM, York Sun wrote: > >> On 09/13/2017 01:38 PM, Heinrich Schuchardt wrote: > >>> On 08/08/2017 01:16 AM, York Sun wrote: > Add Kconfig option SPL_GZIP and SPL

[U-Boot] [PATCH] Travis-CI: Switch back to using the top of tree dtc

2017-09-14 Thread Tom Rini
In a0f3e3df4adc we switched to using the Ubuntu-provided dtc as travis was having a problem with the number of warnings that were generated by the newer dtc. This is no longer a concern as we now have the same logic as Linux to enable/disable additional more stringent warnings. Go back to buildin

Re: [U-Boot] [PATCH v3 00/14] uboot overlays, FIT image & unittest

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 06:53:17PM -0600, Simon Glass wrote: > Hi Pantelis, > > On 4 September 2017 at 14:12, Pantelis Antoniou > wrote: > > This patchset allows uboot to handle overlays in a manner that uses > > a base DT blob and an arbitrary number of DT overlays blobs. > > > > While it is in

Re: [U-Boot] [PATCH 04/15] spl: fit: simplify logic for FDT loading for non-OS boots

2017-09-14 Thread York Sun
On 09/13/2017 03:11 PM, Dr. Philipp Tomsich wrote: > York, > >> On 13 Sep 2017, at 23:24, York Sun wrote: >> >> On 09/13/2017 02:21 PM, Dr. Philipp Tomsich wrote: >>> York, >>> On 13 Sep 2017, at 23:16, York Sun wrote: On 09/13/2017 12:30 PM, Philipp Tomsich wrote: > To better

Re: [U-Boot] [U-Boot, v2, 3/5] spl: fit: Eanble GZIP support for image decompression

2017-09-14 Thread Heinrich Schuchardt
On 09/14/2017 05:23 PM, Tom Rini wrote: > On Thu, Sep 14, 2017 at 03:20:18PM +, York Sun wrote: >> On 09/13/2017 09:27 PM, Heinrich Schuchardt wrote: >>> On 09/13/2017 11:07 PM, York Sun wrote: On 09/13/2017 01:38 PM, Heinrich Schuchardt wrote: > On 08/08/2017 01:16 AM, York Sun wrote:

[U-Boot] [PATCH v2 1/7] spl: fix assignment of board info to global data

2017-09-14 Thread York Sun
This partially reverts commit 15eb1d43bf470b85e9031c2fce7e0ce7b27dd321 which intended to move assignment of board info earlier, into board_init_r(). However, function preload_console_init() is called either from spl_board_init() or from board_init_f(). For the latter case, the board info assignment

[U-Boot] [PATCH v2 2/7] cmd: spl: fix compiling error when CONFIG_CMD_SPL_WRITE_SIZE not defined

2017-09-14 Thread York Sun
CONFIG_CMD_SPL_WRITE_SIZE is used for writing parameters to non-volatile storage. So far it is only used for NAND. Fix compiling error when this macro is not used for SD. Signed-off-by: York Sun CC: Anatolij Gustschin --- Changes in v2: New patch to fix compiling error after rebasing to latest

[U-Boot] [PATCH v2 4/7] armv8: ls1043ardb: Use static DDR setting for SPL boot

2017-09-14 Thread York Sun
This board has soldered DDR chips. To reduce the SPL image size, use static DDR setting instead of dynamic DDR driver. Signed-off-by: York Sun --- Changes in v2: Drop checking secure boot in this patch after rebasing to latest mater. Recent change in SPL makes the image size bigger. board/fre

[U-Boot] [PATCH v2 3/7] armv8: fsl-layerscape: Avoid running dram_init_banksize again

2017-09-14 Thread York Sun
gd->ram_size is reduced in this function to reserve secure memory. Avoid running this function again to further reduce memory size. This fixes issue for SPL boot with PPA image loaded in which case secure memory is incorrectly allocated due to repeated calling. Signed-off-by: York Sun --- Chang

[U-Boot] [PATCH v2 6/7] armv8: ls1043ardb: Enable spl_board_init() function

2017-09-14 Thread York Sun
CONFIG_SPL_BOARD_INIT is used for SPL boot. Enable it in defconfig for LS1043ARDB SPL targets. Signed-off-by: York Sun --- Changes in v2: None configs/ls1043ardb_nand_SECURE_BOOT_defconfig | 1 + configs/ls1043ardb_nand_defconfig | 1 + configs/ls1043ardb_sdcard_SECURE_BOOT_def

[U-Boot] [PATCH v2 0/7] Enable falcon boot for LS1043ARDB

2017-09-14 Thread York Sun
This is the 2nd version to enable falcon boot for LS1043ARDB. With SPL FIT patches merged, enabling falcon boot for this board is straight forward after fixing some errors introduced by other commits. Secure boot is dropped in this set due to SPL image size issue. Recent changes made the SPL image

[U-Boot] [PATCH v2 7/7] armv8: ls1043ardb_sdcard: Enable falcon boot

2017-09-14 Thread York Sun
Update defconfig to enable falcon boot, add needed macros to board header file. Because environment variables are not avaiable during SPL stage for SD boot, set "boot_os=y" as default. Signed-off-by: York Sun --- Changes in v2: None configs/ls1043ardb_sdcard_defconfig | 6 ++ include/conf

[U-Boot] [PATCH v2 5/7] armv8: layerscape: Eanble falcon boot

2017-09-14 Thread York Sun
Add jump_to_image_linux() for arm64. Add "noreturn" flag to armv8_switch_to_el2(). Add hooks to fsl-layerscape to enable falcon boot. Signed-off-by: York Sun --- Changes in v2: Relace getenv_f() with env_get_f() after rebasing to latet master. .../arm/cpu/armv8/fsl-layerscape/doc/README.falco

[U-Boot] [PATCH] spl: Fix compiling warning on gunzip argument

2017-09-14 Thread York Sun
common/spl/spl_fit.c:201:12: warning: passing argument 4 of ‘gunzip’ from incompatible pointer type [-Wincompatible-pointer-types] src, &length)) Signed-off-by: York Sun Reported-by: Heinrich Schuchardt --- common/spl/spl_fit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) d

[U-Boot] [PATCH] armv7: ls1021a: Fix marco CONFIG_LS102XA

2017-09-14 Thread York Sun
Commit a8ecb39e accidentally reverted config macro CONFIG_ARCH_LS1021A to CONFIG_LS102XA. Signed-off-by: York Sun --- include/usb/ehci-ci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/usb/ehci-ci.h b/include/usb/ehci-ci.h index cd3eb47..59bfc14 100644 --- a/inclu

Re: [U-Boot] [PATCH] config: ls1012aqds: Add USB EHCI support for ls1012aqds

2017-09-14 Thread York Sun
On 07/27/2017 03:05 AM, yinbo@nxp.com wrote: > From: Rajesh Bhagat > > Add USB EHCI support for ls1012aqds platform > > Signed-off-by: Rajat Srivastava > Signed-off-by: Rajesh Bhagat > Signed-off-by: yinbo.zhu > --- > arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 1 + > incl

Re: [U-Boot] [PATCH] config: ls1012aqds: Add USB EHCI support for ls1012aqds

2017-09-14 Thread York Sun
On 09/14/2017 12:54 PM, York Sun wrote: > On 07/27/2017 03:05 AM, yinbo@nxp.com wrote: >> From: Rajesh Bhagat >> >> +#elif defined(CONFIG_LS102XA) || defined(CONFIG_ARCH_LS1012A) > > Please use CONFIG_ARCH_LS1021A, not CONFIG_LS102XA. > Never mind. This is merged. I will send a patch to

Re: [U-Boot] [U-Boot, 08/14] usb: dwc3: Add helper functions to enable snooping and burst settings

2017-09-14 Thread York Sun
On 05/17/2017 05:05 AM, yinbo.zhu wrote: > From: Rajat Srivastava > > Adds helper functions to enable snooping and outstanding burst beat > settings. > > Signed-off-by: Rajat Srivastava > Signed-off-by: Rajesh Bhagat > --- Please re-submit this set. Some of them are accepted as separated patc

[U-Boot] [PATCH 0/8] test/py: Fixes for python 3.x

2017-09-14 Thread Paul Burton
This series allows test/py to run on python 3.x in addition to the already supported python 2.x. With it applied I currently see only one failure (test_ut[ut_dm_usb_flash]) which doesn't appear to be python related when running with: $ ./test/py/test.py --bd sandbox --build Thanks, Paul Paul

[U-Boot] [PATCH 1/8] test/py: Make print statements python 3.x safe

2017-09-14 Thread Paul Burton
In python 3.x print must be called as a function rather than used as a statement. Update uses of print to the function call syntax in order to be python 3.x safe. Signed-off-by: Paul Burton --- test/py/conftest.py | 2 +- test/py/test.py | 6 -- test/py/tes

[U-Boot] [PATCH 2/8] test/py: Use range() rather than xrange()

2017-09-14 Thread Paul Burton
In python 3.x the xrange() function has been removed, and range() returns an iterator much like Python 2.x's xrange(). Simply use range() in place of xrange() in order to work on both python 2.x & 3.x. This will mean a small cost on python 2.x since range() will return a list there rather than an i

Re: [U-Boot] [PATCH] PCI: layerscape: Make the pcie link up status judgement more specific

2017-09-14 Thread York Sun
On 08/15/2017 11:32 PM, Xiaowei Bao wrote: > Hi York, > > Yes, it is my mean, I am not brief enough to express, thank you correct me. Xiaowei, Please update his patch as discussed. York ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.d

[U-Boot] [PATCH 3/8] test/py: Import 'configparser' lower case to be python 3.x safe

2017-09-14 Thread Paul Burton
In python 3.x the configparser module is named with all lower case. Import it as such in order to avoid errors when running on python 3.x, and fall back to the CamelCase version in order to keep working with python 2.x. Signed-off-by: Paul Burton --- test/py/conftest.py | 6 +- 1 file chang

[U-Boot] [PATCH 4/8] test/py: Import StringIO from io module for python 3.x

2017-09-14 Thread Paul Burton
In python 3.x the StringIO module is gone, and instead StringIO can be imported from the io module. Do this in order to run on python 3.x, and fall back to importing StringIO as a module in order to continue working with python 2.x. Signed-off-by: Paul Burton --- test/py/conftest.py | 8 ++-

[U-Boot] [PATCH 7/8] test/py: hush_if_test: Use open() in place of file()

2017-09-14 Thread Paul Burton
In python 3.x the file() function has been removed. Use open() instead, which works on both python 2.x & 3.x, and is described as the preferred method of opening a file by python 2.x documentation anyway. Signed-off-by: Paul Burton --- test/py/tests/test_hush_if_test.py | 2 +- 1 file changed,

[U-Boot] [PATCH 5/8] test/py: Encode/decode strings for stdio

2017-09-14 Thread Paul Burton
When reading stdin python 3.x will give us byte arrays, and when writing stdout or stderr it will expect byte arrays. In order to insulate the rest of the code from this difference, call encode or decode at appropriate points when reading or writing stdio files. This works fine on python 2.x too.

[U-Boot] [PATCH 6/8] test/py: fit: Open files as binary files

2017-09-14 Thread Paul Burton
The read_file() function in test_fit is used with files that are not text files, as well as some that are. It is never used in a way that requires it to decode text files to characters, so open all files in binary mode such that read() doesn't attempt to decode characters for files which are not te

[U-Boot] [PATCH 8/8] test/py: vboot: Remove stderr redirect from openssl command

2017-09-14 Thread Paul Burton
The openssl command specified in test_with_algo() ultimately ends up being run by RunAndLog::run(), which uses it to construct a Popen object with the default shell=False. The stderr redirect in the command is therefore simply passed to openssl as an argument. With at least openssl 1.1.0f this caus

Re: [U-Boot] [PATCH 1/1] board/ls2081ardb: Update display information during boot

2017-09-14 Thread York Sun
On 08/18/2017 03:21 AM, Prabhakar Kushwaha wrote: > >> -Original Message- >> From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Santan >> Kumar >> Sent: Friday, August 18, 2017 3:21 PM >> To: u-boot@lists.denx.de; York Sun >> Cc: Priyanka Jain >> Subject: [U-Boot] [PATCH 1/1

Re: [U-Boot] [PATCH] armv8/ls1088a: configure PMU's PCTBENR to enable WDT

2017-09-14 Thread York Sun
The subject doesn't represent your change. Please revise. On 08/22/2017 03:47 AM, ying.zhang22...@nxp.com wrote: > From: Zhang Ying-22455 > > The SP805-WDT module on LS1088A requires configuration of PMU's > PCTBENR register to enable watchdog counter decrement and reset > signal generation. The

Re: [U-Boot] [PATCH v2 1/2] LS1088A_QSPI: SECURE_BOOT: Images validation

2017-09-14 Thread York Sun
On 08/25/2017 02:03 AM, Udit Agarwal wrote: > Validates PPA, MC, DPC, Bootscript, DPL and Kernel images in ESBC phase > using esbc_validate command. Add images validation in default environment > under mcinitcmd prior to MC initialization. > > Add header address for PPA to be validated during ESBC

Re: [U-Boot] [PATCH 3/8] test/py: Import 'configparser' lower case to be python 3.x safe

2017-09-14 Thread Stephen Warren
On 09/14/2017 02:06 PM, Paul Burton wrote: In python 3.x the configparser module is named with all lower case. Import it as such in order to avoid errors when running on python 3.x, and fall back to the CamelCase version in order to keep working with python 2.x. diff --git a/test/py/conftest.p

Re: [U-Boot] [PATCH 8/8] test/py: vboot: Remove stderr redirect from openssl command

2017-09-14 Thread Stephen Warren
On 09/14/2017 02:06 PM, Paul Burton wrote: The openssl command specified in test_with_algo() ultimately ends up being run by RunAndLog::run(), which uses it to construct a Popen object with the default shell=False. The stderr redirect in the command is therefore simply passed to openssl as an arg

Re: [U-Boot] [PATCH v2 2/2] LS1088A_QSPI: Add secure boot defconfigs for QSPI boot.

2017-09-14 Thread York Sun
On 08/25/2017 02:03 AM, Udit Agarwal wrote: > Add the secure boot defconfigs for QSPI boot on LS1088ARDB > and LS1088AQDS platforms. > > Signed-off-by: Udit Agarwal > --- > configs/ls1088aqds_qspi_SECURE_BOOT_defconfig | 32 > +++ > configs/ls1088ardb_qspi_SECURE_BOOT_

Re: [U-Boot] [PATCH] LS2080A_SECURE_BOOT: Enable CONFIG_FSL_LS_PPA.

2017-09-14 Thread York Sun
On 08/28/2017 04:26 AM, Udit Agarwal wrote: > Add config CONFIG_FSL_LS_PPA and CONFIG_FSL_CAAM in > LS2080AQDS and LS2080ARDB secure boot defconfig. You also change other things. Please explain. > > Signed-off-by: Udit Agarwal > --- > configs/ls2080aqds_SECURE_BOOT_defconfig | 5 +++-- > con

Re: [U-Boot] [PATCH 1/3] armv8: fsl-layerscape: SPL size reduction

2017-09-14 Thread York Sun
On 08/29/2017 12:01 AM, Sumit Garg wrote: > Using changes in this patch we were able to reduce approx 4k > size of u-boot-spl.bin image. Following is breif description of > changes to reduce SPL size: > 1. Compile-off mp.c and libfdt.c in case of SPL build. > 2. Keep MMU and DCACHE specific variabl

Re: [U-Boot] [PATCH] board/ls2080ardb: Add mcmemsize variable in default env

2017-09-14 Thread York Sun
On 08/29/2017 02:50 AM, Priyanka Jain wrote: > For most of ls2080ardb use-cases, mc private DRAM block is required > to be of 1.75GB. > Henc set mcmemsize=0x7000 in default env > > Signed-off-by: Priyanka Jain > --- > include/configs/ls2080ardb.h |1 + > 1 files changed, 1 insertions(

Re: [U-Boot] efi_loader: fix events

2017-09-14 Thread Heinrich Schuchardt
On 09/12/2017 06:35 PM, Rob Clark wrote: > An event can be created with type==0, Shell.efi does this for an event > that is set when Ctrl-C is typed. So our current approach of having a > fixed set of timer slots, and determining which slots are unused by > type==0 doesn't work so well. But we do

Re: [U-Boot] [RESEND PATCH v3 1/7] armv8: lsch3: Add serdes and DDR voltage setup

2017-09-14 Thread York Sun
You have a lot of magic numbers and delays. See inline comments. On 09/03/2017 11:24 PM, Rajesh Bhagat wrote: > Adds SERDES voltage and reset SERDES lanes API and makes > enable/disable DDR controller support 0.9V API common. > > Signed-off-by: Ashish Kumar > Signed-off-by: Rajesh Bhagat > ---

Re: [U-Boot] [PATCH] armv8: Remove dependency of SERDES for LS CHASIS3

2017-09-14 Thread York Sun
On 09/04/2017 03:14 AM, Sriram Dash wrote: > Remove dependency of SYS_HAS_SERDES for Layerscape Chasis 3. > > Signed-off-by: Sriram Dash > --- > arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 4 ++-- > arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 2 ++ > arch/arm/cpu/armv8/fsl-layerscape/soc.c

Re: [U-Boot] [PATCH][v2]board/ls2080ardb: Update board env based on SoC

2017-09-14 Thread York Sun
On 09/05/2017 10:42 PM, Priyanka Jain wrote: > As per current implementation, default value of board env is > based on board filename i.e ls2080ardb. > > With distro support changes, this env is used to decide upon > kernel dtb which is different for other SoCs (ls2088a, ls2081a) > combination sup

Re: [U-Boot] efi_loader: fix events

2017-09-14 Thread Rob Clark
On Thu, Sep 14, 2017 at 4:51 PM, Heinrich Schuchardt wrote: > On 09/12/2017 06:35 PM, Rob Clark wrote: >> An event can be created with type==0, Shell.efi does this for an event >> that is set when Ctrl-C is typed. So our current approach of having a >> fixed set of timer slots, and determining wh

[U-Boot] [PATCH] sf: Fix S25FL116K entry

2017-09-14 Thread Marek Vasut
The flash chip is 2 MiB , organized as 32 x 64 kiB sectors . Rectify the entry to match the datasheet, reality and Linux SNOR IDs. Signed-off-by: Marek Vasut Cc: Jagan Teki --- drivers/mtd/spi/spi_flash_ids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi/sp

Re: [U-Boot] [PATCH] FSL PCI: Configure PCIe reference ratio

2017-09-14 Thread York Sun
On 09/12/2017 10:56 AM, Joakim Tjernlund wrote: > Most FSL PCIe controllers expects 333 MHz PCI reference clock. > This clock is derived from the CCB but in many cases the ref. > clock is not 333 MHz and a divisor needs to be configured. > > This adds PEX_CCB_DIV #define which can be defined for e

Re: [U-Boot] [PATCH] armv8: ls1043a: disable IFC in SPL only when QSPI is used

2017-09-14 Thread York Sun
On 09/12/2017 11:03 PM, Yangbo Lu wrote: > SD boot couldn't work with ls1043aqds_sdcard_ifc_defconfig since > IFC in SPL is disabled. This patch is to fix this issue. You subject matches the change. But the commit message is confusing. Please rephrase it. York > > Signed-off-by: Yangbo Lu > -

Re: [U-Boot] [PATCH 1/4] arm64: ls1043ardb: Add sd_bootcmd for distro fallback in case of sdboot

2017-09-14 Thread York Sun
On 08/30/2017 03:43 AM, Shengzhou Liu wrote: > Signed-off-by: Shengzhou Liu > --- > include/configs/ls1043a_common.h | 11 ++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/include/configs/ls1043a_common.h > b/include/configs/ls1043a_common.h > index f064d5c24a..9

[U-Boot] [PATCH v2 0/8] test/py: Fixes for python 3.x

2017-09-14 Thread Paul Burton
This series allows test/py to run on python 3.x in addition to the already supported python 2.x. With it applied I currently see only one failure (test_ut[ut_dm_usb_flash]) which doesn't appear to be python related when running with: $ ./test/py/test.py --bd sandbox --build Thanks, Paul Paul

[U-Boot] [PATCH v2 1/8] test/py: Make print statements python 3.x safe

2017-09-14 Thread Paul Burton
In python 3.x print must be called as a function rather than used as a statement. Update uses of print to the function call syntax in order to be python 3.x safe. Signed-off-by: Paul Burton Reviewed-by: Stephen Warren --- Changes in v2: None test/py/conftest.py | 2 +- test/py/

[U-Boot] [PATCH v2 2/8] test/py: Use range() rather than xrange()

2017-09-14 Thread Paul Burton
In python 3.x the xrange() function has been removed, and range() returns an iterator much like Python 2.x's xrange(). Simply use range() in place of xrange() in order to work on both python 2.x & 3.x. This will mean a small cost on python 2.x since range() will return a list there rather than an i

[U-Boot] [PATCH v2 3/8] test/py: Import 'configparser' lower case to be python 3.x safe

2017-09-14 Thread Paul Burton
In python 3.x the configparser module is named with all lower case. Import it as such in order to avoid errors when running on python 3.x, and fall back to the CamelCase version in order to keep working with python 2.x. Signed-off-by: Paul Burton Reviewed-by: Stephen Warren --- Changes in v2:

[U-Boot] [PATCH v2 4/8] test/py: Import StringIO from io module for python 3.x

2017-09-14 Thread Paul Burton
In python 3.x the StringIO module is gone, and instead StringIO can be imported from the io module. Do this in order to run on python 3.x, and fall back to importing StringIO as a module in order to continue working with python 2.x. Signed-off-by: Paul Burton Reviewed-by: Stephen Warren --- Ch

[U-Boot] [PATCH v2 5/8] test/py: Encode/decode strings for stdio

2017-09-14 Thread Paul Burton
When reading stdin python 3.x will give us byte arrays, and when writing stdout or stderr it will expect byte arrays. In order to insulate the rest of the code from this difference, call encode or decode at appropriate points when reading or writing stdio files. This works fine on python 2.x too.

[U-Boot] [PATCH v2 7/8] test/py: hush_if_test: Use open() in place of file()

2017-09-14 Thread Paul Burton
In python 3.x the file() function has been removed. Use open() instead, which works on both python 2.x & 3.x, and is described as the preferred method of opening a file by python 2.x documentation anyway. Signed-off-by: Paul Burton Reviewed-by: Stephen Warren --- Changes in v2: None test/py/t

[U-Boot] [PATCH v2 6/8] test/py: fit: Open files as binary files

2017-09-14 Thread Paul Burton
The read_file() function in test_fit is used with files that are not text files, as well as some that are. It is never used in a way that requires it to decode text files to characters, so open all files in binary mode such that read() doesn't attempt to decode characters for files which are not te

[U-Boot] [PATCH v2 8/8] test/py: vboot: Remove stderr redirect from openssl command

2017-09-14 Thread Paul Burton
The openssl command specified in test_with_algo() ultimately ends up being run by RunAndLog::run(), which uses it to construct a Popen object with the default shell=False. The stderr redirect in the command is therefore simply passed to openssl as an argument. With at least openssl 1.1.0f this caus

Re: [U-Boot] [PATCH 8/8] test/py: vboot: Remove stderr redirect from openssl command

2017-09-14 Thread Paul Burton
Hi Stephen, On Thursday, 14 September 2017 13:28:35 PDT Stephen Warren wrote: > I could have sworn I checked this code ran on Python 3 when I first > wrote it. Some of the issues you've fixed were clearly introduced since > then, but not all. Perhaps I'm remembering some other project where I > us

[U-Boot] [PATCH v2 00/13] Add asm-generic/io.h; virt_to_phys(), phys_to_virt() for all arches

2017-09-14 Thread Paul Burton
This series introduces a new asm-generic/io.h header & makes use of it to reduce duplication between architectures & ensure they all consistently provide implementations of virt_to_phys() & phys_to_virt(). This was split out from an earlier series which goes on to use phys_to_virt(), in order to s

[U-Boot] [PATCH v2 01/13] Provide a generic io.h & address mapping functions

2017-09-14 Thread Paul Burton
Most architectures currently supported by U-Boot use trivial implementations of map_to_physmem & virt_to_phys which simply cast a physical address to a pointer for use a virtual address & vice-versa. This results in a lot of duplicate implementations of these mapping functions. The set of function

[U-Boot] [PATCH v2 02/13] arc: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the arc architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for arc this is primarily a matter of removing code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton Cc: Alexey Bro

[U-Boot] [PATCH v2 03/13] arm: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the arm architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for arm this is primarily a matter of removing code. This has only been build-tested, feedback from architecture maintainers is welcome. Signed-of

[U-Boot] [PATCH v2 04/13] m68k: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the m68k architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for m68k this is primarily a matter of emoving code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton Cc: Huan Wang

[U-Boot] [PATCH v2 07/13] sh: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the sh architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for sh this is primarily a matter of moving code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton Cc: Nobuhiro Iwama

[U-Boot] [PATCH v2 10/13] mips: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the mips architecture to make use of the new asm-generic/io.h to provide address mapping functions. As mips actually performs non-identity mapping between physical & virtual addresses we can't simply make use of the generic functions, with the exception of being able to drop our no-op unmap

[U-Boot] [PATCH v2 05/13] microblaze: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the microblaze architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for microblaze this is primarily a matter of removing code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton

[U-Boot] [PATCH v2 08/13] x86: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the x86 architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for x86 this is primarily a matter of moving code. This has only been build-tested, feedback from architecture maintainers is welcome. Signed-off-

[U-Boot] [PATCH v2 09/13] xtensa: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the xtensa architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for xtensa this is primarily a matter of moving code. This has only been build-tested, feedback from architecture maintainers is welcome. Signe

[U-Boot] [PATCH v2 06/13] nds32: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the nds32 architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for nds32 this is primarily a matter of removing code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton Cc: Macpau

[U-Boot] [PATCH v2 13/13] sandbox: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the sandbox architecture to make use of the new asm-generic/io.h to provide address mapping functions. As sandbox actually performs non-identity mapping between physical & virtual addresses we can't simply make use of the generic mapping functions, but are able to implement phys_to_virt() &

[U-Boot] [PATCH v2 12/13] powerpc: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the powerpc architecture to make use of the new asm-generic/io.h to provide address mapping functions. As powerpc can actually perform non-identity mapping between physical & virtual addresses we can't simply make use of the generic phys_to_virt() & virt_to_phys() functions. However since m

[U-Boot] [PATCH v2 11/13] nios2: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the nios2 architecture to make use of the new asm-generic/io.h to provide address mapping functions. As nios2 actually performs non-identity mapping between physical & virtual addresses we can't simply make use of the generic functions, with the exception of being able to drop our no-op unm

Re: [U-Boot] [PATCH v2] arm: am33xx: Make pin multiplexing functions optional

2017-09-14 Thread Tom Rini
On Thu, Sep 14, 2017 at 02:37:08PM +0200, Felix Brack wrote: > This patch provides default implementations of the two functions > set_uart_mux_conf and set_mux_conf_regs. Hence boards not using > them do not need to provide their distinct empty definitions. > > Signed-off-by: Felix Brack Review

Re: [U-Boot] [U-Boot, 1/2] clk: at91: utmi: Set the reference clock frequency

2017-09-14 Thread Tom Rini
On Tue, Sep 05, 2017 at 06:30:07PM +0800, Wenyou Yang wrote: > By default, it is assumed that the UTMI clock is generated from > a 12 MHz reference clock (MAINCK). If it's not the case, the FREQ > field of the SFR_UTMICKTRIM has to be updated to generate the UTMI > clock in the proper way. > > Th

Re: [U-Boot] [U-Boot,2/2] ARM: dts: at91: sama5: Add the sfr node

2017-09-14 Thread Tom Rini
On Tue, Sep 05, 2017 at 06:30:08PM +0800, Wenyou Yang wrote: > For sama5d2, add the sfr node with syscon support. > > In order to access the SFR_UTMICKTRIM register for the utmi clock > driver, add the phandle property for the utmi node to point to the > sfr node. > > Signed-off-by: Wenyou Yang

Re: [U-Boot] [U-Boot, v6, 1/9] lib: at91: Add logo files used via API of DM_VIDEO

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:46PM +0800, Wenyou Yang wrote: > From: Wenyou Yang > > In order to display the company's logo via the API of DM_VIDEO, > and add the logo files of both Atmel and Microchip. > > Signed-off-by: Wenyou Yang > Reviewed-by: Simon Glass Applied to u-boot/master, thank

Re: [U-Boot] [U-Boot, v6, 3/9] ARM: at91: spl: Adjust switching to oscillator for SAMA5D2

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:48PM +0800, Wenyou Yang wrote: > As said in 29.5.7 section of SAMA5D2 datasheet, before switching to > the crystal oscillator, a check must be carried out to ensure that > the oscillator is present and that its freqency is valid. > > Signed-off-by: Wenyou Yang > Rev

Re: [U-Boot] [U-Boot, v6, 2/9] atmel: common: Add function to display via DM_VIDEO's API

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:47PM +0800, Wenyou Yang wrote: > Add a function to display the company's logo and board information > via the API from DM_VIDEO. This function can be shared by other > atmel boards, so locate it in board/atmel/common folder. > > Signed-off-by: Wenyou Yang > Reviewed

Re: [U-Boot] [U-Boot, v6, 6/9] ARM: at91: spl: Add boot device for boot from QSPI

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:51PM +0800, Wenyou Yang wrote: > Add the boot device for booting from the QSPI flash. > > Signed-off-by: Wenyou Yang > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [U-Boot, v6, 5/9] board: sama5d2_xplained: Make SPL work on spiflash

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:50PM +0800, Wenyou Yang wrote: > Because before switching to a lower clock source, we must switch > the clock source first instead of last. So before configuring the > PMC_MCKR register, invoke at91_mck_init_down() first. > > As said in datasheet, the the size of SPL

Re: [U-Boot] [U-Boot, v3, 3/5] ARM: at91: Remove hardware.h included in configs

2017-09-14 Thread Tom Rini
On Thu, Sep 14, 2017 at 11:07:42AM +0800, Wenyou Yang wrote: > From: Wenyou Yang > > As said in READRE.kconfig, include/configs/*.h will be removed > after all options are switched to Kconfig. As the first step, > remove the follow line from include/configs/*.h. > > #include > > Signed-off-b

Re: [U-Boot] [U-Boot, v6, 8/9] ARM: at91: Get the Chip ID of SAMA5D2 SiP

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:53PM +0800, Wenyou Yang wrote: > From: Wenyou Yang > > The SAMA5D2 SiP(System in Package) has different Chip IDs in the > CHIPID and CHIP_EXID registers. > > Signed-off-by: Wenyou Yang > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signa

Re: [U-Boot] [U-Boot, v6, 7/9] ARM: at91: mach: Add missing defines of MPDDRC

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:52PM +0800, Wenyou Yang wrote: > Add missing defines of Multiport DDR-SDRAM Controller (MPDDRC). > > Signed-off-by: Wenyou Yang > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [U-Boot, v3, 1/5] ARM: at91: Move CONFIG_AT91FAMILY option to Kconfig

2017-09-14 Thread Tom Rini
On Thu, Sep 14, 2017 at 11:07:40AM +0800, Wenyou Yang wrote: > From: Wenyou Yang > > Move the CONFIG_AT91FAMILY option from include/mach/.h header > file to Kconfig. > > Signed-off-by: Wenyou Yang Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [U-Boot, v3, 2/5] ARM: at91: Add the SoC options to Kconfig

2017-09-14 Thread Tom Rini
On Thu, Sep 14, 2017 at 11:07:41AM +0800, Wenyou Yang wrote: > From: Wenyou Yang > > To prepare to remove the SoCs options such as SAMA5D2, SAMA5D3 > and SAMA5D4 from the CONFIG_SYS_EXTRA_OPTIONS option which is > deprecated, add the SoC options to Kconfig. > > Signed-off-by: Wenyou Yang Appl

Re: [U-Boot] [U-Boot, v6, 4/9] ARM: at91: spl: Add mck function to lower rate while switching

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:49PM +0800, Wenyou Yang wrote: > Refer to the commit 70f8c8316ad(PMC: add new mck function to lower > rate while switching) from AT91Bootstrap. > > While switching to a lower clock source, we must switch the clock > source first instead of last. Otherwise, we could e

Re: [U-Boot] [U-Boot, v3, 5/5] configs: at91: Remove CONFIG_SYS_EXTRA_OPTIONS assignment

2017-09-14 Thread Tom Rini
On Thu, Sep 14, 2017 at 11:07:44AM +0800, Wenyou Yang wrote: > To remove the assignment of CONFIG_SYS_EXTRA_OPTIONS option, > which is deprecated, use the CONFIG__BOOT options to > indicate the boot media, and the SoC is selected by the board. > > Signed-off-by: Wenyou Yang Applied to u-boo

Re: [U-Boot] [U-Boot, v3, 4/5] ARM: at91: spl: Add macro CONFIG_XXXX_BOOT support

2017-09-14 Thread Tom Rini
On Thu, Sep 14, 2017 at 11:07:43AM +0800, Wenyou Yang wrote: > Use the CONFIG__BOOT to indicate the boot media, instead of > the CONFIG_SYS_USE_ option, which is declared by > CONFIG_SYS_EXTRA_OPTIONS option. > > Signed-off-by: Wenyou Yang Applied to u-boot/master, thanks! -- Tom si

Re: [U-Boot] [U-Boot, v6, 9/9] board: atmel: Add SAMA5D27 SOM1 EK board

2017-09-14 Thread Tom Rini
On Wed, Sep 13, 2017 at 02:58:54PM +0800, Wenyou Yang wrote: > From: Wenyou Yang > > The SAMA5D27-SiP (System in Package) integrates the SAMA5D2 > with 1Gbit DDR2-SDRAM in a single package. > > The SAMA5D27 SOM1 embeds a 64Mbit QSPI flash, KSZ8081 Phy and > Mac-address EEPROM. > > Signed-off-b

  1   2   >