[U-Boot] [PATCH] scripts: Add script to extract default environment

2016-09-16 Thread Lukasz Majewski
This script looks for env_common.o object file and extracts from it default u-boot environment, which is afterwards printed on standard output. Usage example: get_default_envs.sh > u-boot-env-default.txt The generated text file can be used as input for mkenvimage. Signed-off-by: Lukasz Majewski

[U-Boot] [PATCHv2] scripts: Add script to extract default environment

2016-09-16 Thread Lukasz Majewski
This script looks for env_common.o object file and extracts from it default u-boot environment, which is afterwards printed on standard output. Usage example: get_default_envs.sh > u-boot-env-default.txt The generated text file can be used as input for mkenvimage. Signed-off-by: Lukasz Majewski

Re: [U-Boot] [PATCH] Revert "image-fit: switch ENOLINK to ENOENT"

2016-09-16 Thread Jonathan Gray
On Fri, Sep 16, 2016 at 10:21:43PM +0100, Paul Burton wrote: > Commit bac17b78dace ("image-fit: switch ENOLINK to ENOENT") changed > fit_get_node_from_config to return -ENOENT when a property doesn't > exist, but didn't change any of its callers which check return values. > Notably it didn't

Re: [U-Boot] [PATCH 21/21] arm: imx: add i.MX6ULL 14x14 EVK board support

2016-09-16 Thread Fabio Estevam
On Thu, Sep 15, 2016 at 5:48 PM, Jagan Teki wrote: > OK, and I ran imx6 ddr calibration stress test[1] but observed data > abort. the objdump doesn't show any of these address, can you please > help me how can I proceed further? > > icorem6qdl> fatload mmc 0:1

[U-Boot] [PATCH 7/7] ext4: Revert rejection of 64bit enabled ext4 fs

2016-09-16 Thread Stefan Brüns
Enable mounting of ext4 fs with 64bit feature, as it is supported now. These had been disabled in 6f94ab6656ceffb3f2a972c8de4c554502b6f2b7. Signed-off-by: Stefan Brüns --- fs/ext4/ext4_common.c | 9 - 1 file changed, 9 deletions(-) diff --git

[U-Boot] [PATCH 5/7] ext4: Use helper function to access group descriptor and its fields

2016-09-16 Thread Stefan Brüns
The descriptor size is variable, thus array indices are not generically applicable. The larger group descriptors also contain e.g. high parts of block numbers, which have to be read and written. Signed-off-by: Stefan Brüns --- fs/ext4/ext4_common.c | 125

[U-Boot] [PATCH 1/7] ext4: Update ext2/3/4 superblock, group descriptor and inode structures

2016-09-16 Thread Stefan Brüns
Most importantly, the superblock provides the used group descriptor size, which is required for the EXT4_FEATURE_INCOMPAT_64BIT. Signed-off-by: Stefan Brüns --- include/ext_common.h | 50 ++ 1 file changed, 46

[U-Boot] [PATCH 6/7] ext4: Respect group descriptor size when adjusting free counts

2016-09-16 Thread Stefan Brüns
Also adjust high 16/32 bits when free inode/block counts are modified. Signed-off-by: Stefan Brüns --- fs/ext4/ext4_common.c | 53 +++ fs/ext4/ext4_write.c | 40 ++ 2 files

[U-Boot] [PATCH 3/7] ext4: Add helper functions for block group descriptor field access

2016-09-16 Thread Stefan Brüns
The helper functions encapsulate access of the block group descriptors, independent of group descriptor size. The helpers also deal with the endianess of the fields, and with split fields like free_blocks/ free_blocks_high. Signed-off-by: Stefan Brüns ---

[U-Boot] [PATCH 0/7] Add support for ext4 with enabled 64bit feature

2016-09-16 Thread Stefan Brüns
The EXT4_FEATURE_INCOMPAT_64BIT changes the on disk layout. Use the correct structure sizes/offsets and respect split high/low free inode/block counts. Stefan Brüns (7): ext4: Update ext2/3/4 superblock, group descriptor and inode structures ext4: determine group descriptor size for 64bit

[U-Boot] [PATCH 2/7] ext4: determine group descriptor size for 64bit feature

2016-09-16 Thread Stefan Brüns
If EXT4_FEATURE_INCOMPAT_64BIT is set, the descriptor can be read from the superblocks, otherwise it defaults to 32. Signed-off-by: Stefan Brüns --- fs/ext4/ext4_common.c | 18 ++ include/ext4fs.h | 2 ++ 2 files changed, 16 insertions(+), 4

[U-Boot] [PATCH 4/7] ext4: Use correct descriptor size when reading the block group descriptor

2016-09-16 Thread Stefan Brüns
The correct descriptor size must be used when calculating offsets, and also to read the correct amount of data. Signed-off-by: Stefan Brüns --- fs/ext4/ext4_common.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/ext4/ext4_common.c

[U-Boot] [PATCH] Revert "image-fit: switch ENOLINK to ENOENT"

2016-09-16 Thread Paul Burton
Commit bac17b78dace ("image-fit: switch ENOLINK to ENOENT") changed fit_get_node_from_config to return -ENOENT when a property doesn't exist, but didn't change any of its callers which check return values. Notably it didn't change boot_get_ramdisk, which leads to U-Boot failing to boot FIT images

[U-Boot] [PATCH v2 16/17] arm: dts: imx6q: Add pinctrl defines

2016-09-16 Thread Jagan Teki
Add imx6q pinctrl defines support from Linux. Cc: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki

[U-Boot] [PATCH v2 17/17] arm: imx6q: Add devicetree support for Engicam i.CoreM6 Quad/Dual

2016-09-16 Thread Jagan Teki
i.CoreM6 Quad/Dual modules are system on module solutions manufactured by Engicam with following characteristics: CPU NXP i.MX6 DQ, 800MHz RAM 1GB, 32, 64 bit, DDR3-800/1066 NAND SLC,512MB Power supply Single 5V MAX LCD RES FULLHD and more info at

[U-Boot] [PATCH v2 13/17] imx6q: icorem6: Enable pinctrl driver

2016-09-16 Thread Jagan Teki
Enable imx6 pinctrl driver support for i.CoreM6. Cc: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki

[U-Boot] [PATCH v2 14/17] engicam: icorem6: Add DM_GPIO, DM_MMC support

2016-09-16 Thread Jagan Teki
Add DM_GPIO, DM_MMC support for u-boot and disable for SPL. Cc: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki

[U-Boot] [PATCH v2 12/17] arm: imx6q: Add devicetree support for Engicam i.CoreM6 DualLite/Solo

2016-09-16 Thread Jagan Teki
i.CoreM6 DualLite/Solo modules are system on module solutions manufactured by Engicam with following characteristics: CPU NXP i.MX6 DL, 800MHz RAM 1GB, 32, 64 bit, DDR3-800/1066 NAND SLC,512MB Power supply Single 5V MAX LCD RES FULLHD and more info at

[U-Boot] [PATCH v2 15/17] arm: dts: Add devicetree for i.MX6Q

2016-09-16 Thread Jagan Teki
Add i.MX6Q dtsi support from Linux. Cc: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki

[U-Boot] [PATCH v2 11/17] dt-bindings: clock: imx6qdl: Add clock defines

2016-09-16 Thread Jagan Teki
Add imx6qdl clock header defines support from Linux. Cc: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki

[U-Boot] [PATCH v2 08/17] arm: dts: Add devicetree for i.MX6DL

2016-09-16 Thread Jagan Teki
Add i.MX6DL dtsi support from Linux. Cc: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki

[U-Boot] [PATCH v2 10/17] arm: dts: imx6dl: Add pinctrl defines

2016-09-16 Thread Jagan Teki
Add imx6dl pinctrl defines support from Linux. Cc: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki

[U-Boot] [PATCH v2 09/17] arm: dts: Add devicetree for i.MX6DQL

2016-09-16 Thread Jagan Teki
Add i.MX6DQL dtsi support from Linux. Cc: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki

[U-Boot] [PATCH v2 06/17] imx6: icorem6: Add ENET support

2016-09-16 Thread Jagan Teki
Add enet support for engicam icorem6 qdl starter kit. - Add pinmux settings - Add board_eth_init TFTP log: Net: FEC [PRIME] Hit any key to stop autoboot: 0 icorem6qdl> tftpboot {fdt_addr} imx6dl-icore.dtb Using FEC device TFTP from server 192.168.2.96; our IP address is 192.168.2.75

[U-Boot] [PATCH v2 07/17] imx: s/docs\/README.imximage/doc\/README.imximage/g

2016-09-16 Thread Jagan Teki
Fixed typo for doc/README.imximage on respective imximage.cfg files. Cc: Tom Rini Cc: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam Signed-off-by: Jagan Teki ---

[U-Boot] [PATCH v2 04/17] Kconfig: Add DEFAULT_FDT_FILE entry

2016-09-16 Thread Jagan Teki
Add kconfig entry for CONFIG_DEFAULT_FDT_FILE Cc: Tom Rini Cc: Simon Glass Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- common/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff

[U-Boot] [PATCH v2 05/17] arm: imx: Add Engicam i.CoreM6 QDL Starter Kit initial support

2016-09-16 Thread Jagan Teki
Boot Log for i.CoreM6 DualLite/Solo Starter Kit: --- U-Boot SPL 2016.09-rc2-30739-gd1fa290 (Sep 17 2016 - 00:37:46) Trying to boot from MMC1 U-Boot 2016.09-rc2-30739-gd1fa290 (Sep 17 2016 - 00:37:46 +0530) CPU: Freescale i.MX6SOLO rev1.3 at 792MHz

[U-Boot] [PATCH v2 02/17] serial: Kconfig: Add MXC_UART entry

2016-09-16 Thread Jagan Teki
Added kconfig for MXC_UART driver. Cc: Simon Glass Cc: Fabio Estevam Cc: Stefano Babic Cc: Peng Fan Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan

[U-Boot] [PATCH v2 03/17] thermal: Kconfig: Add IMX_THERMAL entry

2016-09-16 Thread Jagan Teki
Added kconfig for IMX_THERMAL driver. Cc: Simon Glass Cc: Fabio Estevam Cc: Stefano Babic Cc: Peng Fan Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by:

[U-Boot] [PATCH v2 01/17] imx: iomux-v3: Fix build error with snvs base

2016-09-16 Thread Jagan Teki
snvs base is added only for i.MX6ULL but the code is added for common, so firing build error while compiling other i.MX6 SOC's Issue observed with the below patch "imx: mx6ull: Update memory map address" (sha1: e8eac1b5b3a98a06426bc4867c03c38329841e5c) Build log: CC

[U-Boot] [PATCH v2 00/17] imx6: Add Engicam i.CoreM6 QDL modules support

2016-09-16 Thread Jagan Teki
This series supports Engicam i.CoreM6 QDL modules on top of u-boot-imx.git/next and test on the respective starter kits as well. Changes for v2: - Make static to local iomux structure in board file - Corrected rowaddr in mx6_ddr3_cfg - Used imx_ddr_size - Add FEC

Re: [U-Boot] [PATCH v3 12/45] spear: Use upper case for CONFIG options

2016-09-16 Thread Tom Rini
On Mon, Sep 12, 2016 at 11:18:30PM -0600, Simon Glass wrote: > There are a few options which use lower case. We should use upper case for > all CONFIG options. > > Signed-off-by: Simon Glass This is incomplete: 13: spear: Use upper case for CONFIG options

Re: [U-Boot] [Patch v6 8/9] armv8: ls1046ardb: Add LS1046ARDB board support

2016-09-16 Thread york sun
On 09/07/2016 03:08 AM, Gong Qianyu wrote: > From: Mingkai Hu > > LS1046ARDB Specification: > - > Memory subsystem: > * 8GByte DDR4 SDRAM (64bit bus) > * 512 Mbyte NAND flash > * Two 64 Mbyte high-speed SPI flash > * SD connector to interface with

[U-Boot] [PATCH 14/15] ARM: uniphier: add PLL init code for LD20 SoC

2016-09-16 Thread Masahiro Yamada
Initialize the DPLL (PLL for DRAM) in SPL, and others in U-Boot proper. Split the common code into pll-base-ld20.c for easier re-use. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/board_init.c| 7 ++ arch/arm/mach-uniphier/clk/Makefile

[U-Boot] [PATCH 13/15] ARM: uniphier: collect clock/PLL init code into a single directory

2016-09-16 Thread Masahiro Yamada
Now PLLs for DRAM controller are initialized in SPL, and the others in U-Boot proper. Setting up all of them in a single directory will be helpful when we want to share code between SPL and U-Boot proper. Signed-off-by: Masahiro Yamada ---

[U-Boot] [PATCH 15/15] ARM: uniphier: update DRAM init code for LD20 SoC

2016-09-16 Thread Masahiro Yamada
Import the latest version from the Diag software. - Support LD21 SoC (including DDR chips in the package) - Per-board granule adjustment for both reference and TV boards - Misc cleanups Signed-off-by: Masahiro Yamada ---

[U-Boot] [PATCH 07/15] ARM: uniphier: consolidate NAND pin-mux settings

2016-09-16 Thread Masahiro Yamada
The NAND subsystem has not supported the Driver Model yet, but the NAND pin-mux data are already in the pinctrl drivers. Use them by calling pinctrl_generic_set_state() directly. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Makefile |

[U-Boot] [PATCH 05/15] ARM: uniphier: remove redundant pin-muxing for EA24 pin of sLD3 SoC

2016-09-16 Thread Masahiro Yamada
This is enabled by default for all the supported boot modes. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/early-pinctrl/early-pinctrl-sld3.c | 2 -- 1 file changed, 2 deletions(-) diff --git

[U-Boot] [PATCH 10/15] ARM: uniphier: move XIRQ pin-mux settings of LD11/LD20

2016-09-16 Thread Masahiro Yamada
This is the last code in the mach-uniphier/pinctrl/ directory. Push the remaining code out to delete the directory entirely. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Makefile | 2 +- arch/arm/mach-uniphier/board_init.c |

[U-Boot] [PATCH 08/15] ARM: dts: uniphier: include System Bus pin group node in SPL DT

2016-09-16 Thread Masahiro Yamada
This will be needed for setting up the System Bus pin-mux via the LD11/LD20 pinctrl driver. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ph1-ld11-ref.dts | 4 arch/arm/dts/uniphier-ph1-ld20-ref.dts | 4 2 files changed, 8 insertions(+) diff

[U-Boot] [PATCH 06/15] ARM: uniphier: remove ad-hoc pin-mux code for sLD3

2016-09-16 Thread Masahiro Yamada
These settings are nicely cared by the pinctrl driver now. Remove. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/early-pinctrl/Makefile | 1 - .../early-pinctrl/early-pinctrl-sld3.c | 26

[U-Boot] [PATCH 09/15] ARM: uniphier: consolidate System Bus pin-mux settings for LD11/LD20

2016-09-16 Thread Masahiro Yamada
Use the pin-mux data in the pinctrl drivers by directly calling pinctrl_generic_set_state(). Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Makefile| 2 +- arch/arm/mach-uniphier/early-pinctrl/Makefile | 6

[U-Boot] [PATCH 03/15] ARM: dts: uniphier: add pinctrl device node and pinctrl properties

2016-09-16 Thread Masahiro Yamada
DT-side updates to make pinctrl on sLD3 SoC really available. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ph1-sld3-ref.dts | 8 arch/arm/dts/uniphier-ph1-sld3.dtsi| 35 ++ 2 files changed, 43

[U-Boot] [PATCH 12/15] ARM: uniphier: move PLL init code to U-Boot proper where possible

2016-09-16 Thread Masahiro Yamada
The PLL for the DRAM interface must be initialized in SPL, but the others can be delayed until U-Boot proper. Move them from SPL to U-Boot proper to save the precious SPL memory footprint. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/board_init.c

[U-Boot] [PATCH 00/15] ARM: uniphier: more updates for UniPhier SoC family for v2016.11-rc1

2016-09-16 Thread Masahiro Yamada
- Add pinctrl driver for sLD3 SoC - Do away with legacy pin-mux code - refactoring of clock/PLL init code - Add PLL init code for LD20 SoC - Improvement of DRAM init code for LD20 SoC - Misc cleanups Masahiro Yamada (15): pinctrl: uniphier: support 4bit-width pin-mux register

[U-Boot] [PATCH 04/15] ARM: uniphier: select PINCTRL and SPL_PINCTRL

2016-09-16 Thread Masahiro Yamada
Now all UniPhier SoCs support a pinctrl driver. Select (SPL_)PINCTRL since it is mandatory even for base use. Signed-off-by: Masahiro Yamada --- arch/arm/Kconfig | 2 ++ configs/uniphier_ld11_defconfig | 2 --

[U-Boot] [PATCH 11/15] ARM: uniphier: rename CONFIG_DPLL_SSC_RATE_1PER

2016-09-16 Thread Masahiro Yamada
Basically, this should not be configured by users. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/pll/pll-init-sld8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-uniphier/pll/pll-init-sld8.c

[U-Boot] [PATCH 01/15] pinctrl: uniphier: support 4bit-width pin-mux register capability

2016-09-16 Thread Masahiro Yamada
On LD4 SoC or later, the pin-mux registers are 8bit wide, while 4bit wide on sLD3 SoC. Support it for the sLD3 pinctrl driver. Signed-off-by: Masahiro Yamada --- drivers/pinctrl/uniphier/pinctrl-uniphier-core.c | 20

[U-Boot] [PATCH 02/15] pinctrl: uniphier: add UniPhier sLD3 pinctrl driver

2016-09-16 Thread Masahiro Yamada
Add pin-mux support for UniPhier sLD3 SoC. Signed-off-by: Masahiro Yamada --- drivers/pinctrl/uniphier/Kconfig | 6 ++ drivers/pinctrl/uniphier/Makefile| 1 + drivers/pinctrl/uniphier/pinctrl-uniphier-sld3.c | 128

Re: [U-Boot] [PATCH 04/15] net: mvneta: Add support for Armada 3700 SoC

2016-09-16 Thread Joe Hershberger
On Fri, Sep 16, 2016 at 8:09 AM, Stefan Roese wrote: > This patch adds support for the Armada 3700 SoC to the Marvell mvneta > network driver. > > Not like A380, in Armada3700, there are two layers of decode windows for GBE: > First layer is: GbE Address window that resides inside

Re: [U-Boot] [PATCH 03/15] net: mvneta: Make driver 64bit safe

2016-09-16 Thread Joe Hershberger
On Fri, Sep 16, 2016 at 8:09 AM, Stefan Roese wrote: > The mvneta driver is also used on the ARMv8 64bit Armada 3700 SoC. This > patch fixes the compilation warnings seen on this 64bit platform. > > Signed-off-by: Stefan Roese > Cc: Nadav Haklai >

[U-Boot] [PATCH v5 4/5] colibri_t20: fix display configuration

2016-09-16 Thread Marcel Ziswiler
Without this patch the following error will be shown: stdio_add_devices: Video device failed (ret=-22) As commit ec5507707a1d1e84056a6c864338f95f6118d3ca (video: tegra: Move to using simple-panel and pwm-backlight) states the Colibri T20 needs updating too which this patch finally attempts

[U-Boot] [PATCH v5 5/5] colibri_t20: fix usb operation and controller order

2016-09-16 Thread Marcel Ziswiler
Without this patch the following error will be shown: Colibri T20 # usb start starting USB... No controllers found This patch fixes USB operation and also the controller order as the CI UDC driver may only be instantiated on the first aka OTG port. Signed-off-by: Marcel Ziswiler

[U-Boot] [PATCH v5 0/5] various fixes mainly for colibri_t20

2016-09-16 Thread Marcel Ziswiler
This series addresses various issues as seen on Colibri T20. Please note that for successful Ethernet operation not only on Colibri T20 but also on Colibri T30 the following patch will still be required already waiting in Marek's usb tree: [PATCH v2] net: asix: Fix ASIX 88772B with driver model

[U-Boot] [PATCH v5 3/5] regulator: fixed: honour optionality of enable gpio

2016-09-16 Thread Marcel Ziswiler
According to the binding documentation the fixed regulator enable GPIO is optional. However so far registration thereof failed if no enable GPIO was specified. Fix this by making it entirely optional whether an enable GPIO is used. Signed-off-by: Marcel Ziswiler

[U-Boot] [PATCH v5 1/5] tegra: usb gadget: fix ci udc operation if not hostpc capable

2016-09-16 Thread Marcel Ziswiler
The Tegra 2 aka T20 is not host PC capable. Therefore gate the define CONFIG_CI_UDC_HAS_HOSTPC in tegra-common-usb-gadget.h in case of CONFIG_TEGRA20. Signed-off-by: Marcel Ziswiler Acked-by: Stephen Warren --- Changes in v5: None Changes in

[U-Boot] [PATCH v5 2/5] simple panel: fix spelling of debug message

2016-09-16 Thread Marcel Ziswiler
Fix spelling of debug message from cnnot to cannot. Signed-off-by: Marcel Ziswiler Acked-by: Anatolij Gustschin --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Add Anatolij's ack. drivers/video/simple_panel.c | 2

[U-Boot] [PATCH 3/5] toradex: config block handling

2016-09-16 Thread Marcel Ziswiler
Add Toradex factory configuration block handling. The config block is a data structure which gets stored to flash during production testing. The structure holds such information as board resp. hardware revision, product ID and serial number which is used as the NIC part of the Ethernet MAC address

[U-Boot] [PATCH 4/5] apalis/colibri_imx7/pxa270/t20/t30/vf: integrate config block handling

2016-09-16 Thread Marcel Ziswiler
With our common code in place actually make use of it across all our modules. Signed-off-by: Marcel Ziswiler --- board/toradex/apalis_t30/Kconfig | 16 board/toradex/apalis_t30/apalis_t30.c | 12 +++-

[U-Boot] [PATCH 5/5] apalis/colibri_t30: move environment location

2016-09-16 Thread Marcel Ziswiler
Now with the config block handling in place move the U-Boot environment location before the config block at the end of 1st "boot sector" as deployed during production using our downstream BSP. Signed-off-by: Marcel Ziswiler --- include/configs/apalis_t30.h | 7

[U-Boot] [PATCH 0/5] toradex: config block handling

2016-09-16 Thread Marcel Ziswiler
This series integrates Toradex factory configuration block handling. The config block is a data structure which gets stored to flash during production testing. The structure holds such information as board resp. hardware revision, product ID and serial number which is used as the NIC part of the

[U-Boot] [PATCH 1/5] colibri_imx7/vf: move to custom checkboard_fallback()

2016-09-16 Thread Marcel Ziswiler
Rename checkboard() to checkboard_fallback() in order to avoid a name clash with our upcoming common implementation thereof. Signed-off-by: Marcel Ziswiler --- board/toradex/colibri_imx7/colibri_imx7.c | 6 +++--- board/toradex/colibri_vf/colibri_vf.c | 8

[U-Boot] [PATCH 2/5] apalis/colibri_t20/t30: deactivate displaying board info

2016-09-16 Thread Marcel Ziswiler
Avoid a checkboard() name clash with our upcoming custom implementation thereof. Signed-off-by: Marcel Ziswiler --- include/configs/apalis_t30.h | 1 + include/configs/colibri_t20.h | 1 + include/configs/colibri_t30.h | 1 + 3 files changed, 3 insertions(+) diff

Re: [U-Boot] [PATCH v4 3/5] regulator: fixed: honour optionality of enable gpio

2016-09-16 Thread Stephen Warren
On 09/16/2016 01:33 AM, Marcel Ziswiler wrote: According to the binding documentation the fixed regulator enable GPIO is optional. However so far registration thereof failed if no enable GPIO was specified. Fix this by making it entirely optional whether an enable GPIO is used. diff --git

Re: [U-Boot] [PATCH v3] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-09-16 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 09/16/2016 11:35 AM, Sriram Dash wrote: > >[...] > I agree to your point. We can set the bit from fsl specific file with the function setbits_le32(fsl_xhci->dwc3_reg->g_usb3pipectl[0], DWC3_GUSB3PIPECTL_DISRXDETP3); If any other

[U-Boot] how to programatically add a second hash table to the environment?

2016-09-16 Thread Robert P. J. Day
i'm hoping this is a simple question -- at boot time, i've added a misc_init_r() routine that digs around in some legacy flash, pulls out a string of (vxworks) "var=val" settings, and imports that in one shot into an initial hash table. works fine. as the second step, i walk that table and,

[U-Boot] [PATCH 2/2] board/liteboard: Add support for liteBoard

2016-09-16 Thread Marcin Niestroj
liteBoard is a development board which uses liteSOM as its base. Hardware specification: * liteSOM (i.MX6UL, DRAM, eMMC) * Ethernet PHY (id 0) * USB host (usb_otg1) * MicroSD slot (uSDHC1) Signed-off-by: Marcin Niestroj --- arch/arm/cpu/armv7/mx6/Kconfig|

[U-Boot] [PATCH 1/2] ARM: imx6ul: Add support for liteSOM

2016-09-16 Thread Marcin Niestroj
liteSOM is a System On Module (http://grinn-global.com/litesom/). It can't exists on its own, but will be used as part of other boards. Hardware specification: * NXP i.MX6UL processor * 256M or 512M DDR3 memory * optional eMMC (uSDHC2) Here we treat SOM similar to SOC, so we place it inside

[U-Boot] [PATCH 0/2] ARM: imx6ul: Support liteSOM and liteBoard

2016-09-16 Thread Marcin Niestroj
Hi, These patches add support for liteSOM (http://grinn-global.com/litesom/), and liteBoard (which uses liteSOM as it's base). liteSOM consists of processor (NXP i.MX6UL), RAM memory (up to 512M DDR3) and flash (eMMC card). The idea is that every board vendor can use liteSOM as it's base for

[U-Boot] [PATCH 6/9] arm64: mvebu: Add Armada 7K db-88f7040 development board support

2016-09-16 Thread Stefan Roese
This patch adds basic support for the Marvell Armada 7K DB-88F7040 development board. Supported are the following interfaces: - UART - SPI (incl. SPI NOR) - I2C - USB - SATA / AHCI Support for other interfaces will follow. Signed-off-by: Stefan Roese Cc: Nadav Haklai

[U-Boot] [PATCH 1/9] drivers/phy: Add Marvell SerDes / PHY drivers used on Armada 7K/8K

2016-09-16 Thread Stefan Roese
This version is based on the Marvell U-Boot version with this patch applied as latest patch: Git ID 7f408573: "fix: comphy: cp110: add comphy initialization for usb device mode" from 2016-07-05. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Neta Zur

[U-Boot] [PATCH 8/9] arm64: mvebu: Armada 7K/8K: Add COMPHY device tree nodes

2016-09-16 Thread Stefan Roese
This patch adds the COMPHY device tree nodes that are still missing to the Armada 7K/8K dts files. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Neta Zur Hershkovits Cc: Kostya Porotchkin Cc: Omri Itach

[U-Boot] [PATCH 3/9] ahci: Make ahci_port_base() non-static to enable overwrite

2016-09-16 Thread Stefan Roese
To allow a board- / platform-specific ahci_port_base() function, this patch removes "static inline" and adds __weak to this function. This will be used by the upcoming Armada 7K/8K SATA / AHCI support, which unfortunately needs a different port base address calculation. Signed-off-by: Stefan

[U-Boot] [PATCH 2/9] usb: xhci-mvebu: Add Armada 8K to compatiblity list

2016-09-16 Thread Stefan Roese
To enable this driver on Armada 7K/8K this patch adds the compatibility property to the list. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Neta Zur Hershkovits Cc: Kostya Porotchkin Cc: Omri Itach

[U-Boot] [PATCH 7/9] arm64: mvebu: armada-ap806.dtsi: Add clock-frequency to UART DT node

2016-09-16 Thread Stefan Roese
The clock frequency needs to be provided in the DT. Otherwise the driver won't start in U-Boot. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Neta Zur Hershkovits Cc: Kostya Porotchkin Cc: Omri Itach

[U-Boot] [PATCH 9/9] arm64: mvebu: armada-7040-db.dts: Add I2C and SPI aliases

2016-09-16 Thread Stefan Roese
Add I2C and SPI aliases to enable usage in U-Boot. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Neta Zur Hershkovits Cc: Kostya Porotchkin Cc: Omri Itach Cc: Igal Liberman Cc:

[U-Boot] [PATCH 5/9] arm64: mvebu: Add basic support for the Marvell Armada 7K/8K SoC

2016-09-16 Thread Stefan Roese
Compared to the Armada 3700, the Armada 7K and 8K are much more on the high-end side: they use a dual Cortex-A72 or a quad Cortex-A72, as opposed to the Cortex-A53 for the Armada 3700. The Armada 7K and 8K also use a fairly unique architecture, internally they are composed of several components:

[U-Boot] [PATCH 4/9] arm64: mvebu: Armada 7K/8K: Add Armada 7K/8K dts files

2016-09-16 Thread Stefan Roese
This patch integrates the Armada 7K/8K dts files from the latest submission on the linux-arm-kernel mailing list. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Neta Zur Hershkovits Cc: Kostya Porotchkin Cc: Omri Itach

[U-Boot] [PATCH 14/15] arm64: mvebu: Add support for the Marvell Armada 3700 SoC

2016-09-16 Thread Stefan Roese
The Armada 3700 integrates the following interfaces (not complete list): - Dual Cortex-A53 ARMv8 - USB 3.0 - SATA 3.0 - PCIe 2.0 - 2 x Gigabit Ethernet 1Gbps / 2.5Gbps - ... This patch adds basic support for this ARMv8 based SoC into U-Boot. Future patches will integrate other device drivers and

[U-Boot] [PATCH 06/15] usb: ehci: ehci-marvell.c: Add Armada 3700 support (ARMv8)

2016-09-16 Thread Stefan Roese
This patch adds DM based support for the Armada 3700 EHCI controller. The address windows don't need to get configured in this case. The difference here is detected via DT compatible property at runtime. With this support and the DM xHCI driver, both XHCI and eHCI can be used simultaniously on

[U-Boot] [PATCH 11/15] arm64: mvebu: Armada 3700: Add I2C device tree nodes

2016-09-16 Thread Stefan Roese
This patch adds the I2C device tree nodes that are still missing to the Armada 3700 dts files. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya Porotchkin Cc: Wilson Ding Cc: Victor Gu Cc: Hua

[U-Boot] [PATCH 12/15] arm64: mvebu: Armada 3700: Add COMPHY device tree nodes

2016-09-16 Thread Stefan Roese
This patch adds the COMPHY device tree nodes that are still missing to the Armada 3700 dts files. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya Porotchkin Cc: Wilson Ding Cc: Victor Gu Cc:

[U-Boot] [PATCH 09/15] arm64: mvebu: Armada 3700: Add SPI device tree nodes

2016-09-16 Thread Stefan Roese
This patch adds the SPI device tree nodes that are still missing to the Armada 3700 dts files. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya Porotchkin Cc: Wilson Ding Cc: Victor Gu Cc: Hua

[U-Boot] [PATCH 07/15] drivers/phy: Add Marvell SerDes / PHY drivers used on Armada 3k

2016-09-16 Thread Stefan Roese
This version is based on the Marvell U-Boot version with this patch applied as latest patch: Git ID 7f408573: "fix: comphy: cp110: add comphy initialization for usb device mode" from 2016-07-05. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya

[U-Boot] [PATCH 15/15] arm64: mvebu: Add Armada 3700 db-88f3720 development board support

2016-09-16 Thread Stefan Roese
This patch adds basic support for the Marvell Armada 3700 DB-88F3720 development board. Supported are the following interfaces: - UART - SPI (incl. SPI NOR) - I2C - Ethernet Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya Porotchkin

[U-Boot] [PATCH 10/15] arm64: mvebu: Armada 3700: Add ethernet device tree nodes

2016-09-16 Thread Stefan Roese
This patch adds the ethernet device tree nodes that are still missing to the Armada 3700 dts files. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya Porotchkin Cc: Wilson Ding Cc: Victor Gu

[U-Boot] [PATCH 13/15] arm64: mvebu: Armada 3700: Add USB device tree nodes

2016-09-16 Thread Stefan Roese
This patch adds the USB device tree nodes that are still missing to the Armada 3700 dts files. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya Porotchkin Cc: Wilson Ding Cc: Victor Gu Cc: Hua

[U-Boot] [PATCH 04/15] net: mvneta: Add support for Armada 3700 SoC

2016-09-16 Thread Stefan Roese
This patch adds support for the Armada 3700 SoC to the Marvell mvneta network driver. Not like A380, in Armada3700, there are two layers of decode windows for GBE: First layer is: GbE Address window that resides inside the GBE unit, Second layer is: Fabric address window which is located in the

[U-Boot] [PATCH 03/15] net: mvneta: Make driver 64bit safe

2016-09-16 Thread Stefan Roese
The mvneta driver is also used on the ARMv8 64bit Armada 3700 SoC. This patch fixes the compilation warnings seen on this 64bit platform. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya Porotchkin Cc: Wilson Ding

[U-Boot] [PATCH 05/15] usb: xhci: Add Marvell MVEBU xHCI support

2016-09-16 Thread Stefan Roese
This patch adds DM based support for the xHCI USB 3.0 controller integrated in the Armada 3700 SoC. It may be extended to be used by other MVEBU SoCs as well. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya Porotchkin Cc: Wilson

[U-Boot] [PATCH 08/15] arm64: mvebu: Armada 3700: Add Armada 37xx dts files

2016-09-16 Thread Stefan Roese
This patch integrates the Armada 3700 dts files from the latest submission on the linux-arm-kernel mailing list. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya Porotchkin Cc: Wilson Ding Cc: Victor Gu

[U-Boot] [PATCH 02/15] spi: Add driver for Marvell Armada 3700 SoC

2016-09-16 Thread Stefan Roese
The SPI IP core in the Marvell Armada 3700 is similar to the one in the other Armada SoCs. But the differences are big enough that it makes sense to introduce a new driver instead of cluttering the old kirkwood driver with #ifdef's. Signed-off-by: Stefan Roese Cc: Nadav Haklai

[U-Boot] [PATCH 01/15] serial: Add serial_mvebu_a3700 for Armada 3700 SoC

2016-09-16 Thread Stefan Roese
The Armada 3700's UART is a simple serial port. It has a 32 bytes Tx FIFO and a 64 bytes Rx FIFO integrated. This patch adds support for this UART including the DEBUG UART functions for very early debug output. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc:

[U-Boot] [PATCH 7/7] i2c: mvtwsi.c: Add support for Marvell Armada 7K/8K

2016-09-16 Thread Stefan Roese
By adding the "marvell,mv78230-i2c" compatible property, we can enable this I2C driver to support these new ARM64 chips as well. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Neta Zur Hershkovits Cc: Kostya Porotchkin

[U-Boot] [PATCH 6/7] i2c: mv_i2c.c: Validate read length in I2C command

2016-09-16 Thread Stefan Roese
From: jinghua The I2C bus will get stuck when reading 0 byte. So we add validation of the read length in i2c_read(). This issue only occurs on read operation. Signed-off-by: jinghua Signed-off-by: Stefan Roese Cc: Nadav Haklai

[U-Boot] [PATCH 5/7] i2c: mv_i2c.c: Enable runtime speed selection (standard vs fast mode)

2016-09-16 Thread Stefan Roese
This patch adds runtime speed configuration to the mv_i2c driver. Currently standard (max 100kHz) and fast mode (max 400kHz) are supported. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya Porotchkin Cc: Wilson Ding

[U-Boot] [PATCH 4/7] i2c: mv_i2c.c: Add DM support

2016-09-16 Thread Stefan Roese
Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya Porotchkin Cc: Wilson Ding Cc: Victor Gu Cc: Hua Jing Cc: Terry Zhou Cc: Hanna Hawa

[U-Boot] [PATCH 1/7] i2c: mv_i2c.c: cosmetic: Coding style cleanups

2016-09-16 Thread Stefan Roese
Some mostly indentation coding style cleanups. Also, move this driver to use debug() for debug output. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya Porotchkin Cc: Wilson Ding Cc: Victor Gu

[U-Boot] [PATCH 3/7] i2c: mv_i2c.c: Prepare driver for DM conversion

2016-09-16 Thread Stefan Roese
To prepare for the DM conversion, we add a layer of compatibility functions to be used by both the legacy and the DM functions. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya Porotchkin Cc: Wilson Ding Cc:

[U-Boot] [PATCH 2/7] i2c: mv_i2c.c: Remove CONFIG_HARD_I2C

2016-09-16 Thread Stefan Roese
CONFIG_HARD_I2C is not needed, lets remove it. Signed-off-by: Stefan Roese Cc: Nadav Haklai Cc: Kostya Porotchkin Cc: Wilson Ding Cc: Victor Gu Cc: Hua Jing Cc: Terry Zhou

  1   2   >