[U-Boot] what does "CONFIG_U_QE" represent powerpc quicc engine?

2016-07-24 Thread Robert P. J. Day
working with MPC83xx at the moment, i'm used to seeing "CONFIG_QE" all over the place, but what means "CONFIG_U_QE"? it seems like some sort of freescale special feature, but i can't figure it out. rday -- Robert P. J.

Re: [U-Boot] what does "CONFIG_U_QE" represent powerpc quicc engine?

2016-07-24 Thread Robert P. J. Day
On Sun, 24 Jul 2016, Robert P. J. Day wrote: > working with MPC83xx at the moment, i'm used to seeing "CONFIG_QE" > all over the place, but what means "CONFIG_U_QE"? it seems like some > sort of freescale special feature, but i can't figure it out. just to follow up my earlier question, i can

[U-Boot] In U-Boot 2014.04, DTS File is required or not for OCOTEA PowerPC

2016-07-24 Thread pc.ramachandra
Hai Everyone, I am using U-Boot 2014.04 and PowerPC 440GX Ocotea board i am using some where i have seen DTS files but for my board not with u-boot it is must required or not Thank u Ram -- View this message in context: http://u-boot.10912.n7.nabble.com/In-U-Boot-2014-04-DTS-File-is-required-

Re: [U-Boot] [PATCH] mx7: Allow selection of secure or non-secure mode

2016-07-24 Thread Stefan Agner
Hi Fabio, On 22.07.2016 07:06, Fabio Estevam wrote: > Commit be1a17ff689 ("mx7_common: use Kconfig for ARMv7 non-secure mode") > breaks the boot of a NXP 4.1.15 kernel using > mx7dsabresd_secure_defconfig target. > > This problem happens because after this commit > non-secure mode is always sele

Re: [U-Boot] [PATCH] mx7: Allow selection of secure or non-secure mode

2016-07-24 Thread Fabio Estevam
Hi Stefan, On Fri, Jul 22, 2016 at 2:34 PM, Stefan Agner wrote: > Wha, so we have a config option (MX7_SEC) which controls a config helper > (CPU_V7_HAS_NONSEC) which is used to control whether a user config > option is available or not (ARMV7_NONSEC). > > I don't understand why we need to have

[U-Boot] [PATCH 1/4] tools: moveconfig: trim garbage lines after header cleanups

2016-07-24 Thread Masahiro Yamada
The tools/moveconfig.py has a feature to cleanup #define/#undef's of moved config options, but I want this tool to do a better job. For example, when we are moving CONFIG_FOO and its define is surrounded by #ifdef ... #endif, like follows: #ifdef CONFIG_BAR # define CONFIG_FOO #endif The

[U-Boot] [PATCH 2/4] tools: moveconfig: show result of header cleaning in unified diff

2016-07-24 Thread Masahiro Yamada
The header cleanup feature of this tool now removes empty ifdef's, successive blank lines as well as moved option defines. So, we want to see a little more context to check which lines were deleted. It is true that we can see it by "git diff", but it would not work in the --dry-run mode. So, her

[U-Boot] [PATCH 4/4] tools: moveconfig: fix cleanup of defines across multiple lines

2016-07-24 Thread Masahiro Yamada
Correct the clean-up of such defines that continue across multiple lines, like follows: #define CONFIG_FOO "this continues to the next line " \ "this line should be removed too" \ "this line should be removed as well" Signed-off-by: Masahiro Yamada --- tools/moveconfig.py

[U-Boot] [PATCH 3/4] tools: moveconfig: show result of header cleaning in color mode

2016-07-24 Thread Masahiro Yamada
This commit makes the tool show the cleaned lines in red if the --color option is given. Signed-off-by: Masahiro Yamada --- tools/moveconfig.py | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 27bd958..69701d4 1007

[U-Boot] [PATCH 0/4] tools: moveconfig: improve header cleanup feature

2016-07-24 Thread Masahiro Yamada
Masahiro Yamada (4): tools: moveconfig: trim garbage lines after header cleanups tools: moveconfig: show result of header cleaning in unified diff tools: moveconfig: show result of header cleaning in color mode tools: moveconfig: fix cleanup of defines across multiple lines tools/movec

[U-Boot] [PATCH] tree-wide: move CONFIG_PHYS_64BIT to Kconfig

2016-07-24 Thread Masahiro Yamada
I tried my best to use "select" where possible (for example, ARMv8 architecture) because I think this kind of option is generally user- unconfigurable. However, I see some of PowerPC boards have 36BIT defconfigs as well as 32BIT ones. I moved CONFIG_PHYS_64BIT to the defconfigs for such boards.

Re: [U-Boot] [PATCH 1/4] tools: moveconfig: trim garbage lines after header cleanups

2016-07-24 Thread Tom Rini
On Sun, Jul 24, 2016 at 11:17:36PM +0900, Masahiro Yamada wrote: > The tools/moveconfig.py has a feature to cleanup #define/#undef's > of moved config options, but I want this tool to do a better job. > > For example, when we are moving CONFIG_FOO and its define is > surrounded by #ifdef ... #end

Re: [U-Boot] [PATCH] ARM: socfpga: use the default CONFIG_BOOTDELAY=2

2016-07-24 Thread Marek Vasut
On 07/23/2016 04:22 PM, Masahiro Yamada wrote: > This option controls how long it should be paused before entering > the auto-boot mode. The default value from Kconfig should be fine > for most cases, while users can still change it as they like. > > Signed-off-by: Masahiro Yamada > --- > [...

Re: [U-Boot] [PATCH 4/5] novena: Remove uneeded PHYS_SDRAM_SIZE

2016-07-24 Thread Marek Vasut
On 07/23/2016 06:23 PM, Fabio Estevam wrote: > From: Fabio Estevam > > novena uses the imx_ddr_size() function to calculate the DDR size in > runtime, so there is no need to define PHYS_SDRAM_SIZE. > > Remove the unneeded definition. > > Cc: Marek Vasut > Signed-off-by: Fabio Estevam Acked-b

[U-Boot] [PATCH v2] ARM: socfpga: use the default CONFIG_BOOTDELAY=2

2016-07-24 Thread Masahiro Yamada
This option controls how long it should be paused before entering the auto-boot mode. The default value from Kconfig should be fine except socfpga_vining_fpga_defconfig. Signed-off-by: Masahiro Yamada --- Changes in v2: - Keep socfpga_vining_fpga_defconfig untouched configs/socfpga_arria5_d

Re: [U-Boot] [PATCH] ARM: socfpga: use the default CONFIG_BOOTDELAY=2

2016-07-24 Thread Masahiro Yamada
2016-07-25 0:16 GMT+09:00 Marek Vasut : > On 07/23/2016 04:22 PM, Masahiro Yamada wrote: >> This option controls how long it should be paused before entering >> the auto-boot mode. The default value from Kconfig should be fine >> for most cases, while users can still change it as they like. >> >>

Re: [U-Boot] [PATCH] tree-wide: move CONFIG_PHYS_64BIT to Kconfig

2016-07-24 Thread Tom Rini
On Sun, Jul 24, 2016 at 10:12:50PM +0900, Masahiro Yamada wrote: > I tried my best to use "select" where possible (for example, ARMv8 > architecture) because I think this kind of option is generally user- > unconfigurable. However, I see some of PowerPC boards have 36BIT > defconfigs as well as 3

Re: [U-Boot] cmd, nand: add an option to disable the verification when writing in raw mode

2016-07-24 Thread Scott Wood
On Wed, Jun 15, 2016 at 10:42:18AM +0200, Boris Brezillon wrote: > diff --git a/cmd/nand.c b/cmd/nand.c > index 583a18f..3a5e3a0 100644 > --- a/cmd/nand.c > +++ b/cmd/nand.c > @@ -306,7 +306,7 @@ static void nand_print_and_set_info(int idx) > } > > static int raw_access(struct mtd_info *mtd, ul

Re: [U-Boot] [PATCH] rk3399: reseve space for trust

2016-07-24 Thread Kever Yang
Hi Simon, On 07/23/2016 11:03 AM, Simon Glass wrote: Hi again, On 22 July 2016 at 20:57, Simon Glass wrote: Hi Kever, On 22 July 2016 at 03:34, Kever Yang wrote: For the commit message, you have "rk3399: reseve space for trust". I think it should be "rk3399: Reseve space for ARM Trusted F

Re: [U-Boot] [PATCH] i2c: intel_i2c: SMBus driver PCI addition (e.g. BayTrail)

2016-07-24 Thread Simon Glass
Hi Stefan, On 28 June 2016 at 07:44, Stefan Roese wrote: > This patch adds support for the SMBus block read/write functionality. > Other protocols like the SMBus quick command need to get added > if this is needed. > > This patch also removed the SMBus related defines from the Ivybridge > pch.h h

Re: [U-Boot] [PATCH] Add a power domain framework/uclass

2016-07-24 Thread Simon Glass
Hi Stephen, On 14 July 2016 at 22:17, Simon Glass wrote: > Hi Stephen, > > On 13 July 2016 at 13:45, Stephen Warren wrote: >> From: Stephen Warren >> >> Many SoCs allow power to be applied to or removed from portions of the SoC >> (power domains). This may be used to save power. This API provid

Re: [U-Boot] [PATCH v2] libfdt: Introduce new ARCH_FIXUP_FDT option

2016-07-24 Thread Simon Glass
On 15 July 2016 at 01:35, Michal Simek wrote: > Add new Kconfig option to disable arch_fixup_fdt() calls for cases where > U-Boot shouldn't update memory setup in DTB file. > One example of usage of this option is to boot OS with different memory > setup than U-Boot use. > > Signed-off-by: Michal

Re: [U-Boot] [PATCH] mmc: dw_mmc: reduce timeout detection cycle

2016-07-24 Thread Simon Glass
On 19 July 2016 at 02:08, Ziyuan Xu wrote: > Hi Jaehoon, > > > On 2016年07月19日 15:51, Jaehoon Chung wrote: >> >> Hi, >> >> On 07/19/2016 04:40 PM, Ziyuan Xu wrote: >>> >>> Hi Jaehoon, >>> >>> On 2016年07月19日 12:22, Jaehoon Chung wrote: Hi Ziyuan, On 07/19/2016 11:33 AM, Ziyuan Xu

Re: [U-Boot] [PATCH v3] mmc: display mmc list information like mmc_legacy type

2016-07-24 Thread Simon Glass
On 22 July 2016 at 21:11, Ziyuan Xu wrote: > From: Xu Ziyuan > > It's nicer to see this: > > => mmc list > dwmmc@ff0c: 0 > dwmmc@ff0f: 1 (eMMC) > > than this: > > => mmc list > dwmmc@ff0c: 0dwmmc@ff0f: 1 (eMMC) > > With the former, it's much clearer which mmc devices are on. > > S

Re: [U-Boot] [PATCH] Revert "rockchip: Move the MMC setup check earlier"

2016-07-24 Thread Simon Glass
Hi Ziyuan, On 22 July 2016 at 21:45, Ziyuan Xu wrote: > Hi Simon, > > > On 2016年07月23日 10:57, Simon Glass wrote: >> >> On 18 July 2016 at 20:13, Ziyuan Xu wrote: >>> >>> Boot Rom wouldn't initialize sdmmc while booting from eMMC. We need to >>> setup sdmmc gpio, otherwise we will hit an error be

Re: [U-Boot] [PATCH] rockchip: remove the duplicated macro config

2016-07-24 Thread Simon Glass
On 23 July 2016 at 00:08, Ziyuan Xu wrote: > CONFIG_DOS_PARTITION and CONFIG_EFI_PARTITION are already included in > config_distro_defaults.h, and we don't need them in SPL stage. > > Signed-off-by: Ziyuan Xu > --- > This commit is base on commit 7ec0b02 "mmc: rockchip add SDHCI dirver > support

Re: [U-Boot] [PATCH] rockchip: rk3036: update MAINTAINER file

2016-07-24 Thread Simon Glass
On 23 July 2016 at 01:09, Ziyuan Xu wrote: > Update MAINTAINER files for kylin_rk3036, evb_rk3036. > > Signed-off-by: Ziyuan Xu > --- > > board/rockchip/evb_rk3036/MAINTAINERS | 4 ++-- > board/rockchip/kylin_rk3036/MAINTAINERS | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) Acke

Re: [U-Boot] [PATCH] rockchip: rk3288: move evb board to rockchip folder

2016-07-24 Thread Simon Glass
On 23 July 2016 at 01:01, Ziyuan Xu wrote: > The 'evb-rk3288' is not a vendor name, change it to 'rockchip' which is > the real vendor name. > > Signed-off-by: Ziyuan Xu > --- > > arch/arm/mach-rockchip/rk3288/Kconfig | 2 +- > board/{evb-rk3288/evb-rk3288 => rockchip

Re: [U-Boot] [PATCH] rockchip: rk3288: revise CONFIG_FASTBOOT_BUF_ADDR

2016-07-24 Thread Simon Glass
On 23 July 2016 at 00:12, Ziyuan Xu wrote: > CONFIG_SYS_LOAD_ADDR is absolutely safe to store image for > fastboot. > > Signed-off-by: Ziyuan Xu > --- > This commit is base on commit 170479c "rockchip: remove the duplicated > macro config". > > include/configs/rk3288_common.h | 4 +--- > 1 file

Re: [U-Boot] [PATCH] Revert "rockchip: Move the MMC setup check earlier"

2016-07-24 Thread Ziyuan Xu
Hi Simon, On 2016年07月25日 10:07, Simon Glass wrote: Hi Ziyuan, On 22 July 2016 at 21:45, Ziyuan Xu wrote: Hi Simon, On 2016年07月23日 10:57, Simon Glass wrote: On 18 July 2016 at 20:13, Ziyuan Xu wrote: Boot Rom wouldn't initialize sdmmc while booting from eMMC. We need to setup sdmmc gpio,

Re: [U-Boot] [PATCH 3/3] mmc: use the generic error number

2016-07-24 Thread Minkyu Kang
On 23/07/16 11:57, Simon Glass wrote: > On 19 July 2016 at 01:33, Jaehoon Chung wrote: >> Use the generic error number instead of specific error number. >> If use the generic error number, it can debug more easier. >> >> Signed-off-by: Jaehoon Chung >> --- >> drivers/mmc/arm_pl180_mmci.c | 2 +-

[U-Boot] [PATCH v2] rk3399: Reserve space for ARM Trust Firmware

2016-07-24 Thread Kever Yang
RK3399 needs reserve 0x20 at the beginning of DRAM, for ATF bl31. Signed-off-by: Kever Yang --- Changes in v2: - correct some typo on commit message and comment board/rockchip/evb_rk3399/evb-rk3399.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/rockchip/evb_r

[U-Boot] [PATCH 1/2] rk3399: add basic soc driver

2016-07-24 Thread Kever Yang
This patch add driver for: - clock driver including set_rate for cpu, mmc, vop, I2C. - sysreset driver - grf syscon driver Signed-off-by: Kever Yang --- arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 93 +++ arch/arm/mach-rockchip/rk3399/Makefile | 2 + arch/arm/mach-rockchip/rk3

[U-Boot] [PATCH 0/2] rk3399: add soc basic driver support

2016-07-24 Thread Kever Yang
This patchset add basic driver like clock, grf, sysreset for rk3399, and enable clock init in emmc driver. This patchset has tested on rk3399 evb. Kever Yang (2): rk3399: add basic soc driver mmc: rockchip: add clock init arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 93 +++ arch/arm

[U-Boot] [PATCH 2/2] mmc: rockchip: add clock init

2016-07-24 Thread Kever Yang
Signed-off-by: Kever Yang --- drivers/mmc/rockchip_sdhci.c| 10 +- include/configs/rk3399_common.h | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index 023c29b..a761a86 100644 --- a/drivers/mmc/rock

Re: [U-Boot] confused by "upgrade_available=0\0" in include/configs/taurus.h

2016-07-24 Thread Wolfgang Denk
Dear Robert, In message you wrote: > > i note there seems to be some redundancy in the README. early on: > > 911 - Bootcount: > 912 CONFIG_BOOTCOUNT_LIMIT > 913 Implements a mechanism for detecting a repeating > reboot > 914 cy

Re: [U-Boot] [PATCH 1/2] mmc: sdhci: set to INT_DATA_END when there are data

2016-07-24 Thread Jaehoon Chung
Hi All, On 07/12/2016 09:55 PM, Lukasz Majewski wrote: > Hi Jaehoon, > >> There is no data, it doesn't needs to wait for completing data >> transfer. (It seems that it can be removed.) >> Almost all timeout error is occured from stop command without data. >> After applied this patch, I hope that

Re: [U-Boot] a few questions about saving bootcount in the environment

2016-07-24 Thread Wolfgang Denk
Dear Robert, In message you wrote: > > so this tells me that there's not a whole lot of that feature being > used, so i won't spend much time on it. Right, it is only a last resort when you cannot find any better place to storeit (in a hardware register that survives resets). > also, just t

Re: [U-Boot] [PATCH v3] mmc: display mmc list information like mmc_legacy type

2016-07-24 Thread Jaehoon Chung
On 07/25/2016 11:07 AM, Simon Glass wrote: > On 22 July 2016 at 21:11, Ziyuan Xu wrote: >> From: Xu Ziyuan >> >> It's nicer to see this: >> >> => mmc list >> dwmmc@ff0c: 0 >> dwmmc@ff0f: 1 (eMMC) >> >> than this: >> >> => mmc list >> dwmmc@ff0c: 0dwmmc@ff0f: 1 (eMMC) >> >> With th

Re: [U-Boot] [PATCH 2/2] mmc: rockchip: add clock init

2016-07-24 Thread Jaehoon Chung
Hi Kever, On 07/25/2016 01:50 PM, Kever Yang wrote: > Signed-off-by: Kever Yang > --- > > drivers/mmc/rockchip_sdhci.c| 10 +- > include/configs/rk3399_common.h | 2 +- > 2 files changed, 10 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/

Re: [U-Boot] [PATCH v4] mmc-uclass: correct the device number

2016-07-24 Thread Jaehoon Chung
On 07/23/2016 11:08 AM, Simon Glass wrote: > On 22 July 2016 at 03:22, Kever Yang wrote: >> Not like the mmc-legacy which the devnum starts from 1, it starts from 0 >> in mmc-uclass, so the device number should be (devnum + 1) in get_mmc_num(). >> >> Signed-off-by: Kever Yang >> --- >> >> Changes

Re: [U-Boot] [PATCH v2] ARM: socfpga: use the default CONFIG_BOOTDELAY=2

2016-07-24 Thread Stefan Roese
On 24.07.2016 18:38, Masahiro Yamada wrote: This option controls how long it should be paused before entering the auto-boot mode. The default value from Kconfig should be fine except socfpga_vining_fpga_defconfig. Signed-off-by: Masahiro Yamada Acked-by: Stefan Roese Thanks, Stefan ___

Re: [U-Boot] [PATCH v2] ARM: socfpga: use the default CONFIG_BOOTDELAY=2

2016-07-24 Thread Chin Liang See
On Mon, 2016-07-25 at 08:08 +0200, Stefan Roese wrote: > On 24.07.2016 18:38, Masahiro Yamada wrote: > > This option controls how long it should be paused before entering > > the auto-boot mode. The default value from Kconfig should be fine > > except socfpga_vining_fpga_defconfig. > > > > Signed

Re: [U-Boot] [PATCH 1/2] rk3399: add basic soc driver

2016-07-24 Thread Kever Yang
On 07/25/2016 12:50 PM, Kever Yang wrote: This patch add driver for: [snip] ... + +static ulong rk3399_clk_set_rate(struct clk *clk, ulong rate) +{ + struct rk3399_clk_priv *priv = dev_get_priv(clk->dev); + + switch (clk->id) { + case 0 ... 63: + return 0; +