Re: [PATCH 4/7] rockchip: Remove ARCH= references from documentation

2020-05-19 Thread klaus . goger
On 2020-05-19 16:51, Tom Rini wrote: When building U-Boot we select the architecture via Kconfig and not ARCH being passed in via the environment or make cmdline. Cc: Kever Yang Cc: Simon Glass Cc: Philipp Tomsich Cc: Klaus Goger Cc: Jagan Teki Signed-off-by: Tom Rini --- As an aside

Re: [U-Boot] [PATCH] rockchip: rk3399-puma: support Gigadevice SPI-NOR flash

2019-02-03 Thread klaus . goger
onfig @@ -67,6 +67,7 @@ CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_SDMA=y CONFIG_MMC_SDHCI_ROCKCHIP=y CONFIG_SPI_FLASH=y +CONFIG_SPI_FLASH_GIGADEVICE=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y Reviewed-by: Klaus Goger ___ U

Re: [U-Boot] about rk3399 boot speed

2018-12-03 Thread klaus . goger
Hi Kever, I can confirm that current master behaves the same on Puma. For a fix please take a look at: https://patchwork.ozlabs.org/patch/1003412/ On 2018-12-04 04:04, Kever Yang wrote: Hi Philipp,     When I test on firefly-rk3399 with latest mainline U-Boot, it boots very very slow, and it'

Re: [U-Boot] [RESENT PATCH v3] rockchip: update emmc/sd index for distro boot order

2018-11-29 Thread Klaus Goger
On 29.11.2018, at 23:01, Klaus Goger > wrote: > > Adding Wadim as he will most likely has something to add to the discussion > too. > > Kever, > > I understand your SBC viewpoint especially in terms of developer. But as > Philipp already laid out the usage in the SoM

Re: [U-Boot] [RESENT PATCH v3] rockchip: update emmc/sd index for distro boot order

2018-11-29 Thread Klaus Goger
Adding Wadim as he will most likely has something to add to the discussion too. Kever, I understand your SBC viewpoint especially in terms of developer. But as Philipp already laid out the usage in the SoM and enduser products might be different and changing defaults may have a big impact. So w

Re: [U-Boot] [PATCH v1] rockchip: utilize CONFIG_DEFAULT_FDT_FILE

2018-06-22 Thread klaus . goger
> On 22.06.2018, at 16:23, Vagrant Cascadian wrote: > > On 2018-05-27, Vagrant Cascadian wrote: >> On 2018-05-25, Klaus Goger wrote: >>> Currently the fdtfile environment variable is set to >>> CONFIG_DEFAULT_DEVICE_TREE which is іnternally used as U-Boot devi

Re: [U-Boot] [PATCH] sunxi: use CONFIG_DEFAULT_FDT_FILE everywhere

2018-05-31 Thread klaus . goger
> On 01.06.2018, at 02:59, Martin Kelly wrote: > > Currently, sunxi-common.h ignores CONFIG_DEFAULT_FDT_FILE and assumes > the kernel fdtfile and the u-boot devicetree names are the same. > Although this is typically the case, sometimes you might want to > customize one of these differently, so

Re: [U-Boot] [PATCH] sunxi: allow CONFIG_DEFAULT_FDT_FILE override

2018-05-31 Thread klaus . goger
> On 31.05.2018, at 21:48, Martin Kelly wrote: > > On 05/31/2018 11:15 AM, klaus.go...@theobroma-systems.com wrote: >> Hi Martin, >>> On 31.05.2018, at 19:49, Martin Kelly wrote: >>> >>> On 05/23/2018 11:34 AM, Martin Kelly wrote: On 05/17/2018 05:01 AM, Maxime Ripard wrote: > On Tue

Re: [U-Boot] [PATCH] sunxi: allow CONFIG_DEFAULT_FDT_FILE override

2018-05-31 Thread klaus . goger
Hi Martin, > On 31.05.2018, at 19:49, Martin Kelly wrote: > > On 05/23/2018 11:34 AM, Martin Kelly wrote: >> On 05/17/2018 05:01 AM, Maxime Ripard wrote: >>> On Tue, May 01, 2018 at 05:46:41PM -0700, Martin Kelly wrote: Currently, sunxi-common.h ignores CONFIG_DEFAULT_FDT_FILE and assumes >

Re: [U-Boot] [PATCH v1] rockchip: utilize CONFIG_DEFAULT_FDT_FILE

2018-05-27 Thread klaus . goger
> On 27.05.2018, at 21:16, Vagrant Cascadian wrote: > > On 2018-05-25, Klaus Goger wrote: >> Currently the fdtfile environment variable is set to >> CONFIG_DEFAULT_DEVICE_TREE which is іnternally used as U-Boot devicetree >> source. The OS can use a different filena

[U-Boot] [PATCH v1] rockchip: utilize CONFIG_DEFAULT_FDT_FILE

2018-05-25 Thread Klaus Goger
-Boot via menuconfig the behaviour someone would expect. Signed-off-by: Klaus Goger --- configs/chromebit_mickey_defconfig | 1 + configs/chromebook_jerry_defconfig | 1 + configs/chromebook_minnie_defconfig | 1 + configs/evb-px5_defconfig | 1 + configs/evb-rk3036_defconfig

Re: [U-Boot] U-Boot thumb interlink patches

2018-05-25 Thread klaus . goger
Hi Tom, > On 25.05.2018, at 14:01, Tom Rini wrote: > > Hey guys, > > So, I want to be sure that I get all of the patches that we need in > order to fix the thumb interlink problems on older ARM cores applied. > > I believe that we have: > https://patchwork.ozlabs.org/patch/905299/ Applied on

Re: [U-Boot] Bug#897671: u-boot does not work on sheevaplug

2018-05-09 Thread klaus . goger
> On 09.05.2018, at 10:19, Markus Krebs wrote: > > Am 08.05.2018 um 22:54 schrieb Vagrant Cascadian: >> On 2018-05-08, Vagrant Cascadian wrote: >>> On 2018-05-05, Tom Rini wrote: On Sat, May 05, 2018 at 04:04:08PM -0700, Vagrant Cascadian wrote: > Markus Krebs discovered that the sheev

Re: [U-Boot] [PATCH 2/5] ARM: arm926ejs: fix lowlevel_init call

2018-05-07 Thread klaus . goger
> On 07.05.2018, at 10:25, Chris Packham wrote: > > Hi Mans, Stefano, > > On Fri, Apr 27, 2018 at 9:00 PM Stefano Babic wrote: > >> On 21/04/2018 17:11, Mans Rullgard wrote: >>> The code attempts to preserve the value of LR by storing it in R12/IP >>> across the lowevel_init() call. However

Re: [U-Boot] [PATCH 2/3] rockchip: add support for veyron-speedy (ASUS Chromebook C201)

2018-05-06 Thread klaus . goger
> On 06.05.2018, at 16:25, Marty E. Plummer wrote: > > This adds support for the ASUS C201, a RK3288-based clamshell > device. The device tree comes from linus's linux tree at > 87ef12027b9b1dd0e0b12cf311fbcb19f9d92539. The SDRAM parameters > are for 4GB Samsung LPDDR3, decoded from coreboot's >

Re: [U-Boot] [PATCH 3/3] rockchip: fix incorrect detection of ram size

2018-05-06 Thread klaus . goger
> On 06.05.2018, at 22:03, Marty E. Plummer wrote: > > On Sun, May 06, 2018 at 02:08:25PM -0500, Marty E. Plummer wrote: >>> On Sun, May 06, 2018 at 08:39:23PM +0200, klaus.go...@theobroma-systems.com >>> wrote: On 06.05.2018, at 16:25, Marty E. Plummer wrote: + * we use th

Re: [U-Boot] [PATCH 3/3] rockchip: fix incorrect detection of ram size

2018-05-06 Thread klaus . goger
CC Philipp and Simon due maintainership (you may want to use get_maintainer.pl in the future) and Kever as the original author of the file. > On 06.05.2018, at 16:25, Marty E. Plummer wrote: > > Taken from coreboot's src/soc/rockchip/rk3288/sdram.c > > Without this change, my u-boot build for

Re: [U-Boot] [PATCH] rockchip: update emmc/sd index

2018-05-04 Thread klaus . goger
Hi Kever > On 04.05.2018, at 10:50, Kever Yang wrote: > > We define emmc/sdcard index in dts alias, emmc is 0 and sdcard is 1. The commit message is a bit misleading at first. When reading it i thought you update or add dts alias indexes. But you actually change the default boot order of distro

[U-Boot] [PATCH v3 2/2] arm: Make arch specific memcpy thumb-safe.

2018-04-26 Thread Klaus Goger
-mode enabled. Signed-off-by: Klaus Goger Signed-off-by: Christoph Muellner --- Changes in v3: None Changes in v2: - added memcpy patch to the series arch/arm/lib/memcpy.S | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/lib/memcpy.S b/arch/arm/lib/memcpy.S

[U-Boot] [PATCH v3 0/2] Fix thumb interwork in assembly code

2018-04-26 Thread Klaus Goger
this patch Changes in v2: - use bl instead of blx to call lowlevel_init - remove mxs tag as it apply to all arm926ejs platforms - added memcpy patch to the series Klaus Goger (2): arm: preserve lr correctly in arm926ejs startup code arm: Make arch specific memcpy thumb-safe. arch/arm/cpu

[U-Boot] [PATCH v3 1/2] arm: preserve lr correctly in arm926ejs startup code

2018-04-26 Thread Klaus Goger
l definitely be triggered by building it in thumb. Using r10 should be safe in any case as we are startup code and not called by any C-function and no stack is set up. Signed-off-by: Klaus Goger Signed-off-by: Christoph Muellner --- Changes in v3: - reword commit message as it isn't thumb specific

Re: [U-Boot] [PATCH v2 1/2] arm: make arm926ejs startup code thumb compatible

2018-04-20 Thread klaus . goger
> On 20.04.2018, at 23:55, Marek Vasut wrote: > > On 04/20/2018 09:51 PM, Klaus Goger wrote: >> When building the mxs platform in thumb mode gcc generates code using >> the intra procedure call scratch register (ip/r12) for the calling the >> lowlevel_init functi

[U-Boot] [PATCH v2 0/2] While trying to compile u-boot in thumb due space constraints on a mxs

2018-04-20 Thread Klaus Goger
CONFIG_USE_ARCH_MEMCPY on our mxs platform the speedup for memcopy was about 100%. Changes in v2: - use bl instead of blx to call lowlevel_init - remove mxs tag as it apply to all arm926ejs platforms Klaus Goger (2): arm: make arm926ejs startup code thumb compatible arm: Make arch specific memcpy thumb

[U-Boot] [PATCH v2 2/2] arm: Make arch specific memcpy thumb-safe.

2018-04-20 Thread Klaus Goger
-mode enabled. Signed-off-by: Klaus Goger Signed-off-by: Christoph Muellner --- Changes in v2: None arch/arm/lib/memcpy.S | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/lib/memcpy.S b/arch/arm/lib/memcpy.S index 588b3f8971..9e9a193c2a 100644 --- a/arch/arm

[U-Boot] [PATCH v2 1/2] arm: make arm926ejs startup code thumb compatible

2018-04-20 Thread Klaus Goger
ll Standard for the ARM Architecture" by ARM subroutines have to preserve the contents of register r4-r8, r10, r11 and SP. So using r10 instead of r12 should be save. Signed-off-by: Klaus Goger Signed-off-by: Christoph Muellner --- Changes in v2: - use bl instead of blx to call lowlevel

Re: [U-Boot] [PATCH v1] arm: mxs: make startup code thumb compatible

2018-04-19 Thread klaus . goger
> On 18.04.2018, at 22:02, Marek Vasut wrote: > > On 04/18/2018 06:25 PM, Klaus Goger wrote: >> When building the mxs platform in thumb mode gcc generates code using >> the intra procedure call scratch register (ip/r12) for the calling the >> lowlevel_init functi

[U-Boot] [PATCH v1] arm: mxs: make startup code thumb compatible

2018-04-18 Thread Klaus Goger
ll Standard for the ARM Architecture" by ARM subroutines have to preserve the contents of register r4-r8, r10, r11 and SP. So using r10 instead of r12 should be save. Signed-off-by: Klaus Goger Signed-off-by: Christoph Muellner --- arch/arm/cpu/arm926ejs/start.S | 8 1 file

[U-Boot] [PATCH v1] rockchip: defconfig: puma-rk3399: enable RTC

2018-04-13 Thread Klaus Goger
commit: 52280315a4 ("rtc: rewrite isl1208 to support DM") enables us to use the on-module RTC emulation with the rk3399 device model i2c driver. Signed-off-by: Klaus Goger --- configs/puma-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/puma-rk3399_d

[U-Boot] [PATCH v3] rtc: rewrite isl1208 to support DM

2018-03-19 Thread Klaus Goger
Adds devicemodel support to the ISL1208 driver. This patch drops the non-dm API as no board was using it anyway. Also add it to Kconfig. Signed-off-by: Klaus Goger Reviewed-by: Philipp Tomsich Reviewed-by: Simon Glass --- Changes in v3: - Actually adding the changed files before submitting

[U-Boot] [PATCH v2] rtc: rewrite isl1208 to support DM

2018-03-19 Thread Klaus Goger
Adds devicemodel support to the ISL1208 driver. This patch drops the non-dm API as no board was using it anyway. Also add it to Kconfig. Signed-off-by: Klaus Goger Reviewed-by: Philipp Tomsich Reviewed-by: Simon Glass --- Changes in v2: - Reword of Kconfig help text drivers/rtc/Kconfig

Re: [U-Boot] rockchip: rk3399: set fdtfile

2018-03-19 Thread klaus . goger
But at the moment this only applies for rk3399-firefly (on Linux). Mark, where would one find the devicetrees included in OpenBSD? I looked in sys/arch/amd64 but couldn’t find any. Anyhow, I’m fine with that change. Tested-by: Klaus Goger — Klaus ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH v1] rtc: rewrite isl1208 to support DM

2018-03-18 Thread Klaus Goger
Adds devicemodel support to the ISL1208 driver. This patch drops the non-dm API as no board was using it anyway. Also add it to Kconfig. Signed-off-by: Klaus Goger --- drivers/rtc/Kconfig | 7 +++ drivers/rtc/isl1208.c | 141 ++ 2 files

[U-Boot] [PATCH v1 1/2] rockchip: pinctrl: rk3399: fix GPIO2B1 and GPIO2B2 shift value

2018-03-12 Thread Klaus Goger
From: Philipp Tomsich The shift values for GPIO2B1 and GPIO2B2 had in fact referred to GPIO2B0 and GPIO2B1, respectively. This substitutes the correct values. Signed-off-by: Philipp Tomsich Signed-off-by: Klaus Goger --- arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 4 ++-- 1 file

[U-Boot] [PATCH v1 2/2] rockchip: pinctrl: rk3399: add support for I2C[123467]

2018-03-12 Thread Klaus Goger
From: Philipp Tomsich This adds support for the (to date unsupported) I2C controllers 1~4 and 6~7 (i.e. now all controllers except I2C5, which is not accessible on the RK3399-Q7, are supported by pinctrl). Signed-off-by: Philipp Tomsich Tested-by: Klaus Goger Signed-off-by: Klaus Goger

[U-Boot] [PATCH v1 0/2] Add pinctrl support for RK3399 I2C[123467]

2018-03-12 Thread Klaus Goger
This patch series adds support for the I2C controller 1-4 and 6-7 Philipp Tomsich (2): rockchip: pinctrl: rk3399: fix GPIO2B1 and GPIO2B2 shift value rockchip: pinctrl: rk3399: add support for I2C[123467] arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 34 +- drivers/pinctrl/r

[U-Boot] [PATCH] rockchip: add text_offset to kernel_addr_r on aarch64 platforms

2018-02-18 Thread Klaus Goger
assume a text_offset of 0x8 for most cases, all others will be handled by booti_setup() anyway. Signed-off-by: Klaus Goger --- include/configs/rk3328_common.h | 2 +- include/configs/rk3399_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs

[U-Boot] [PATCH] spl: include timezone in banner

2018-01-03 Thread Klaus Goger
Include the timezone in the SPL banner so the timestamp matches with that from u-boot proper. Signed-off-by: Klaus Goger Reviewed-by: Philipp Tomsich --- I know this is kind of a nitpick patch and we don't really have any space to waste in SPL. But the inconsistency annoyed me after wa

[U-Boot] [PATCH] cmd: pmic: update help description

2018-01-03 Thread Klaus Goger
Change help description to match the style of the other U-Boot commands and get rid of the leading whitespace. Signed-off-by: Klaus Goger --- cmd/pmic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/pmic.c b/cmd/pmic.c index 970767cdfa..7bf23fb2a9 100644 --- a/cmd

[U-Boot] [PATCH] rockchip: move CONFIG_ENV_SIZE and CONFIG_ENV_OFFSET to Kconfig

2017-12-11 Thread Klaus Goger
a defconfig with CONFIG_IS_IN_MMC and change it to CONFIG_IS_IN_SPI_FLASH via menuconfig, ENV_SIZE and ENV_OFFSET will not be changed to the correct values as defconfig will already have set them to the default values of CONFIG_IS_IN_MMC in .config. Signed-off-by: Klaus Goger --- board

[U-Boot] [PATCH] rockchip: board: puma-rk3399: define ENV_SIZE for SPI FLASH

2017-12-07 Thread Klaus Goger
saveenv overwrites the FIT image. Therefore we now redefine CONFIG_ENV_SIZE if build for ENV_IS_IN_SPI_FLASH. Signed-off-by: Klaus Goger --- include/configs/puma_rk3399.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/puma_rk3399.h b/include/configs/puma_rk3399.h index

[U-Boot] [PATCH v4 2/2] rockchip: configs: use rockchip-common.h for rk3368

2017-10-06 Thread Klaus Goger
rockchip-common.h already defines values that are missing from rk3368_common.h For example BOOT_TARGET_DEVICES was defined empty and therefore distroboot had no boot targets. Signed-off-by: Klaus Goger Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v4: None Changes in

[U-Boot] [PATCH v4 1/2] rockchip: configs: only add available BOOT_TARGET_DEVICES

2017-10-06 Thread Klaus Goger
BOOT_TARGET_DEVICES should only be added if the corresponding u-boot command is enabled. Signed-off-by: Klaus Goger Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v4: - rebase on mаster Changes in v3: - Use CONFIG_IS_ENABLED macro instead of #ifdefs - Add missing else

[U-Boot] [PATCH v3 2/2] rockchip: configs: use rockchip-common.h for rk3368

2017-10-06 Thread Klaus Goger
rockchip-common.h already defines values that are missing from rk3368_common.h For example BOOT_TARGET_DEVICES was defined empty and therefore distroboot had no boot targets. Signed-off-by: Klaus Goger Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v3: None Changes in

[U-Boot] [PATCH v3 1/2] rockchip: configs: only add available BOOT_TARGET_DEVICES

2017-10-06 Thread Klaus Goger
BOOT_TARGET_DEVICES should only be added if the corresponding u-boot command is enabled. Signed-off-by: Klaus Goger Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v3: - Use CONFIG_IS_ENABLED macro instead of #ifdefs - Add missing else path Changes in v2: - Add patch

[U-Boot] [PATCH v2 2/2] rockchip: configs: use rockchip-common.h for rk3368

2017-10-06 Thread Klaus Goger
rockchip-common.h already defines values that are missing from rk3368_common.h For example BOOT_TARGET_DEVICES was defined empty and therefore distroboot had no boot targets. Signed-off-by: Klaus Goger Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- Changes in v2: None include

[U-Boot] [PATCH v2 1/2] rockchip: configs: only add available BOOT_TARGET_DEVICES

2017-10-06 Thread Klaus Goger
BOOT_TARGET_DEVICES should only be added if the corresponding u-boot command is enabled. Signed-off-by: Klaus Goger --- Changes in v2: - Add patch to series to prevent build errors if boards don't enable the required u-boot command for distroboot include/configs/rockchip-common.h

[U-Boot] [PATCH] rockchip: configs: use rockchip-common.h for rk3368

2017-10-06 Thread Klaus Goger
rockchip-common.h already defines values that are missing from rk3368_common.h For example BOOT_TARGET_DEVICES was defined empty and therefore distroboot had no boot targets. Signed-off-by: Klaus Goger --- include/configs/rk3368_common.h | 6 ++ 1 file changed, 2 insertions(+), 4

[U-Boot] [PATCH] rockchip: configs: fix typo in BOOT_TARGET_DEVICES

2017-10-06 Thread Klaus Goger
dchp should be dhcp. fixed copy-paste versions too. Signed-off-by: Klaus Goger --- include/configs/rockchip-common.h | 4 ++-- include/configs/tinker_rk3288.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip

[U-Boot] [PATCH] dm: ofnode: query correct property in livetree ofnode_get_addr_size

2017-09-20 Thread Klaus Goger
h livetree. spi_flash_decode_fdt checks for memory-map and will not fail with livetree even if the property does not exist. Signed-off-by: Klaus Goger Reviewed-by: Philipp Tomsich --- drivers/core/ofnode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/core/ofnode.c

[U-Boot] [PATCH] rockchip: puma_rk3399: increase serialno_str size

2017-09-15 Thread Klaus Goger
Increase serialno_str to 17 bytes so it can hold the 16 bytes long serial nummer and the terminating null byte added by snprintf. Signed-off-by: Klaus Goger --- board/theobroma-systems/puma_rk3399/puma-rk3399.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board

[U-Boot] [PATCH v2 2/2] rockchip: board: puma_rk3399: update README flash instructions

2017-09-11 Thread Klaus Goger
Puma supports other boot sources then SD-Card. Update README to include the required steps. * how to package a SPI-NOR SPL * how to flash eMMC with rkdeveloptool Signed-off-by: Klaus Goger Signed-off-by: Philipp Tomsich --- Changes in v2: - add missing ./configure step while building

[U-Boot] [PATCH v2 1/2] rockchip: board: lion_rk3368: update README flash instructions

2017-09-11 Thread Klaus Goger
Add a section to the README on how to flash the on-board eMMC with the rkdeveloptool. Signed-off-by: Klaus Goger Signed-off-by: Philipp Tomsich --- Changes in v2: None board/theobroma-systems/lion_rk3368/README | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions

Re: [U-Boot] [PATCH] rockchip: pinctrl: rk3399: add gmac io strength support

2017-04-20 Thread Klaus Goger
> On 20 Apr 2017, at 10:48, Dr. Philipp Tomsich > wrote: > >> On 20 Apr 2017, at 10:44, Kever Yang wrote: >> >> Hi Philipp, >>> >>> >>> Do you know if this is required for all board designs? >>> We have a total run length of less than 2cm to the KSZ9031 PHY and wondered >>> about this ours

Re: [U-Boot] [PATCH] mx6: gpio: read data register if direction is out

2014-06-24 Thread Klaus Goger
On Jun 24, 2014, at 3:13 PM, Fabio Estevam wrote: > On Tue, Jun 24, 2014 at 10:07 AM, Stefano Babic wrote: > >> What you are describing looks an issue in your pinmux configuration >> because you do not set the SION bit, as requested to read back the value >> of the GPIO from the Pad Register. >

[U-Boot] [PATCH] mx6: gpio: read data register if direction is out

2014-06-23 Thread Klaus Goger
On i.MX6 GPIOx_PSR does not reflect the current output value if the direction is set to output. Instead we should read GPIOx_DR. Signed-off-by: Klaus Goger --- drivers/gpio/mxc_gpio.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/mxc_gpio.c b/drivers