Re: [U-Boot] [PATCH] Revert "warp: Use imx_ddr_size() for calculating the DDR size"

2016-08-12 Thread Fabio Estevam
Hi Otavio, On Fri, Aug 12, 2016 at 3:27 PM, Otavio Salvador wrote: > Why is this happening? I am fine in reverting this but we need to fix > the detection. Is it due memory callibration problems? The problem here is that warp uses the DDR initialization from mx6sl-evk. >From configs/mx6slevk_d

Re: [U-Boot] Nvidia Trega Tk1 - /cpus/cpu@0 missing clock-frequency property

2016-08-12 Thread Stephen Warren
On 08/12/2016 03:15 AM, vinoth eswaran wrote: Hi, Currently I am working on an Nvidia Jetson Tk1 board. With u-boot v2016.05 I am seeing the following messages on the start up ... I am not sure about what's the issue here. Google search shows something might be missing in the device tree. Ca

Re: [U-Boot] [PATCH 1/2 V4] misc: add "call" uclass op

2016-08-12 Thread Tom Warren
Please CC me on your pull request to TomR/u-boot/master. Thanks. > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: Friday, August 12, 2016 10:04 AM > To: Stephen Warren > Cc: U-Boot Mailing List ; Tom Warren > ; Stephen Warren ; Tom Rin

Re: [U-Boot] [PATCH 0/2] efi_loader: Implement reset on RPi

2016-08-12 Thread Alexander Graf
On 12.08.16 19:21, Simon Glass wrote: > Hi Alex, > > On 11 August 2016 at 05:49, Alexander Graf wrote: >> >> >> On 08.08.16 23:44, Simon Glass wrote: >>> Hi, >>> >>> On 7 August 2016 at 10:59, Andreas Färber wrote: Am 14.07.2016 um 08:18 schrieb Alexander Graf: >> Am 14.07.2016 um 06:

Re: [U-Boot] [PATCH v2] serial: bcm283x_mu: Detect disabled serial device

2016-08-12 Thread Alexander Graf
On 12.08.16 19:21, Simon Glass wrote: > Hi Alex, > > On 11 August 2016 at 23:27, Alexander Graf wrote: >> >> >>> Am 12.08.2016 um 00:38 schrieb Simon Glass : >>> >>> Hi Alex, >>> On 11 August 2016 at 05:33, Alexander Graf wrote: > On 09.08.16 06:28, Stephen Warren wrote: >>>

Re: [U-Boot] [PATCH 2/5] mmc: initialize mmc_cmd with 0

2016-08-12 Thread Simon Glass
Hi Peng, On 11 August 2016 at 05:00, Peng Fan wrote: > Using {0} to initialize mmc_cmd, before filling the structure. > > Signed-off-by: Peng Fan > Cc: Jaehoon Chung > Cc: Simon Glass > Cc: Bin Meng > Cc: Stefan Wahren > Cc: Clemens Gruber > Cc: Kever Yang > Cc: Eric Nelson > Cc: Stephen

[U-Boot] [RFC PATCH 3/4] ext4: fix endianess problems in ext4 write support

2016-08-12 Thread Michael Walle
All fields were accessed directly instead of using the proper byte swap functions. Thus, ext4 write support was only usable on little-endian architectures. Fix this. Signed-off-by: Michael Walle --- Ok this patch is huge, please comment. I know, checkpatch fails because there are longer lines th

[U-Boot] [PATCH v3 2/3] cmd: booti: move CONFIG_CMD_BOOTI to Kconfig

2016-08-12 Thread Tom Rini
From: Masahiro Yamada This command is used to boot ARM64 Linux. I made DISTRO_DEFAULTS select this option for ARM64 to respect include/config_distro_defaults.h. Signed-off-by: Masahiro Yamada Signed-off-by: Tom Rini --- Changes in v3: - None Changes in v2: - Move to default y so this isn't i

Re: [U-Boot] [PATCH 5/7] smbios: Expose in efi_loader as table

2016-08-12 Thread Alexander Graf
On 12.08.16 19:20, Simon Glass wrote: > Hi Alex, > > On 8 August 2016 at 08:06, Alexander Graf wrote: >> We can pass SMBIOS easily as EFI configuration table to an EFI payload. This >> patch adds enablement for that case. >> >> While at it, we also enable SMBIOS generation for ARM systems, sinc

Re: [U-Boot] [PATCH v3 00/27] spi/sf: Updates on flash detection

2016-08-12 Thread Jagan Teki
On 12 August 2016 at 04:37, york sun wrote: > I saw some errors when compiling for arm. Compiling for power is still > going. Can you please try again? -- Jagan. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] Revert "warp: Use imx_ddr_size() for calculating the DDR size"

2016-08-12 Thread Breno Lima
Commit a13d3757f7df25d0 "warp: Use imx_ddr_size() for calculating the DDR size" causes breakage on warp board. U-boot gets stuck in the DRAM line. It's necessary to revert this patch until a better solution is found, otherwise it's not possible to use the board. This reverts commit a13d3757f7df25

Re: [U-Boot] [PATCH] kconfig: use bool instead of boolean for type definition attributes

2016-08-12 Thread Simon Glass
On 11 August 2016 at 19:20, Masahiro Yamada wrote: > Linux stopped the use of keyword 'boolean' in Kconfig. > > Refer to commit 6341e62b212a2541efb0160c470e90bd226d5496 ("kconfig: > use bool instead of boolean for type definition attributes") > in Linux Kernel. > > Signed-off-by: Masahiro Yamada

[U-Boot] [PATCH V2 4/5] mmc: esdhc: change timeout value

2016-08-12 Thread Peng Fan
Change timeout according to the timeout value in mmc_cmd->timeout. Signed-off-by: Peng Fan Cc: Jaehoon Chung --- drivers/mmc/fsl_esdhc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 9796d39..eca2f31 100644 --- a/d

[U-Boot] [PATCH] mmc: uniphier-sd: add static qualifiers to probe and remove callbacks

2016-08-12 Thread Masahiro Yamada
They are both only referenced in this file. Signed-off-by: Masahiro Yamada --- drivers/mmc/uniphier-sd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/uniphier-sd.c b/drivers/mmc/uniphier-sd.c index 2a48378..f06e737 100644 --- a/drivers/mmc/uniphier-sd.c ++

[U-Boot] [PATCH V2 2/5] mmc: initialize mmc_cmd with 0

2016-08-12 Thread Peng Fan
Using {0} to initialize mmc_cmd, before filling the structure. Signed-off-by: Peng Fan Cc: Jaehoon Chung Cc: Simon Glass Cc: Bin Meng Cc: Stefan Wahren Cc: Clemens Gruber Cc: Kever Yang Cc: Eric Nelson Cc: Stephen Warren --- drivers/mmc/mmc.c | 28 ++-- driv

[U-Boot] [PATCH] cmd: efi_loader: Return CMD_RET_USAGE in case of not enough arguments

2016-08-12 Thread Bin Meng
When typing 'bootefi' from U-Boot shell, nothing outputs. Like other commands, return CMD_RET_USAGE so that it can print help message. Signed-off-by: Bin Meng --- cmd/bootefi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bootefi.c b/cmd/bootefi.c index ecf9968..ccd21

Re: [U-Boot] [PATCH v3 00/27] spi/sf: Updates on flash detection

2016-08-12 Thread Bin Meng
On Thu, Aug 11, 2016 at 4:06 PM, Jagan Teki wrote: > Updated spi_flash_info table in sync with Linux, and removed > legacy and unsupported code. > > Changes for v3: > - New patches > - Fix checkpatch.pl > - Fix BIT positions in spi.h > - Fix ti_qspi.c mode >

[U-Boot] [PATCH] rockchip: use dummy byte only enable OF_PLATDATA

2016-08-12 Thread Ziyuan Xu
Add a condition to determine the rk3288_sdram_channel size. This patch fixes read sdram_channel property failed from DT on rk3288 boards, which not enable OF_PLATDATA. Signed-off-by: Ziyuan Xu --- arch/arm/include/asm/arch-rockchip/sdram.h | 4 1 file changed, 4 insertions(+) diff --git

Re: [U-Boot] [PATCH 0/4] k2g: switch mmc/sd to driver model

2016-08-12 Thread Jaehoon Chung
Hi, On 08/10/2016 10:54 PM, Sekhar Nori wrote: > This patch set switches mmc/sd support on k2g > to use driver model. > > Tested both SD card and emmc on k2g-evm by > writing data, reading it back and comparing crc. > > also tested with buildman for am33xx and omap Applied on u-boot-mmc. Thanks

Re: [U-Boot] [PATCH v2 1/2] cmd: Split 'bootz' and 'booti' out from 'bootm'

2016-08-12 Thread Masahiro Yamada
Hi Tom, 2016-08-02 0:28 GMT+09:00 Tom Rini : > The bootz and booti commands rely on common functionality that is found > in common/bootm.c and common/bootm_os.c. They do not however rely on > the rest of cmd/bootm.c to be implemented so split them into their own > files. Have various Makefiles

Re: [U-Boot] [PATCH v2 1/5] mpc85xx/powerpc:cpu_init: Modified the errata A006261 according to endianness

2016-08-12 Thread Sriram Dash
>From: york sun > >Sriram, > >Please pay attention to the language. "errata" is the plural noun of >"erratum". You >are dealing with one erratum, aren't you? And you are modifying the workaround, >not the erratum itself. > >The tags in the subject should be separated by either "/", or ":", but not

Re: [U-Boot] [PATCH] Revert "warp: Use imx_ddr_size() for calculating the DDR size"

2016-08-12 Thread Otavio Salvador
On Fri, Aug 12, 2016 at 2:12 PM, Breno Lima wrote: > Commit a13d3757f7df25d0 "warp: Use imx_ddr_size() for calculating the DDR > size" > causes breakage on warp board. > > U-boot gets stuck in the DRAM line. It's necessary to revert this patch until > a better solution is found, otherwise it's no

Re: [U-Boot] [PATCH 0/7] efi_loader: Expose SMBIOS table

2016-08-12 Thread Alexander Graf
On 12.08.16 19:20, Simon Glass wrote: > Hi Alex, > > On 10 August 2016 at 01:29, Alexander Graf wrote: >> >>> On 09 Aug 2016, at 16:35, Simon Glass wrote: >>> >>> Hi Alexander, >>> >>> On 9 August 2016 at 08:11, Alexander Graf wrote: On 08/09/2016 03:57 PM, Simon Glass wrote: >

Re: [U-Boot] [PATCH 0/2] efi_loader: Implement reset on RPi

2016-08-12 Thread Simon Glass
Hi Alex, On 11 August 2016 at 05:49, Alexander Graf wrote: > > > On 08.08.16 23:44, Simon Glass wrote: >> Hi, >> >> On 7 August 2016 at 10:59, Andreas Färber wrote: >>> Am 14.07.2016 um 08:18 schrieb Alexander Graf: > Am 14.07.2016 um 06:48 schrieb Andreas Färber : > > Hi Alex, >

Re: [U-Boot] [PATCH 3/5] config: evb-rk3399: enable pinctrl driver

2016-08-12 Thread Simon Glass
On 11 August 2016 at 19:48, Kever Yang wrote: > This patch enable rk3399 pinctrl driver and gpio driver which is sub-node > of pinctrl. > > Signed-off-by: Kever Yang > --- > > configs/evb-rk3399_defconfig | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Simon Glass _

Re: [U-Boot] building u-boot x86 with device tree disabled , still refers to device tree function

2016-08-12 Thread Simon Glass
+Bin Hi, On 11 August 2016 at 08:36, Ding, ChiX wrote: > Hi there > I'm building u-boot as payload for x86 platform. I didn't enable device tree > in menuconfig (CONFIG_OF_CONTROL is not set) because I use a board config > file coreboot.h. When I built u-boot, it reports error during linking

Re: [U-Boot] [PATCH 4/5] rk3399: enable the pwm2/3 pinctrl in board init

2016-08-12 Thread Simon Glass
On 11 August 2016 at 19:48, Kever Yang wrote: > There is no interrupt line for each PWM which used by pinctrl to get the > periph_id, so it's not able to enable the default pinctrl setting by pinctrl > framework, let's enable it at board_init(). > > Signed-off-by: Kever Yang > --- > > board/rock

Re: [U-Boot] [PATCH] rockchip: use dummy byte only enable OF_PLATDATA

2016-08-12 Thread Simon Glass
On 12 August 2016 at 01:43, Ziyuan Xu wrote: > Add a condition to determine the rk3288_sdram_channel size. > > This patch fixes read sdram_channel property failed from DT on rk3288 > boards, which not enable OF_PLATDATA. > > Signed-off-by: Ziyuan Xu > --- > > arch/arm/include/asm/arch-rockchip/s

Re: [U-Boot] [PATCH 0/7] efi_loader: Expose SMBIOS table

2016-08-12 Thread Simon Glass
Hi Alex, On 10 August 2016 at 01:29, Alexander Graf wrote: > >> On 09 Aug 2016, at 16:35, Simon Glass wrote: >> >> Hi Alexander, >> >> On 9 August 2016 at 08:11, Alexander Graf wrote: >>> >>> On 08/09/2016 03:57 PM, Simon Glass wrote: Hi Alexander, On 9 August 2016 at 00:48,

Re: [U-Boot] [PATCH 2/5] pinctrl: add driver for rk3399

2016-08-12 Thread Simon Glass
Hi Kever, On 11 August 2016 at 19:47, Kever Yang wrote: > This patch add pinctrl driver for rk3399. > > Signed-off-by: Kever Yang > --- > > arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 365 > > drivers/pinctrl/Kconfig | 9 + > drivers/pin

[U-Boot] [PATCH 1/4] ext4: change structure fields to __le/__be types

2016-08-12 Thread Michael Walle
Change all the types of ext2/4 fields to little endian types and all the JBD fields to big endian types. Now we can use sparse (make C=1) to check for statements where we need byteswaps. Signed-off-by: Michael Walle --- fs/ext4/ext4_journal.h | 40 +++ include/ext_common.h | 136 +

Re: [U-Boot] [PATCH] efi_loader: disk: Fix CONFIG_BLK breakage

2016-08-12 Thread Alexander Graf
On 12.08.16 19:20, Simon Glass wrote: > Hi Alex, > > On 10 August 2016 at 13:01, Alexander Graf wrote: >> >>> On 10 Aug 2016, at 18:25, Tom Rini wrote: >>> >>> On Wed, Aug 10, 2016 at 03:25:16PM +0200, Alexander Graf wrote: > Am 10.08.2016 um 15:16 schrieb Simon Glass : > >>>

Re: [U-Boot] Help Falcon Mode on Wanboard

2016-08-12 Thread Stefano Babic
Hi Diego, On 12/08/2016 19:19, Diego Dorta wrote: >> >> It was quite a while ago, but the patch sets Falcon mode, and it tries >> to boot the kernel. Kernel is not in filesystem, but stored at a fixed >> address on the SD card (0x1000). The error you reported seems when >> U-Boot is starting - by

[U-Boot] [PATCH V2 1/5] mmc: sd: extracting erase timeout information from sd status

2016-08-12 Thread Peng Fan
Add function to read SD_STATUS information. According to the information, get erase_timeout/erase_size/erase_offset. Add a structure sd_ssr to include the erase related information. Signed-off-by: Peng Fan Cc: Jaehoon Chung Cc: Simon Glass Cc: Bin Meng Cc: Stefan Wahren Cc: Clemens Gruber Cc

[U-Boot] [PATCH v3 3/3] Kconfig: DISTRO_DEFAULTS: Only enable CMD_BOOTZ for ARM

2016-08-12 Thread Tom Rini
The 'bootz' command is really only for ARM32 Linux Kernel 'zImage' files but has also been adapted for testing with sandbox. Given that sandbox is a test platform, don't add that logic under DISTRO_DEFAULTS. Cc: Hans de Goede Signed-off-by: Tom Rini --- Changes in v3: - New patch --- Kconfig |

[U-Boot] [PATCH V2 3/5] mmc: sd: add erase timeout support

2016-08-12 Thread Peng Fan
Add timeout in mmc_cmd, we can use this in driver code. Add mmc_sd_erase_timeout, this function is modified from linux kernel. Signed-off-by: Peng Fan Cc: Jaehoon Chung Cc: Simon Glass Cc: Bin Meng Cc: Stefan Wahren Cc: Clemens Gruber Cc: Kever Yang Cc: Eric Nelson Cc: Stephen Warren ---

Re: [U-Boot] [PATCH v2] serial: bcm283x_mu: Detect disabled serial device

2016-08-12 Thread Simon Glass
Hi Alex, On 11 August 2016 at 23:27, Alexander Graf wrote: > > >> Am 12.08.2016 um 00:38 schrieb Simon Glass : >> >> Hi Alex, >> >>> On 11 August 2016 at 05:33, Alexander Graf wrote: >>> >>> On 09.08.16 06:28, Stephen Warren wrote: > On 08/04/2016 05:15 PM, Alexander Graf wrote: > >

Re: [U-Boot] [PATCH 3/5] rk_pwm: use clock framework API to get module clock

2016-08-12 Thread Simon Glass
Hi Kever, On 12 August 2016 at 03:57, Kever Yang wrote: > This patch use clock API instead of hardcode for get pwm clock. > > Signed-off-by: Kever Yang > --- > > drivers/pwm/rk_pwm.c | 17 ++--- > 1 file changed, 14 insertions(+), 3 deletions(-) Acked-by: Simon Glass nit below >

Re: [U-Boot] [PATCH 4/5] rk_pwm: remove grf setting code from driver

2016-08-12 Thread Simon Glass
On 12 August 2016 at 03:58, Kever Yang wrote: > We consider the grf setting for pwm controller select as the system > operation instead of driver operation, move it to soc init, let's > remove it from pwm driver first. > > Signed-off-by: Kever Yang > --- > > drivers/pwm/rk_pwm.c | 11 ---

Re: [U-Boot] [PATCH 1/5] clk: rk3399: add pmucru controller support

2016-08-12 Thread Simon Glass
On 12 August 2016 at 03:47, Kever Yang wrote: > pmucru is a module like cru which is a clock controller manage some PLL > and module clocks. > > Signed-off-by: Kever Yang > --- > > drivers/clk/rockchip/clk_rk3399.c | 177 > +- > 1 file changed, 173 insertions

Re: [U-Boot] [PATCH V2] mmc: mmc_legacy: fix the compiler error with disabled CONFIG_DM_MMC_OPS

2016-08-12 Thread Simon Glass
On 11 August 2016 at 20:39, Jaehoon Chung wrote: > To prevent the compiler error, split the checking condition whether > cfg->ops is NULL or not. > It's more clearly, because it's not included in mmc_config structure > when CONFIG_DM_MMC_OPS is disabled. > > drivers/mmc/mmc_legacy.c: In function ‘

Re: [U-Boot] [PATCH 5/5] dts: rk3399: add pinctrl for sdmmc

2016-08-12 Thread Simon Glass
On 11 August 2016 at 19:48, Kever Yang wrote: > This patch add pinctrl for sdcard which may not be initialized before > uboot. > > Signed-off-by: Kever Yang > --- > > arch/arm/dts/rk3399.dtsi | 37 + > 1 file changed, 37 insertions(+) Acked-by: Simon Glass _

Re: [U-Boot] [PATCH 5/7] smbios: Expose in efi_loader as table

2016-08-12 Thread Simon Glass
Hi Alex, On 8 August 2016 at 08:06, Alexander Graf wrote: > We can pass SMBIOS easily as EFI configuration table to an EFI payload. This > patch adds enablement for that case. > > While at it, we also enable SMBIOS generation for ARM systems, since they > support > EFI_LOADER. > > Signed-off-by:

Re: [U-Boot] [PATCH 20/21] dm: mmc: intialize dev when probe

2016-08-12 Thread Simon Glass
On 11 August 2016 at 00:02, Peng Fan wrote: > Need to initialize mmc->dev when probe, or will met > "dev_get_uclass_priv: null device", when `mmc dev 1`. > > Signed-off-by: Peng Fan > Cc: Stefano Babic > Cc: Simon Glass > Cc: Jaehoon Chung > --- > drivers/mmc/fsl_esdhc.c | 1 + > 1 file chang

Re: [U-Boot] [PATCH] rockchip: rk3288-firefly: enable boot from eMMC

2016-08-12 Thread Simon Glass
On 9 August 2016 at 19:56, Jacob Chen wrote: > Add eMMC dt node and define fallback boot devices. > > Signed-off-by: Jacob Chen > --- > > arch/arm/dts/rk3288-firefly.dts | 5 + > board/firefly/firefly-rk3288/firefly-rk3288.c | 8 > 2 files changed, 13 insertions(+) Ac

[U-Boot] Please pull u-boot-dm

2016-08-12 Thread Simon Glass
Hi, This include a prerequisite for a forthcoming Tegra pull request. The following changes since commit 28cd88baa3f11cdb52be3b6d0610dcf32c60871a: Merge branch 'master' of git://git.denx.de/u-boot-uniphier (2016-08-11 10:45:53 -0400) are available in the git repository at: git://git.denx.

Re: [U-Boot] [PATCH 1/2] power: regulator: act8846: fix reading values

2016-08-12 Thread Simon Glass
On 8 August 2016 at 15:44, Simon Glass wrote: > On 7 August 2016 at 05:55, John Keeping wrote: >> The voltage and control registers need to be looked up from the value in >> driver_data. Adjust the get_value and get_enable functions to match the >> corresponding set_* functions. >> >> Signed-off

Re: [U-Boot] [PATCH 1/2 V4] misc: add "call" uclass op

2016-08-12 Thread Simon Glass
On 8 August 2016 at 13:47, Simon Glass wrote: > +Tom > > Hi Stephen, > > On 8 August 2016 at 10:41, Stephen Warren wrote: >> On 08/08/2016 10:38 AM, Simon Glass wrote: >>> >>> Hi Stephen, >>> >>> On 8 August 2016 at 09:41, Stephen Warren wrote: From: Stephen Warren The

Re: [U-Boot] [PATCH 2/2] power: pmic: act8846: add missing newline to debug statements

2016-08-12 Thread Simon Glass
On 8 August 2016 at 15:44, Simon Glass wrote: > On 7 August 2016 at 05:55, John Keeping wrote: >> Signed-off-by: John Keeping >> --- >> >> drivers/power/pmic/act8846.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) > > Acked-by: Simon Glass Applied to u-boot-dm, thanks!

Re: [U-Boot] [PATCH 1/2 V4] misc: add "call" uclass op

2016-08-12 Thread Simon Glass
Hi Stephen, On 11 August 2016 at 16:17, Stephen Warren wrote: > On 08/08/2016 02:33 PM, Tom Warren wrote: >> >> Simon, >> >>> -Original Message- >>> From: Stephen Warren [mailto:swar...@wwwdotorg.org] >>> Sent: Monday, August 08, 2016 12:54 PM >>> To: Simon Glass >>> Cc: U-Boot Mailing L

Re: [U-Boot] CACHE: Misaligned operation

2016-08-12 Thread Simon Glass
Hi, On 12 August 2016 at 08:13, Clemens Gruber wrote: > Hi, > > I just tested the current U-Boot master on my i.MX6Q board and the > following two warnings showed up on the console: > > U-Boot 2016.09-rc1-00377-gb8698a2 > > CPU: Freescale i.MX6Q rev1.5 at 792 MHz > Reset cause: POR > DRAM: 1 G

[U-Boot] CACHE: Misaligned operation

2016-08-12 Thread Clemens Gruber
Hi, I just tested the current U-Boot master on my i.MX6Q board and the following two warnings showed up on the console: U-Boot 2016.09-rc1-00377-gb8698a2 CPU: Freescale i.MX6Q rev1.5 at 792 MHz Reset cause: POR DRAM: 1 GiB CACHE: Misaligned operation at range [4fff, 4fff0004] CACHE: Misal

[U-Boot] [PATCH 2/4] ext4: use kernel names for byte swaps

2016-08-12 Thread Michael Walle
Instead of __{be,le}{16,32}_to_cpu use {be,le}{16,32}_to_cpu. Signed-off-by: Michael Walle --- fs/ext4/ext4_common.c | 90 +-- fs/ext4/ext4_write.c | 14 fs/ext4/ext4fs.c | 2 +- include/ext_common.h | 4 +-- 4 files changed, 55 i

[U-Boot] [PATCH 4/4] ext4: fix wrong usage of le32_to_cpu()

2016-08-12 Thread Michael Walle
le32_to_cpu() must only convert the revision_level and not the boolean result. Signed-off-by: Michael Walle --- fs/ext4/ext4_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c index 4eb4e18..b00b84f 100644 --- a/fs/ext4/ext4

Re: [U-Boot] [PATCH] Please pull u-boot-mmc

2016-08-12 Thread Andreas Bießmann
On 2016-08-12 14:48, Tom Rini wrote: On Fri, Aug 12, 2016 at 02:40:12PM +0200, andr...@biessmann.de wrote: On 2016-08-12 14:04, Tom Rini wrote: >On Fri, Aug 12, 2016 at 04:34:01PM +0900, Jaehoon Chung wrote: > >>Dear Tom, >> >>Here is the mmc updates. >>- Supports the Driver model for atmel_sdhc

Re: [U-Boot] [PATCH] Please pull u-boot-mmc

2016-08-12 Thread Tom Rini
On Fri, Aug 12, 2016 at 02:40:12PM +0200, andr...@biessmann.de wrote: > On 2016-08-12 14:04, Tom Rini wrote: > >On Fri, Aug 12, 2016 at 04:34:01PM +0900, Jaehoon Chung wrote: > > > >>Dear Tom, > >> > >>Here is the mmc updates. > >>- Supports the Driver model for atmel_sdhci. > >>- Fixed the build e

Re: [U-Boot] [PATCH] cmd: efi_loader: Return CMD_RET_USAGE in case of not enough arguments

2016-08-12 Thread Alexander Graf
On 08/12/2016 10:31 AM, Bin Meng wrote: When typing 'bootefi' from U-Boot shell, nothing outputs. Like other commands, return CMD_RET_USAGE so that it can print help message. Signed-off-by: Bin Meng Reviewed-by: Alexander Graf Alex ___ U-Boot ma

[U-Boot] [PATCH V2 5/5] mmc: sd: optimize erase

2016-08-12 Thread Peng Fan
To SD, there is no erase group, then the value erase_grp_size will be default 1. When erasing SD blocks, the blocks will be erased one by one, which is time consuming. We use AU_SIZE as a group to speed up the erasing. Erasing 4MB with a SD2.0 Card with AU_SIZE 4MB. `time mmc erase 0x10 0x200

[U-Boot] [PATCH 5/5] rk3288: add arch_cpu_init for rk3288

2016-08-12 Thread Kever Yang
We do some SoC level one time setting initialization in arch_cpu_init. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3288/Makefile | 1 + arch/arm/mach-rockchip/rk3288/rk3288.c | 19 +++ 2 files changed, 20 insertions(+) create mode 100644 arch/arm/mach-rockchip/rk328

[U-Boot] [PATCH 4/5] rk_pwm: remove grf setting code from driver

2016-08-12 Thread Kever Yang
We consider the grf setting for pwm controller select as the system operation instead of driver operation, move it to soc init, let's remove it from pwm driver first. Signed-off-by: Kever Yang --- drivers/pwm/rk_pwm.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/pwm/r

[U-Boot] Nvidia Trega Tk1 - /cpus/cpu@0 missing clock-frequency property

2016-08-12 Thread vinoth eswaran
Hi, Currently I am working on an Nvidia Jetson Tk1 board. With u-boot v2016.05 I am seeing the following messages on the start up [0.00] Tegra clk 127: register failed with -17 [0.004488] /cpus/cpu@0 missing clock-frequency property [0.008002] /cpus/cpu@1 missing clock-frequency

[U-Boot] [PATCH] Please pull u-boot-mmc

2016-08-12 Thread Jaehoon Chung
Dear Tom, Here is the mmc updates. - Supports the Driver model for atmel_sdhci. - Fixed the build error for omap_hsmmc. Could you pull these patch to u-boot/master? Best Regards, Jaehoon Chung The following changes since commit 28cd88baa3f11cdb52be3b6d0610dcf32c60871a: Merge branch 'master'

Re: [U-Boot] [PATCH v11] mmc: atmel_sdhci: Convert to the driver model support

2016-08-12 Thread Jaehoon Chung
Hi Wenyou, On 08/11/2016 11:03 AM, Jaehoon Chung wrote: > Hi, > > On 08/10/2016 11:51 AM, Wenyou Yang wrote: >> Convert the driver to the driver model while retaining the existing >> legacy code. This allows the driver to support boards that have >> converted to driver model as well as those that

Re: [U-Boot] [PATCH] getting ubifs to run

2016-08-12 Thread Hoefle Marco
Hello Heiko, You are right, there are two parts: the Microblaze part and the ubifs stuff. To get u-boot compiled I added the following to the Microblaze architecture: atomic.h based on the ARM architecture, was missing before. Modified bitops.h to get rid of compiler warnings The three ubifs files

[U-Boot] P4080DS ELBC UPM MODE

2016-08-12 Thread yyurtcan
Hi, I have p4080ds board. I want to increase read speed from NOR Flash in order to meet system requirements. I have measured read speed around 10 MByte/sec. I think this speed is too low. I have searched it on internet and found that NOR Flash has two mode; word and page mode. Page mode is faster t

Re: [U-Boot] [PATCH 1/2] driver/ddr/fsl: Add general MMDC driver

2016-08-12 Thread Shengzhou Liu
> -Original Message- > From: york sun > Sent: Friday, August 12, 2016 3:45 AM > To: Shengzhou Liu ; u-boot@lists.denx.de > Subject: Re: [PATCH 1/2] driver/ddr/fsl: Add general MMDC driver > > > +#define CMD_ADDR_MSB_MR_OP(x) (x << 24) > > +#define CMD_ADDR_LSB_MR_ADDR(x) (x << 16) > >

Re: [U-Boot] [PATCH v2 4/5] mpc85xx/powerpc: P5040: Apply errata A006261 for P5040

2016-08-12 Thread Sriram Dash
>From: york sun > >Same comment to the subject line. > Ok. Will modify patch title and commit message in v3. >On 07/17/2016 08:47 PM, Sriram Dash wrote: >> Apply USB errata A006261 for P5040. > >Please add explanation the same erratum applies to P5040 rev 2.0. > Ok. Will modify patch title and c

Re: [U-Boot] disabling mmc in spl when booting using bootrom

2016-08-12 Thread Sandy Patterson
On Fri, Aug 12, 2016 at 1:20 PM, Simon Glass wrote: > Hi Ziyuan, > > On 11 August 2016 at 05:35, Ziyuan Xu wrote: > > > > > > On 2016年08月11日 19:31, Sandy Patterson wrote: > >> > >> Simon, > >> > >> I am trying to format a patch to disable MMC in the SPL if booting main > >> u-boot using BOOTROM,

Re: [U-Boot] [PATCH v2] serial: bcm283x_mu: Detect disabled serial device

2016-08-12 Thread Alexander Graf
> Am 12.08.2016 um 00:38 schrieb Simon Glass : > > Hi Alex, > >> On 11 August 2016 at 05:33, Alexander Graf wrote: >> >> >>> On 09.08.16 06:28, Stephen Warren wrote: On 08/04/2016 05:15 PM, Alexander Graf wrote: > On 04 Aug 2016, at 20:11, Stephen Warren wrote: > > O

Re: [U-Boot] [PATCH 2/2] serial: bcm283x_mu: Detect disabled serial device

2016-08-12 Thread Alexander Graf
> Am 12.08.2016 um 00:38 schrieb Simon Glass : > > Hi Alex, > >> On 11 August 2016 at 05:38, Alexander Graf wrote: >> On the raspberry pi, you can disable the serial port to gain dynamic >> frequency >> scaling which can get handy at times. >> >> However, in such a configuration the serial c

Re: [U-Boot] [PATCH] getting ubifs to run

2016-08-12 Thread Heiko Schocher
Hello Marco, Am 11.08.2016 um 11:56 schrieb Marco: Signed-off-by: Marco --- arch/microblaze/include/asm/atomic.h | 114 +++ arch/microblaze/include/asm/bitops.h | 8 +-- fs/ubifs/io.c| 2 +- fs/ubifs/log.c |

Re: [U-Boot] [PATCH] drivers: net: keystone_net: add rgmii link type support when parsing dt

2016-08-12 Thread Sekhar Nori
On Thursday 11 August 2016 08:04 PM, Mugunthan V N wrote: > Add support to detect RGMII link interface from link-interface > device tree entry. Also rename the existing link type enums so > that it provides meaningful interface like SGMII. > > Signed-off-by: Mugunthan V N Reported-by: Sekhar Nor

Re: [U-Boot] SPL loading multiple binaries from FIT image?

2016-08-12 Thread Simon Glass
Hi Andre, On 1 July 2016 at 04:03, Andre Przywara wrote: > Hi, > > (sorry if this has been discussed before, feel free to point me to any > existing thread then) > > for the Pine64 I am looking into letting the SPL load multiple images > from a FIT image. > Looking at common/spl/spl-fit.c I see t

Re: [U-Boot] [PATCH 2/5] clk: rk3288: add PWM clock get rate

2016-08-12 Thread Simon Glass
On 12 August 2016 at 03:57, Kever Yang wrote: > This patch add clk_get_rate for PWM device. > > Signed-off-by: Kever Yang > --- > > drivers/clk/rockchip/clk_rk3288.c | 2 ++ > 1 file changed, 2 insertions(+) > Acked-by: Simon Glass ___ U-Boot mailing

Re: [U-Boot] [PATCH 1/5] rk3399: syscon: add support for pmugrf

2016-08-12 Thread Simon Glass
On 11 August 2016 at 19:43, Kever Yang wrote: > pmugrf is a module like grf which contain some of the iomux registers > and other registers. > > Signed-off-by: Kever Yang > --- > > arch/arm/include/asm/arch-rockchip/clock.h| 1 + > arch/arm/mach-rockchip/rk3399/syscon_rk3399.c | 1 + > 2 fil

Re: [U-Boot] [PATCH] efi_loader: disk: Fix CONFIG_BLK breakage

2016-08-12 Thread Simon Glass
Hi Alex, On 10 August 2016 at 13:01, Alexander Graf wrote: > >> On 10 Aug 2016, at 18:25, Tom Rini wrote: >> >> On Wed, Aug 10, 2016 at 03:25:16PM +0200, Alexander Graf wrote: >>> >>> Am 10.08.2016 um 15:16 schrieb Simon Glass : Hi Alex, > On 10 August 2016 at 07:02, Alex

Re: [U-Boot] disabling mmc in spl when booting using bootrom

2016-08-12 Thread Simon Glass
Hi Ziyuan, On 11 August 2016 at 05:35, Ziyuan Xu wrote: > > > On 2016年08月11日 19:31, Sandy Patterson wrote: >> >> Simon, >> >> I am trying to format a patch to disable MMC in the SPL if booting main >> u-boot using BOOTROM, therefore the SPL MMC isn't needed. >> >> Is the best solution to wrap eve

Re: [U-Boot] [PATCH v2 7/7] smbios: Provide serial number

2016-08-12 Thread Simon Glass
On 11 August 2016 at 19:31, Bin Meng wrote: > On Fri, Aug 12, 2016 at 5:45 AM, Alexander Graf wrote: >> If the system has a valid "serial#" environment variable set (which boards >> that >> can find it out programatically set automatically), use that as input for the >> serial number and UUID fi

Re: [U-Boot] [PATCH 2/6] efi: Fix missing EFIAPI specifiers

2016-08-12 Thread Simon Glass
Hi Alex, On 10 August 2016 at 05:40, Alexander Graf wrote: > On 08/07/2016 01:23 AM, Simon Glass wrote: >> >> These are missing in some functions. Add them to keep things consistent. >> >> Signed-off-by: Simon Glass > > > Is there any way to change the EFIAPI definition so that we get build > wa

Re: [U-Boot] [PATCH v2 3/5] mpc85xx/powerpc: P2041: Apply errata A006261 for P2041

2016-08-12 Thread Sriram Dash
>From: york sun > >Same comment to the subject. > Ok. Will modify patch title and commit message in v3. >On 07/17/2016 08:47 PM, Sriram Dash wrote: >> Apply USB errata A006261 for P2041, P2040. >> >> Signed-off-by: Sriram Dash >> Signed-off-by: Rajesh Bhagat >> --- >> drivers/usb/common/fsl-er

Re: [U-Boot] [PATCH 1/2] driver/ddr/fsl: Add general MMDC driver

2016-08-12 Thread Shengzhou Liu
It needs to apply both patches before compiling. The second patch will remove the old board level code and apply common mmdc driver. I understand that in theory we should keep every single patch is compileable, but to make it clean to customer I separated them to two patches. Do I really need to

[U-Boot] [PATCH v3 1/3] cmd: Split 'bootz' and 'booti' out from 'bootm'

2016-08-12 Thread Tom Rini
The bootz and booti commands rely on common functionality that is found in common/bootm.c and common/bootm_os.c. They do not however rely on the rest of cmd/bootm.c to be implemented so split them into their own files. Have various Makefiles include the required infrastructure for CONFIG_CMD_BOOT

Re: [U-Boot] [PATCH v2 1/2] cmd: Split 'bootz' and 'booti' out from 'bootm'

2016-08-12 Thread Tom Rini
On Fri, Aug 12, 2016 at 02:49:49PM +0900, Masahiro Yamada wrote: > Hi Tom, > > > 2016-08-02 0:28 GMT+09:00 Tom Rini : > > The bootz and booti commands rely on common functionality that is found > > in common/bootm.c and common/bootm_os.c. They do not however rely on > > the rest of cmd/bootm.c t

Re: [U-Boot] [PATCH v2 1/2] cmd: Split 'bootz' and 'booti' out from 'bootm'

2016-08-12 Thread Tom Rini
On Fri, Aug 12, 2016 at 02:49:49PM +0900, Masahiro Yamada wrote: > Hi Tom, > > > 2016-08-02 0:28 GMT+09:00 Tom Rini : > > The bootz and booti commands rely on common functionality that is found > > in common/bootm.c and common/bootm_os.c. They do not however rely on > > the rest of cmd/bootm.c t

[U-Boot] [PATCH 2/5] clk: rk3288: add PWM clock get rate

2016-08-12 Thread Kever Yang
This patch add clk_get_rate for PWM device. Signed-off-by: Kever Yang --- drivers/clk/rockchip/clk_rk3288.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c index c07203d..bd71a96 100644 --- a/drivers/clk/rockchip/clk_r

[U-Boot] [PATCH 3/5] rk_pwm: use clock framework API to get module clock

2016-08-12 Thread Kever Yang
This patch use clock API instead of hardcode for get pwm clock. Signed-off-by: Kever Yang --- drivers/pwm/rk_pwm.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index 2d289a4..d69aab5 100644 --- a/drivers/pwm/r

Re: [U-Boot] [PATCH] Please pull u-boot-mmc

2016-08-12 Thread Tom Rini
On Fri, Aug 12, 2016 at 04:34:01PM +0900, Jaehoon Chung wrote: > Dear Tom, > > Here is the mmc updates. > - Supports the Driver model for atmel_sdhci. > - Fixed the build error for omap_hsmmc. > > Could you pull these patch to u-boot/master? > > Best Regards, > Jaehoon Chung > > The following

[U-Boot] [PATCH 2/2 v2] armv8:ls1012a: Use common MMDC driver for ls1012a

2016-08-12 Thread Shengzhou Liu
Let's use common MMDC driver for DDR initialization on LS1012ARDB, LS1012AQDS, LS1012AFRDM boards. Signed-off-by: Shengzhou Liu --- v2: no change board/freescale/ls1012afrdm/ls1012afrdm.c | 116 -- board/freescale/ls1012aqds/ls1012aqds.c | 116 -

[U-Boot] [PATCH 1/2 v2] driver/ddr/fsl: Add general MMDC driver

2016-08-12 Thread Shengzhou Liu
This patch adds basic support for Freescale MMDC(Multi Mode DDR Controller). Currently MMDC is integrated on ARMv8 LS1012A SoC for DDR3L, there will be a update to this driver to support more flexible configuration if new features (DDR4, multiple controllers/chip selections, etc) are implimented in

[U-Boot] [PATCH 1/5] clk: rk3399: add pmucru controller support

2016-08-12 Thread Kever Yang
pmucru is a module like cru which is a clock controller manage some PLL and module clocks. Signed-off-by: Kever Yang --- drivers/clk/rockchip/clk_rk3399.c | 177 +- 1 file changed, 173 insertions(+), 4 deletions(-) diff --git a/drivers/clk/rockchip/clk_rk339

[U-Boot] [PATCH 0/5] clean rkpwm driver

2016-08-12 Thread Kever Yang
This patch set clean the rkpwm driver by using clock API for module clock instead of hardcode, move the grf setting to soc level init. Kever Yang (5): clk: rk3399: add pmucru controller support clk: rk3288: add PWM clock get rate rk_pwm: use clock framework API to get module clock rk_pw

Re: [U-Boot] [PATCH v2 2/5] mpc85xx/powerpc:P1010: Apply errata A006261 for P1010

2016-08-12 Thread Sriram Dash
>From: york sun > >Sriram, > >Same comment here, please fix the subject. > Ok. Will modify patch title and commit message in v3. >On 07/17/2016 08:47 PM, Sriram Dash wrote: >> Apply USB errata A006261 for P1010. > >A006261 is already applied to P1010. > > >> >> Signed-off-by: Sriram Dash >> Sign

Re: [U-Boot] [PATCH v2 5/5] mpc85xx/powerpc: Do not apply errata A006261 for T4160, T1040, T2080

2016-08-12 Thread Sriram Dash
>From: york sun >On 07/17/2016 08:47 PM, Sriram Dash wrote: >> Do not apply errata A006261 for T4160 and T4080(rev 1.0, 2.0), >> T1040(rev 1.0), T2080(rev 1.0), T2081(rev 1.0). > >I don't see mentioning the revision numbers helps here. Your patch is removing >the >erratum from T4160, T4080, T1040,

Re: [U-Boot] [PATCH 1/2] driver/ddr/fsl: Add general MMDC driver

2016-08-12 Thread york sun
I am not suggesting remove the macros. Please try to compile after applying first patch. You will see the errors York Original Message From: Shengzhou Liu Sent: Thursday, August 11, 2016 08:44 PM To: york sun ,u-boot@lists.denx.de Subject: RE: [PATCH 1/2] driver/ddr/fsl: Add

Re: [U-Boot] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-12 Thread Heiko Schocher
Hello Richard, Am 11.08.2016 um 11:51 schrieb Richard Weinberger: Hi! On Thu, Aug 11, 2016 at 4:26 AM, J Mo wrote: I tried re-flashing my UBI and tftpbooting my kernel before u-boot could ever get a chance to mangle it, and now I get much further, though I'm still not able to mount my rootfs

Re: [U-Boot] building u-boot x86 with device tree disabled , still refers to device tree function

2016-08-12 Thread Bin Meng
Hi, On Thu, Aug 11, 2016 at 10:36 PM, Ding, ChiX wrote: > Hi there > I'm building u-boot as payload for x86 platform. I didn't enable device tree > in menuconfig (CONFIG_OF_CONTROL is not set) because I use a board config > file coreboot.h. When I built u-boot, it reports error during linking s