Re: [U-Boot] [PATCH v2 2/4] arm: mvebu: Update CBAR with SOC regs base

2015-05-15 Thread Stefan Roese
On 14.05.2015 01:17, Kevin Smith wrote: SMP-enabled Linux kernels read the CBAR register in CP15 to find the address of the SCU registers. After remapping internal registers, also update the CBAR so the kernel can find them. Thanks Kevin. Only some coding style related comments below: Signed

Re: [U-Boot] [PATCH v2 3/4] mv-common.h: Include support for device trees

2015-05-15 Thread Stefan Roese
On 14.05.2015 01:17, Kevin Smith wrote: Signed-off-by: Kevin Smith --- include/configs/mv-common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/mv-common.h b/include/configs/mv-common.h index 51436da..03518b0 100644 --- a/include/configs/mv-common.h +++ b/include/conf

Re: [U-Boot] [PATCH v2 4/4] db-88f6820-gp.h: Load data blobs into lower memory

2015-05-15 Thread Stefan Roese
On 14.05.2015 01:17, Kevin Smith wrote: By default on this platform, u-boot loads data into high memory in the range of 0x7Fxx, which generates a data abort when the kernel tries to read it. Config the u-boot environment to load the device tree and initrd image into lower memory to make them

Re: [U-Boot] [PATCH v2] README.scrapyard: add entries for dead board, T4240EMU and sc3

2015-05-15 Thread Stefan Roese
On 15.05.2015 04:51, Masahiro Yamada wrote: Follow-up commit 7fc63cca611b (mpc85xx/T4240EMU: Remove T4240EMU board), and commit 27e721564591 (ppc4xx: Remove sc3 board), filling the blank fields. Signed-off-by: Masahiro Yamada Reviewed-by: Stefan Roese Thanks, Stefan ___

Re: [U-Boot] [PATCH v1 1/4] Kconfig: Enable usage of escape char '\' in string values

2015-05-15 Thread Stefan Roese
Hi Masahiro, On 13.05.2015 03:34, Masahiro Yamada wrote: Hi, Simon, Stefan, 2015-05-12 7:41 GMT+09:00 Simon Glass : Hi Stefan, On 11 May 2015 at 07:27, Stefan Roese wrote: Hi Simon, Hi Masahiro, On 11.05.2015 09:58, Stefan Roese wrote: On 10.05.2015 16:48, Simon Glass wrote: On 7 May

[U-Boot] [PATCH] arm: ls1021atwr: program the regulator for deep sleep

2015-05-15 Thread Chenhui Zhao
Program the external regulator to switch off voltage in deep sleep. Signed-off-by: Chenhui Zhao --- board/freescale/ls1021atwr/ls1021atwr.c | 34 + 1 file changed, 34 insertions(+) diff --git a/board/freescale/ls1021atwr/ls1021atwr.c b/board/freescale/ls1021atwr

Re: [U-Boot] [PATCH v2 4/4] autoboot.c: Add feature to stop autobooting via SHA256 encrypted password

2015-05-15 Thread Magnus Lilja
Hi Stefan, On 8 May 2015 at 09:52, Stefan Roese wrote: > This patch adds the feature to only stop the autobooting, and therefor > boot into the U-Boot prompt, when the input string / password matches > a values that is encypted via a SHA256 hash and saved in the environment. > > This feature is e

Re: [U-Boot] [PATCH v1 1/4] Kconfig: Enable usage of escape char '\' in string values

2015-05-15 Thread Masahiro Yamada
Hi Stefan, 2015-05-15 16:13 GMT+09:00 Stefan Roese : > Hi Masahiro, > > > On 13.05.2015 03:34, Masahiro Yamada wrote: >> >> Hi, Simon, Stefan, >> >> >> 2015-05-12 7:41 GMT+09:00 Simon Glass : >>> >>> Hi Stefan, >>> >>> On 11 May 2015 at 07:27, Stefan Roese wrote: Hi Simon, Hi Masahir

Re: [U-Boot] [PATCH v2 1/2] imx: mx6: add get_cpu_speed_grade_hz func to return MHz speed grade from OTP

2015-05-15 Thread Christian Gmeiner
Hi 2015-05-14 7:08 GMT+02:00 Tim Harvey : > The IMX6 has four different speed grades determined by eFUSE SPEED_GRADING > indicated by OCOTP_CFG3[17:16] which is at 0x440 in the Fusemap Description > Table. Return this frequency so that it can be used elsewhere. > > Note that the IMX6SDLRM and the

Re: [U-Boot] [PATCH] bugfix i.mx6 pwm: prevent overflow of period_c * duty_ns

2015-05-15 Thread Stefano Babic
On 06/05/2015 09:57, Brecht Neyrinck wrote: > Prevent overflow by casting duty_ns to ull first. This bug came up when > trying to create a 200 Hz PWM > > Signed-off-by: Brecht Neyrinck > --- > drivers/pwm/pwm-imx-util.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/d

Re: [U-Boot] [PATCH v2 1/4] mx6: add OTP bank1 registers

2015-05-15 Thread Christian Gmeiner
2015-05-14 7:11 GMT+02:00 Tim Harvey : > Signed-off-by: Tim Harvey > --- > arch/arm/include/asm/arch-mx6/imx-regs.h | 19 +++ > 1 file changed, 19 insertions(+) > > diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h > b/arch/arm/include/asm/arch-mx6/imx-regs.h > index 9a4ad8b.

Re: [U-Boot] [PATCH v2 3/4] imx: mx6: add display of CPU temperature grade in print_cpuinfo()

2015-05-15 Thread Christian Gmeiner
2015-05-14 7:11 GMT+02:00 Tim Harvey : > When CONFIG_IMX6_THERMAL is defined print the CPU temperature grade info > along with the current temperature. > > Before: > CPU: Temperature 42 C > > After: > CPU: Automotive temperature grade (-40C to 125C) at 42C > CPU: Industiral temperature gra

Re: [U-Boot] [PATCH v2 2/4] imx: mx6: add get_cpu_temp_grade to obtain cpu temperature grade from OTP

2015-05-15 Thread Christian Gmeiner
2015-05-14 7:11 GMT+02:00 Tim Harvey : > The MX6 has a temperature grade defined by OCOTP_MEM0[7:6] which is at 0x480 > in the Fusemap Description Table in the reference manual. Return this value > as well as min/max temperature based on the value. > > Note that the IMX6SDLRM and the IMX6SXRM do no

Re: [U-Boot] [patchv2] socfpga: move configuration options to config file

2015-05-15 Thread Pavel Machek
On Tue 2015-04-21 12:23:07, Pavel Machek wrote: > Setting configuration options in header file leads to incosistency > between .config user sees, and .config he has. What is worse, a lot of > compile warnings is presented for any such config option user sets in > .config. > > Signed-off-by: Pa

Re: [U-Boot] [patchv2] socfpga: move configuration options to config file

2015-05-15 Thread Masahiro Yamada
2015-05-15 17:31 GMT+09:00 Pavel Machek : > On Tue 2015-04-21 12:23:07, Pavel Machek wrote: >> Setting configuration options in header file leads to incosistency >> between .config user sees, and .config he has. What is worse, a lot of >> compile warnings is presented for any such config option use

Re: [U-Boot] [PATCH] u-boot: adjust config_cmd_default.h not to raise ton of warnings

2015-05-15 Thread Pavel Machek
On Fri 2015-05-01 11:14:11, Pavel Machek wrote: > > If there's duplicty between config system and config_cmd_default, a > ton of warnings is raised, because one uses plain defines, and other > defines it to 1. Adjust config_cmd_default.h not to provoke the > warnings. > > Signed-off-by: Pavel Mac

Re: [U-Boot] [PATCH v2 4/4] autoboot.c: Add feature to stop autobooting via SHA256 encrypted password

2015-05-15 Thread Stefan Roese
Hi Magnus, On 15.05.2015 09:44, Magnus Lilja wrote: On 8 May 2015 at 09:52, Stefan Roese wrote: This patch adds the feature to only stop the autobooting, and therefor boot into the U-Boot prompt, when the input string / password matches a values that is encypted via a SHA256 hash and saved in

Re: [U-Boot] [PATCHv3] mtd: sf: Add CONFIG_SPI_N25Q256A_RESET for software-reset

2015-05-15 Thread Pavel Machek
> >> Seems like nothing much doing in micron side > >> switch (JEDEC_MFR(info)) { > >> case CFI_MFR_ST: /* Micron, actually */ > >> /* Some Micron need WREN command; all will accept it */ > >> need_wren = true; > > > > Umm. Take a closer look. > > >

Re: [U-Boot] [patchv2] socfpga: move configuration options to config file

2015-05-15 Thread Pavel Machek
On Fri 2015-05-15 17:36:32, Masahiro Yamada wrote: > 2015-05-15 17:31 GMT+09:00 Pavel Machek : > > On Tue 2015-04-21 12:23:07, Pavel Machek wrote: > >> Setting configuration options in header file leads to incosistency > >> between .config user sees, and .config he has. What is worse, a lot of > >>

Re: [U-Boot] [patchv2] socfpga: move configuration options to config file

2015-05-15 Thread Masahiro Yamada
Hi. 2015-05-15 17:48 GMT+09:00 Pavel Machek : > On Fri 2015-05-15 17:36:32, Masahiro Yamada wrote: >> 2015-05-15 17:31 GMT+09:00 Pavel Machek : >> > On Tue 2015-04-21 12:23:07, Pavel Machek wrote: >> >> Setting configuration options in header file leads to incosistency >> >> between .config user

Re: [U-Boot] [PATCH] u-boot: adjust config_cmd_default.h not to raise ton of warnings

2015-05-15 Thread Masahiro Yamada
Hi Pavel, 2015-05-15 17:36 GMT+09:00 Pavel Machek : > On Fri 2015-05-01 11:14:11, Pavel Machek wrote: >> >> If there's duplicty between config system and config_cmd_default, a >> ton of warnings is raised, because one uses plain defines, and other >> defines it to 1. Adjust config_cmd_default.h no

Re: [U-Boot] [PATCH 0/10 v2] i.MX6: move duplicated options to mx6_common to standardise mx6 config

2015-05-15 Thread Stefano Babic
Hi Peter, Soeren, On 11/05/2015 20:43, Soeren Moch wrote: >> >> Reviewed-by: Eric Nelson > > Besides my comments on patch 8/10, > for the whole series (especially the tbs2910 part): > > Acked-by: Soeren Moch > > Thanks for this great cleanup! I will add my thanks for this great clean-up. So

Re: [U-Boot] [PATCHv3] mtd: sf: Add CONFIG_SPI_N25Q256A_RESET for software-reset

2015-05-15 Thread Marek Vasut
On Friday, May 15, 2015 at 10:47:46 AM, Pavel Machek wrote: > > >> Seems like nothing much doing in micron side > > >> > > >> switch (JEDEC_MFR(info)) { > > >> case CFI_MFR_ST: /* Micron, actually */ > > >> > > >> /* Some Micron need WREN command; all will

Re: [U-Boot] [PATCH] imx: dek_blob: Add explicit include for mapmem

2015-05-15 Thread Stefano Babic
On 04/05/2015 16:53, ulises.carde...@freescale.com wrote: > From: Ulises Cardenas > > Boards such as imx6q_sabresd might not have mapmem.h as part of > their common library. This causes a build error if the DEK blob > command is enabled. > > Fix: make explicit the include of mapmem.h > > Si

Re: [U-Boot] [PATCHv3] mtd: sf: Add CONFIG_SPI_N25Q256A_RESET for software-reset

2015-05-15 Thread Pavel Machek
On Fri 2015-05-15 11:36:11, Marek Vasut wrote: > On Friday, May 15, 2015 at 10:47:46 AM, Pavel Machek wrote: > > > >> Seems like nothing much doing in micron side > > > >> > > > >> switch (JEDEC_MFR(info)) { > > > >> case CFI_MFR_ST: /* Micron, actually */ > > > >> > > > >

[U-Boot] [RFC PATCH] tools: get-toolchais: a tool to get cross-tools for all architectures

2015-05-15 Thread Masahiro Yamada
When we send patches, we are supposed to test them by build utilities such as MAKEALL, buildman. When we want to test global changes, the first hurdle is, I think, to collect toolchains for all the architectures. We have some documents about build utilities, but I have not seen any official infor

Re: [U-Boot] [PATCH v2 2/2] mx6cuboxi: Mention Cubox-i in the README

2015-05-15 Thread Stefano Babic
On 11/05/2015 18:02, Fabio Estevam wrote: > Cubox-i boards are also supported, so update the README file. > > Signed-off-by: Fabio Estevam > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- = DENX So

Re: [U-Boot] [PATCH v2 1/2] hummingboard: Remove mx6solo specific support

2015-05-15 Thread Stefano Babic
Hi Fabio, On 11/05/2015 18:02, Fabio Estevam wrote: > Hummingboard dual, dual-lite and solo are now supported via SPL mechanism. > > Remove the previous hummingboard support, which does not use SPL and supported > only the solo variant. > > Signed-off-by: Fabio Estevam > --- Applied to u-boot-

Re: [U-Boot] [PATCH] warp: README: Fix typo

2015-05-15 Thread Stefano Babic
On 12/05/2015 18:19, Fabio Estevam wrote: > Fix the spelling of 'successful'. > > Signed-off-by: Fabio Estevam > --- > board/warp/README | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/board/warp/README b/board/warp/README > index 0e1f076..db3100e 100644 > --- a/boa

Re: [U-Boot] mxs: Possible in bug in mxs_enable_4p2_dcdc_input

2015-05-15 Thread Stefano Babic
Hi Stefan, On 13/05/2015 08:02, Stefan Wahren wrote: > Hi, > > during the study of DC-DC handling in u-boot i noticed a possible bug. > > In case the DC-DC is already enabled the function returns without reenabling > brown out detection. I don't think that's okay. > A possible fix would be to do

Re: [U-Boot] [patchv2] socfpga: move configuration options to config file

2015-05-15 Thread Marek Vasut
On Friday, May 15, 2015 at 11:00:37 AM, Masahiro Yamada wrote: > Hi. Hi! > 2015-05-15 17:48 GMT+09:00 Pavel Machek : > > On Fri 2015-05-15 17:36:32, Masahiro Yamada wrote: > >> 2015-05-15 17:31 GMT+09:00 Pavel Machek : > >> > On Tue 2015-04-21 12:23:07, Pavel Machek wrote: > >> >> Setting configu

Re: [U-Boot] [PATCH 03/10] imx6: move generic imx6 options to mx6_common.h

2015-05-15 Thread Stefano Babic
Hi Peter, On 12/05/2015 12:51, Tom Rini wrote: > On Tue, May 12, 2015 at 10:40:25AM +0200, Markus Niebel wrote: > >> Hello Peter, >> >> sorry for the noise, did not see v2 of your series. Just one thing: >> >> Am 11.05.2015 um 18:22 schrieb Peter Robinson: >>> All boards define CONFIG_MX6, CONFIG

Re: [U-Boot] [Resend PATCH 2/4] arm: imx6: tqma6: implement IMX_CONFIG with Kconfig

2015-05-15 Thread Stefano Babic
Hi Markus, On 12/05/2015 14:18, Markus Niebel wrote: > From: Markus Niebel > > Now that we have the Kconfig based CPU type selection, > use this to fill the IMX_CONFIG automatically > > Signed-off-by: Markus Niebel > --- > board/tqc/tqma6/Kconfig | 4 > configs/tqma6q_mba6_mmc_

Re: [U-Boot] [PATCH] wandboard: Switch to SPL support

2015-05-15 Thread Stefano Babic
Hi Fabio, On 12/05/2015 01:50, Fabio Estevam wrote: > From: Fabio Estevam > > Currently we need to build one U-boot image for each of the wandboard > variants: quad, dual-lite and solo. > > By switching to SPL we can support all these variants with a single binary, > which is very convenient. >

[U-Boot] [PATCH] include: introcude include/linux/io.h as a wrapper of asm/io.h

2015-05-15 Thread Masahiro Yamada
In Linux coding style, should be included rather than . To follow this style in U-boot, add include/linux/io.h. Currently, it just includes . Signed-off-by: Masahiro Yamada --- include/linux/io.h | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 include/linux/io.h diff --

[U-Boot] [PATCH v2] include: introduce include/linux/io.h as a wrapper of asm/io.h

2015-05-15 Thread Masahiro Yamada
In the latest Linux coding style, should be included rather than . To follow this standard also in U-Boot, add include/linux/io.h. Currently, it just includes . Signed-off-by: Masahiro Yamada --- Changes in v2: - Fix a typo s/introcude/introduce/ - Remove a redundant whitespace include

Re: [U-Boot] [PATCH 2/5] tbs2910: only enable vga output for stdout/stderr when hdmi detected

2015-05-15 Thread Stefano Babic
On 05/05/2015 23:09, Soeren Moch wrote: > Only enable graphical output for stdout/stderr (and a usb keyboard for stdin) > when a hdmi device is detected. > Serial console is always enabled for stdin/stdout/stderr. > > Signed-off-by: Soeren Moch > --- > Cc: Stefano Babic > --- > include/configs/

Re: [U-Boot] [PATCH 1/5] tbs2910: support for usb otg host mode

2015-05-15 Thread Stefano Babic
On 05/05/2015 23:09, Soeren Moch wrote: > Add support for USB OTG host mode. Only high speed devices supported so far > (e.g. usb 2.0 hub required to connect a keyboard). > > Signed-off-by: Soeren Moch > --- > Cc: Stefano Babic > --- Applied to u-boot-imx, thanks ! Best regards, Stefano B

Re: [U-Boot] [PATCH 3/5] tbs2910: use default CONFIG_SYS_PBSIZE

2015-05-15 Thread Stefano Babic
On 05/05/2015 23:09, Soeren Moch wrote: > Since there is a default CONFIG_SYS_PBSIZE definition in config_fallbacks.h, > this setting is no longer required in board configurations. > > Signed-off-by: Soeren Moch > --- > Cc: Stefano Babic > --- > include/configs/tbs2910.h | 2 -- > 1 file change

Re: [U-Boot] [PATCH 4/5] tbs2910: add CONFIG_SUPPORT_EMMC_BOOT

2015-05-15 Thread Stefano Babic
On 05/05/2015 23:09, Soeren Moch wrote: > Add emmc boot partition commands to be able to select the boot partition. > > Signed-off-by: Soeren Moch > --- > Cc: Stefano Babic > --- > include/configs/tbs2910.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/configs/tbs2910.h b/in

Re: [U-Boot] [PATCH 0/10 v2] i.MX6: move duplicated options to mx6_common to standardise mx6 config

2015-05-15 Thread Soeren Moch
On 15.05.2015 11:35, Stefano Babic wrote: > Hi Peter, Soeren, > > On 11/05/2015 20:43, Soeren Moch wrote: > >>> >>> Reviewed-by: Eric Nelson >> >> Besides my comments on patch 8/10, >> for the whole series (especially the tbs2910 part): >> >> Acked-by: Soeren Moch >> >> Thanks for this great

Re: [U-Boot] [PATCH v2 3/4] imx: mx6: add display of CPU temperature grade in print_cpuinfo()

2015-05-15 Thread Tim Harvey
On Fri, May 15, 2015 at 1:14 AM, Christian Gmeiner wrote: > 2015-05-14 7:11 GMT+02:00 Tim Harvey : >> When CONFIG_IMX6_THERMAL is defined print the CPU temperature grade info >> along with the current temperature. >> >> Before: >> CPU: Temperature 42 C >> >> After: >> CPU: Automotive tempera

Re: [U-Boot] [PATCH v2 1/2] imx: mx6: add get_cpu_speed_grade_hz func to return MHz speed grade from OTP

2015-05-15 Thread Stefano Babic
Hi Christian, On 15/05/2015 09:53, Christian Gmeiner wrote: > Hi > > 2015-05-14 7:08 GMT+02:00 Tim Harvey : >> The IMX6 has four different speed grades determined by eFUSE SPEED_GRADING >> indicated by OCOTP_CFG3[17:16] which is at 0x440 in the Fusemap Description >> Table. Return this frequency

Re: [U-Boot] [PATCH v2 3/4] imx: mx6: add display of CPU temperature grade in print_cpuinfo()

2015-05-15 Thread Stefano Babic
Hi Tim, On 15/05/2015 15:16, Tim Harvey wrote: > On Fri, May 15, 2015 at 1:14 AM, Christian Gmeiner > wrote: >> 2015-05-14 7:11 GMT+02:00 Tim Harvey : >>> When CONFIG_IMX6_THERMAL is defined print the CPU temperature grade info >>> along with the current temperature. >>> >>> Before: >>> CPU: T

Re: [U-Boot] [PATCH v2 3/4] imx: mx6: add display of CPU temperature grade in print_cpuinfo()

2015-05-15 Thread Tim Harvey
On Fri, May 15, 2015 at 6:24 AM, Stefano Babic wrote: > Hi Tim, > > On 15/05/2015 15:16, Tim Harvey wrote: >> On Fri, May 15, 2015 at 1:14 AM, Christian Gmeiner >> wrote: >>> 2015-05-14 7:11 GMT+02:00 Tim Harvey : When CONFIG_IMX6_THERMAL is defined print the CPU temperature grade info

Re: [U-Boot] [PATCH] mx6: Set shared override bit in PL310 AUX_CTRL register

2015-05-15 Thread Stefano Babic
Hi Fabio, On 11/03/2015 21:12, Fabio Estevam wrote: > From: Fabio Estevam > > Having bit 22 cleared in the PL310 Auxiliary Control register (shared > attribute override enable) has the side effect of transforming Normal > Shared Non-cacheable reads into Cacheable no-allocate reads. > > Coherent

Re: [U-Boot] [PATCH v2 3/4] imx: mx6: add display of CPU temperature grade in print_cpuinfo()

2015-05-15 Thread Fabio Estevam
Hi Tim, On Fri, May 15, 2015 at 10:31 AM, Tim Harvey wrote: > Yes, that sounds like the best approach. What were your thoughts on > enabling the second CPU: line just to display the temperature grade if > CONFIG_IMX6_THERMAL was not enabled? > > I'm surprised someone on this list hasn't already

Re: [U-Boot] [PATCH] mx6: Set shared override bit in PL310 AUX_CTRL register

2015-05-15 Thread Fabio Estevam
Hi Stefano, On Fri, May 15, 2015 at 10:35 AM, Stefano Babic wrote: > It looks like from the discussion and the following threads that a > general solution cannot be easy found. I agree with you to apply it at > least for i.MX6, and let's see if in the future we can factorize it for > other SOCs.

Re: [U-Boot] [PATCH v2 1/2] imx: mx6: add get_cpu_speed_grade_hz func to return MHz speed grade from OTP

2015-05-15 Thread Tim Harvey
On Fri, May 15, 2015 at 12:53 AM, Christian Gmeiner wrote: > Hi > > 2015-05-14 7:08 GMT+02:00 Tim Harvey : >> The IMX6 has four different speed grades determined by eFUSE SPEED_GRADING >> indicated by OCOTP_CFG3[17:16] which is at 0x440 in the Fusemap Description >> Table. Return this frequency so

Re: [U-Boot] [PATCH v2 3/4] imx: mx6: add display of CPU temperature grade in print_cpuinfo()

2015-05-15 Thread Stefano Babic
Hi Tim, On 15/05/2015 15:31, Tim Harvey wrote: >> Right. My proposal is to merge the currrent patchset, enabling for >> IMX6SX again when someone will test it. >> >> Best regards, >> Stefano Babic >> > > Stefano, > > Yes, that sounds like the best approach. What were your thoughts on > enabling

Re: [U-Boot] [PATCH v2] arm, imx6, i2c: add I2C4 for MX6DL

2015-05-15 Thread Stefano Babic
On 13/05/2015 07:50, Heiko Schocher wrote: > add I2C4 modul for MX6DL based boards. > > Signed-off-by: Heiko Schocher > > --- > checkpatch shows: > WARNING: line over 80 characters > +#define MXC_CCM_CCGR1_I2C4_SERIAL_MASK (3 << > MXC_CCM_CCGR1_I2C4_SERIAL_OFFSET) > > but the h

Re: [U-Boot] [PATCH V5 2/2] imx: mx27 move GPIO_PORTx to gpio.h

2015-05-15 Thread Simon Glass
On 14 May 2015 at 17:29, Peng Fan wrote: > These GPIO_PORTx macros should be in gpio.h, but not in imx-regs.h. > > Also, imx-regs.h and iomux-v3.h has same macro defintion for > GPIO_PORTx, and both of them are included in mxc_i2c.c(include > mxc_i2c.h). This will incur build warnings with macro r

Re: [U-Boot] [PATCH V5 1/2] i2c: mxc: refactor i2c driver and support dm

2015-05-15 Thread Simon Glass
On 14 May 2015 at 17:29, Peng Fan wrote: > 1. Introduce a new structure `struct mxc_i2c_bus`, this structure will >used for non-DM and DM. > 2. Remove `struct mxc_i2c_regs` structure, but use register offset to access >registers based on `base` entry of `struct mxc_i2c_bus`. > 3. Remove mo

Re: [U-Boot] [PATCH V2 00/13] PMIC/REGULATOR cleanup and Sandbox tests

2015-05-15 Thread Simon Glass
On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: > Hello Simon, > > This patchset fixes the build issues. It changes the last three > top commits of u-boot-dm/next. So it is rebased onto: > 4e9a6eb dm: board:samsung: power_init_board: add requirement of CONFIG_DM_PMIC > > The rebased version, ca

Re: [U-Boot] [PATCH V2 02/13] odroid: enable driver model pmic/regulator API and MAX77686 drivers

2015-05-15 Thread Simon Glass
On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: > This change enables the configs required to init and setup max77686 > regulator driver, using the new driver model pmic and regulator API. > And also changes the old pmic framework calls to the new ones. > > This commits enables: > - CONFIG_ERRN

Re: [U-Boot] [PATCH V2 03/13] dm: pmic: code cleanup of PMIC uclass driver

2015-05-15 Thread Simon Glass
On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: > The cleanup includes: > - pmic.h - fix mistakes in a few comments > - pmic operations: value 'reg_count' - redefine as function call > - fix function name: pmic_bind_childs() -> pmic_bind_children() > - pmic_bind_children: change the 'while' loo

Re: [U-Boot] [PATCH V2 04/13] dm: regulator: uclass driver code cleanup

2015-05-15 Thread Simon Glass
On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: > This cleanup includes: > - remove of the preprocessor macros which pointed to long name functions > - update of the names of some regulator uclass driver functions > - cleanup of the function regulator_autoset() > - reword of some comments of re

Re: [U-Boot] [PATCH V2 06/13] common: cmd regulator: command cleanup

2015-05-15 Thread Simon Glass
On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: > This commit cleanups the regulator command. > The first change, is adjusting "regulator dev" command to use > "regulator-name" constraint, for setting the operating device. > Thanks to this, the regulator_get() function is removed. > > This also

Re: [U-Boot] [PATCH V2 01/13] odroid: dts: add 'voltage-regulators' description to max77686 node

2015-05-15 Thread Simon Glass
On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: > Adding regulators subnode to fdt max77686 node, allows properly init > regulators by the max77686 regulator driver. This enables the complete > functionality of the regulator command. > > Signed-off-by: Przemyslaw Marczak > Acked-by: Simon Glas

Re: [U-Boot] [PATCH V2 05/13] common: cmd pmic: command cleanup

2015-05-15 Thread Simon Glass
On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: > This commit cleanups the use of function: failed(). > The new function name is: failure(), and it is used > for print errno and the errno-related message only. > > The second change is choosing PMIC device by it's name, > instead of seq number.

Re: [U-Boot] [PATCH V2 07/13] doc: driver-model: pmic-framework.txt - cleanup

2015-05-15 Thread Simon Glass
On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: > This commit cleanups the PMIC framework documentation. > > Signed-off-by: Przemyslaw Marczak > Acked-by: Simon Glass > Tested on sandbox: > Tested-by: Simon Glass > --- > Changes V2: > - none Applied to u-boot-dm, thanks! ___

Re: [U-Boot] [PATCH V2 13/13] sandbox: defconfig: enable support of sandbox PMIC drivers

2015-05-15 Thread Simon Glass
On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: > This commit enables: > - emulated i2c PMIC driver > - sandbox PMIC I/O driver > - sandbox PMIC's regulator driver > > Signed-off-by: Przemyslaw Marczak > Acked-by: Simon Glass > Tested on sandbox: > Tested-by: Simon Glass > --- > Changes V2:

Re: [U-Boot] [PATCH V2 08/13] sandbox: i2c: search child emul dev and check its uclass id

2015-05-15 Thread Simon Glass
On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: > The function get_emul() in sandbox i2c bus driver, always returns > first child as i2c emul device. This may only work for i2c devices > with a single child, which is an only i2c emul device. > > In case when i2c device has more than one child (

Re: [U-Boot] [PATCH V2 10/13] test: dm: add sandbox PMIC framework tests

2015-05-15 Thread Simon Glass
On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: > This change adds new file to sandbox driver model test environment. > The file is: test/dm/power.c, and it includes tests for PMIC framework, > which includes PMIC uclass and REGULATOR uclass. > > All tests are based od Sandbox PMIC emulated dev

Re: [U-Boot] [PATCH V2 09/13] sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator

2015-05-15 Thread Simon Glass
On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: > This commit adds emulation of sandbox PMIC device, which includes: > - PMIC I2C emulation driver > - PMIC I/O driver (UCLASS_PMIC) > - PMIC regulator driver (UCLASS_REGULATOR) > > The sandbox PMIC has 12 significant registers and 4 as padding to

Re: [U-Boot] [PATCH V2 11/13] test: dm: test.dts - move to sandbox dts directory

2015-05-15 Thread Simon Glass
On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: > The file test.dts from driver model test directory, > was compiled by call dtc in script: test/dm/test-dm.sh. > > This doesn't allow for including of dtsi files and using > of C preprocessor routines in this dts file. > > Since the mentioned scr

Re: [U-Boot] [PATCH V2 12/13] sandbox: dts: add sandbox_pmic.dtsi and include it to sandbox.dts and test.dts

2015-05-15 Thread Simon Glass
On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: > This commit adds dtsi file for Sandbox PMIC. > It fully describes the PMIC by: > - i2c emul node - with a default settings of 16 registers > - 2x buck regulator nodes > - 2x ldo regulator nodes > > The default register settings are set with prep

Re: [U-Boot] [PATCH v1 1/3] add boot_get_loadables() to load listed images

2015-05-15 Thread Simon Glass
Hi Karl, On 13 May 2015 at 06:53, Karl Apsite wrote: > From: Karl Apsite > > Added a trimmed down instance of boot_get_() to satisfy the > minimum requierments of the added feature. The function follows the > normal patterns set by other boot_get's, which should make it a > bit easier to combin

Re: [U-Boot] [PATCH v1 3/3] Remove the bootm_find_other() wrapper

2015-05-15 Thread Simon Glass
Hi Karl, On 13 May 2015 at 06:54, Karl Apsite wrote: > The bootm_find_other() function was only called once, and ran a quick > check before it called bootm_find_images(). This wrapper function was > removed by moving the conditional to do_bootm_states (where find_other > was being called) and cal

Re: [U-Boot] [PATCH v1 2/3] Combine bootm_find_ functions together

2015-05-15 Thread Simon Glass
Hi Karl, On 13 May 2015 at 06:53, Karl Apsite wrote: > bootm_find_ramdisk_fdt() renamed to bootm_find_images() for readability. > > The function bootm_find_ramdisk_fdt() appears to be a simple wrapper for > bootm_find_ramdisk(), bootm_find_fdt(), and now bootm_find_loadables(). > I didn't see any

Re: [U-Boot] [PATCH v1 3/3] Remove the bootm_find_other() wrapper

2015-05-15 Thread Simon Glass
Hi Karl, On 15 May 2015 at 07:58, Simon Glass wrote: > Hi Karl, > > On 13 May 2015 at 06:54, Karl Apsite wrote: >> The bootm_find_other() function was only called once, and ran a quick >> check before it called bootm_find_images(). This wrapper function was >> removed by moving the conditional t

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

2015-05-15 Thread Simon Glass
Hi Tom, This includes Przemyslaw's PMIC framework for driver model and the rest of Han's OHCI work which was requested to come through the driver model tree instead of USB, The MXC GPIO_PORTx patch (and its friend) were sent only yesterday, but the v5 version just includes a change requested afte

Re: [U-Boot] [PATCH 00/19] imx: ventana: misc updates

2015-05-15 Thread Stefano Babic
Hi Tim, On 09/05/2015 03:28, Tim Harvey wrote: > This collection of patches comprises a set of various updates I've been > on for Ventana. > > In summary: > - enable driver model > - enable gpio command > - enable dm-serial > - enable thermal support > - fixup for GW522x PCI enumeration > -

Re: [U-Boot] [PATCH v2 1/2] imx: mx6: add get_cpu_speed_grade_hz func to return MHz speed grade from OTP

2015-05-15 Thread Christian Gmeiner
2015-05-15 15:20 GMT+02:00 Stefano Babic : > Hi Christian, > > On 15/05/2015 09:53, Christian Gmeiner wrote: >> Hi >> >> 2015-05-14 7:08 GMT+02:00 Tim Harvey : >>> The IMX6 has four different speed grades determined by eFUSE SPEED_GRADING >>> indicated by OCOTP_CFG3[17:16] which is at 0x440 in the

Re: [U-Boot] [PATCH 08/19] imx: ventana: config: use MMC SPL RAW support

2015-05-15 Thread Stefano Babic
Hi Tim, On 13/05/2015 01:23, Tim Harvey wrote: > On Fri, May 8, 2015 at 6:36 PM, Fabio Estevam wrote: >> Hi Tim, >> >> On Fri, May 8, 2015 at 10:28 PM, Tim Harvey wrote: >>> Switch to MMC RAW support for SPL. We will place the uboot.img at 69KB. >>> >>> Signed-off-by: Tim Harvey >>> --- >>> in

Re: [U-Boot] [PATCH v2 1/2] imx: mx6: add get_cpu_speed_grade_hz func to return MHz speed grade from OTP

2015-05-15 Thread Stefano Babic
Hi Christian, On 15/05/2015 16:26, Christian Gmeiner wrote: >> Function does not returns the value of the fuse, else it should returns >> val. The value is parsed for consistency, and if it is not, 0 means a >> failure. IMHO this interpretation is correct - I would agree with you >> only if the r

Re: [U-Boot] [PATCH v1 0/3] New tag for Flattened Image Trees (FIT) - Booting Xen from a FIT.

2015-05-15 Thread Karl Apsite
Hi Simon, I read your initial comments, and I immediately realized I made a mistake. I had initially submitted my series on a local branch, but my mailing client didn't send out anything past the cover letter. (I think Patman had CC'd too many people, and my mailer was preventing spam) When you

Re: [U-Boot] [PATCH] imx: ventana: use stack relocation

2015-05-15 Thread Stefano Babic
Hi Tim, On 14/05/2015 15:22, Tim Harvey wrote: > Certain features we desire require a larger stack than is available by using > iRAM (most notably for us, env_mmc). Relocate the stack to DRAM so that > we can use these features. > > Signed-off-by: Tim Harvey > --- > board/gateworks/gw_ventana/g

Re: [U-Boot] [PATCH v1 0/3] New tag for Flattened Image Trees (FIT) - Booting Xen from a FIT.

2015-05-15 Thread Simon Glass
Hi Karl, On 15 May 2015 at 08:33, Karl Apsite wrote: > > Hi Simon, > > I read your initial comments, and I immediately realized I made a mistake. I > had initially submitted my series on a local branch, but my mailing client > didn't send out anything past the cover letter. (I think Patman had

Re: [U-Boot] [PATCH v2] arm, imx6: add support for aristainetos2 board

2015-05-15 Thread Stefano Babic
Hi Heiko, On 14/05/2015 08:00, Heiko Schocher wrote: > add support for imx6dl based aristainetos2 board > > U-Boot 2015.04-rc5-00066-g60f6ed4 (Apr 10 2015 - 08:46:27) > > CPU: Freescale i.MX6DL rev1.1 at 792 MHz > Reset cause: WDOG > Board: aristaitenos2 >Watchdog enabled > I2C: read

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

2015-05-15 Thread Stefano Babic
Hi Tom, please pull from u-boot-imx, thanks ! The following changes since commit ace97d26176a3ebc9ec07738450de93eea35975c: Merge branch 'zynq' of git://www.denx.de/git/u-boot-microblaze (2015-04-29 06:46:33 -0400) are available in the git repository at: git://www.denx.de/git/u-boot-imx.gi

Re: [U-Boot] [PATCH 20/20] tegra: config: nyan-big: Add options required by Chrome OS boot

2015-05-15 Thread Stephen Warren
On 05/13/2015 07:56 AM, Simon Glass wrote: Hi Stephen, On 25 February 2015 at 16:31, Stephen Warren wrote: On 02/17/2015 03:29 PM, Simon Glass wrote: We need to match the device tree in the FIT with the U-Boot model so we can automatically select the right device tree. Also adjust the load a

Re: [U-Boot] [PATCH 18/20] Add Chrome OS config header

2015-05-15 Thread Stephen Warren
On 05/13/2015 07:19 AM, Simon Glass wrote: Hi Stephen, On 25 February 2015 at 16:28, Stephen Warren wrote: On 02/17/2015 03:29 PM, Simon Glass wrote: From: Doug Anderson This header includes useful scripts which can be used with any board that can boot Chrome OS. In particular, 'run nvbo

[U-Boot] [PATCH 5/6] x86: Add CONFIG_LBA48 and remove CONFIG_ATAPI in x86-common.h

2015-05-15 Thread Bin Meng
Enable CONFIG_LBA48 to support large disks. CONFIG_ATAPI is only needed by cmd_ide.c which is not common for modern x86 targets, hence remove it. Signed-off-by: Bin Meng --- include/configs/x86-common.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/configs/x86-

[U-Boot] [PATCH 4/6] cmd_ide: Eliminate build warnings in atapi_inquiry()

2015-05-15 Thread Bin Meng
Elinimate the following build warning in atapi_inquiry(): "warning: assignment from incompatible pointer type [enabled by default]" Signed-off-by: Bin Meng --- common/cmd_ide.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/cmd_ide.c b/common/cmd_ide.c index

[U-Boot] [PATCH 3/6] drivers: block: Remove the ata_piix driver

2015-05-15 Thread Bin Meng
This driver was originally added to support the native IDE mode for Intel chipset, however it has some bugs like not supporting ATAPI devices, endianess issue, or even broken build when CONFIG_LAB48. Given no board is using this driver as of today, rather than fixing all these issues we just remove

[U-Boot] [PATCH 1/6] pci: Allow debug message output in pci_auto.c

2015-05-15 Thread Bin Meng
Remove the '#undef DEBUG' in pci_auto.c so that we can enable debug message output. Signed-off-by: Bin Meng --- drivers/pci/pci_auto.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/pci_auto.c b/drivers/pci/pci_auto.c index e8da977..43965d8 100644 --- a/drivers/pci/pci_auto.c ++

[U-Boot] [PATCH 6/6] x86: qemu: Add ATA/SATA support

2015-05-15 Thread Bin Meng
Enable legacy IDE support on the pc target and AHCI support on the q35 target. Default configuration is to support the pc target. Signed-off-by: Bin Meng --- include/configs/qemu-x86.h | 26 +- include/pci_ids.h | 1 + 2 files changed, 26 insertions(+), 1 delet

[U-Boot] [PATCH 2/6] pci: Do not skip legacy IDE device configutation

2015-05-15 Thread Bin Meng
The legacy IDE device has a BAR4 (Bus Master Interface BAR) which needs to be configured. Signed-off-by: Bin Meng --- drivers/pci/pci_auto.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/pci/pci_auto.c b/drivers/pci/pci_auto.c index 43965d8..7c10983 100644 --- a/dri

[U-Boot] [PATCH v2 08/19] imx: ventana: config: use MMC SPL RAW support

2015-05-15 Thread Tim Harvey
Switch to MMC RAW support for SPL. We will place the uboot.img at 69KB. Signed-off-by: Tim Harvey --- v2: remove unnecessary CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR define Signed-off-by: Tim Harvey --- include/configs/gw_ventana.h | 4 1 file changed, 4 deletions(-) diff --git a/include/

[U-Boot] [PATCH v2 09/19] imx: ventana: (cosmetic) clean up size defines for improved readability

2015-05-15 Thread Tim Harvey
Use the SZ_1M and SZ_1K macros from linuz/sizes.h for improved readability Signed-off-by: Tim Harvey --- v2: no changes - rebased --- include/configs/gw_ventana.h | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/include/configs/gw_ventana.h b/include/c

[U-Boot] [PATCH v2 17/19] imx: ventana: add pmic_setup to SPL

2015-05-15 Thread Tim Harvey
We need to do any PMIC setup in the SPL if we are to bypass U-Boot for falcon mode. Signed-off-by: Tim Harvey --- v2: rebased --- board/gateworks/gw_ventana/gw_ventana_spl.c | 3 +++ include/configs/gw_ventana.h| 1 + 2 files changed, 4 insertions(+) diff --git a/board/gateworks

Re: [U-Boot] [PATCH V2 00/13] PMIC/REGULATOR cleanup and Sandbox tests

2015-05-15 Thread Przemyslaw Marczak
Hello Simon, On 05/15/2015 03:55 PM, Simon Glass wrote: On 13 May 2015 at 05:38, Przemyslaw Marczak wrote: Hello Simon, This patchset fixes the build issues. It changes the last three top commits of u-boot-dm/next. So it is rebased onto: 4e9a6eb dm: board:samsung: power_init_board: add requir

Re: [U-Boot] [PATCH 00/19] imx: ventana: misc updates

2015-05-15 Thread Tim Harvey
On Fri, May 15, 2015 at 7:25 AM, Stefano Babic wrote: > Hi Tim, > > On 09/05/2015 03:28, Tim Harvey wrote: >> This collection of patches comprises a set of various updates I've been >> on for Ventana. >> >> In summary: >> - enable driver model >> - enable gpio command >> - enable dm-serial >>

Re: [U-Boot] [PATCH 00/19] imx: ventana: misc updates

2015-05-15 Thread Stefano Babic
Hi Tim, On 15/05/2015 18:30, Tim Harvey wrote: >>> >> >> Patches 1-7, 10-16, 18 applied to u-boot-imx, thanks ! >> >> Best regards, >> Stefano Babic >> > > Stefano, > > Thanks - I just posted a v2 of patch 8 and a rebased 9 and 17 > (assuming that is why you skipped those two). > > You were ri

[U-Boot] Rebase on u-boot-imx !

2015-05-15 Thread Stefano Babic
Hi i.MXlers, rather after Tom merged Simon's DM branch, u-boot-imx had a lot of conflicts and it could not be pulled. I had to rebase it on current Tom's development tree, I apologize for the inconvenients. Best regards, Stefano Babic -- =

Re: [U-Boot] [PATCH v2 1/2] hummingboard: Remove mx6solo specific support

2015-05-15 Thread Fabio Estevam
Hi Stefano, On Fri, May 15, 2015 at 8:07 AM, Stefano Babic wrote: > Hi Fabio, > > On 11/05/2015 18:02, Fabio Estevam wrote: >> Hummingboard dual, dual-lite and solo are now supported via SPL mechanism. >> >> Remove the previous hummingboard support, which does not use SPL and >> supported >> onl

Re: [U-Boot] [PATCH v2 1/2] hummingboard: Remove mx6solo specific support

2015-05-15 Thread Stefano Babic
Hi Fabio, On 15/05/2015 19:52, Fabio Estevam wrote: > Hi Stefano, > > On Fri, May 15, 2015 at 8:07 AM, Stefano Babic wrote: >> Hi Fabio, >> >> On 11/05/2015 18:02, Fabio Estevam wrote: >>> Hummingboard dual, dual-lite and solo are now supported via SPL mechanism. >>> >>> Remove the previous humm

Re: [U-Boot] [PATCH 2/2] sunxi: Make dram odt-en configurable through Kconfig for A33 based boards

2015-05-15 Thread Hans de Goede
Hi, On 14-05-15 20:41, Ian Campbell wrote: On Thu, 2015-05-14 at 18:55 +0200, Hans de Goede wrote: +config DRAM_ODT_EN + int "sunxi dram odt enable" + default 0 + ---help--- + Set this to 1 to enable dram odt (on die termination) Why is this an int rather than a bool?

[U-Boot] [PATCH v2] sunxi: Make dram odt-en configurable through Kconfig for A33 based boards

2015-05-15 Thread Hans de Goede
Some A33 based boards use odt, while others do not, so make odt_en configurable for sun8i too by moving the existing Kconfig option for it out of the #if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I block it was in. Signed-off-by: Hans de Goede --- Changes in v2: -Use existing DRAM_ODT_EN Kconfig block

  1   2   >