[U-Boot] [PATCH v2 1/3] common: Display =4GiB memory bank size

2015-08-02 Thread Bin Meng
bd-bi_dram[] has both start address and size defined as 32-bit, which is not the case on some platforms where =4GiB memory bank is used. Change them to support such memory banks. Signed-off-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - Drop patches which are already applied - Change

[U-Boot] [PATCH 0/5] x86: Move x86 to use board_init_f_mem() instead of assembler

2015-08-02 Thread Simon Glass
Much of the early-init assembler on x86 can be removed if we use the new board_init_f_mem() function. At present only PowerPC uses it, but we should try to move more archs over. This has been contemplated for a while but it is time to take the plunge. Simon Glass (5): x86: Remove init_gd()

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

2015-08-02 Thread Simon Glass
At present we have a simple assignment to gd. With some archs this is implemented as a register or through some other means; a simple assignment does not suit in all cases. Change this to a function and add documentation to describe how this all works. Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 2/3] pci: Remove DEBUG from pci_compat.c

2015-08-02 Thread Bin Meng
Remove DEBUG in drivers/pci/pci_compat.c. Signed-off-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - New patch to remove DEBUG from pci_compat.c drivers/pci/pci_compat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/pci_compat.c b/drivers/pci/pci_compat.c index

[U-Boot] [PATCH v2 3/3] x86: Document how to write PIRQ information in the device tree

2015-08-02 Thread Bin Meng
Document the development flow on figuring out PIRQ information during the U-Boot porting. Signed-off-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - New patch to document how to write PIRQ information in the device tree doc/README.x86 | 41 + 1

Re: [U-Boot] [PATCH v3 03/15] imx: mx6ul: Update imx registers head file

2015-08-02 Thread Stefano Babic
On 20/07/2015 20:39, Marek Vasut wrote: On Monday, July 20, 2015 at 01:28:23 PM, Peng Fan wrote: 1. Update imx register base address for i.MX6UL. 2. Remove duplicated MXS_APBH/GPMI/BCH_BASE. 3. Remove #ifdef for register addresses that equal to AIPS2_OFF_BASE_ADDR + 0x34000 for different

Re: [U-Boot] [PATCH v3 01/15] imx: mx6ul: Add i.MX6UL CPU type

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: Add MXC_CPU_MX6UL for i.MX6UL CPU type which is got at runtime from DIGPROG register. But the value has been occupied by MXC_CPU_MX6D which is not real id from DIGPROG register, so change i.MX6D to value 0x67 which was not occupied. Signed-off-by: Peng

Re: [U-Boot] [PATCH v3 02/15] imx: mx6ul: Add pins IOMUX head file

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: Add i.MX6UL pins IOMUX file which defines the IOMUX settings for choose. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic --

Re: [U-Boot] [PATCH v3 15/15] imx: mx6ul_14x14_evk add basic board support

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: 1. Add USDHC, I2C, UART, 74LV, USB, QSPI support. 2. Support SPL 3. CONFIG_MX6UL_14X14_EVK_EMMC_REWORK is introduced, this board default supports sd for usdhc2, but can do hardware rework to make usdhc2 support emmc. Boot Log: U-Boot SPL

Re: [U-Boot] [PATCH v3 14/15] imx: imx6_spl add mx6ul support

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: i.MX6UL's DRAM space starts from 0x8000, same to i.MX6SX, so use same address with i.MX6SX. Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: None Changes v2: new patch include/configs/imx6_spl.h | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH v3 13/15] imx:mx6ul add dram spl configuration and header file

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: 1. Define two structures mx6ul_iomux_ddr_regs and mx6ul_iomux_grp_regs. 2. Add a new function mx6ul_dram_iocfg to configure dram io. 3. Refactor MMDC1 macro, discard #ifdef CONFIG_MX6SX. Since only mmdc0 channel exists on i.MX6SX/UL, redefine MMDC1 macro

Re: [U-Boot] [PATCH v3 12/15] mx6_common: Fix LOADADDR and SYS_TEXT_BASE for i.MX6UL

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: DRAM space starts from 0x8000 for i.MX6UL, so need to fix LOADADDR, SYS_TEXT_BASE. Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: none Changes v2: refine commit msg. include/configs/mx6_common.h | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH V2 12/12] kconfig: add config option for shell prompt

2015-08-02 Thread Nikita Kiryanov
On Wed, Jul 29, 2015 at 12:59:00AM +0900, Masahiro Yamada wrote: 2015-07-28 16:08 GMT+09:00 Nikita Kiryanov nik...@compulab.co.il: Add option to set shell prompt string from menuconfig and migrate boards globally. The migration is done as follows: - Boards that explicitly and

Re: [U-Boot] [PATCH V5 2/6] imx: mx6: ccm: Change the clock settings for i.MX6QP

2015-08-02 Thread Stefano Babic
On 11/07/2015 05:38, Peng Fan wrote: Since i.MX6QP changes some CCM registers, so modify the clocks settings to follow the hardware changes. In c files, use runtime check and discard #ifdef. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com

Re: [U-Boot] [PATCH V5 1/6] imx: add cpu type for i.MX6QP/DP

2015-08-02 Thread Stefano Babic
On 11/07/2015 05:38, Peng Fan wrote: Add cpu type for i.MX6QP/DP. This patch also fix is_mx6dqp(), since get_cpu_rev can return MXC_CPU_MX6QP and MXC_CPU_MX6DP, we should use: (is_cpu_type(MXC_CPU_MX6QP) || is_cpu_type(MXC_CPU_MX6DP)). Signed-off-by: Peng Fan peng@freescale.com

Re: [U-Boot] [PATCH v3 08/15] imx: mx6ul select SYS_L2CACHE_OFF

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: i.MX6UL features an Cortex-A7 core, it does not have PL310 as other i.MX6 chips. To Cortex-A7 core, If D-Cache is enabled, L2 Cache is enabled. There is on specific switch for on/off L2 Cache, so default select SYS_L2CACHE_OFF. Signed-off-by: Peng Fan

Re: [U-Boot] [PATCH v3 10/15] imx: mx6 add PAD_CTL_SPEED_LOW for i.MX6SX/UL

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: PAD_CTL_SPEED_LOW for i.MX6SX/UL is (0 6) Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: none Changes v2: none arch/arm/include/asm/imx-common/iomux-v3.h | 4 1 file changed, 4

Re: [U-Boot] [PATCH v3 11/15] mxc: gpio add i.MX6UL support

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: i.MX6UL does not have GPIO6/7, so do not include them for i.MX6UL. Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: none Changes v2: none drivers/gpio/mxc_gpio.c | 4 1 file changed, 4 insertions(+) diff --git

Re: [U-Boot] [PATCH v3 07/15] imx:mx6ul add clock support

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: 1. Add enet, uart, i2c, ipg clock support for i.MX6UL. 2. Correct get_periph_clk, it should account for MXC_CCM_CBCDR_PERIPH_CLK2_PODF_MASK. 3. Refactor get_mmdc_ch0_clk to make all i.MX6 share one function, but not use 'ifdef'. 4. Use

Re: [U-Boot] [PATCH v3 05/15] imx-common: timer: add i.MX6UL support

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: Add i.MX6UL GPT timer support. Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: none Changes v2: system counter patch is removed. Now, defaut use gpt. arch/arm/imx-common/timer.c | 8 +--- 1 file changed, 5 insertions(+), 3

Re: [U-Boot] [PATCH v3 06/15] imx: mx6ul remove errata for i.MX6UL

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: Since i.MX6UL use A7 core, but not A9 core, we do not need the erratas for i.MX6UL. Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: none Changes v2: remove the system counter define,

Re: [U-Boot] [PATCH v3 09/15] imx: mx6ul update soc related settings

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: 1.Update WDOG settings. 2.No need to gate/ungate all PFDs for i.MX6UL. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ye.Li b37...@freescale.com --- Changes v3: none Changes v2: runtime check for wdog part.

Re: [U-Boot] [PATCH v3 03/15] imx: mx6ul: Update imx registers head file

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: 1. Update imx register base address for i.MX6UL. 2. Remove duplicated MXS_APBH/GPMI/BCH_BASE. 3. Remove #ifdef for register addresses that equal to AIPS2_OFF_BASE_ADDR + 0x34000 for different chips. 4. According fuse map, complete fuse_bank4_regs. 5.

Re: [U-Boot] [PATCH v3 04/15] imx: mx6ul Add CONFIG_SYS_CACHELINE_SIZE for i.MX6UL

2015-08-02 Thread Stefano Babic
On 20/07/2015 13:28, Peng Fan wrote: Since i.MX6UL's cache line size is 64bytes, need to define the macro CONFIG_SYS_CACHELINE_SIZE to 64 for i.MX6UL. Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: none Changes v2: new patch, splitted from patch 03/15.

Re: [U-Boot] [PATCH V5 5/6] imx: mx6sabresd/sabreauto runtime setting fdt_file

2015-08-02 Thread Stefano Babic
On 11/07/2015 05:38, Peng Fan wrote: Detect the SOC and board variant at runtime and change the dtb name, but not hardcoding the fdt_file env variable. Take the following patch as a reference. Íd58699b157df75f1aa0b363ea9c21add21a0c mx6cuboxi: Load the correct 'fdtfile' variable

Re: [U-Boot] [PATCH V5 6/6] imx: mx6qpsabreauto: Add MX6QP SABREAUTO CPU3 board support

2015-08-02 Thread Stefano Babic
On 11/07/2015 05:38, Peng Fan wrote: 1. Add DDR script for mx6qpsabreauto board. 2. On CPU3 board, enet RGMII tx clock is from internal PLL. Set the GPR5[9] and init the enet pll output to 125Mhz. 3. On CPU3 board, SW1ABC=VDDSOC_IN, SW2=VDDARM_IN. Build target: mx6qpsabreauto_config

Re: [U-Boot] [PATCH V5 4/6] imx: mx6qp Enable PRG clock for IPU

2015-08-02 Thread Stefano Babic
On 11/07/2015 05:38, Peng Fan wrote: The i.MX6DQP has a PRG module, need to enable its clock for using IPU. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Brown Oliver b37...@freescale.com Signed-off-by: Ye.Li b37...@freescale.com Reviewed-by: Fabio Estevam

Re: [U-Boot] [PATCH V5 3/6] imx: mx6: hab : Remove the cache issue workaroud in hab for i.MX6QP

2015-08-02 Thread Stefano Babic
On 11/07/2015 05:38, Peng Fan wrote: From: Ye.Li b37...@freescale.com Since the i.MX6QP has fixed the issue in boot ROM, so remove the workaround for i.MX6QP. Signed-off-by: Ye.Li b37...@freescale.com Signed-off-by: Peng Fan peng@freescale.com Acked-by: Stefano Babic sba...@denx.de

Re: [U-Boot] [PATCH 02/12] arm: mx6: cm-fx6: make it possible to not init display

2015-08-02 Thread Stefano Babic
On 23/07/2015 16:19, Nikita Kiryanov wrote: Implement a cm-fx6 specific board_video_skip() to provide the option to not initialize the display. The new function does not init display if the environment variable panel is not defined, or if it is set to an unsupported value. Collateral

Re: [U-Boot] [PATCH 01/12] arm: mx6: cm-fx6: map HDMI to IPU1 DI0 explicitly

2015-08-02 Thread Stefano Babic
On 23/07/2015 16:19, Nikita Kiryanov wrote: U-Boot does not explicitly assign the display to an IPU interface. Instead, it relies on the power-on default of DI0. Since the kernel reassigns HDMI display to DI1, after a warm reset the HDMI display no longer works in U-Boot. Fix this by

Re: [U-Boot] [PATCH 03/12] arm: mx6: cm-fx6: add support for displaytype env var

2015-08-02 Thread Stefano Babic
On 23/07/2015 16:19, Nikita Kiryanov wrote: Add support for selecting display preset using the environment variable displaytype. This is a preparation for future merging of compulab omap3_display.c display selection code with the cm-fx6 display selection code. The panel environment variable

Re: [U-Boot] [PATCH 04/12] arm: mx6: cm-fx6: setup hdmi only on hdmi enable

2015-08-02 Thread Stefano Babic
On 23/07/2015 16:19, Nikita Kiryanov wrote: Refactor display code to only setup hdmi if do_enable_hdmi() is invoked. Cc: Stefano Babic sba...@denx.de Cc: Igor Grinberg grinb...@compulab.co.il Signed-off-by: Nikita Kiryanov nik...@compulab.co.il --- board/compulab/cm_fx6/cm_fx6.c | 9

Re: [U-Boot] [PATCH 06/12] arm: mx6: cm-fx6: move cm-fx6 target under ARCH_MX6

2015-08-02 Thread Stefano Babic
On 23/07/2015 16:19, Nikita Kiryanov wrote: cm-fx6 is an MX6 based board, and the menuconfig hierarchy should reflect that. Make TARGET_CM_FX6 dependant on ARCH_MX6. Cc: Stefano Babic sba...@denx.de Cc: Igor Grinberg grinb...@compulab.co.il Signed-off-by: Nikita Kiryanov

Re: [U-Boot] [PATCH 07/12] arm: mx6: kconfig: don't select CPU_V7 per board

2015-08-02 Thread Stefano Babic
On 23/07/2015 16:19, Nikita Kiryanov wrote: CPU_V7 is already selected by ARCH_MX6, so no point in selecting it again by boards that depend on ARCH_MX6. Cc: Albert Aribaud albert.u.b...@aribaud.net Cc: Stefano Babic sba...@denx.de Cc: Igor Grinberg grinb...@compulab.co.il Signed-off-by:

[U-Boot] [PULL] Please pull u-boot-imx

2015-08-02 Thread Stefano Babic
Hi Tom, please pull from u-boot-imx, thanks ! The following changes since commit 605e15db2b54302364a2528d3c6604fbc57be846: Merge git://git.denx.de/u-boot-x86 (2015-07-15 10:41:20 -0400) are available in the git repository at: git://www.denx.de/git/u-boot-imx.git master for you to fetch

Re: [U-Boot] [PATCH 08/12] arm: mx6: usb: kconfig: add USB_EHCI_MX6 kconfig option

2015-08-02 Thread Stefano Babic
On 23/07/2015 16:19, Nikita Kiryanov wrote: Add USB_EHCI_MX6 option to menuconfig and use it when migrating cm-fx6 usb config to defconfig. Cc: Masahiro Yamada yamada.masah...@socionext.com Cc: Marek Vasut ma...@denx.de Cc: Stefano Babic sba...@denx.de Cc: Igor Grinberg

Re: [U-Boot] [PATCH 05/12] arm: mx6: cm-fx6: move CMD configs to defconfig

2015-08-02 Thread Stefano Babic
On 23/07/2015 16:19, Nikita Kiryanov wrote: Move CONFIG_CMD_* options that can be selected in menuconfig to cm-fx6 defconfig. Cc: Stefano Babic sba...@denx.de Cc: Igor Grinberg grinb...@compulab.co.il Signed-off-by: Nikita Kiryanov nik...@compulab.co.il --- configs/cm_fx6_defconfig | 5

Re: [U-Boot] [PATCH 11/12] sf: kconfig: add kconfig options for spi flashes

2015-08-02 Thread Stefano Babic
On 23/07/2015 16:19, Nikita Kiryanov wrote: Add kconfig options for various SPI flashes and use them in cm-fx6 defconfig. Cc: Jagan Teki jt...@openedev.com Cc: Stefano Babic sba...@denx.de Cc: Igor Grinberg grinb...@compulab.co.il Signed-off-by: Nikita Kiryanov nik...@compulab.co.il ---

Re: [U-Boot] [PATCH 09/12] usb: kconfig: usb keyboard kconfig

2015-08-02 Thread Stefano Babic
On 23/07/2015 16:19, Nikita Kiryanov wrote: Add Kconfig options for USB keyboard and use them for cm-fx6. Cc: Marek Vasut ma...@denx.de Cc: Stefano Babic sba...@denx.de Cc: Igor Grinberg grinb...@compulab.co.il Signed-off-by: Nikita Kiryanov nik...@compulab.co.il ---

Re: [U-Boot] [PATCH v2 11/15] led: unify obj-$(CONFIG_LED) and obj-$(CONFIG_SPL_LED) entries

2015-08-02 Thread Stefano Babic
On 01/08/2015 15:14, Masahiro Yamada wrote: Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- Reviewed-by: Stefano Babic sba...@denx.de Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

Re: [U-Boot] [PATCH v2 04/15] spl: move SPL driver entries to driver/Makefile

2015-08-02 Thread Stefano Babic
On 01/08/2015 15:14, Masahiro Yamada wrote: Just preparing for upcoming cleaning. The board-specific linker script board/vpac270/u-boot-spl.lds has been touched to avoid build error. It does not change the size of spl/u-boot-spl.bin for this board, so it should be OK. Signed-off-by:

Re: [U-Boot] [PATCH v2 06/15] clk: rename CONFIG_SPL_CLK_SUPPORT to CONFIG_SPL_CLK

2015-08-02 Thread Stefano Babic
On 01/08/2015 15:14, Masahiro Yamada wrote: Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- Reviewed-by: Stefano Babic sba...@denx.de Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

Re: [U-Boot] [RFC PATCH] Makefile: Add SOURCE_DATE_TZ

2015-08-02 Thread Ximin Luo
On 01/08/15 20:47, Paul Kocialkowski wrote: Le samedi 01 août 2015 à 22:32 +1200, Chris Packham a écrit : Along with SOURCE_DATE_EPOCH SOURCE_DATE_TZ can be used to recreate a build with a specific date timestamp. This allows the verification of source supplied with a pre-compiled binary. If

Re: [U-Boot] [RFC PATCH] Makefile: Add SOURCE_DATE_TZ

2015-08-02 Thread Ximin Luo
On 02/08/15 00:02, Ximin Luo wrote: However, I am not sure that us at Reproducible Builds will actually adopt this variable. We haven't talked about it beyond my previous email [1], it was just me quickly skimming off my thoughts and firing off quick ideas. Whoops, I mean the _TZ variable.

Re: [U-Boot] [PATCH v2 10/47] Reserve the top 16 flag bits for architecture-specific use

2015-08-02 Thread Bin Meng
On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: Add a convention that the generic global_data only occupy the bottom 16 bits of the flags word, so that there is less chance of a conflict. At present the x86 flags conflict. Signed-off-by: Simon Glass s...@chromium.org

Re: [U-Boot] [PATCH v2 02/47] dm: core: Check for empty list in uclass_find_device()

2015-08-02 Thread Bin Meng
On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: This function needs to check the list has entries before traversing it. Fix this bug. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Correct the return code to avoid a test failure

Re: [U-Boot] [PATCH v2 05/47] Add a way to skip relocation

2015-08-02 Thread Bin Meng
Hi Simon, On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: When running U-Boot as an EFI application we cannot relocate since we do not have relocation information. U-Boot has already been relocated to a suitable address. Add a global_data flag to control skipping

Re: [U-Boot] [PATCH v2 15/47] x86: Tidy up a few minor issues with interrupts

2015-08-02 Thread Bin Meng
On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: Fix a typo, remove an unused field and make sure to use existing #define constants instead of open-coded values. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/x86/cpu/interrupts.c | 9

Re: [U-Boot] [PATCH v2 18/47] x86: Allow use of global_data with EFI

2015-08-02 Thread Bin Meng
Hi Simon, On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: On x86 the global_data pointer is provided through a somewhat-bizarre and x86-specific mechanism: the F segment register is set to a pointer to the start of global_data, so that accesses can use this build-in

Re: [U-Boot] [PATCH v3 0/4] sunxi: nand: Basic NAND driver for SPL

2015-08-02 Thread Hans de Goede
Hi, On 01-08-15 21:22, Scott Wood wrote: On Sat, 2015-08-01 at 14:30 +0200, Boris Brezillon wrote: Hi Hans, On Sat, 1 Aug 2015 14:15:53 +0200 Hans de Goede hdego...@redhat.com wrote: Hi, On 23-07-15 14:33, Piotr Zierhoffer wrote: This is a basic driver for the sunxi NAND controller for

Re: [U-Boot] [PATCH V2 12/12] kconfig: add config option for shell prompt

2015-08-02 Thread Tom Rini
On Sun, Aug 02, 2015 at 10:53:04AM +0200, Stefano Babic wrote: Hi Tom, this patch is across architectures - currently it is assigned to me. Do you prefer I apply it as last of the series to u-boot-imx before my PR or you want to apply it directly to mainline ? It looks like we can just

Re: [U-Boot] [PATCH v2 07/47] Bring in __aligned_u64 and friends to linux/types.h

2015-08-02 Thread Bin Meng
On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: These will be used for efi.h both for U-Boot running as an EFI application and as a payload. They come from Linux 4.1. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Fix _aligned() typo

Re: [U-Boot] [PATCH v2 17/47] pci: Fix up code for CONFIG_PCI_ENUM_ONLY

2015-08-02 Thread Bin Meng
On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: This option is not used by any board but appears to still be useful, at least for testing. With recent commits it does not build, so fix it. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None

Re: [U-Boot] [PATCH v2 19/47] efi: Add start-up library code

2015-08-02 Thread Bin Meng
Hi Simon, On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: When running as an EFI application, U-Boot must request memory from EFI, and provide access to the boot services U-Boot needs. Add library code to perform these tasks. This includes efi_main() which is the entry

Re: [U-Boot] [PATCH 02/13][v4] imx: iomux-v3: add imx7d support for iomuxc

2015-08-02 Thread Stefano Babic
Hi Adrian, On 31/07/2015 00:35, Adrian Alonso wrote: * Add imx7d support for iomux controller * imx7d has two iomux controllers iomuxc (0x3033000) and iomuxc-lpsr (0x302C) each conroller provides control and mux mode pad registers but shares iomuxc input select register with

Re: [U-Boot] [PATCH v2 11/47] x86: Tidy up global_data flags

2015-08-02 Thread Bin Meng
Hi Simon, On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: These flags now overlap some global ones. Adjust the x86-specific flags to avoid this. Since this requires a change to the start.S code, add a way for tools to find the 32-bit cold reset entry point. Previously

Re: [U-Boot] [PATCH 18/48] efi: Add start-up library code

2015-08-02 Thread Bin Meng
Hi Simon, On Fri, Jul 31, 2015 at 11:45 PM, Simon Glass s...@chromium.org wrote: Hi Bin, On 23 July 2015 at 02:09, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Wed, Jul 22, 2015 at 11:49 PM, Simon Glass s...@chromium.org wrote: When running as an EFI application, U-Boot must request

Re: [U-Boot] [PATCH 3/3] sunxi: Do not add a stdout-path alias to dts on boards without a serial port

2015-08-02 Thread Ian Campbell
On Sat, 2015-08-01 at 14:50 +0200, Hans de Goede wrote: Do not add a bogus (pointing to a non existing serial port) stdout-path alias to dts on boards without a serial port. Signed-off-by: Hans de Goede hdego...@redhat.com --- include/configs/sunxi-common.h | 2 ++ 1 file changed, 2

Re: [U-Boot] [PATCH 02/13][v4] imx: iomux-v3: add imx7d support for iomuxc

2015-08-02 Thread Fabio Estevam
Hi Stefano, On Sun, Aug 2, 2015 at 6:40 AM, Stefano Babic sba...@denx.de wrote: I have a main question. For i.MX6, we could factorize (mainly thanks Tim's work) the major SOC variants, getting some important goals, as having a single u-boot image running on different variations of the same

Re: [U-Boot] [PULL] Please pull u-boot-imx

2015-08-02 Thread Tom Rini
On Sun, Aug 02, 2015 at 11:23:12AM +0200, Stefano Babic wrote: Hi Tom, please pull from u-boot-imx, thanks ! The following changes since commit 605e15db2b54302364a2528d3c6604fbc57be846: Merge git://git.denx.de/u-boot-x86 (2015-07-15 10:41:20 -0400) are available in the git

[U-Boot] [PATCH] fsl_esdhc.c: Always make check_and_invalidate_dcache_range available

2015-08-02 Thread Tom Rini
This function is called from esdhc_send_cmd so we need it available to everyone. Signed-off-by: Tom Rini tr...@konsulko.com --- drivers/mmc/fsl_esdhc.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 0510bf0..0b37002 100644 ---

Re: [U-Boot] [PATCH] fsl_esdhc.c: Always make check_and_invalidate_dcache_range available

2015-08-02 Thread Tom Rini
On Sun, Aug 02, 2015 at 11:53:24AM -0400, Tom Rini wrote: This function is called from esdhc_send_cmd so we need it available to everyone. Signed-off-by: Tom Rini tr...@konsulko.com Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH 3/3] sunxi: Do not add a stdout-path alias to dts on boards without a serial port

2015-08-02 Thread Hans de Goede
Hi, On 02-08-15 18:28, Ian Campbell wrote: On Sat, 2015-08-01 at 14:50 +0200, Hans de Goede wrote: Do not add a bogus (pointing to a non existing serial port) stdout-path alias to dts on boards without a serial port. Signed-off-by: Hans de Goede hdego...@redhat.com ---

Re: [U-Boot] [PATCH RESEND] tools/imximage: set DCD pointer to NULL when its length is 0

2015-08-02 Thread Baruch Siach
Hi Stefano, On Wed, Jul 15, 2015 at 09:13:33AM +0200, Stefano Babic wrote: On 14/07/2015 21:05, Baruch Siach wrote: On Thu, Jul 09, 2015 at 06:04:17PM +0200, Stefano Babic wrote: On 09/07/2015 17:19, Baruch Siach wrote: When dcd_len is 0 the Write Data command that the set_dcd_rst_v2()

Re: [U-Boot] [PATCH 3/3] sunxi: Do not add a stdout-path alias to dts on boards without a serial port

2015-08-02 Thread Ian Campbell
On Sun, 2015-08-02 at 20:45 +0200, Hans de Goede wrote: [...] So for now to keep things working we need CONFIG_CONS_INDEX 1 even on the 1 board we have which does not have a serial port (the uart1 pins which are routed to the outside on the A13 are used as gpio-s by the lcd. Makes sense,

Re: [U-Boot] [PATCH v2 01/47] Support removing default assembler flags

2015-08-02 Thread Tom Rini
On Fri, Jul 31, 2015 at 09:31:18AM -0600, Simon Glass wrote: The CFLAGS_REMOVE_file feature allows default C compiler flags to be removed for particular files. Add the same feature for assembler, using AFLAGS_REMOVE_file. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng

Re: [U-Boot] [PATCH 2/3] sunxi: Add CONFIG_USB0_ID_DET setting to 2 more tablets

2015-08-02 Thread Ian Campbell
On Sat, 2015-08-01 at 14:50 +0200, Hans de Goede wrote: Now that we have code to check the id-pin and detect usb-host adapters plugged into the otg port that way, enable it on the tablets which I own. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Ian Campbell

Re: [U-Boot] [PATCH 1/3] sunxi: usb-phy: Never power off the usb ports

2015-08-02 Thread Ian Campbell
On Sat, 2015-08-01 at 14:50 +0200, Hans de Goede wrote: USB devices are not really designed to get the power bounced off and on at them. Esp. USB powered harddisks do not like this. Currently we power off the USB ports both on a usb reset and when booting the kernel, causing the usb-power to

Re: [U-Boot] [PATCH 01/13][v4] power: pmic: add pfuze3000 support

2015-08-02 Thread Stefano Babic
On 31/07/2015 00:35, Adrian Alonso wrote: * Add pmic pfuze3000 support, implement power_pfuze3000_init to be used in power_init_board callback function. Signed-off-by: Adrian Alonso aalo...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- Reviewed-by: Stefano Babic

Re: [U-Boot] [PATCH v2 07/15] clk: unify obj-$(CONFIG_CLK) and obj-$(CONFIG_SPL_CLK) entries

2015-08-02 Thread Stefano Babic
On 01/08/2015 15:14, Masahiro Yamada wrote: Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- Reviewed-by: Stefano Babic sba...@denx.de Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

Re: [U-Boot] [PATCH v2 04/47] elf: Add a few definitions for 64-bit relocation

2015-08-02 Thread Bin Meng
On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: Provide the types necessary to relocate 64-bit images. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Follow existing file conventions for type definitions include/elf.h | 26

Re: [U-Boot] [PATCH v2 20/47] efi: Avoid using non-existent text base

2015-08-02 Thread Bin Meng
On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass s...@chromium.org wrote: From: Ben Stoltz sto...@google.com When U-Boot runs as an EFI application is does not have a definition of CONFIG_SYS_TEXT_BASE. U-Boot is a relocatable application and the relocation is done by EFI. U-Boot can be loaded

Re: [U-Boot] [PATCH] common: command add '\n' for debug msg

2015-08-02 Thread Simon Glass
On 28 July 2015 at 08:45, Peng Fan peng@freescale.com wrote: Add '\n' for debug msg. Signed-off-by: Peng Fan peng@freescale.com Cc: Tom Rini tr...@konsulko.com Cc: Masahiro Yamada yamad...@jp.panasonic.com Cc: Simon Glass s...@chromium.org --- common/command.c | 2 +- 1 file

Re: [U-Boot] [PATCH] patman: Don't run patman when it is imported as a module

2015-08-02 Thread Simon Glass
Hi Chris, On 1 August 2015 at 03:32, Chris Packham judge.pack...@gmail.com wrote: On Sat, Aug 1, 2015 at 12:06 AM, Simon Glass s...@chromium.org wrote: Hi Chris, On 30 July 2015 at 23:34, Chris Packham judge.pack...@gmail.com wrote: Hi Simon, On Fri, Jul 31, 2015 at 7:47 AM, Simon Glass

Re: [U-Boot] [PATCH 1/2] gitignore: Add defconfig and fdtgrep

2015-08-02 Thread Simon Glass
On 31 July 2015 at 01:24, Bin Meng bmeng...@gmail.com wrote: Ignore defconfig and tools/fdtgrep. Signed-off-by: Bin Meng bmeng...@gmail.com --- .gitignore | 1 + tools/.gitignore | 1 + 2 files changed, 2 insertions(+) Acked-by: Simon Glass s...@chromium.org

Re: [U-Boot] [PATCH 2/2] common: Print nothing in the __weak checkboard()

2015-08-02 Thread Simon Glass
On 31 July 2015 at 01:24, Bin Meng bmeng...@gmail.com wrote: Do not print confusing Board: Unknown during boot. Signed-off-by: Bin Meng bmeng...@gmail.com --- common/board_info.c | 1 - 1 file changed, 1 deletion(-) Acked-by: Simon Glass s...@chromium.org diff --git

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

2015-08-02 Thread Simon Glass
Hi Peng, On 28 July 2015 at 08:48, Peng Fan peng@freescale.com wrote: 1. Add new regulator driver pfuze100. * Introduce struct pfuze100_regulator_desc for mataining info for regulator. 2. Add new Kconfig entry DM_REGULATOR_PFUZE100 for pfuze100. 3. This driver intends to support

Re: [U-Boot] board_pci_pre_scan() and board_pci_post_scan()

2015-08-02 Thread Simon Glass
Hi Bin, On 27 July 2015 at 01:45, Bin Meng bmeng...@gmail.com wrote: Hi Simon, With driver model pci conversion on x86 boards, we now missed the call to board_pci_pre_scan() and board_pci_post_scan() which are called in the non-dm path. For example, board_pci_post_scan() in

Re: [U-Boot] [PATCH] power: regulator: max77686 correct variable type

2015-08-02 Thread Simon Glass
On 28 July 2015 at 08:47, Peng Fan peng@freescale.com wrote: The return type of pmic_read and pmic_write is signed int, so correct variable 'ret' from type unsigned int to int. Signed-off-by: Peng Fan peng@freescale.com Cc: Simon Glass s...@chromium.org Cc: Przemyslaw Marczak

Re: [U-Boot] [PATCH 3/5] power: pmic: pfuze100 support driver model

2015-08-02 Thread Simon Glass
On 28 July 2015 at 08:48, Peng Fan peng@freescale.com wrote: 1. Support driver model for pfuze100. 2. Introduce a new Kconfig entry DM_PMIC_PFUZE100 for pfuze100 3. This driver intends to support PF100, PF200 and PF3000, so add the device id into the udevice_id array. Signed-off-by:

Re: [U-Boot] [PATCH 2/5] x86: fsp: Reserve different malloc size before relocation

2015-08-02 Thread Simon Glass
Hi Bin, On 27 July 2015 at 01:33, Bin Meng bmeng...@gmail.com wrote: Currently Intel queensbay fsp initializes a CAR size with only 4KiB, which is not enough when dm pci is enabled before relocation. Change arch/x86/start.s to reserve a small size before fsp_init() is called and some bigger

Re: [U-Boot] [PATCH 4/5] x86: Explicitly trigger pci bus configuration with driver model

2015-08-02 Thread Simon Glass
Hi Bin, On 27 July 2015 at 01:33, Bin Meng bmeng...@gmail.com wrote: With driver model, probing pci bus is all done on a lazy basis, as needed. On x86, pci bus is the fundamental device that needs to work before any other peripherals. In order to have a working pci before any other pci

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

2015-08-02 Thread Simon Glass
Hi Peng, On 28 July 2015 at 08:48, Peng Fan peng@freescale.com wrote: If there is no property named 'regulator-name' for regulators, choose node name instead, but not directly return failure value. Signed-off-by: Peng Fan peng@freescale.com Cc: Przemyslaw Marczak

Re: [U-Boot] [Patch v2] lib/fdtdec: Fix fdt_addr_t and fdt_size_t typedef

2015-08-02 Thread Simon Glass
Hi York, On 23 July 2015 at 16:12, York Sun york...@freescale.com wrote: fdt_addr_t is a physical address. It can be either 64-bit or 32-bit, depending on the architecture. It should be phys_addr_t instead of u64 or u32. Similarly, fdt_size_t is changed to phys_size_t. Signed-off-by: York

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

2015-08-02 Thread Simon Glass
On 28 July 2015 at 08:48, Peng Fan peng@freescale.com wrote: If enable DM PMIC and REGULATOR, we should not use original power framework. So need to comment out the pfuze code for original power framework, when CONFIG_DM_PMIC_PFUZE100 defined. Signed-off-by: Peng Fan

Re: [U-Boot] [PATCH 3/5] x86: queensbay: Support pre-relocation dm pci

2015-08-02 Thread Simon Glass
Hi Bin, On 27 July 2015 at 01:33, Bin Meng bmeng...@gmail.com wrote: Increase CONFIG_MALLOC_F_LEN so that dm pci does not fail with -ENOMEM before relocation. This makes pci uart work again on Intel Crown Bay. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/cpu/queensbay/Kconfig |

Re: [U-Boot] [PATCH 1/5] power: pfuze100 correct SWBST macro definition

2015-08-02 Thread Simon Glass
On 28 July 2015 at 08:48, Peng Fan peng@freescale.com wrote: According to datasheet, SWBST_MODE starts from bit 2 and it occupies 2 bits. So SWBST_MODE_MASK should be 0xC, and SWBST_MODE_xx should be ([mode] 2). Signed-off-by: Peng Fan peng@freescale.com Cc: Przemyslaw Marczak

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

2015-08-02 Thread Simon Glass
Hi Lukasz, On 25 July 2015 at 02:11, Lukasz Majewski l.majew...@majess.pl wrote: This function allows writing via DFU data stored from fixed buffer address (like e.g. loadaddr env variable). Such predefined buffers are used in the update_tftp() code. In fact this function is a wrapper on the

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

2015-08-02 Thread Simon Glass
Hi Lukasz, On 25 July 2015 at 02:11, Lukasz Majewski l.majew...@majess.pl wrote: This code allows using DFU defined mediums for storing data received via TFTP protocol. It reuses and preserves functionality of legacy code at common/update.c. The update_tftp() function now accepts parameters

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

2015-08-02 Thread Simon Glass
Hi Lukasz, On 25 July 2015 at 02:11, Lukasz Majewski l.majew...@majess.pl wrote: The dfu command has been extended to support transfers via TFTP protocol. Signed-off-by: Lukasz Majewski l.majew...@majess.pl --- Changes for v2: - Remove dfutftp command - Modify dfu command to support

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

2015-08-02 Thread Simon Glass
Hi Lukasz, On 25 July 2015 at 02:11, Lukasz Majewski l.majew...@majess.pl wrote: In the dfu-util it is possible to set major:minor number by unsing -d flag using (-d 0451:d022). Such option is very handy when many DFU devices are connected to a single host PC. This commit allows testing

Re: [U-Boot] [PATCH v2 3/9] tftp: update: Allow some parts of the code to be reused when CONFIG_SYS_NO_FLASH is set

2015-08-02 Thread Simon Glass
On 25 July 2015 at 02:11, Lukasz Majewski l.majew...@majess.pl wrote: Up till now it was impossible to use code from update.c when system was not equipped with raw FLASH memory. Such behavior prevented DFU from reusing this code. Signed-off-by: Lukasz Majewski l.majew...@majess.pl Acked-by:

Re: [U-Boot] [PATCH v2 1/9] doc: dfu: tftp: README entry for TFTP extension of DFU

2015-08-02 Thread Simon Glass
Hi Lukasz, On 25 July 2015 at 02:11, Lukasz Majewski l.majew...@majess.pl wrote: Documentation file for DFU extension. With this functionality it is now possible to transfer FIT images with firmware updates via TFTP and use DFU backend for storing them. Signed-off-by: Lukasz Majewski

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

2015-08-02 Thread Simon Glass
HI Lukasz, On 25 July 2015 at 02:11, Lukasz Majewski l.majew...@majess.pl wrote: Commit message? E.g. 'Enable DFU via update on Beaglebone Black' Signed-off-by: Lukasz Majewski l.majew...@majess.pl --- Changes for v2: - Do not enable CONFIG_UPDATE_TFTP since CONFIG_DFU_TFTP enables the

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

2015-08-02 Thread Simon Glass
Hi Lukasz, On 25 July 2015 at 02:11, Lukasz Majewski l.majew...@majess.pl wrote: This commit adds initial support for using tftp for downloading and upgrading firmware on the device. Signed-off-by: Lukasz Majewski l.majew...@majess.pl --- Changes for v2: - Return -ENOSYS instead of plain

Re: [U-Boot] [PATCH 2/2] x86: qemu: Add MP initialization

2015-08-02 Thread Simon Glass
On 27 July 2015 at 05:16, Bin Meng bmeng...@gmail.com wrote: Add a cpu1 node to the device tree and enable the MP initialization on QEMU targets (i440fx and q35). Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/dts/qemu-x86_i440fx.dts | 7 +++ arch/x86/dts/qemu-x86_q35.dts

Re: [U-Boot] [PATCH 1/5] dm: pci: Allow scan bridge child devices before relocation

2015-08-02 Thread Simon Glass
On 27 July 2015 at 01:33, Bin Meng bmeng...@gmail.com wrote: On some platforms pci devices behind bridge need to be probed (eg: a pci uart on recent x86 chipset) before relocation. Remove such limitation so that dm pci can be used before relocation. Signed-off-by: Bin Meng bmeng...@gmail.com

Re: [U-Boot] [PATCH 5/5] doc: dm: Update pci-info.txt for pci support

2015-08-02 Thread Simon Glass
On 27 July 2015 at 01:33, Bin Meng bmeng...@gmail.com wrote: Correct two typos and mention how pci bus will be probed. Signed-off-by: Bin Meng bmeng...@gmail.com --- doc/driver-model/pci-info.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Acked-by: Simon Glass

Re: [U-Boot] [PATCH 1/2] x86: Add a 'pause' instruction in __udelay() for QEMU target

2015-08-02 Thread Simon Glass
On 27 July 2015 at 05:16, Bin Meng bmeng...@gmail.com wrote: From: Miao Yan yanmiaob...@gmail.com When running SMP configuration on QEMU (tcg mode, no kvm), there is a busy loop in start_aps(), calling udelay(), that waits for APs to show up online. However, there is a chance that VCPU1 will

Re: [U-Boot] [PATCH] lib: fdt: fix indent of #ifdef..#endif conditional

2015-08-02 Thread Simon Glass
On 1 August 2015 at 01:03, Masahiro Yamada yamada.masah...@socionext.com wrote: Match the depth of indentation between #ifdef and #endif for better readability. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1

  1   2   3   >