[U-Boot] [PATCH v3 0/7] rockchip: add new SoC support for RK3128

2017-11-28 Thread Kever Yang
RK3128 is a quad-core ARM Cortex-A7 SoC, this patch set add basic support for it, it does not support SPL/TPL now, and the sdram driver only support get dram size from sysreg in U-Boot stage. Most of basic driver like clock, pinctrl, sysreset have been implement, and more drivers like mac and disp

[U-Boot] [PATCH v3 1/7] rockchip: rk3128: add device tree file

2017-11-28 Thread Kever Yang
Add dts binding header for rk3128, files origin from kernel. Series-Changes: 2 - fix i2c address - add saradc and usb phy node - emmc using fifo mode for there is no dma support in rk3128 emmc - add some clock id in cru.h Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp

[U-Boot] [PATCH v3 3/7] rockchip: rk3128: add clock driver

2017-11-28 Thread Kever Yang
Add rk3128 clock driver and cru structure definition. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v3: - remove soft reset driver bind Changes in v2: - add clock for saradc, vop, nandc, i2c - update driver bind for sysreset driver and reset d

[U-Boot] [PATCH v3 2/7] rockchip: rk3128: add soc basic support

2017-11-28 Thread Kever Yang
RK3128 is a SoC from Rockchip with quad-core Cortex-A7 CPU and mali400 GPU. Support Nand flash, eMMC, SD card, USB 2.0 host and device, HDMI/LVDS/MIPI display. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v3: None Changes in v2: - update setup

[U-Boot] [PATCH v3 4/7] rockchip: rk3128: add pinctrl driver

2017-11-28 Thread Kever Yang
Add rk3128 pinctrl driver and grf/iomux structure definition. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v3: None Changes in v2: - remove debug info - update GPIO2C4/C5 SHIFT arch/arm/include/asm/arch-rockchip/grf_rk3128.h | 551 ++

[U-Boot] [PATCH v3 5/7] rockchip: rk3128: add evb-rk3128 support

2017-11-28 Thread Kever Yang
evb-rk3128 is an evb from Rockchip based on rk3128 SoC: - 2 USB2.0 Host port; - 1 HDMI port; - 2 10/100M eth port; - 2GB ddr; - 16GB eMMC; - UART to USB debug port; Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v3: - remove empty evb_rk3128.c a

[U-Boot] [PATCH v3 7/7] rockchip: rk3128: add sdram driver

2017-11-28 Thread Kever Yang
RK3128 support up to 2GB DDR3 sdram, one channel, 32bit data width. This patch is only used for U-Boot, but not for SPL which will comes later, maybe after we merge all the common code into a common file. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Cha

[U-Boot] [PATCH v3 6/7] rockchip: rk3128: add defconfig for evb-rk3128

2017-11-28 Thread Kever Yang
Enable board config for evb-rk3128. Serial output and eMMC works in this version. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v3: None Changes in v2: None configs/evb-rk3128_defconfig | 56 1 fil

[U-Boot] [RESEND PATCH v3 0/7] rockchip: add new SoC support for RK3128

2017-11-28 Thread Kever Yang
RK3128 is a quad-core ARM Cortex-A7 SoC, this patch set add basic support for it, it does not support SPL/TPL now, and the sdram driver only support get dram size from sysreg in U-Boot stage. Most of basic driver like clock, pinctrl, sysreset have been implement, and more drivers like mac and disp

[U-Boot] [RESEND PATCH v3 2/7] rockchip: rk3128: add soc basic support

2017-11-28 Thread Kever Yang
RK3128 is a SoC from Rockchip with quad-core Cortex-A7 CPU and mali400 GPU. Support Nand flash, eMMC, SD card, USB 2.0 host and device, HDMI/LVDS/MIPI display. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v3: None Changes in v2: - update setup

[U-Boot] [RESEND PATCH v3 1/7] rockchip: rk3128: add device tree file

2017-11-28 Thread Kever Yang
Add dts binding header for rk3128, files origin from kernel. Series-Changes: 2 - fix i2c address - add saradc and usb phy node - emmc using fifo mode for there is no dma support in rk3128 emmc - add some clock id in cru.h Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp

[U-Boot] [RESEND PATCH v3 3/7] rockchip: rk3128: add clock driver

2017-11-28 Thread Kever Yang
Add rk3128 clock driver and cru structure definition. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v3: - remove soft reset driver bind Changes in v2: - add clock for saradc, vop, nandc, i2c - update driver bind for sysreset driver and reset d

[U-Boot] [RESEND PATCH v3 4/7] rockchip: rk3128: add pinctrl driver

2017-11-28 Thread Kever Yang
Add rk3128 pinctrl driver and grf/iomux structure definition. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v3: None Changes in v2: - remove debug info - update GPIO2C4/C5 SHIFT arch/arm/include/asm/arch-rockchip/grf_rk3128.h | 551 ++

[U-Boot] [RESEND PATCH v3 5/7] rockchip: rk3128: add evb-rk3128 support

2017-11-28 Thread Kever Yang
evb-rk3128 is an evb from Rockchip based on rk3128 SoC: - 2 USB2.0 Host port; - 1 HDMI port; - 2 10/100M eth port; - 2GB ddr; - 16GB eMMC; - UART to USB debug port; Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v3: - remove empty evb_rk3128.c

[U-Boot] [RESEND PATCH v3 6/7] rockchip: rk3128: add defconfig for evb-rk3128

2017-11-28 Thread Kever Yang
Enable board config for evb-rk3128. Serial output and eMMC works in this version. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v3: None Changes in v2: None configs/evb-rk3128_defconfig | 56 1 fil

[U-Boot] [RESEND PATCH v3 7/7] rockchip: rk3128: add sdram driver

2017-11-28 Thread Kever Yang
RK3128 support up to 2GB DDR3 sdram, one channel, 32bit data width. This patch is only used for U-Boot, but not for SPL which will comes later, maybe after we merge all the common code into a common file. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Cha

Re: [U-Boot] [RFC] Support for SGMII 2500

2017-11-28 Thread Prabhakar Kushwaha
Hi Madalin, > -Original Message- > From: Bhaskar Upadhaya > Sent: Tuesday, November 28, 2017 12:57 PM > To: Madalin-cristian Bucur ; Andrew Lunn > ; f.faine...@gmail.com; net...@vger.kernel.org; Anji > Jagarlmudi ; Calvin Johnson > ; Prabhakar Kushwaha > ; Poonam Aggrwal > > Cc: Shengzhou

Re: [U-Boot] [PATCH] fpga: allow programming fpga from FIT image for all FPGA drivers

2017-11-28 Thread Goldschmidt Simon
Simon Goldschmidt wrote: > Hi Simon, > > Simon Glass wrote: > > I see that, although it is adding to the fpga header so presumably > > making it harder for someone to move this over. > > Yes, I'm not happy with changing the header and even xilinx C file to add > functionality for altera. However,

Re: [U-Boot] [PATCH v2 1/4] dm: mmc: update mmc_of_parse()

2017-11-28 Thread Jean-Jacques Hiblot
On 27/11/2017 18:13, Simon Glass wrote: Hi Jean-Jacques, On 27 November 2017 at 02:59, Jean-Jacques Hiblot wrote: * convert to livetree API * don't fail because of an invalid bus-width, instead default to 1-bit. * recognize 1.2v DDR and 1.2v HS200 flags Signed-off-by: Jean-Jacques Hiblot -

Re: [U-Boot] [PATCH v2 2/4] mmc: dump card and host capabilities if debug is enabled

2017-11-28 Thread Jean-Jacques Hiblot
On 27/11/2017 11:10, Jaehoon Chung wrote: Hi JJ, On 11/27/2017 06:59 PM, Jean-Jacques Hiblot wrote: This is a useful information while debugging the initialization process or performance issues. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Lukasz Majewski --- no change since v1 driv

Re: [U-Boot] "usb storage" command issues

2017-11-28 Thread Stefan Roese
Hi Bin, Hi Simon, On 20.11.2017 16:38, Simon Glass wrote: On 20 November 2017 at 00:07, Bin Meng wrote: Hi Stefan, On Wed, Sep 27, 2017 at 1:03 AM, Stefan Roese wrote: Hi, I'm currently testing USB on my x86 platform. And noticed, that the "usb storage" command does not work as expected:

Re: [U-Boot] [U-Boot, 3/3] rockchip: rk3036: sdram: correct setting for pll integer mode

2017-11-28 Thread Philipp Tomsich
> According to rk3036 TRM, should be set to '1' for the pll > integer mode, while the '0' means the frac mode. > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3036/sdram_rk3036.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, v2, 1/2] drivers/reset: support rockchip reset drivers

2017-11-28 Thread Philipp Tomsich
> From: Elaine Zhang > > Create driver to support all Rockchip SoCs soft reset. > Example of usage: > i2c driver: > ret = reset_get_by_name(dev, "i2c", &reset_ctl); > if (ret) { > error("reset_get_by_name() failed: %d\n", ret); > } > > reset_assert(&reset_ct

Re: [U-Boot] [U-Boot, 1/3] rockchip: rk3036: fix pll config for correct frequency

2017-11-28 Thread Philipp Tomsich
> There is a fixed div-2 between PLL and clk_ddr/clk_ddrphy, > so we need to double to pll output and then ddr can work > in correct frequency. > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3036/sdram_rk3036.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-

Re: [U-Boot] [U-Boot, 2/3] rockchip: rk3036: update clock driver for ddr

2017-11-28 Thread Philipp Tomsich
> After the MASK MACRO update, we need to update the driver at the same time. > This is a fix to: > 37943aa rockchip: rk3036: clean mask definition for cru reg > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3036/sdram_rk3036.c | 15 ++- > 1 file changed, 6 insertio

Re: [U-Boot] [U-Boot, 1/3] rockchip: boot mode: parse adc channel from dts

2017-11-28 Thread Philipp Tomsich
> Most the current rockchip based boards use adc channel > 1 detect the download key, but there are also some > boards like rv1108 based plaform use adc channel 0. > So we parse the adc channel from dts if we can get > it, otherwise we use the channel 1 as default. > > Signed-off-by: Andy Yan > -

Re: [U-Boot] [U-Boot,v2,2/2] rockchip: clk: bind reset driver

2017-11-28 Thread Philipp Tomsich
> From: Elaine Zhang > > Bind rockchip reset to clock-controller with rockchip_reset_bind(). > > Signed-off-by: Elaine Zhang > Signed-off-by: Kever Yang > --- > > Changes in v2: > - use rockchip_reset_bind() to bind reset driver. > > arch/arm/include/asm/arch-rockchip/clock.h | 10 +

Re: [U-Boot] [U-Boot, 2/3] rockchip: rv1108: add adc key dt node for evb_rv1108

2017-11-28 Thread Philipp Tomsich
> RV1108 EVB uses a adc-based recovery(VOL+) key, which > connected to saradc channel 0. > This patch add dt node for it. > > Signed-off-by: Andy Yan > --- > > arch/arm/dts/rv1108-evb.dts | 21 + > 1 file changed, 21 insertions(+) > Acked-by: Philipp Tomsich _

Re: [U-Boot] [U-Boot,3/3] rockchip: rv1108: call setup_boot_mode

2017-11-28 Thread Philipp Tomsich
> Call setup_boot_mode to check current boot mode. > > Signed-off-by: Andy Yan > --- > > arch/arm/mach-rockchip/Kconfig | 1 + > arch/arm/mach-rockchip/rv1108/rv1108.c | 6 ++ > 2 files changed, 7 insertions(+) > Acked-by: Philipp Tomsich _

Re: [U-Boot] U-Boot proper(not SPL) relocate option

2017-11-28 Thread Lukasz Majewski
On Mon, 27 Nov 2017 10:13:09 -0700 Simon Glass wrote: > (Tom - any thoughts about a more expansive cc list on this?) > > Hi Masahiro, > > On 26 November 2017 at 07:16, Masahiro Yamada > wrote: > > 2017-11-26 20:38 GMT+09:00 Simon Glass : > >> Hi Philipp, > >> > >> On 25 November 2017 at 16:3

Re: [U-Boot] [U-Boot, 3/3] rockchip: rk3036: sdram: correct setting for pll integer mode

2017-11-28 Thread Philipp Tomsich
> According to rk3036 TRM, should be set to '1' for the pll > integer mode, while the '0' means the frac mode. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > --- > > arch/arm/mach-rockchip/rk3036/sdram_rk3036.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-b

Re: [U-Boot] [U-Boot, 2/3] rockchip: rk3036: update clock driver for ddr

2017-11-28 Thread Philipp Tomsich
> After the MASK MACRO update, we need to update the driver at the same time. > This is a fix to: > 37943aa rockchip: rk3036: clean mask definition for cru reg > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > --- > > arch/arm/mach-rockchip/rk3036/sdram_rk3036.c | 15 ++-

Re: [U-Boot] [U-Boot, v2, 1/2] drivers/reset: support rockchip reset drivers

2017-11-28 Thread Philipp Tomsich
> From: Elaine Zhang > > Create driver to support all Rockchip SoCs soft reset. > Example of usage: > i2c driver: > ret = reset_get_by_name(dev, "i2c", &reset_ctl); > if (ret) { > error("reset_get_by_name() failed: %d\n", ret); > } > > reset_assert(&reset_ct

Re: [U-Boot] [U-Boot,v2,2/2] rockchip: clk: bind reset driver

2017-11-28 Thread Philipp Tomsich
> From: Elaine Zhang > > Bind rockchip reset to clock-controller with rockchip_reset_bind(). > > Signed-off-by: Elaine Zhang > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > --- > > Changes in v2: > - use rockchip_reset_bind() to bind reset driver. > > arch/arm/include/asm/arch-ro

Re: [U-Boot] [U-Boot,3/3] rockchip: rv1108: call setup_boot_mode

2017-11-28 Thread Philipp Tomsich
> Call setup_boot_mode to check current boot mode. > > Signed-off-by: Andy Yan > Acked-by: Philipp Tomsich > --- > > arch/arm/mach-rockchip/Kconfig | 1 + > arch/arm/mach-rockchip/rv1108/rv1108.c | 6 ++ > 2 files changed, 7 insertions(+) > Reviewed-by: Philipp Tomsich _

[U-Boot] [PATCH 00/14] env: Multiple env support and env transition for sunxi

2017-11-28 Thread Maxime Ripard
Hi, Here is an attempt at transitioning away from the MMC raw environment to a FAT-based one. Since the RFC was quite well received, I actually tested it and fixed a few rough edges. You'll find the first RFC here for reference: https://lists.denx.de/pipermail/u-boot/2017-October/310111.html And

[U-Boot] [PATCH 11/14] env: Allow to build multiple environments in Kconfig

2017-11-28 Thread Maxime Ripard
Now that we have everything in place in the code, let's allow to build multiple environments backend through Kconfig. Reviewed-by: Lukasz Majewski Signed-off-by: Maxime Ripard --- env/Kconfig | 65 ++ 1 file changed, 32 insertions(+), 33 delet

[U-Boot] [PATCH 10/14] env: Initialise all the environments

2017-11-28 Thread Maxime Ripard
Since we want to have multiple environments, we will need to initialise all the environments since we don't know at init time what drivers might fail when calling load. Let's init all of them, and only consider for further operations the ones that have not reported any errors at init time. Signed

[U-Boot] [PATCH 02/14] env: Rename env_driver_lookup_default and env_get_default_location

2017-11-28 Thread Maxime Ripard
The env_driver_lookup_default and env_get_default_location functions are about to get refactored to support loading from multiple environment. The name is therefore not really well suited anymore. Drop the default part to be a bit more relevant. Reviewed-by: Lukasz Majewski Signed-off-by: Maxime

[U-Boot] [PATCH 03/14] env: Pass additional parameters to the env lookup function

2017-11-28 Thread Maxime Ripard
In preparation for the multiple environment support, let's introduce two new parameters to the environment driver lookup function: the priority and operation. The operation parameter is meant to identify, obviously, the operation you might want to perform on the environment. The priority is a num

[U-Boot] [PATCH 09/14] env: Support multiple environments

2017-11-28 Thread Maxime Ripard
Now that we have everything in place to support multiple environment, let's make sure the current code can use it. The priority used between the various environment is the same one that was used in the code previously. At read / init times, the highest priority environment is going to be detected

[U-Boot] [PATCH 07/14] env: mmc: Make the debug messages play a little nicer

2017-11-28 Thread Maxime Ripard
Since we have global messages to indicate what's going on, the custom messages in the environment drivers only make the output less readable. Make MMC play a little nicer by removing all the extra \n and formatting that is redundant with the global output. Signed-off-by: Maxime Ripard --- env/m

[U-Boot] [PATCH 04/14] env: Make the env save message a bit more explicit

2017-11-28 Thread Maxime Ripard
Since we'll soon have support for multiple environments, the environment saving message might end up being printed multiple times if the higher priority environment cannot be used. That might confuse the user, so let's make it explicit if the operation failed or not. Reviewed-by: Lukasz Majewski

[U-Boot] [PATCH 08/14] env: common: Make the debug messages play a little nicer

2017-11-28 Thread Maxime Ripard
Since we have global messages to indicate what's going on, the custom messages in the environment drivers only make the output less readable. Make the common code play a little nicer by removing all the extra output in the standard case. Signed-off-by: Maxime Ripard --- env/common.c | 2 +- 1 f

[U-Boot] [PATCH 01/14] cmd: nvedit: Get rid of the env lookup

2017-11-28 Thread Maxime Ripard
The nvedit command is the only user of env_driver_lookup_default outside of the environment code itself, and it uses it only to print the environment it's about to save to during env save. As we're about to rework the environment to be able to handle multiple environment sources, we might not have

[U-Boot] [PATCH 06/14] env: fat: Make the debug messages play a little nicer

2017-11-28 Thread Maxime Ripard
Since we have global messages to indicate what's going on, the custom messages in the environment drivers only make the output less readable. Make FAT play a little nicer by removing all the extra \n and formatting that is redundant with the global output. Signed-off-by: Maxime Ripard --- env/f

[U-Boot] [PATCH 05/14] env: Make it explicit where we're loading our environment from

2017-11-28 Thread Maxime Ripard
Since we can have multiple environments now, it's better to provide a decent indication on what environments were tried and which were the one to fail and succeed. Signed-off-by: Maxime Ripard --- env/env.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/env/env.c b/env/

[U-Boot] [PATCH v3 3/4] mmc: Fixed a problem with old sd or mmc that do not support High speed

2017-11-28 Thread Jean-Jacques Hiblot
As the legacy modes were not added to the list of supported modes, old cards that do not support other modes could not be used. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Lukasz Majewski Reviewed-by: Simon Glass --- no change since v1 drivers/mmc/mmc.c | 4 ++-- 1 file changed, 2 inserti

[U-Boot] [PATCH 14/14] env: sunxi: Enable FAT-based environment support by default

2017-11-28 Thread Maxime Ripard
Now that we have everything in place to implement the transition scheme, let's enable it by default. Reviewed-by: Lukasz Majewski Signed-off-by: Maxime Ripard --- env/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/env/Kconfig b/env/Kconfig index bf6eab6b4ace..19524638e6e1 10064

[U-Boot] [PATCH 12/14] env: Mark env_get_location as weak

2017-11-28 Thread Maxime Ripard
Allow boards and architectures to override the default environment lookup code by overriding env_get_location. Reviewed-by: Lukasz Majewski Signed-off-by: Maxime Ripard --- env/env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env/env.c b/env/env.c index b4d8886e7a69..9b

[U-Boot] [PATCH v3 4/4] mmc: all hosts support 1-bit bus width and legacy timings

2017-11-28 Thread Jean-Jacques Hiblot
Make sure that those basic capabilities are advertised by the host. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Lukasz Majewski Reviewed-by: Simon Glass --- no change since v1 drivers/mmc/mmc.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/mm

[U-Boot] [PATCH v3 1/4] dm: mmc: update mmc_of_parse()

2017-11-28 Thread Jean-Jacques Hiblot
* convert to livetree API * don't fail because of an invalid bus-width, instead default to 1-bit. * recognize 1.2v DDR and 1.2v HS200 flags Signed-off-by: Jean-Jacques Hiblot --- changes since v2: * use the wrappers like dev_read_u32_default() to access the DTS instead of using the livetree

[U-Boot] [PATCH v3 0/4] mmc: fixes for HS200/UHS core support

2017-11-28 Thread Jean-Jacques Hiblot
This series applies on top of "[PATCH v2 00/26] mmc: Add support for HS200 and UHS modes" It fixes a bug with old SD and MMC cards that support only the legacy mode. It also addresses the comments made on the mailing list: * dump card and host capabilities in debug mode * use 1-bit if the DTS prop

[U-Boot] [PATCH v3 2/4] mmc: dump card and host capabilities if debug is enabled

2017-11-28 Thread Jean-Jacques Hiblot
This is a useful information while debugging the initialization process or performance issues. Also dump this information with the other mmc info if the verbose option is selected Signed-off-by: Jean-Jacques Hiblot --- changes since v2: * dump the capabilities during the initialization only when

[U-Boot] [PATCH 13/14] sunxi: Transition from the MMC to a FAT-based environment

2017-11-28 Thread Maxime Ripard
The current environment has been hardcoded to an offset that starts to be an issue given the current size of our main U-Boot binary. By implementing a custom environment location routine, we can always favor the FAT-based environment, and fallback to the MMC if we don't find something in the FAT p

[U-Boot] [PATCH 3/4] sunxi: Add default partition scheme

2017-11-28 Thread Maxime Ripard
The partitions variable is especially useful to create a partition table from U-Boot, either directly from the U-Boot shell, or through flashing tools like fastboot and its oem format command. This is especially useful on devices with an eMMC you can't take out to flash from another system, and bo

[U-Boot] [PATCH 2/4] part: efi: Add default number of partition entries for sunxi

2017-11-28 Thread Maxime Ripard
The SPL must be located at 8kB (16 sectors) offset. That's right in the middle of the GPT, so we need to define a smaller amount of partitions to accomodate for that location. Signed-off-by: Maxime Ripard --- disk/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/disk/Kconfig b/disk/Kc

[U-Boot] [PATCH 1/4] part: efi: Add a Kconfig option for the number of partition entries

2017-11-28 Thread Maxime Ripard
On some SoCs, the SPL needs to be located right in the middle of the GPT partition entries. One way to work around that is to create partition entries for a smaller number of partitions to accomodate with where the SPL will be. Create a Kconfig option to allow to do that. Signed-off-by: Maxime Ri

Re: [U-Boot] [PATCH 0/4] sunxi: Ease eMMC usage and flashing

2017-11-28 Thread Maxime Ripard
On Tue, Nov 28, 2017 at 11:34:37AM +0100, Maxime Ripard wrote: > Hi, > > Here is a set of patches that have been sitting in some variations for > quite some time now. > > This is mostly to ease the eMMC (and MMC, to some extent) flashing > using fastboot that in turn rely on GPT. > > The Allwinn

[U-Boot] [PATCH 0/4] sunxi: Ease eMMC usage and flashing

2017-11-28 Thread Maxime Ripard
Hi, Here is a set of patches that have been sitting in some variations for quite some time now. This is mostly to ease the eMMC (and MMC, to some extent) flashing using fastboot that in turn rely on GPT. The Allwinner SoCs need to have the SPL located right in the middle of a traditional GPT, at

[U-Boot] [PATCH 4/4] fastboot: Enable flashing by default on sunxi

2017-11-28 Thread Maxime Ripard
Now that more and more devices are built using eMMC, providing a way to easily flash the system without too much hassle seems like a right thing to do. Since fastboot is the most deployed tool to do that these days, we can just rely on it to provide a way to flash the various components in the sys

Re: [U-Boot] U-Boot proper(not SPL) relocate option

2017-11-28 Thread Peter Robinson
>> (Tom - any thoughts about a more expansive cc list on this?) >> >> Hi Masahiro, >> >> On 26 November 2017 at 07:16, Masahiro Yamada >> wrote: >> > 2017-11-26 20:38 GMT+09:00 Simon Glass : >> >> Hi Philipp, >> >> >> >> On 25 November 2017 at 16:31, Dr. Philipp Tomsich >> >> wrote: >> >>> Hi, >>

Re: [U-Boot] [RFC] Support for SGMII 2500

2017-11-28 Thread Bhaskar Upadhaya
+ Anji, Calvin, Prabhakar, Poonam. -Original Message- From: Madalin-cristian Bucur Sent: Tuesday, November 28, 2017 12:56 PM To: Andrew Lunn ; f.faine...@gmail.com; net...@vger.kernel.org Cc: Bhaskar Upadhaya ; Shengzhou Liu ; York Sun ; u-boot@lists.denx.de Subject: [RFC] Support for SG

Re: [U-Boot] U-Boot AM335x board.c `ethaddr` changes.

2017-11-28 Thread Roger Quadros
Duane, On 28/11/17 10:07, Duane Leslie wrote: > Roger, > > I’m not clear on the correct way to report bugs in U-Boot, but the change you > signed off in  > https://github.com/u-boot/u-boot/commit/f411b5cca48f0eee9443b85e7b75a46356bd2327 >  disabled the setting of the `ethaddr` environment variab

Re: [U-Boot] [PATCH] usb: r8a66597: Add support for RZ/A series

2017-11-28 Thread Chris Brandt
On Monday, November 27, 2017 1, Marek Vasut wrote: > > wait_for_bit() wants you to pass a direct address of a 32-bit register. > > The register I am waiting for is a 16-bit register and the hardware > > manual doesn't say 32-bit is allowed. > > When I do a 32-bit read on that address, I actually ge

Re: [U-Boot] [GIT PULL] Please pull u-boot-mmc master

2017-11-28 Thread Tom Rini
On Tue, Nov 28, 2017 at 11:20:04AM +0900, Jaehoon Chung wrote: > Dear Tom, > > Could you pull these patches to u-boot/master? > After applied these patches, i will send the patches relevant to fixing > patches. > - I have tested the buildman, it's passed. > > Note: > - When run "mmc rescan", it

[U-Boot] [PATCH 2/5] ARM: openrd: set CONFIG_LOGLEVEL to 2

2017-11-28 Thread Masahiro Yamada
These boards are on the boundary of "u-boot-nodtb.bin exceeds file size limit" error. Reduce the log-level to save memory footprint. Signed-off-by: Masahiro Yamada --- configs/openrd_base_defconfig | 2 +- configs/openrd_client_defconfig | 2 +- configs/openrd_ultimate_defconfig | 2 +-

[U-Boot] [PATCH 5/5] Remove assert()

2017-11-28 Thread Masahiro Yamada
No more users of assert() except host tools. Remove. Signed-off-by: Masahiro Yamada --- include/common.h | 15 --- lib/tiny-printf.c | 9 - lib/vsprintf.c| 9 - 3 files changed, 33 deletions(-) diff --git a/include/common.h b/include/common.h index e14e1da..

[U-Boot] [PATCH 3/5] Enable CONFIG_PANIC_HANG for boards without do_reset()

2017-11-28 Thread Masahiro Yamada
Calling panic() for these boards causes build error: undefined reference to `do_reset' They must compile do_reset(), or define CONFIG_PANIC_HANG. Signed-off-by: Masahiro Yamada --- configs/cl-som-imx7_defconfig | 1 + configs/evb-rk3229_defconfig | 1 + configs/mccmon6_sd_defconfig | 1 +

Re: [U-Boot] [PATCH 10/14] env: Initialise all the environments

2017-11-28 Thread Quentin Schulz
Hi Maxime, On 28/11/2017 11:24, Maxime Ripard wrote: > Since we want to have multiple environments, we will need to initialise > all the environments since we don't know at init time what drivers might > fail when calling load. > > Let's init all of them, and only consider for further operations

[U-Boot] [PATCH 1/5] Move CONFIG_PANIC_HANG to Kconfig

2017-11-28 Thread Masahiro Yamada
Freescale (NXP) boards have lots of defconfig files per board. I used "imply PANIC_HANG" for them. Signed-off-by: Masahiro Yamada --- README| 10 - arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 3 +++ arch/powerpc/cpu/mpc85xx/Kconfig | 37

[U-Boot] [PATCH 4/5] treewide: convert assert() to BUG_ON()

2017-11-28 Thread Masahiro Yamada
We do not need multiple ways to do the same thing. Instead of assert(), use BUG_ON() from Linux. The logic is opposite, but Coccinelle is of great help for such a conversion. We could simply convert assert(x) to BUG_ON(!x) for all expressions "x", but I did a bit better job by converting assert(

Re: [U-Boot] [PATCH 10/14] env: Initialise all the environments

2017-11-28 Thread Maxime Ripard
On Tue, Nov 28, 2017 at 01:24:45PM +0100, Quentin Schulz wrote: > Hi Maxime, > > On 28/11/2017 11:24, Maxime Ripard wrote: > > Since we want to have multiple environments, we will need to initialise > > all the environments since we don't know at init time what drivers might > > fail when calling

[U-Boot] [PATCH 00/23] imx: add i.MX8M support and i.MX8MQ EVK

2017-11-28 Thread Peng Fan
This patchset is to add i.MX8M and i.MX8MQ-EVK support patch: "power: pmic.h: include dm/ofnode.h" and "power: pmic/regulator allow dm be omited by SPL" is previously reviewed in mailist to not merged. Pick it up. The board support is a large patch because of the ddr related code. If it is not go

[U-Boot] [PATCH 01/23] imx: add i.MX8M into Kconfig

2017-11-28 Thread Peng Fan
Add i.MX8M into Kconfig, create a new folder mx8m dedicated for i.MX8M. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 8 arch/arm/Makefile | 4 ++-- arch/arm/mach-imx/mx8m/Kconfig | 10 ++ 3 files changed, 20 insertions(+), 2 deletions(-) create mo

[U-Boot] [PATCH 02/23] imx: mx8m: add register definition header file

2017-11-28 Thread Peng Fan
Add register definition header file for i.MX8M Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-mx8m/imx-regs.h | 298 ++ 1 file changed, 298 insertions(+) create mode 100644 arch/arm/include/asm/arch-mx8m/imx-regs.h diff --git a/arch/arm/include/asm/arch-mx8m/

[U-Boot] [PATCH 03/23] imx: mx8m: add pin header file

2017-11-28 Thread Peng Fan
Add pin header file for i.MX8M Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-mx8m/mx8mq_pins.h | 623 1 file changed, 623 insertions(+) create mode 100755 arch/arm/include/asm/arch-mx8m/mx8mq_pins.h diff --git a/arch/arm/include/asm/arch-mx8m/mx8mq_pins.h

[U-Boot] [PATCH 06/23] imx: boot_mode: add USB_BOOT entry

2017-11-28 Thread Peng Fan
Add USB_BOOT entry. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/boot_mode.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/mach-imx/boot_mode.h b/arch/arm/include/asm/mach-imx/boot_mode.h index a8239f2f7a..e3ed046b25 100644 --- a/arch/arm/include/asm/mach

[U-Boot] [PATCH 05/23] imx: add sip function

2017-11-28 Thread Peng Fan
Add SIP function to issue SMC call to Arm Trusted Firmware. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/sys_proto.h | 3 +++ arch/arm/mach-imx/Makefile| 2 ++ arch/arm/mach-imx/sip.c | 23 +++ 3 files changed, 28 insertions(+)

[U-Boot] [PATCH 07/23] imx: cpu: update cpu file to support i.MX8M

2017-11-28 Thread Peng Fan
Update get_reset_cause to reflect i.MX8M Compile out get_ahb_clk and set_chipselect_size for i.MX8M Signed-off-by: Peng Fan --- arch/arm/mach-imx/cpu.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c index 18205dc9

[U-Boot] [PATCH 08/23] imx: spl: implement spl_boot_device for i.MX8M

2017-11-28 Thread Peng Fan
Implement spl_boot_device for i.MX8M. Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index d0d1b73aa6..2dc23e6d34 100644 --- a/arch/arm/mach-imx/spl.

[U-Boot] [PATCH 04/23] imx: mx8m: add clock driver

2017-11-28 Thread Peng Fan
Add clock driver to support i.MX8M. There are two kind PLLs, FRAC pll and SSCG pll. ROM already configured SYS PLL1/2, we only need to configure the output. ocotp/i2c/pll decoding and configuration/usdhc/lcdif/dram pll/ enet clock are configured in the code. Signed-off-by: Peng Fan --- arch/arm

[U-Boot] [PATCH 12/23] imx: mx8m: add soc related settings and files

2017-11-28 Thread Peng Fan
Add SoC level initialization code - arch_cpu_init - mmu table - detect cpu revision - reset cpu and wdog settings - M4 boot - timer init - wdog settings - lowlevel init to save/restore registers - a few dummy header file to avoid build failure - ft_system_setup and ft_add_optee_node - mm

[U-Boot] [PATCH 18/23] imx: mx8m: add ddr register memory map

2017-11-28 Thread Peng Fan
Add ddr register memory map. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-mx8m/ddr_memory_map.h | 496 1 file changed, 496 insertions(+) create mode 100644 arch/arm/include/asm/arch-mx8m/ddr_memory_map.h diff --git a/arch/arm/include/asm/arch-mx8m/ddr_memory_m

[U-Boot] [PATCH 13/23] imx: makefile: compile files for i.MX8M

2017-11-28 Thread Peng Fan
Compile files for i.MX8M Signed-off-by: Peng Fan --- arch/arm/mach-imx/Makefile | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index c807174363..efa2056e09 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/

[U-Boot] [PATCH 14/23] misc: ocotp: add i.MX8M support

2017-11-28 Thread Peng Fan
i.MX8M OCOTP follow same flow as i.MX6Q, but it has 64 banks and each bank 4 words. Signed-off-by: Peng Fan --- drivers/misc/mxc_ocotp.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c index 8986bb4ad0..0cf24a4c88 100644 --- a/driver

[U-Boot] [PATCH 19/23] net: fec: do not access reserved register for i.MX8M

2017-11-28 Thread Peng Fan
The MIB RAM and FIFO receive start register does not exist on i.MX8M. Accessing these register will cause system hang. Signed-off-by: Peng Fan Cc: Joe Hershberger --- drivers/net/fec_mxc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/fec_mxc.c b/drivers/ne

[U-Boot] [PATCH 15/23] mmc: fsl_esdhc: support i.MX8M

2017-11-28 Thread Peng Fan
Support i.MX8M in fsl esdhc driver. Signed-off-by: Peng Fan --- drivers/mmc/fsl_esdhc.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 499d622c6d..3a56f7c2bc 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drive

[U-Boot] [PATCH 10/23] imx: add i.MX8MQ SoC Revision and is_mx8m helper

2017-11-28 Thread Peng Fan
Add i.MX8MQ SoC Revision Add is_mx8m helper The 7ULP is a dummy number, so use 0xEx. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 6 -- arch/arm/include/asm/mach-imx/sys_proto.h | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/

[U-Boot] [PATCH 20/23] net: fec: fix build warnings for 64bits support

2017-11-28 Thread Peng Fan
When building for 64bits system, we get some warnings about type cast between pointer and integer. This patch eliminates the warnings by using ulong/long type which is 32bits on 32bits system or 64bits on 64bits system. Signed-off-by: Ye Li Signed-off-by: Peng Fan Cc: Joe Hershberger --- drive

[U-Boot] [PATCH 16/23] imx: lcdif: include i.MX8M

2017-11-28 Thread Peng Fan
Include i.MX8M in lcdif register layout map. Also included i.MX7ULP in this patch, since share same with i.MX8M. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/regs-lcdif.h | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/arm/include/asm/mach-imx/re

[U-Boot] [PATCH 17/23] gpio: mxc: add i.MX8M support

2017-11-28 Thread Peng Fan
Add i.MX8M GPIO support. There are 4 GPIO banks on i.MX8M. Signed-off-by: Peng Fan --- drivers/gpio/mxc_gpio.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index c480eba940..1e9188af63 100644 --- a/d

[U-Boot] [PATCH 11/23] imx: add pad settings bit definition for i.MX8M

2017-11-28 Thread Peng Fan
Add pad settings bit definition for i.MX8M. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/iomux-v3.h | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/mach-imx/iomux-v3.h b/arch/arm/include/asm/mach-imx/iomux-v3.h index a

[U-Boot] [PATCH 21/23] power: pmic/regulator allow dm be omitted by SPL

2017-11-28 Thread Peng Fan
Allow the dm driver be omitted by SPL. Signed-off-by: Peng Fan Reviewed-by: Simon Glass Cc: Jaehoon Chung Cc: Stefano Babic --- drivers/power/pmic/Makefile | 4 ++-- drivers/power/regulator/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/pmic

Re: [U-Boot] [U-Boot, v3, 2/7] rockchip: rk3128: add soc basic support

2017-11-28 Thread Philipp Tomsich
> RK3128 is a SoC from Rockchip with quad-core Cortex-A7 CPU > and mali400 GPU. Support Nand flash, eMMC, SD card, USB 2.0 host > and device, HDMI/LVDS/MIPI display. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: None > Changes

[U-Boot] [PATCH 09/23] power: pmic.h: include dm/ofnode.h

2017-11-28 Thread Peng Fan
Include dm/ofnode.h. Signed-off-by: Peng Fan Reviewed-by: Simon Glass Cc: Stefano Babic --- include/power/pmic.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/power/pmic.h b/include/power/pmic.h index 4b34316427..f2fe537fb7 100644 --- a/include/power/pmic.h +++ b/include/power/pm

Re: [U-Boot] [U-Boot, v3, 1/7] rockchip: rk3128: add device tree file

2017-11-28 Thread Philipp Tomsich
> Add dts binding header for rk3128, files origin from kernel. > > Series-Changes: 2 > - fix i2c address > - add saradc and usb phy node > - emmc using fifo mode for there is no dma support in rk3128 emmc > - add some clock id in cru.h > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich >

Re: [U-Boot] [U-Boot,v3,3/7] rockchip: rk3128: add clock driver

2017-11-28 Thread Philipp Tomsich
> Add rk3128 clock driver and cru structure definition. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: > - remove soft reset driver bind > > Changes in v2: > - add clock for saradc, vop, nandc, i2c > - update driver bind for s

Re: [U-Boot] [U-Boot,v3,4/7] rockchip: rk3128: add pinctrl driver

2017-11-28 Thread Philipp Tomsich
> Add rk3128 pinctrl driver and grf/iomux structure definition. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: None > Changes in v2: > - remove debug info > - update GPIO2C4/C5 SHIFT > > arch/arm/include/asm/arch-rockchip/grf

Re: [U-Boot] [U-Boot, v3, 6/7] rockchip: rk3128: add defconfig for evb-rk3128

2017-11-28 Thread Philipp Tomsich
> Enable board config for evb-rk3128. > Serial output and eMMC works in this version. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > > Changes in v3: None > Changes in v2: None > > configs/evb-rk3128_defconfig | 56 >

  1   2   3   >