[PATCH] scripts: imx-image: fix iMX35 header generation

2021-03-05 Thread Alexander Kurz
From: Alexander Kurz Two header copies exist in the iMX35 image. When writing the barebox_header, also write it to the second copy. Signed-off-by: Alexander Kurz --- scripts/imx/imx-image.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/imx/imx-image.c b

[PATCH] ARM: i.MX8M: bbu: fix variable name to used semantic

2021-03-03 Thread Alexander Kurz
From: Alexander Kurz Both flags handle BBU behavior and should be bbu_flags. Signed-off-by: Alexander Kurz --- arch/arm/boards/nxp-imx8mm-evk/board.c | 6 +++--- arch/arm/boards/nxp-imx8mp-evk/board.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boards

[PATCH] ARM: i.MX8M: bbu: fix variable name to used semantic

2021-03-01 Thread Alexander Kurz
From: Alexander Kurz Both flags handle BBU behavior and should be bbu_flags. Signed-off-by: Alexander Kurz --- arch/arm/boards/nxp-imx8mm-evk/board.c | 6 +++--- arch/arm/boards/nxp-imx8mp-evk/board.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boards

[PATCH] ARM: boards: kindle mx50: adapt MCI name to DTS

2019-05-20 Thread Alexander Kurz
From: Alexander Kurz The MCI instances got aliases in the DTS from linux upstream which changed the eMMC devicename e.g. from disk0 to mmc2. Adapt to this. Signed-off-by: Alexander Kurz --- Documentation/boards/imx/amazon-kindle-4-5.rst | 4 ++-- arch/arm/boards/kindle

Re: [PATCH 02/10] spi: Generalize SPI "master" to "controller"

2019-05-11 Thread Alexander Kurz
Hi Steffen, this commit seems to be the origin of a crash when running the spi command, e.g. barebox@Amazon Kindle D01100:/ spi -b 2 -f 10 -w 32 -m 4 -r 4 0 0 0 0xe unable to handle NULL pointer dereference at address 0x0030 pc : [<7fe11a6c>]lr : [<7fe1bc83>] sp : 7ffefd

[PATCH v2] mtd: spi-nor: add Winbond W25Q40BW

2019-04-11 Thread Alexander Kurz
From: Alexander Kurz This 4MBit SPI chip can be found in Kindle Voyage devices Signed-off-by: Alexander Kurz --- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 85b55c698..1595349c4 100644

[PATCH] mtd: spi-nor: add Winbond W25Q40BW

2019-04-11 Thread Alexander Kurz
From: Alexander Kurz This 4MBit SPI chip can be found in Kindle Voyage devices Signed-off-by: Alexander Kurz --- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 85b55c698..6ff9c2738 100644

[PATCH] ARM: Makefile.imx: group and sort board entries

2019-03-20 Thread Alexander Kurz
From: Alexander Kurz Add new grouping comments for vf6xx- and Cortex-A7 based i.MX6 boards. Sort moved entries alphabetically. Signed-off-by: Alexander Kurz --- images/Makefile.imx | 108 ++-- 1 file changed, 55 insertions(+), 53 deletions

Re: [PATCH] ARM: i.MX: extend kindle-mx50 defconfig

2019-03-18 Thread Alexander Kurz
, Mar 18, 2019 at 07:32:42AM +, Alexander Kurz wrote: > > From: Alexander Kurz > > > > The current defaultenv-kindle-mx50 requires MCI_STARTUP to boot the > > installed > > linux. CMD_LOADY is mentioned in the doc for barebox update purposes. > > FS_EXT4, FS_

[PATCH] ARM: i.MX: extend kindle-mx50 defconfig

2019-03-18 Thread Alexander Kurz
From: Alexander Kurz The current defaultenv-kindle-mx50 requires MCI_STARTUP to boot the installed linux. CMD_LOADY is mentioned in the doc for barebox update purposes. FS_EXT4, FS_FAT and FS_FAT_WRITE gives users file system access. Also enable CMD_MEMTEST, CMD_CLK, CMD_REGULATOR and CMD_EDIT

[PATCH 2/2] ARM Kindle3: switch on pull-ups for fiveway device

2019-03-17 Thread Alexander Kurz
From: Alexander Kurz Without the pullups enabled, the GPIO change after a button release took some hundered milliseconds. Signed-off-by: Alexander Kurz --- arch/arm/boards/kindle3/kindle3.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boards

[PATCH 1/2] ARM Kindle3 defconfig: enable MMU

2019-03-17 Thread Alexander Kurz
From: Alexander Kurz With the MMU enabled, a memtest runs 14 times faster. Signed-off-by: Alexander Kurz --- arch/arm/configs/kindle3_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/kindle3_defconfig b/arch/arm/configs/kindle3_defconfig index

[PATCH] ARM: Makefile: restore kindle3 imxcfg-y setting

2019-03-17 Thread Alexander Kurz
From: Alexander Kurz Commit 45f38c1a846f ("ARM: Makefile: Drop unnecessary imxcfg-y settings") dropped the imximg generation for the kindle3. This device is not covered within multiimage support and can be configured with kindle3_defconfig. Signed-off-by: Alexander Kurz --- arch/ar

[PATCH v2] mci: imx-esdhc: resolve conflicting flags

2019-03-15 Thread Alexander Kurz
From: Alexander Kurz With commit 3354adee3920 ("mci: imx-esdhc: Add bigendian register access support") and commit 15b64fd520c2 ("mci: imx-esdhc: Add layerscape support") two ESDHC_FLAGs got assigned to already existing values. This conflict made the imx6sl usdhc appear to be

[PATCH] mci: imx-esdhc: resolve conflicting flags

2019-03-15 Thread Alexander Kurz
From: Alexander Kurz With commit 3354adee3920 ("mci: imx-esdhc: Add bigendian register access support") and commit 15b64fd520c2 ("mci: imx-esdhc: Add layerscape support") two ESDHC_FLAGs got assigned to already existing values. This conflict made the imx6sl usdhc appear to be

[PATCH] fs/fat: fix FAT32 detection

2018-12-27 Thread Alexander Kurz
From: Alexander Kurz Limits for the number of clusters were used to determine the FAT fs type. This fails e.g. for FAT32 fs with low cluster number that can be found in certain Android images. Sync the FAT fs type detection to the method used in linux by checking the sectors/FAT entries at

Re: [PATCH] i.MX: iomuxv3: restore NO_PAD_CTRL semantic

2018-07-10 Thread Alexander Kurz
04:08AM +0000, Alexander Kurz wrote: > > A NO_PAD_CTRL flag used to keep a pad configuration untouched. > > With commit 094820a63bfd ("i.MX: iomuxv3: Use helper functions in > > iomux-v3.h") > > the NO_PAD_CTRL semantic changed to set a pad configurations

Re: [PATCH v4 2/3] add basic ELF parser

2018-06-15 Thread Alexander Kurz
Hi Oleksij, when compiling for some random arm platform, next currently rasises this warning: (BOOTM) selects ELF which has unmet direct dependencies (MIPS) Neither ELF nor BOOTM are MIPS specific. This issue was resolved with v3, and with v4 it's back? Regards, Alexander On Wed, 6 Jun 2018, Ol

Re: [PATCH] commands: oftree: kill oftree -f

2018-06-11 Thread Alexander Kurz
Hi Sascha, On Mon, 11 Jun 2018, Sascha Hauer wrote: > Being able to free the live device tree seemed like a good idea in the > early days of device tree support when the first boards were brought up. > It turned out to be illusory that noone stores pointers to the live tree > which become invalid

re: [RESEND v3 50/52] scripts: imx-image: Share the code to write barebox header

2018-06-10 Thread Alexander Kurz
Hi Andrey, there's something wrong with this patch, when generating e.g. the kindle3 image (imx35 / kindle3_defconfig) with this patch, the generated imximage differs and the device wont boot. "Share the code to ..." should not change the program behaviour. Regards, Alexander --- barebox.imximg_

[PATCH] i.MX: iomuxv3: restore NO_PAD_CTRL semantic

2018-06-10 Thread Alexander Kurz
a boot-up default pad configuration, which often is non zero. Restore the old semantic, dont write PAD_CTRL when NO_PAD_CTRL is set. Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/include/mach/iomux-v3.h | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-i

[PATCH] DTS ARM: i.MX50: resolve warning

2018-06-08 Thread Alexander Kurz
Resolve the warning "node has a unit name, but no reg property". Signed-off-by: Alexander Kurz --- arch/arm/dts/imx50.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/imx50.dtsi b/arch/arm/dts/imx50.dtsi index 8737d4f33..c3804cfdc 100644 ---

[PATCH] ARM: i.MX50: fix Kindle-MX50 DT issues and warnings

2018-05-31 Thread Alexander Kurz
ned-off-by: Alexander Kurz --- arch/arm/dts/imx50-kindle-common.dtsi | 31 --- arch/arm/dts/imx50-kindle-d01100.dts | 4 ++-- arch/arm/dts/imx50-kindle-d01200.dts | 4 ++-- arch/arm/dts/imx50-kindle-ey21.dts| 4 ++-- 4 files changed, 18 insertions(+), 25 deletion

[PATCH 1/2] ARM: i.MX50: Replace expicit casts with IOMEM

2018-05-13 Thread Alexander Kurz
Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/imx50.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-imx/imx50.c b/arch/arm/mach-imx/imx50.c index d6ff6dfc2..6d121eaf8 100644 --- a/arch/arm/mach-imx/imx50.c +++ b/arch/arm/mach-imx/imx50.c

[PATCH 2/2] ARM: i.MX50: Record reset reason as a part of startup

2018-05-13 Thread Alexander Kurz
The given SRSR register location is also valid for the i.MX50. Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/imx50.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/imx50.c b/arch/arm/mach-imx/imx50.c index 6d121eaf8..f7cbc9d4b 100644 --- a/arch/arm/mach-imx

[PATCH 2/2] ARM omap beagle defconfig: remove trace initcalls

2018-04-26 Thread Alexander Kurz
Debug output may be switched on when needed, but should not be on by default. Regenerating the defconfig removes CONFIG_TEXT_BASE. Signed-off-by: Alexander Kurz --- arch/arm/configs/omap3530_beagle_defconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/configs

[PATCH 1/2] ARM omap beagle xload_defconfig: do not load drivers from DT

2018-04-26 Thread Alexander Kurz
The first stage loader must run in SRAM and is limited in size. Remove unused support to load drivers from DT at this stage and save precious 9kB of code size. Regenerating the defconfig removes CONFIG_TEXT_BASE. Signed-off-by: Alexander Kurz --- arch/arm/configs/omap3530_beagle_xload_defconfig

[PATCH] ARM: i.MX50: Amazon Kindle: fix setup of board specific environment

2018-03-18 Thread Alexander Kurz
tion using defaultenv_append_directory() in device_initcall. Signed-off-by: Alexander Kurz --- arch/arm/boards/kindle-mx50/board.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/boards/kindle-mx50/board.c b/arch/arm/boards/kindle-mx50/board.c index 089dd8ebb.

[PATCH] spi: imx: make xchg_single timeout value compatible for older boards

2017-12-14 Thread Alexander Kurz
xchg_single") Signed-off-by: Alexander Kurz --- drivers/spi/imx_spi.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/spi/imx_spi.c b/drivers/spi/imx_spi.c index 7819879..0827de7 100644 --- a/drivers/spi/imx_spi.c +++ b/drivers/spi/imx_spi.c @@ -32,8 +32,11 @@ #in

Re: [PATCH 0/2] spi: imx: don't loop endlessly

2017-09-29 Thread Alexander Kurz
Hi, during xchg_single 32 bits will be sent and received: 2x32 bits / 10 Microseconds = 6.4MHz Clock. Hence, a 10 Microseconds timeout will break SPI communication for boards with SPI frequencies less then 6.4MHz. On some boards spi-max-frequency is limited due to improper communication at higher

Re: [PATCH 2/3] gpio: fix null pointer exception when there is no oftree

2017-07-06 Thread Alexander Kurz
tuation, as this > > mirrors what would have happened before we added support for gpio-hogs. > > > > Use IS_ENABLED(CONFIG_OFDEVICE) to teach compiler to leave > > out the of_* specific functions if not needed. > > > > Fixes: 37e6bee7 ("gpioli

Re: [PATCH] gpiolib: fix: do not access oftree on non-OFDEVICE boards

2017-07-04 Thread Alexander Kurz
Hi Lucas, On Mon, 3 Jul 2017, Lucas Stach wrote: > Am Sonntag, den 02.07.2017, 22:24 +0200 schrieb Alexander Kurz: > > Non-OFDEVICE boards may have OFTREE=y set, e.g. by BOOTM_OFTREE. > > Attempts to browse the oftree will crash barebox on those boards. > > > > Si

[PATCH] gpiolib: fix: do not access oftree on non-OFDEVICE boards

2017-07-02 Thread Alexander Kurz
Non-OFDEVICE boards may have OFTREE=y set, e.g. by BOOTM_OFTREE. Attempts to browse the oftree will crash barebox on those boards. Signed-off-by: Alexander Kurz --- drivers/gpio/gpiolib.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib.c b/drivers

[PATCH 4/4] ARM: i.MX6 Wandboard: add Documentation

2017-06-08 Thread Alexander Kurz
Signed-off-by: Alexander Kurz --- Documentation/boards/imx/Wandboard.rst | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/boards/imx/Wandboard.rst diff --git a/Documentation/boards/imx/Wandboard.rst b/Documentation/boards/imx/Wandboard.rst new file

[PATCH 3/4] ARM: i.MX6 Wandboard: enable Wandboard Quad

2017-06-08 Thread Alexander Kurz
Extend the DT compatibility check to actually use the Wandboard Quad. Signed-off-by: Alexander Kurz --- arch/arm/boards/technexion-wandboard/board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boards/technexion-wandboard/board.c b/arch/arm/boards/technexion

[PATCH 2/4] ARM: i.MX6 Wandboard Quad: fix PBL UART MUX

2017-06-08 Thread Alexander Kurz
IOMUX for PBL compatible for WBQUAD. Signed-off-by: Alexander Kurz --- arch/arm/boards/technexion-wandboard/lowlevel.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/arch/arm/boards/technexion-wandboard/lowlevel.c b/arch/arm/boards/technexion-wandboard

[PATCH 1/4] ARM: i.MX6 Wandboard: dont do MMDC Write Leveling Calibration

2017-06-08 Thread Alexander Kurz
bit on the controller, which is not given on the Wandboard modules, resulting in unpredictable calib results and breaking the WBQUAD 2GiB SDRAM setup. Similar restrictions exist for the i.MX6SD. Remove this calibration and use the MPWLDECTRL defaults. Signed-off-by: Alexander Kurz --- arch/

[PATCH 1/2] ARM: i.MX50: Amazon Kindle: Model EY21 compatibility check

2017-05-14 Thread Alexander Kurz
Extend the compatibility check for i.MX50 based kindles also on model EY21. Signed-off-by: Alexander Kurz --- arch/arm/boards/kindle-mx50/board.c | 3 ++- arch/arm/dts/imx50-kindle-ey21.dts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boards/kindle-mx50

[PATCH 2/2] ARM: i.MX50: Kindle-MX50 DT fixes

2017-05-14 Thread Alexander Kurz
* fix IOMUX for MAX14656 IRQ, it requires a pull-up to work * enable UART console for Model EY21 * set up IOMUX for EY21 GPIO lid-close hall sensor * remove IOMUX for non-existing EY21 GPIO keys * replace space indention with tabs Signed-off-by: Alexander Kurz --- arch/arm/dts/imx50-kindle

Re: [PATCH v2 3/3] ARM i.MX50: Add support for i.MX50 based Amazon Kindle e-book readers

2017-04-24 Thread Alexander Kurz
Hi Sasha, thanks for noting and fixing those two issues, it's perfectly fine for me. Thanks, Alexander On Mon, 24 Apr 2017, Sascha Hauer wrote: > Hi Alexander, > > On Sun, Apr 23, 2017 at 07:37:41PM +0200, Alexander Kurz wrote: > > The Kindle Model No. D01100 (Kindle Wi

[PATCH v2 1/3] ARM: i.MX50: Add imx50.dtsi as workaround

2017-04-23 Thread Alexander Kurz
peripherial mode via DT running, until imx50.dtsi is fixed upstream. Signed-off-by: Alexander Kurz --- arch/arm/dts/imx50.dtsi | 40 1 file changed, 40 insertions(+) create mode 100644 arch/arm/dts/imx50.dtsi diff --git a/arch/arm/dts/imx50.dtsi b/arch/arm

[PATCH v2 2/3] ARM: i.MX50 clock: add clock for USB physbase

2017-04-23 Thread Alexander Kurz
Add the USB physbase clock entry for i.MX50 SoC to enable USB device creation via DT. Signed-off-by: Alexander Kurz --- drivers/clk/imx/clk-imx5.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx5.c b/drivers/clk/imx/clk-imx5.c index c4c47a6..edebd25 100644 --- a

[PATCH v2 3/3] ARM i.MX50: Add support for i.MX50 based Amazon Kindle e-book readers

2017-04-23 Thread Alexander Kurz
connector J14. Signed-off-by: Alexander Kurz --- Documentation/boards/imx/amazon-kindle-mx50.rst| 58 arch/arm/boards/Makefile | 1 + arch/arm/boards/kindle-mx50/Makefile | 4 + arch/arm/boards/kindle-mx50/board.c| 162

[PATCH] console: fix usbserial re-connect

2017-03-26 Thread Alexander Kurz
evfs entry is not removed upon disconnect, barebox will raise an error "device creation failed with File exists" when the cable is connected again. Remove devfs entries when consoles are de-registered. Also change the error message, it's the devfs entry. Signed-off-by: Alexander Ku

[PATCH] console: console_get_by_name: do not strcmp NULL

2017-03-26 Thread Alexander Kurz
dle NULL pointer dereference at address 0x Let console_get_by_name just ignore the anonymous consoles. Signed-off-by: Alexander Kurz --- common/console_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/console_common.c b/common/console_common.c index 2e58

[PATCH 1/3] ARM: i.MX50: Add imx50.dtsi as workaround

2017-03-26 Thread Alexander Kurz
peripherial mode via DT running, until imx50.dtsi is fixed upstream. Signed-off-by: Alexander Kurz --- arch/arm/dts/imx50.dtsi | 40 1 file changed, 40 insertions(+) create mode 100644 arch/arm/dts/imx50.dtsi diff --git a/arch/arm/dts/imx50.dtsi b/arch/arm

[PATCH 3/3] ARM i.MX50: Add support for i.MX50 based Amazon Kindle e-book readers

2017-03-26 Thread Alexander Kurz
connector J14. Signed-off-by: Alexander Kurz --- Documentation/boards/imx/amazon-kindle-mx50.rst| 58 + arch/arm/boards/Makefile | 1 + arch/arm/boards/kindle-mx50/Makefile | 4 + arch/arm/boards/kindle-mx50/board.c| 114

[PATCH 2/3] ARM: i.MX50 clock: add clock for USB physbase

2017-03-26 Thread Alexander Kurz
Add the USB physbase clock entry for i.MX50 SoC to enable USB device creation via DT. Signed-off-by: Alexander Kurz --- drivers/clk/imx/clk-imx5.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx5.c b/drivers/clk/imx/clk-imx5.c index c4c47a6..edebd25 100644 --- a

[PATCH] ARM Kindle3 defconfig: add clock manipulation command

2017-03-26 Thread Alexander Kurz
The clock manipulation command provides usefull information for a potential kernel developper. Just add it for kindle3 defconfig. Signed-off-by: Alexander Kurz --- arch/arm/configs/kindle3_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs

[PATCH] ARM: i.MX WaRP7: Add defaultenv and boot pre-installed kernel

2017-03-19 Thread Alexander Kurz
The WaRP7 board is shipped with a pre-installed system. Boot the zImage and dtb from the first partition by default. Signed-off-by: Alexander Kurz --- arch/arm/boards/element14-warp7/Makefile | 1 + arch/arm/boards/element14-warp7/board.c | 3

[PATCH] ARM: dts: i.MX7 WaRP7: remove wdog1 pinctrl workaround

2017-03-19 Thread Alexander Kurz
The wdog1 pinctrl got fixed with linux upstream commit 213e51ca8df1 ("ARM: dts: imx7: Add "LPSR" to LPSR iomux pin names"). Remove the old workaround, since it triggers a build error. Signed-off-by: Alexander Kurz --- arch/arm/dts/imx7s-warp.dts | 17 -

[PATCH] ARM: i.MX7: Kconfig: ARCH_IMX7 selects PINCTRL_IMX_IOMUX_V3

2017-03-19 Thread Alexander Kurz
fsl,imx7d-iomuxc is provided by selecting PINCTRL_IMX_IOMUX_V3. Select it since a system without it will not be very usefull. Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig

[PATCH] ARM: zynq7000: make PS_CLK Kconfigurable

2017-03-12 Thread Alexander Kurz
: Alexander Kurz --- arch/arm/mach-zynq/Kconfig| 6 ++ arch/arm/mach-zynq/clk-zynq7000.c | 9 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-zynq/Kconfig b/arch/arm/mach-zynq/Kconfig index d35bd41..ff2aedb 100644 --- a/arch/arm/mach-zynq/Kconfig

[PATCH] scripts: imx-usb-loader: implement DCD v2 check command

2017-02-19 Thread Alexander Kurz
native implementation, since performing check commands via USB will be much slower compared to native processing. Signed-off-by: Alexander Kurz --- scripts/imx/imx-usb-loader.c | 95 +++- scripts/imx/imx.h| 16 2 files changed, 109

[PATCH] ARM: i.MX50: do not pass base address to imx53_boot_save_loc

2017-02-19 Thread Alexander Kurz
This is a follow-up on commit cf3dfafff4cb. Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/imx50.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx50.c b/arch/arm/mach-imx/imx50.c index fb278a5..d6ff6df 100644 --- a/arch/arm/mach-imx/imx50.c +++ b

Re: [PATCH 1/2] i.MX: i2c: fix i2c-fsl for non-OF boards

2017-02-14 Thread Alexander Kurz
On Tue, 14 Feb 2017, Sascha Hauer wrote: > On Sat, Feb 11, 2017 at 11:31:38PM +0100, Alexander Kurz wrote: > > With commit 4ed5b778a56b ("i.MX: i2c: Add Vybrid support") i2c-fsl probe > > returns -EINVAL for all non-OF boards. > > Since newer planforms, especial

[PATCH 2/2] i.MX: esdhc: fix imx-esdhc driver for non-OF boards

2017-02-11 Thread Alexander Kurz
Commit 39f7a7ee8b68 ("i.MX: esdhc: Do not rely on CPU type for quirks") made imx-esdhc dependent on OF and broke probing for all non-OF boards. Since newer platforms like mx6 and vf610 are restricted to OF, the non-OF probing only needs to distinguish mx5 vs earlier SoC. Signed-off-by:

[PATCH 1/2] i.MX: i2c: fix i2c-fsl for non-OF boards

2017-02-11 Thread Alexander Kurz
With commit 4ed5b778a56b ("i.MX: i2c: Add Vybrid support") i2c-fsl probe returns -EINVAL for all non-OF boards. Since newer planforms, especially vf610 are restricted OF-only it is safe to assume "fsl,imx21-i2c" if CONFIG_OFDEVICE is not set. Signed-off-by: Alexander Kurz ---

Re: [PATCH 1/5] ARM i.MX: move cpu_type macros in front of cpu_revision code

2017-02-01 Thread Alexander Kurz
On Wed, 1 Feb 2017, Sascha Hauer wrote: > On Mon, Jan 30, 2017 at 11:50:55PM +0100, Alexander Kurz wrote: > > Preparational commit to enable the use of cpu_type macros in > > imx6_cpu_revision() > > > > Signed-off-by: Alexander Kurz > > Applied patches

[PATCH 3/5] ARM: i.MX6SL: import clock infrastructure from linux

2017-01-30 Thread Alexander Kurz
p mux") cbe7fc8aaeef ("ARM: imx: add common clock support for fixup div") was ignored for this commit. Signed-off-by: Alexander Kurz --- drivers/clk/imx/clk-imx6sl.c | 329 +++ 1 file changed, 329 insertions(+) create mode 100644 drivers/clk/im

[PATCH 4/5] ARM i.MX: Add i.MX6SL support

2017-01-30 Thread Alexander Kurz
provide barebox i.MX6SL SoC support. Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/esdctl.c | 3 +++ arch/arm/mach-imx/imx.c| 2 ++ drivers/clk/imx/Makefile | 1 + drivers/pinctrl/imx-iomux-v3.c | 2 ++ 4 files changed, 8 insertions(+) diff --git a/arch/arm/mach-imx

[PATCH 5/5] ARM i.MX6SL: Add support for the Tolino Vision, Vision2 and Vision3HD

2017-01-30 Thread Alexander Kurz
console access by pressing backlight button at startup Todo: - PMIC - EPD, EPD-PMIC, Splashscreen - Vision4HD Signed-off-by: Alexander Kurz --- Documentation/boards/imx/tolino-vision.rst | 26 +++ arch/arm/boards/Makefile | 1 + arch/arm/boards/tolino-vision

[PATCH 2/5] ARM i.MX: add SoC type detection for i.MX6SL

2017-01-30 Thread Alexander Kurz
: Alexander Kurz --- arch/arm/mach-imx/Kconfig | 4 arch/arm/mach-imx/imx6.c | 3 +++ arch/arm/mach-imx/include/mach/imx6.h | 19 ++- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig

[PATCH 1/5] ARM i.MX: move cpu_type macros in front of cpu_revision code

2017-01-30 Thread Alexander Kurz
Preparational commit to enable the use of cpu_type macros in imx6_cpu_revision() Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/include/mach/imx6.h | 40 +-- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-imx/include/mach/imx6

[PATCH v2] ARM: i.MX7: add AIPS base address defines

2017-01-27 Thread Alexander Kurz
Import the ARM IP bus base addresses from IMX7DRM 05/2016 AIPS Memory Map Signed-off-by: Alexander Kurz --- arch/arm/boards/element14-warp7/lowlevel.c | 2 +- arch/arm/mach-imx/imx7.c | 2 +- arch/arm/mach-imx/include/mach/imx7-regs.h | 125 + 3

Re: [PATCH] ARM: i.MX7: add AIPS base address defines

2017-01-27 Thread Alexander Kurz
On Thu, 26 Jan 2017, Sascha Hauer wrote: > On Wed, Jan 25, 2017 at 12:31:55PM +0100, Alexander Kurz wrote: > > Import the ARM IP bus base addresses from IMX7DRM 05/2016 AIPS Memory Map > > In my reference manual the addresses are given directly as numbers. I > often wondered

[PATCH] ARM: i.MX7: add AIPS base address defines

2017-01-25 Thread Alexander Kurz
Import the ARM IP bus base addresses from IMX7DRM 05/2016 AIPS Memory Map Signed-off-by: Alexander Kurz --- arch/arm/boards/element14-warp7/lowlevel.c | 2 +- arch/arm/mach-imx/imx7.c | 2 +- arch/arm/mach-imx/include/mach/imx7-regs.h | 143 + 3

[PATCH] ARM: i.MX7: Kconfig: ARCH_IMX7 selects COMMON_CLK_OF_PROVIDER

2017-01-25 Thread Alexander Kurz
Build of clk-imx7 depends on selection of COMMON_CLK_OF_PROVIDER Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 0e3c7de..4dc1098 100644 --- a/arch/arm/mach-imx/Kconfig

[PATCH v2] ARM i.MX31 clk: add pll_ref_clk and MCU PLL bypass select

2017-01-24 Thread Alexander Kurz
: Alexander Kurz --- drivers/clk/imx/clk-imx31.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/drivers/clk/imx/clk-imx31.c b/drivers/clk/imx/clk-imx31.c index 8d135c9..dbb5c15 100644 --- a/drivers/clk/imx/clk-imx31.c +++ b/drivers/clk/imx/clk-imx31.c

[PATCH] ARM i.MX31 iomux: add and sort GPIO MUX options

2017-01-16 Thread Alexander Kurz
Sort the mx31 mux options for all pads with GPIO support by the GPIO number and add missing GPIO mux options. Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/include/mach/iomux-mx31.h | 250 ++-- 1 file changed, 160 insertions(+), 90 deletions(-) diff --git a/arch

[PATCH] ARM i.MX31 clk: add pll_ref_clk and MCU PLL bypass select

2017-01-16 Thread Alexander Kurz
: Alexander Kurz --- arch/arm/mach-imx/clk-imx31.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-imx/clk-imx31.c b/arch/arm/mach-imx/clk-imx31.c index 8d135c9..dbb5c15 100644 --- a/arch/arm/mach-imx/clk-imx31.c +++ b/arch/arm/mach-imx/clk

Re: [PATCH 2/4] ARM i.MX: add SoC type detection for i.MX6SL

2016-12-07 Thread Alexander Kurz
On Wed, 7 Dec 2016, Sascha Hauer wrote: > Hi Alexander, > > On Mon, Nov 28, 2016 at 10:27:33AM +0100, Alexander Kurz wrote: > > The i.MX6 series SoC type is determined by barebox by examining the > > USB_ANALOG_DIGPROG aka IMX6_ANATOP_SI_REV register. This register is lo

Re: [PATCH] bootm: dont use internal oftree fallback by default

2016-12-05 Thread Alexander Kurz
On Mon, 5 Dec 2016, Uwe Kleine-König wrote: > On Fri, Dec 02, 2016 at 10:46:38AM +0100, Lucas Stach wrote: > > Am Donnerstag, den 01.12.2016, 19:55 +0100 schrieb Alexander Kurz: > > > Booting via bootm offers several methods to load oftree data. When no > > > dedicat

Re: [PATCH] bootm: dont use internal oftree fallback by default

2016-12-05 Thread Alexander Kurz
On Fri, 2 Dec 2016, Lucas Stach wrote: > Am Donnerstag, den 01.12.2016, 19:55 +0100 schrieb Alexander Kurz: > > Booting via bootm offers several methods to load oftree data. When no > > dedicated oftree image is provided, barebox checks for the presence of > > its own inte

[PATCH] bootm: dont use internal oftree fallback by default

2016-12-01 Thread Alexander Kurz
set. Signed-off-by: Alexander Kurz --- common/bootm.c | 8 ++-- include/bootm.h | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/common/bootm.c b/common/bootm.c index 5984319..f5303fa 100644 --- a/common/bootm.c +++ b/common/bootm.c @@ -58,6 +58,7 @@ void

[PATCH 3/4] ARM: i.MX6SL: import clock infrastructure from linux

2016-11-28 Thread Alexander Kurz
p mux") cbe7fc8aaeef ("ARM: imx: add common clock support for fixup div") was ignored for this commit. Signed-off-by: Alexander Kurz --- drivers/clk/imx/clk-imx6sl.c | 329 +++ 1 file changed, 329 insertions(+) create mode 100644 drivers/clk/im

[PATCH 1/4] ARM i.MX: move cpu_type macros in front of cpu_revision code

2016-11-28 Thread Alexander Kurz
Preparational commit to enable the use of cpu_type macros in imx6_cpu_revision() Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/include/mach/imx6.h | 40 +-- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-imx/include/mach/imx6

[PATCH 2/4] ARM i.MX: add SoC type detection for i.MX6SL

2016-11-28 Thread Alexander Kurz
: Alexander Kurz --- arch/arm/mach-imx/Kconfig | 4 arch/arm/mach-imx/imx6.c | 3 +++ arch/arm/mach-imx/include/mach/imx6.h | 19 ++- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig

[PATCH 4/4] ARM i.MX: Add i.MX6SL support

2016-11-28 Thread Alexander Kurz
. Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/imx.c| 2 ++ drivers/clk/imx/Makefile | 1 + drivers/pinctrl/imx-iomux-v3.c | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx.c b/arch/arm/mach-imx/imx.c index 952db00..1eea275 100644 --- a

[PATCH 1/2] scripts: imx imx-usb-loader: sort USB id list

2016-11-20 Thread Alexander Kurz
For better readability sort the list of known USB ids by VID and PID. Signed-off-by: Alexander Kurz --- scripts/imx/imx-usb-loader.c | 56 ++-- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx

[PATCH 2/2] scripts: imx imx-usb-loader: add i.MX6SL support

2016-11-20 Thread Alexander Kurz
Add the i.MX6SL USB id to the list of known ids. Signed-off-by: Alexander Kurz --- scripts/imx/imx-usb-loader.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c index fb80e0e..be0894f 100644 --- a/scripts/imx/imx-usb-loader.c

[PATCH] mfd: mc13892: more descriptive charger register defines

2016-11-04 Thread Alexander Kurz
Make access to the mc13892 charger parameter voltage, current and max power dissipation readable in terms of millivolts, milliamps and milliwatts. Signed-off-by: Alexander Kurz --- arch/arm/boards/efika-mx-smartbook/board.c | 4 +-- include/mfd/mc13892.h | 40

[PATCH] scripts imx-image: add DCD NOP command support

2016-11-03 Thread Alexander Kurz
The DCD NOP command is available for all flash header v2 devices (i.MX28, 50, 53, 6 and 7). Signed-off-by: Alexander Kurz --- scripts/imx/README | 1 + scripts/imx/imx-image.c | 28 scripts/imx/imx.c | 11 +++ scripts/imx/imx.h | 1 + 4

[PATCH] mtd: spi-nor: add MX25U2033E

2016-11-03 Thread Alexander Kurz
This chip can be found in 4th generation Kindle devices Signed-off-by: Alexander Kurz --- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 748b328..45be586 100644 --- a/drivers/mtd/spi-nor/spi

Re: [PATCH 1/6] ARM: add common definitions for i.MX50 SOC

2016-09-12 Thread Alexander Kurz
On Mon, 12 Sep 2016, Sascha Hauer wrote: > On Fri, Sep 09, 2016 at 05:43:39PM +0200, Alexander Kurz wrote: > > Signed-off-by: Alexander Kurz > > --- > > Documentation/boards/imx.rst | 1 + > > arch/arm/mach-imx/include/mach/generic.h | 13

[PATCH 6/6] ARM i.MX50: Add iomux definitions for non-DT board implementations

2016-09-09 Thread Alexander Kurz
Additional changes: * typical PAD settings for UART, SPI, I2C and ESDHC * SION bits set for all I2C MUX options Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/include/mach/iomux-mx50.h | 943 1 file changed, 943 insertions(+) create mode 100644 arch/arm/mach-i

[PATCH 5/6] Add i.MX50 support

2016-09-09 Thread Alexander Kurz
Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/Kconfig | 6 + arch/arm/mach-imx/Makefile | 2 + arch/arm/mach-imx/clk-imx5.c| 88 +++ arch/arm/mach-imx/imx.c | 6 + arch/arm/mach-imx/imx50

[PATCH 1/6] ARM: add common definitions for i.MX50 SOC

2016-09-09 Thread Alexander Kurz
Signed-off-by: Alexander Kurz --- Documentation/boards/imx.rst | 1 + arch/arm/mach-imx/include/mach/generic.h | 13 + arch/arm/mach-imx/include/mach/imx_cpu_types.h | 1 + 3 files changed, 15 insertions(+) diff --git a/Documentation/boards/imx.rst b

[PATCH 2/6] scripts: imx: add support for i.MX50

2016-09-09 Thread Alexander Kurz
Add imximg support for i.MX50 processors which use the i.MX flash header v2 format. Signed-off-by: Alexander Kurz --- scripts/imx/imx-image.c | 2 +- scripts/imx/imx-usb-loader.c | 3 +++ scripts/imx/imx.c| 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a

[PATCH 3/6] ARM: i.MX clock: cleanup imx50 incompatibilities

2016-09-09 Thread Alexander Kurz
Move all MX5 clock functionality which does not apply to i.MX50 to a new mx51_mx53 related function. Signed-off-by: Alexander Kurz --- arch/arm/mach-imx/clk-imx5.c | 43 +++ 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/arch/arm/mach-imx

[PATCH 4/6] ARM: i.MX drivers: enable i.MX50 where already supported

2016-09-09 Thread Alexander Kurz
The i.MX50 SOC includes one ESDHCv3, three ESDHCv2, one cspi and two ecspi instances which are supported by existing drivers. Signed-off-by: Alexander Kurz --- drivers/mci/imx-esdhc.c| 4 +++- drivers/spi/Kconfig| 4 ++-- drivers/usb/imx/imx-usb-misc.c | 6 ++ 3 files

[PATCH] scripts: imx-usb-loader: cleanup DCD v2 processing

2016-09-02 Thread Alexander Kurz
error handling, do structured member access and proper endianess handling and direct error messages to stderr. Signed-off-by: Alexander Kurz --- scripts/imx/imx-usb-loader.c | 125 +++ scripts/imx/imx.h| 17 +- 2 files changed, 95 insertions

[PATCH 2/2] scripts: imx-usb-loader: structured DCD v1 element access

2016-08-21 Thread Alexander Kurz
DCD v1 elements are encoded little endian. Signed-off-by: Alexander Kurz --- scripts/imx/imx-usb-loader.c | 19 +++ scripts/imx/imx.h| 6 ++ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb

[PATCH 1/2] scripts: imx-usb-loader: enable DCD 16-bit write for hdr v1

2016-08-21 Thread Alexander Kurz
Do some cleanup which enables DCDv1 16 bit write access as side effect. Signed-off-by: Alexander Kurz --- scripts/imx/imx-usb-loader.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c index 1732497..9f25ca6

[PATCH] scripts: imx-image: DCD check command for v2 only

2016-08-21 Thread Alexander Kurz
DCD check command is currently implemented for imximg v2 only. This command may also be available for v1 as mentioned in IMX35RM as DCD-address-type "wait/read", but due to the lack of further details it will be not supported. Signed-off-by: Alexander Kurz --- scripts/imx/imx-i

[PATCH] scripts: imx-usb-loader: do DCD only once, cleanup

2016-08-21 Thread Alexander Kurz
Only the first encountered DCD block should be processed, optional DCD processing may be switched off by command option. Clean up the corresponding logic. Signed-off-by: Alexander Kurz --- scripts/imx/imx-usb-loader.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff

[PATCH] Kconfig: defaultenv-2 select CMD_TEST

2016-08-19 Thread Alexander Kurz
CMD_TEST is required for scripts in defaultenv-2, e.g. automount. Signed-off-by: Alexander Kurz --- common/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/common/Kconfig b/common/Kconfig index 38225eb..397bcbe 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -844,6 +844,7

Re[2]: [PATCH] mfd mc13xxx: add MC13892_REVISION_2_4

2016-08-18 Thread Alexander Kurz
On Thu, 18 Aug 2016, Alexander Shiyan wrote: > >Четверг, 18 августа 2016, 10:15 +03:00 от Sascha Hauer > >: > > > >On Wed, Aug 17, 2016 at 03:12:19PM +0200, Alexander Kurz wrote: > >> An MC13892CJ having REV[4:0]=0x14 can be found in the kindle-d01100. >

[PATCH] mfd mc13xxx: add MC13892_REVISION_2_4

2016-08-17 Thread Alexander Kurz
An MC13892CJ having REV[4:0]=0x14 can be found in the kindle-d01100. Add the revision to the list to support this device. Signed-off-by: Alexander Kurz --- drivers/mfd/mc13xxx.c | 1 + include/mfd/mc13xxx.h | 13 +++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a

Re: [PATCH] mfd mc13xxx: add MC13892_REVISION_3_6

2016-07-28 Thread Alexander Kurz
und MC13892 ID: 0x0067fe [Rev: 3.6] while indeed this device is a > Found MC13892 ID: 0x0045d4 [Rev: 2.4] Is it possible to drop this patch or should I post a revert patch on it? Thanks, Alexander On Thu, 21 Jul 2016, Sascha Hauer wrote: > On Tue, Jul 19, 2016 at 10:09:54PM +0200, Alexa

  1   2   >