[PATCH] ARM: mvebu: armada-xp: configure PLL and PHY register

2017-08-15 Thread Jan Luebbe
The PLL setup is needed to use the USB ports in Linux. This code is ported from mainline U-Boot arch/arm/mach-mvebu/cpu.c. Signed-off-by: Jan Luebbe --- arch/arm/mach-mvebu/armada-370-xp.c| 45 ++ .../mach-mvebu/include/mach/armada-370-xp-regs.h | 2 + 2

[PATCH] bootchooser: fix help message

2017-01-12 Thread Jan Luebbe
The descriptions of -a and -p were mismatched. Signed-off-by: Jan Luebbe --- commands/bootchooser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/bootchooser.c b/commands/bootchooser.c index 91938fe55173..ac763a655385 100644 --- a/commands/bootchooser.c +++ b

[PATCH 3/3] PWM: update enable status when using the internal API

2016-12-08 Thread Jan Luebbe
Without these, 'devinfo pwmX' will show enabled=0 even though the PWM was enabled (for example by a pwm-backlight). Signed-off-by: Jan Luebbe --- drivers/pwm/core.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 360520195a05..ee

[PATCH 2/3] video: IPU framebuffer: honor clock and enable polarities

2016-12-08 Thread Jan Luebbe
These flags are already parsed from DT, so we can just use them to configure the timings correctly. Signed-off-by: Jan Luebbe --- drivers/video/imx-ipu-v3/ipufb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/video/imx-ipu-v3/ipufb.c b/drivers/video/imx-ipu-v3

[PATCH 1/3] i.MX: IPUv3: Add parallel display support

2016-12-08 Thread Jan Luebbe
From: Philippe Leduc Add a driver compatible with "fsl,imx-parallel-display" in order to enable parallel display with the i.MX IPUv3. Signed-off-by: Philippe Leduc Signed-off-by: Jan Luebbe --- I've updated Philippe's patch to the current barebox (we now use bus_form

[PATCH 2/3] ARM: i.MX6: fix clock gating

2016-09-20 Thread Jan Luebbe
Since ce6755ca1c41b8dd3b40cf3c9d6f3a1237a92720, both IPU and OpenVG are enabled if CONFIG_DRIVER_VIDEO_IMX_IPUV3 is true, but in the other case, only OpenVG was disabled. Signed-off-by: Jan Luebbe --- arch/arm/mach-imx/clk-imx6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 1/3] ARM: i.MX6: remove duplicate clock initialization

2016-09-20 Thread Jan Luebbe
These registers are already set by imx6_ccm_probe (in clk-imx6.c) during core_initcall, while imx6_init_lowlevel is only called during postcore_initcall via imx_init in imx.c. Signed-off-by: Jan Luebbe --- arch/arm/mach-imx/imx6.c | 9 - 1 file changed, 9 deletions(-) diff --git a/arch

[PATCH 3/3] ARM: i.MX6: gate PCIe when unused

2016-09-20 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/mach-imx/clk-imx6.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/clk-imx6.c b/arch/arm/mach-imx/clk-imx6.c index 26dfd1a7e16b..8ac43bebb075 100644 --- a/arch/arm/mach-imx/clk-imx6.c +++ b/arch/arm/mach-imx/clk

[PATCH] at24: support write-protect GPIO

2015-07-30 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- drivers/eeprom/at24.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/drivers/eeprom/at24.c b/drivers/eeprom/at24.c index bb2dd53..76f30e7 100644 --- a/drivers/eeprom/at24.c +++ b/drivers/eeprom/at24.c @@ -21,6 +21,8

[PATCH v2] davinci_nand: add support for the NAND controller

2015-07-30 Thread Jan Luebbe
This driver is based on the Linux driver (v4.0). Signed-off-by: Jan Luebbe --- Changes from v1: - Fix style problems reported by checkpatch (reported by Antony Pavlov). drivers/mtd/nand/Kconfig| 7 + drivers/mtd/nand/Makefile | 1 + drivers/mtd/nand/davinci_nand.c | 856

[PATCH v2] watchdog: add davinci watchdog driver

2015-07-30 Thread Jan Luebbe
This driver is based on the Linux driver (v4.0). Signed-off-by: Jan Luebbe --- Changes from v1: - Check result of dev_request_mem_region() with IS_ERR (reported by Sascha Hauer). drivers/watchdog/Kconfig | 6 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog

[PATCH 1/2] state: handle write-protection in the raw backend

2015-07-30 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- common/state.c | 4 1 file changed, 4 insertions(+) diff --git a/common/state.c b/common/state.c index 1243320..1ff0e24 100644 --- a/common/state.c +++ b/common/state.c @@ -1377,6 +1377,8 @@ static int backend_raw_save_one(struct state_backend_raw

[PATCH 2/2] state: fix missing newline in error message

2015-07-30 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- common/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/state.c b/common/state.c index 1ff0e24..aa436fc 100644 --- a/common/state.c +++ b/common/state.c @@ -1279,7 +1279,7 @@ static int backend_raw_load_one(struct state_backend_raw

[PATCH v2 3/6] i2c-omap: add bus recovery support

2015-07-30 Thread Jan Luebbe
This is based on commit 9dcb0e7b999db6c420c70fd32497a979a044fcdf from the kernel with some additional fixes. Signed-off-by: Jan Luebbe --- drivers/i2c/busses/i2c-omap.c | 84 +-- 1 file changed, 81 insertions(+), 3 deletions(-) diff --git a/drivers/i2c

[PATCH v2 4/6] i2c: algo-bit: fix debug code

2015-07-30 Thread Jan Luebbe
Replace jiffies from kernel code with get_time_ns. The flags variable used in the readbytes debug output does not exist. Signed-off-by: Jan Luebbe --- drivers/i2c/algos/i2c-algo-bit.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/algos/i2c-algo

[PATCH v2 5/6] i2c: algo-bit: check if the bus is busy

2015-07-30 Thread Jan Luebbe
If we have a timeout while waiting, try to recover. Signed-off-by: Jan Luebbe --- drivers/i2c/algos/i2c-algo-bit.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/i2c/algos/i2c-algo-bit.c b/drivers/i2c/algos/i2c-algo-bit.c index 62040cc..2563c0d

[PATCH v2 0/6] i2c: add bus recovery infrastructure

2015-07-30 Thread Jan Luebbe
s the kernel makes it easy to port the per-driver code to barebox. Changes from v1: - Let the driver configure the function pointers to avoid linking in i2c_generic_gpio_recovery when it is not actually needed. - Add recovery support to i2c-gpio. Jan Luebbe (6): i2c: add bus rec

[PATCH v2 6/6] i2c: gpio: add bus recovery support

2015-07-30 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- drivers/i2c/busses/i2c-gpio.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/i2c/busses/i2c-gpio.c b/drivers/i2c/busses/i2c-gpio.c index b4a0ecd..9362ed1 100644 --- a/drivers/i2c/busses/i2c-gpio.c +++ b/drivers/i2c/busses/i2c-gpio.c @@ -10,6

[PATCH v2 2/6] i2c-omap: clear ARDY twice

2015-07-30 Thread Jan Luebbe
This implements the fix from the kernel commit 4cdbf7d346e7461c3b93a26707c852e2c9db3753. Signed-off-by: Jan Luebbe --- drivers/i2c/busses/i2c-omap.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 330db98..58d2ec9

[PATCH v2 1/6] i2c: add bus recovery infrastructure

2015-07-30 Thread Jan Luebbe
This is based on the code introduced to the kernel in 5f9296ba21b3c395e53dd84e7ff9578f97f24295. Signed-off-by: Jan Luebbe --- drivers/i2c/i2c.c | 130 ++ include/i2c/i2c.h | 45 +++ 2 files changed, 175 insertions(+) diff

[PATCH] fixup! i2c-omap: add bus recovery support

2015-07-08 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- drivers/i2c/busses/i2c-omap.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 3abf05a..48c55da 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1001,7

[PATCH 3/4] i2c-omap: clear ARDY twice

2015-07-08 Thread Jan Luebbe
This implements the fix from the kernel commit 4cdbf7d346e7461c3b93a26707c852e2c9db3753. Signed-off-by: Jan Luebbe --- drivers/i2c/busses/i2c-omap.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 330db98..58d2ec9

[PATCH] of/base: fix typo

2015-07-08 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- drivers/of/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 3e40a48..7f35ee5 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -2000,7 +2000,7 @@ int of_device_enable_path(const char *path

[PATCH 1/4] i2c: add bus recovery infrastructure

2015-07-08 Thread Jan Luebbe
This is based on the code introduced to the kernel in 5f9296ba21b3c395e53dd84e7ff9578f97f24295. Signed-off-by: Jan Luebbe --- drivers/i2c/i2c.c | 161 ++ include/i2c/i2c.h | 42 ++ 2 files changed, 203 insertions(+) diff --git a

[PATCH 2/2] spi: only register enabled child nodes

2015-07-08 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- drivers/spi/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index ba23cf7..99412b0 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -113,7 +113,7 @@ static void spi_of_register_slaves(struct

[PATCH 1/2] i2c: only register enabled child nodes

2015-07-08 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- drivers/i2c/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/i2c.c b/drivers/i2c/i2c.c index 7a6bde0..ebc7e23 100644 --- a/drivers/i2c/i2c.c +++ b/drivers/i2c/i2c.c @@ -278,7 +278,7 @@ static void of_i2c_register_devices(struct

[PATCH 4/4] i2c-omap: add bus recovery support

2015-07-08 Thread Jan Luebbe
This is based on commit 9dcb0e7b999db6c420c70fd32497a979a044fcdf from the kernel with some additional fixes. Signed-off-by: Jan Luebbe --- drivers/i2c/busses/i2c-omap.c | 91 +-- 1 file changed, 88 insertions(+), 3 deletions(-) diff --git a/drivers/i2c

[PATCH 2/4] i2c: only use set_scl for recovery after calling prepare_recovery

2015-07-08 Thread Jan Luebbe
set_scl may be ineffective before calling the driver specific prepare_recovery callback. Signed-off-by: Jan Luebbe --- drivers/i2c/i2c.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/i2c.c b/drivers/i2c/i2c.c index e350ac5..39837fe 100644 --- a/drivers/i2c

i2c bus recovery support

2015-07-08 Thread Jan Luebbe
This series ports the kernel's i2c bus recovery support to barebox. Bus recovery is necessary when a slave device pulls the SDA line low because it is in a wrong state. The fix is to toggle the SCL line, which move the slaves into the idle state. Using the same structure and callbacks as the kerne

[PATCH 1/2] state: add some more error messages

2015-05-30 Thread Jan Luebbe
This helps with finding out why the state cannot be loaded correctly. Signed-off-by: Jan Luebbe --- common/state.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/common/state.c b/common/state.c index d243de8..0be0efe 100644 --- a/common/state.c +++ b

[PATCH 2/2] state: add support for uint8 variables

2015-05-30 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- common/state.c | 33 + 1 file changed, 33 insertions(+) diff --git a/common/state.c b/common/state.c index 0be0efe..7076f57 100644 --- a/common/state.c +++ b/common/state.c @@ -61,6 +61,7 @@ struct state_backend { enum

state support updates

2015-05-30 Thread Jan Luebbe
Hi, these patches apply to for-next/state. The first improves the error reporting and the second makes it easier to use the state framework with small EEPROMs. Regards, Jan ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.or

[PATCH] davinci_nand: add support for the NAND controller

2015-05-30 Thread Jan Luebbe
This driver is based on the Linux driver (v4.0). Signed-off-by: Jan Luebbe --- drivers/mtd/nand/Kconfig| 7 + drivers/mtd/nand/Makefile | 1 + drivers/mtd/nand/davinci_nand.c | 866 3 files changed, 874 insertions(+) create mode 100644

[PATCH] watchdog: add davinci watchdog driver

2015-05-30 Thread Jan Luebbe
This driver is based on the Linux driver (v4.0). Signed-off-by: Jan Luebbe --- drivers/watchdog/Kconfig | 6 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/davinci_wdt.c | 172 + 3 files changed, 179 insertions(+) create mode 100644

[PATCH] gpio-davinci: gpio get should return 0 or 1

2015-05-30 Thread Jan Luebbe
Returning other values causes problems for client code which wants to perform calculations with the returned value. Signed-off-by: Jan Luebbe --- drivers/gpio/gpio-davinci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio

[PATCH] watchdog: add davinci watchdog driver

2015-04-22 Thread Jan Luebbe
This driver is based on the Linux driver (v4.0). Signed-off-by: Jan Luebbe --- drivers/watchdog/Kconfig | 6 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/davinci_wdt.c | 172 + 3 files changed, 179 insertions(+) create mode 100644

[RFC] digest: Add enum

2015-03-12 Thread Jan Luebbe
From: Sascha Hauer Signed-off-by: Sascha Hauer --- This is also needed as the first patch for the FIT support series. It seems I can't count to 5. common/digest.c | 12 crypto/md5.c | 1 + crypto/sha1.c| 1 + crypto/sha2.c| 2 ++ include/digest.h | 24

[RFC 1/4] digest: Make filename arguments const

2015-03-12 Thread Jan Luebbe
From: Sascha Hauer Signed-off-by: Sascha Hauer --- common/digest.c | 8 include/digest.h | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/common/digest.c b/common/digest.c index 51be2ca4148b..7187b0f23d81 100644 --- a/common/digest.c +++ b/common/digest.c @

[RFC 4/4] FIT: add test config and data [do not merge]

2015-03-12 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/sandbox/configs/sandbox_defconfig | 33 + key.dtb| Bin 0 -> 1023 bytes key.dts| 27 +++ sign-configs.itb | Bi

[RFC 2/4] Add rsa support

2015-03-12 Thread Jan Luebbe
From: Sascha Hauer Signed-off-by: Sascha Hauer --- crypto/Kconfig | 3 + crypto/Makefile | 1 + crypto/rsa.c| 411 include/asm-generic/errno.h | 5 + include/rsa.h | 54 ++ 5 files cha

[RFC 0/4] FIT Support

2015-03-12 Thread Jan Luebbe
ith one or more FDT blobs' FIT configuration 'conf@1' (no description) sig OK FIT image 'kernel@1' (no description) hash OK FIT image 'fdt@1': 'snow' hash OK Jan Luebbe (2): FIT: add FIT image support FIT: add test config and data [do not merge] Sascha Haue

[RFC 3/4] FIT: add FIT image support

2015-03-12 Thread Jan Luebbe
implementation. The host tool (mkimage) to sign images has not yet been imported from U-Boot. Signed-off-by: Jan Luebbe --- arch/arm/lib/bootm.c | 74 +++ commands/Kconfig | 8 + common/Kconfig | 7 + common/Makefile | 1 + common/image-fit.c | 585

[PATCH 2/4] scripts/dtc: import update-dtc-source.sh from kernel v4.0-rc1

2015-03-04 Thread Jan Luebbe
The original script was written by Grant Likely . The version for barebox also imports some libfdt sources, so that we are able to compile the fdtget host tool. Also remove the unused non-kconfig makefiles. Signed-off-by: Jan Luebbe --- scripts/dtc/Makefile.dtc | 18

[PATCH 1/4] drivers: of: implement overlay support

2015-03-04 Thread Jan Luebbe
ff-by: Jan Luebbe --- Documentation/user/devicetree.rst | 101 +- arch/sandbox/dts/Makefile | 5 +- arch/sandbox/dts/sandbox-overlay.dtso | 26 +++ arch/sandbox/dts/sandbox.dts | 6 + commands/oftree.c | 65 ++- drivers/of/Kc

[PATCH 0/4] Device Tree Overlay Support

2015-03-04 Thread Jan Luebbe
This adds support for device tree overlays as supported by Linux 4.0-rc1. Patches 2-4 update the included DTC with overlay support. Jan Luebbe (4): drivers: of: implement overlay support scripts/dtc: import update-dtc-source.sh from kernel v4.0-rc1 scripts/dtc: Update to upstream version

[PATCH 4/4] scripts/dtc: Update to upstream version 1.4.1 with overlay support

2015-03-04 Thread Jan Luebbe
This contains Pantelis Antoniou's "dynamic DT support" v4: * dtc: Symbol and local fixup generation support * dtc: Plugin (object) device tree support. * dtc: Document the dynamic plugin internals Signed-off-by: Jan Luebbe --- scripts/dtc/checks.c | 107 -

[PATCH] defaultenv: generate force-built-in (zero) environment file

2015-01-28 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- .gitignore | 1 + defaultenv/Makefile | 8 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0456bfd..1b48213 100644 --- a/.gitignore +++ b/.gitignore @@ -50,6 +50,7 @@ barebox-flash-image System.map

[PATCH 8/8] ARM: imx233-olinuxino: update defconfig

2014-12-25 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/configs/imx233-olinuxino_defconfig | 100 1 file changed, 72 insertions(+), 28 deletions(-) diff --git a/arch/arm/configs/imx233-olinuxino_defconfig b/arch/arm/configs/imx233-olinuxino_defconfig index 75b5911..5aed6a9 100644

[PATCH 6/8] ARM: imx233-olinuxino: use LED1 as heartbeat

2014-12-25 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c b/arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c index 901e713..b87a676 100644 --- a/arch/arm

[PATCH 3/8] fixup! ARM: mxs: Add lowlevel setup from U-Boot

2014-12-25 Thread Jan Luebbe
Some boards need to use a different memory setup. Instead of a weak funktion like u-boot, we make the register data available to the board code. Also add some early delay and block reset code. Signed-off-by: Jan Luebbe --- arch/arm/mach-mxs/include/mach/init.h | 3 ++ arch/arm/mach-mxs/mem

[PATCH 4/8] arm: mxs: fix pin voltage register value for EMI

2014-12-25 Thread Jan Luebbe
The EMI pins are documented in the reference manual as using value 0 for both 1.8V and 2.5V. Value 1 is reserved. Signed-off-by: Jan Luebbe --- arch/arm/mach-mxs/include/mach/iomux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mxs/include/mach/iomux.h b

[PATCH 1/8] fixup! ARM: MXS: Add multiimage support

2014-12-25 Thread Jan Luebbe
The MX23 needs a different image config, so use separate files for MX23/MX28. Signed-off-by: Jan Luebbe --- arch/arm/mach-mxs/mxs23img.cfg | 6 ++ arch/arm/mach-mxs/mxs28img.cfg | 8 arch/arm/mach-mxs/mxsimg.cfg | 8 images/Makefile.mxs| 5 +++-- 4 files

[PATCH 2/8] fixup! ARM: mxs: Add lowlevel setup from U-Boot

2014-12-25 Thread Jan Luebbe
The current u-boot code only configures vddd once with 1500 mV as the target and 1000 mV as the brownout trigger. Signed-off-by: Jan Luebbe --- arch/arm/mach-mxs/power-init.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-mxs/power-init.c b/arch/arm/mach-mxs/power-init.c

[PATCH 5/8] ARM: imx233-olinuxino: generate complete bootstream

2014-12-25 Thread Jan Luebbe
- Enable multi-image support to generate bootstream, sd-card and 2nd stage images. - Handle pin-mux in lowlevel.c only. - Use fine-tuned memory setup from u-boot. Signed-off-by: Jan Luebbe --- arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c | 61 arch/arm/boards/imx233-olinuxino

[PATCH 7/8] ARM: imx233-olinuxino: update defaultenv

2014-12-25 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/boards/imx233-olinuxino/Makefile | 1 + .../defaultenv-imx233-olinuxino/boot/sd| 6 .../defaultenv-imx233-olinuxino/init/automount-sd | 4 +++ .../network/eth0-discover | 6 .../defaultenv-imx233

[PATCH 1/2] stringlist: the string argument should be const

2014-12-03 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- include/stringlist.h | 4 ++-- lib/stringlist.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/stringlist.h b/include/stringlist.h index 2e2addf98f19..e85500a99485 100644 --- a/include/stringlist.h +++ b/include/stringlist.h

[PATCH 2/2] fdt: of_unflatten_dtb can work on const data

2014-12-03 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- drivers/of/fdt.c | 4 ++-- include/of.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index cfe183350978..89f291787962 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -54,7 +54,7 @@ static

[PATCH] stringlist: string_list_contains can use a const string

2014-11-19 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- include/stringlist.h | 2 +- lib/stringlist.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/stringlist.h b/include/stringlist.h index 127998cb6e21..2e2addf98f19 100644 --- a/include/stringlist.h +++ b/include/stringlist.h

[PATCH] dt: factor out common code

2014-11-19 Thread Jan Luebbe
Currently, dt_struct is always checked with the same code after dt_struct_advance(). Move the check after the switch statement. Signed-off-by: Jan Luebbe --- drivers/of/fdt.c | 33 +++-- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/drivers/of/fdt.c

[PATCH 1/2] of: use OFTREE_MEM_GENERIC for the sandbox

2014-11-06 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- drivers/of/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index 97378ab59f41..90475cfbcae4 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig @@ -4,7 +4,7 @@ config OFTREE config

[PATCH 2/2] sandbox: avoid symbol conflict for fstat

2014-11-06 Thread Jan Luebbe
Recently, a fstat function was added to barebox. Redefine it as usual to avoid problems for the sandbox. This fixes loading files into the sandbox. Signed-off-by: Jan Luebbe --- arch/sandbox/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/Makefile b

[PATCH] ARM: AM335x: Beaglebone: enable ethernet

2014-08-03 Thread Jan Luebbe
The ethernet mac and mdio nodes must be explicitly enabled to override the disabled setting in am33xx.dtsi. Signed-off-by: Jan Luebbe --- arch/arm/dts/am335x-bone-common.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/am335x-bone-common.dtsi b/arch/arm

[RFC] ARM/mem: handle data aborts gracefully for md

2014-08-03 Thread Jan Luebbe
50c0: 1000 00101001 22060514 10057016...".p.. 50d0: 010f 8f07 0f00 50e0: 50f0: 1000 00101001 220

[PATCH] fixup! Add support for metadata in barebox images

2014-08-01 Thread Jan Luebbe
stat() and mmap() don't work on MTD devices, so use lseek() and read() instead. Signed-off-by: Jan Luebbe --- scripts/bareboximd.c | 61 +++- 1 file changed, 46 insertions(+), 15 deletions(-) diff --git a/scripts/bareboximd.c b/sc

[PATCH] Documentation: use command groups

2014-07-11 Thread Jan Luebbe
The help definition already contained a group declaration. This is now reused for the HTML documentation. Signed-off-by: Jan Luebbe --- Documentation/commands.rst| 86 ++- Documentation/gen_commands.py | 13 ++- 2 files changed, 95 insertions

[PATCH 2/2] ARM: AM335x: beaglebone: add simple script to change usb current limit

2014-06-18 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/boards/beaglebone/defaultenv-beaglebone/init/usb-limit-1300 | 5 + 1 file changed, 5 insertions(+) create mode 100644 arch/arm/boards/beaglebone/defaultenv-beaglebone/init/usb-limit-1300 diff --git a/arch/arm/boards/beaglebone/defaultenv-beaglebone

[PATCH 1/2] ARM: AM335x: beaglebone: remove obsolete config

2014-06-18 Thread Jan Luebbe
The bootargs are now autogenerated by barebox and the hostname should not be preconfigured. Signed-off-by: Jan Luebbe --- .../boards/beaglebone/defaultenv-beaglebone/config| 19 --- 1 file changed, 19 deletions(-) delete mode 100644 arch/arm/boards/beaglebone/defaultenv

[PATCH] commands: ls: add ll as an alias for ls -l

2014-06-18 Thread Jan Luebbe
This saves one second of user time on every interactive boot. Signed-off-by: Jan Luebbe --- commands/ls.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/commands/ls.c b/commands/ls.c index 3440790..f8144ae 100644 --- a/commands/ls.c +++ b/commands/ls.c @@ -127,6 +127,9

[PATCH 2/2] of: implement overlay support

2013-10-14 Thread Jan Luebbe
This implements device tree overlay support as described in http://thread.gmane.org/gmane.linux.ports.arm.omap/91556 and used on BeagleBone boards. It can be used to load DT overlays at runtime, which are then passed as a resolved tree to the kernel. Signed-off-by: Jan Luebbe --- commands

[PATCH 1/2] of: simplify phandle lookup

2013-10-14 Thread Jan Luebbe
From: Sascha Hauer Instead of populating an extra list containing all phandles just iterate over the whole tree. This is done as preparation for more dynamic devicetrees where parts are loaded at runtime. Here we don't want to keep the list of phandles in sync. Signed-off-by: Sascha Hauer ---

[PATCH] at91: fix typo in Kconfig description

2013-10-14 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/mach-at91/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 5fb3ead..6ab374e 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig @@ -549,7 +549,7

[PATCH] common: fix possible build problem without password support

2013-10-14 Thread Jan Luebbe
In the case where CONFIG_PASSWORD is off, CONFIG_PASSWORD_DEFAULT is undefined. As undefined is not "", this causes make to call find -type f. If there is a filename containing a :, make will complain about having "multiple target patterns" Signed-off-by: Jan Luebbe ---

BeagleBone fixes & cleanup

2013-10-02 Thread Jan Luebbe
Hi, I've tried the recent changes in next on both BeagleBones. These are actual fixes: [PATCH 1/4] am33xx_generic: convert from switch to if/else [PATCH 3/4] arm: omap: am33xx_generic: fix DDR setup for DDR2 These are more 'nice to have': [PATCH 2/4] arm: mmu: be more verbose if ttb setup fails

[PATCH 4/4] beaglebone: use most recent timings for white variant

2013-10-02 Thread Jan Luebbe
These values come from the U-Boot source code. Signed-off-by: Jan Luebbe --- arch/arm/boards/beaglebone/lowlevel.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/boards/beaglebone/lowlevel.c b/arch/arm/boards/beaglebone/lowlevel.c index 2ff7c71

[PATCH 3/4] arm: omap: am33xx_generic: fix DDR setup for DDR2

2013-10-02 Thread Jan Luebbe
the Bone was removed in 88659d9c4a87a730f6efe4f38c011e8e0214a67b. Signed-off-by: Jan Luebbe --- I've tested this on White and Black BeagleBones. An additional test on the PCM051 would be good. arch/arm/mach-omap/am33xx_generic.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 1/4] am33xx_generic: convert from switch to if/else

2013-10-02 Thread Jan Luebbe
The function am33xx_get_cpu_rev may be called before barebox_arm_entry(), so we need to avoid switch statements. One example is the BeagleBone, where we use this function to differenciate between the white and black variants. Signed-off-by: Jan Luebbe --- arch/arm/mach-omap/am33xx_generic.c

[PATCH 2/4] arm: mmu: be more verbose if ttb setup fails

2013-10-02 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/cpu/mmu.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c index e3ea3b6..fae83f3 100644 --- a/arch/arm/cpu/mmu.c +++ b/arch/arm/cpu/mmu.c @@ -285,7 +285,7 @@ static int mmu_init(void

[PATCH] scripts: Makefile: do not use obj-* variables for userspace tools

2013-05-28 Thread Jan Luebbe
When using obj-?, it erroneously tries to link a built-in.o. Instead use the extra-? variable. Signed-off-by: Jan Luebbe --- scripts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile b/scripts/Makefile index f062fc0..e375530 100644 --- a/scripts

[PATCH] scripts: genenv: remove empty files from tempdir

2013-05-28 Thread Jan Luebbe
This allows leaving out default files from the environment by overriding them with empty files in the board or BSP. Signed-off-by: Jan Luebbe --- scripts/genenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/genenv b/scripts/genenv index 374db6d..3e91062 100755

[PATCH 1/2] arm: am33xx: add pinmux and clock config for UART2

2013-05-23 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/mach-omap/am33xx_clock.c |8 arch/arm/mach-omap/am33xx_mux.c| 11 +++ arch/arm/mach-omap/include/mach/am33xx-clock.h |3 +++ arch/arm/mach-omap/include/mach/am33xx-mux.h |1 + 4 files changed, 23

[PATCH 2/2] arm: am33xx: add pinmux config for RMII2

2013-05-23 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/mach-omap/am33xx_mux.c | 24 arch/arm/mach-omap/include/mach/am33xx-mux.h |2 ++ 2 files changed, 26 insertions(+) diff --git a/arch/arm/mach-omap/am33xx_mux.c b/arch/arm/mach-omap/am33xx_mux.c index 61014d9

[PATCH] Makefile: drop duplicate definition of cmd_objcopy

2013-04-18 Thread Jan Luebbe
This command is already defined in scripts/Makefile.lib, which is included from Makefile. Signed-off-by: Jan Luebbe --- All defconfigs still build ok. Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Makefile b/Makefile index 71f181c..ebfe8ca 100644 --- a/Makefile +++ b/Makefile

[PATCH v2 2/2] m33xx-clock: remove unused code

2013-04-18 Thread Jan Luebbe
This patch includes no functional change. If a configurable DDRPLL_M is required later, it should be set by the board instead of from here. Signed-off-by: Jan Luebbe --- arch/arm/mach-omap/include/mach/am33xx-clock.h | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a

[PATCH v2 1/2] m33xx-clock: configure PLLs based on oscillator frequency

2013-04-18 Thread Jan Luebbe
The *PLL_N values can be calculated from the OSC value. This patch includes no functional change. Signed-off-by: Jan Luebbe --- changes from v1: * add change description (sha) * add spaces around operator (sha) * split off patch to remove unused code arch/arm/mach-omap

[PATCH] defaultenv-2: init: display prompt after running /env/init/*

2013-04-17 Thread Jan Luebbe
This allows init scripts to print messages to the console without messing up the timeout prompt. Signed-off-by: Jan Luebbe --- defaultenv-2/base/bin/init | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/defaultenv-2/base/bin/init b/defaultenv-2/base/bin/init

[PATCH] am33xx: add defines for GPIOs

2013-04-17 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/mach-omap/include/mach/am33xx-clock.h |2 ++ arch/arm/mach-omap/include/mach/am33xx-silicon.h |6 ++ 2 files changed, 8 insertions(+) diff --git a/arch/arm/mach-omap/include/mach/am33xx-clock.h b/arch/arm/mach-omap/include/mach/am33xx

[PATCH] arm: write image checksums into the barebox header

2013-04-17 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- Makefile | 2 +- arch/arm/include/asm/barebox-arm-head.h| 2 + arch/arm/mach-at91/include/mach/barebox-arm-head.h | 2 + include/filetype.h | 4 +- scripts/.gitignore

[PATCH] am33xx-clock: configure PLLs based on oscillator frequency

2013-04-17 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/mach-omap/include/mach/am33xx-clock.h | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-omap/include/mach/am33xx-clock.h b/arch/arm/mach-omap/include/mach/am33xx-clock.h index 39c107f..f496756 100644 --- a

[PATCH] arm: omap: am33xx: store boot source info from ROM loader

2013-04-17 Thread Jan Luebbe
The ROM loader passes the address of a buffer to the MLO in register 0. Store this data so we can find the boot source later. Signed-off-by: Jan Luebbe --- arch/arm/boards/beaglebone/lowlevel.c| 4 +++- arch/arm/mach-omap/Makefile | 2 +- arch/arm/mach-omap

[PATCH] environment: support redundant environments

2013-04-17 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/mach-omap/omap_generic.c | 14 +++-- commands/loadenv.c| 23 ++--- commands/saveenv.c| 42 --- common/environment.c | 7 ++- common/startup.c

[PATCH] commands: the crc command is actually called crc32

2013-04-15 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- commands/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/Kconfig b/commands/Kconfig index c1454c7..777b52c 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -308,12 +308,12 @@ config CMD_MEMORY config CMD_CRC

[PATCH 2/2] console: fix console without CONFIG_PARAMETER

2013-04-15 Thread Jan Luebbe
If CONFIG_PARAMETER is not set, dev_set_param() does not call the setter function. Call it directly instead in this case. Signed-off-by: Jan Luebbe --- common/console.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/common/console.c b/common/console.c index

[PATCH 1/2] beaglebone: remove stray semicolon

2013-04-15 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/boards/beaglebone/lowlevel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boards/beaglebone/lowlevel.c b/arch/arm/boards/beaglebone/lowlevel.c index a9737d9..28959ff 100644 --- a/arch/arm/boards/beaglebone/lowlevel.c +++ b

[PATCH] omap: move to common bootsource framework

2013-04-15 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- This is based on current master. arch/arm/mach-omap/am33xx_generic.c | 10 +++--- arch/arm/mach-omap/include/mach/generic.h | 13 - arch/arm/mach-omap/omap3_generic.c| 16 ++-- arch/arm/mach-omap/omap4_generic.c| 24

[PATCH] mtd: update NAND manufacturer names from the kernel

2013-04-10 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- drivers/mtd/nand/nand_ids.c | 4 +++- include/linux/mtd/nand.h| 20 +++- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c index 72593d4..4f8fb02 100644 --- a/drivers/mtd

[PATCH] commands: i2c: change 0X to 0x

2013-04-08 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- commands/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/i2c.c b/commands/i2c.c index 8370b43..626255d 100644 --- a/commands/i2c.c +++ b/commands/i2c.c @@ -45,7 +45,7 @@ static int do_i2c_probe(int argc, char *argv[]) if

[PATCH v2] nand_write: initialize OOB buffer for each page

2013-01-31 Thread Jan Luebbe
Previously, during a multi-page write, chip->oob_poi would not be reinitialized. See commit f722013ee9fd24623df31dec9a91a6d02c3e2f2f in the kernel for an analogous change. Signed-off-by: Jan Luebbe --- drivers/mtd/nand/nand_write.c | 10 +- 1 file changed, 5 insertions(+)

[PATCH 2/2] nand_omap_gpmc: use 0x00 for ECC padding in BCH ROM mode

2013-01-29 Thread Jan Luebbe
The kernel uses these bytes to differentiate between erased/programmed pages. Signed-off-by: Jan Luebbe --- drivers/mtd/nand/nand_omap_gpmc.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/mtd/nand/nand_omap_gpmc.c b/drivers/mtd/nand

[PATCH 1/2] nand_write: initialize OOB buffer for each page

2013-01-29 Thread Jan Luebbe
Previously, during a multi-page write, chip->oob_poi would not be reinitialized. Signed-off-by: Jan Luebbe --- drivers/mtd/nand/nand_write.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/nand_write.c b/drivers/mtd/nand/nand_write.c index 9997

[PATCH 15/19] ARM omap3: Add change OMAP_ prefix to OMAP3_ for registers

2012-12-18 Thread Jan Luebbe
From: Sascha Hauer Signed-off-by: Sascha Hauer --- arch/arm/boards/beagle/board.c | 32 +-- arch/arm/boards/omap343xdsp/board.c | 32 +-- arch/arm/boards/omap3evm/board.c| 28 +-- arch/arm/boards/phycard-a-l1/pca-a-l1.c | 36 ++-- arc

  1   2   3   >