[PATCH 3/3] ARM: cfa10036: Use the board variant to load a different device tree

2012-12-13 Thread Maxime Ripard
The board variant found on the AT24 EEPROM holds the variant ID that we can use to identify which expansion board we are running on and thus which device tree to load and pass to the kernel. Signed-off-by: Maxime Ripard --- .../boards/crystalfontz-cfa10036/env/boot/mmc-ext3 |4 ++-- 1 file c

[PATCH 2/3] ARM: cfa10036: Retrieve the board variant from the AT24

2012-12-13 Thread Maxime Ripard
The AT24 found on the expansion boards store the variant of the board it is soldered onto. That means that we are that way able to determine what expansion board is currently plugged in if any. If we can't communicate with the EEPROM, we just assume that only the CFA-10036 is there. Signed-off-by

[PATCH 1/3] ARM: cfa10036: Add the AT24HC02 I2C EEPROM

2012-12-13 Thread Maxime Ripard
This EEPROM is found on the expansion boards available for the 10036 module. Since we won't need to do anything fancy except reading/writing from it, use bitbanging to communicate with it. This EEPROM will hold mostly the board_id so that we can determine if there is an expansion board plugged in

[PATCHv2 0/3] ARM: cfa10036: Load a different DTB depending on variants

2012-12-13 Thread Maxime Ripard
Hi, The CFA-10036 is actually a module that can be plugged in an expansion board. For now, there is only two of these expansion boards, the CFA-10037 and the CFA-10049, with different features, muxing and so on. So, at boot time, the cfa-10036 has to be aware that it runs on an expansion board a

[PATCH] commands: add scrub

2012-12-13 Thread Wolfram Sang
Allows erasing a whole NAND device including the bad blocks. Only meant for development where one might accidently overwrite real bad block information. Signed-off-by: Wolfram Sang --- commands/Kconfig|8 + commands/flash.c| 68 ++

Re: [PATCH] commands: add scrub

2012-12-13 Thread Wolfram Sang
On Thu, Dec 13, 2012 at 04:45:54PM +0100, Wolfram Sang wrote: > Allows erasing a whole NAND device including the bad blocks. Only meant > for development where one might accidently overwrite real bad block > information. > > Signed-off-by: Wolfram Sang Ooops, wrong one. Please discard until I po

[PATCH] commands: flash: add missing newlines to error messages

2012-12-13 Thread Wolfram Sang
Signed-off-by: Wolfram Sang --- commands/flash.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/flash.c b/commands/flash.c index b1673de..d22d6a0 100644 --- a/commands/flash.c +++ b/commands/flash.c @@ -54,7 +54,7 @@ static int do_flerase(int argc, char *argv[

[PATCH 0/2] allow scrubbing (erasing of bad blocks)

2012-12-13 Thread Wolfram Sang
This patch series first adds a flag to mtd devices which disables special treatment for bad blocks. That means, they are handled like every other good block. The second one then adds a scrub command which is basically a simple erase, only that bad blocks are treated like good blocks and are trying

[PATCH 2/2] commands: add scrub

2012-12-13 Thread Wolfram Sang
Allows erasing a whole NAND device including the bad blocks. Only meant for development where one might accidently overwrite real bad block information. Make sure you understood the help text! Signed-off-by: Wolfram Sang --- commands/Kconfig|8 + commands/flash.c|

[PATCH 1/2] mtd: nand: add flag to ignore special handling of bad blocks

2012-12-13 Thread Wolfram Sang
This is needed for a later command to scrub away bad blocks. ONLY USE THIS FEATURE WHEN YOU KNOW WHAT YOU ARE DOING! Signed-off-by: Wolfram Sang --- drivers/mtd/core.c|3 ++- drivers/mtd/nand/nand_write.c | 37 - include/linux/mtd/mtd-abi.h

[PATCH 02/14] ARM omap4: remove unused struct

2012-12-13 Thread Jan Luebbe
From: Sascha Hauer Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/include/mach/omap4-silicon.h |9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/mach-omap/include/mach/omap4-silicon.h b/arch/arm/mach-omap/include/mach/omap4-silicon.h index 008eafb..8ce1882 100644 ---

AM33xx support

2012-12-13 Thread Jan Luebbe
This is an updated series based on current master, with Sascha's OMAP cleanup patches. The CPSW driver is not yet intended for merging and included only for those who want to try it out. Thanks, Jan ___ barebox mailing list barebox@lists.infradead.org

[PATCH 03/14] ARM omap4: Add missing assembly protection in header file

2012-12-13 Thread Jan Luebbe
From: Sascha Hauer Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/include/mach/omap4-silicon.h |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-omap/include/mach/omap4-silicon.h b/arch/arm/mach-omap/include/mach/omap4-silicon.h index 8ce1882..127257d 100644 --- a/ar

[PATCH 04/14] ARM omap4: Add missing double include protection

2012-12-13 Thread Jan Luebbe
From: Sascha Hauer missing in omap4-clock.h Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/include/mach/omap4-clock.h |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap/include/mach/omap4-clock.h b/arch/arm/mach-omap/include/mach/omap4-clock.h i

[PATCH 01/14] ARM omap: remove unused function

2012-12-13 Thread Jan Luebbe
From: Sascha Hauer Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/include/mach/sys_info.h |1 - arch/arm/mach-omap/omap3_generic.c | 19 --- 2 files changed, 20 deletions(-) diff --git a/arch/arm/mach-omap/include/mach/sys_info.h b/arch/arm/mach-omap/include/

[PATCH 08/14] ARM omap3: make PRM defines SoC specific

2012-12-13 Thread Jan Luebbe
From: Sascha Hauer Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/include/mach/omap3-silicon.h |3 +-- arch/arm/mach-omap/omap3_generic.c |2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-omap/include/mach/omap3-silicon.h b/arch/arm/ma

[PATCH 07/14] ARM omap4: make PRM defines SoC specific

2012-12-13 Thread Jan Luebbe
From: Sascha Hauer Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/include/mach/omap4-silicon.h |8 arch/arm/mach-omap/omap4_generic.c |2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap/include/mach/omap4-silicon.h b/arch/a

[PATCH 06/14] ARM omap: Make timer base runtime configurable

2012-12-13 Thread Jan Luebbe
From: Sascha Hauer Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/include/mach/timers.h |4 arch/arm/mach-omap/omap3_clock.c |3 +++ arch/arm/mach-omap/omap4_clock.c |1 + arch/arm/mach-omap/omap4_generic.c |2 +- arch/arm/mach-omap/s32k_clksource.

[PATCH 05/14] ARM omap: Make gpmc base runtime configurable

2012-12-13 Thread Jan Luebbe
From: Sascha Hauer Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/devices-gpmc-nand.c |2 +- arch/arm/mach-omap/gpmc.c | 14 -- arch/arm/mach-omap/include/mach/gpmc.h |4 +++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-om

[PATCH 12/14] arm: omap: am33xx: add support for low level debug

2012-12-13 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/mach-omap/include/mach/debug_ll.h |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-omap/include/mach/debug_ll.h b/arch/arm/mach-omap/include/mach/debug_ll.h index b2714c5..142f01a 100644 --- a/arch/arm/mach-omap/include/mach/debug_l

[PATCH 09/14] ARM omap: Use SoC specific defines for gpmc and timer base

2012-12-13 Thread Jan Luebbe
From: Sascha Hauer Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/gpmc.c | 11 +-- arch/arm/mach-omap/include/mach/omap3-silicon.h |4 ++-- arch/arm/mach-omap/include/mach/omap4-silicon.h |4 ++-- arch/arm/mach-omap/omap3_clock.c|2

[PATCH 10/14] ARM omap: include individual SoC files

2012-12-13 Thread Jan Luebbe
From: Sascha Hauer - remove mach/silicon.h and include omap?-silicon.h directly - include mach/omap?-clock.h directly where needed Signed-off-by: Sascha Hauer --- arch/arm/boards/archosg9/board.c|2 +- arch/arm/boards/beagle/board.c |2 +- arch/arm/boar

[PATCH 11/14] ARM OMAP AM33XX: create new ARCH for AM33xx

2012-12-13 Thread Jan Luebbe
From: Teresa Gámez Created ARCH for AM33xx boards as second stage bootloader. This includes: - Added dmtimer0 - Created basic header files - Added MMC support for ARCH_AM33XX - Added reset function Signed-off-by: Teresa Gámez Some header file cleanup by: Signed-off-by: Jan Luebbe --- arch/ar

[PATCH 14/14] drivers: net: add driver for TI CPSW

2012-12-13 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/boards/beaglebone/board.c | 82 +++ arch/arm/mach-omap/include/mach/cpsw.h | 49 ++ drivers/net/Kconfig|4 + drivers/net/Makefile |1 + drivers/net/cpsw.c | 1021 ++

[PATCH 0/9] introduction of dmesg support

2012-12-13 Thread Jean-Christophe PLAGNIOL-VILLARD
HI, we currently have 2 fifo at comsole level one for input one for output we fill the output fifo before any console is registered and then empty it Now we introduce a new mecanism as in the kernel dmesg we will always fill the output kfifo with drivers o

[PATCH 2/9] console: switch to kfifo_dump_str

2012-12-13 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/console.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/common/console.c b/common/console.c index fdd5f42..96e1396 100644 --- a/common/console.c +++ b/common/console.c @@ -55,6 +55,11 @@ static struct kfi

[PATCH 5/9] startup: switch to pr_xxx

2012-12-13 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/startup.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/startup.c b/common/startup.c index 14409a2..1a6352d 100644 --- a/common/startup.c +++ b/common/startup.c @@ -98,19 +98,19 @@ void start_bare

[PATCH 3/9] intoduce dmesg to print the barebox output ring buffer

2012-12-13 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/Kconfig |6 ++ common/console.c | 20 2 files changed, 26 insertions(+) diff --git a/commands/Kconfig b/commands/Kconfig index ac9b797..55a9840 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -115

[PATCH 9/9] dev_printf: switch to pr_info

2012-12-13 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/base/driver.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 5b3542b..4688a19 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c @@ -380,13 +38

[PATCH 6/9] console: allow to specify ouput kfifo size via CONSOLE_KFIFO_OUTPUT_SIZE

2012-12-13 Thread Jean-Christophe PLAGNIOL-VILLARD
1024 by default 4096 if DEBUG_INFO Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/Kconfig |7 +++ common/console.c |4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/common/Kconfig b/common/Kconfig index 57119dc..6a0c345 100644 --- a/common/Kconfig

[PATCH 7/9] at91: clock switch to pr_info

2012-12-13 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/mach-at91/clock.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c index e911270..23e4dd4 100644 --- a/arch/arm/mach-at91/clock.c +++ b/arch/arm/mach-at91/clo

[PATCH 1/9] kfifo: introduce kfifo_dump_str to dump the fifo

2012-12-13 Thread Jean-Christophe PLAGNIOL-VILLARD
This will allow to implement a dmesg mecanism in barebox Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- include/kfifo.h |2 ++ lib/kfifo.c | 21 + 2 files changed, 23 insertions(+) diff --git a/include/kfifo.h b/include/kfifo.h index 25880f4..9dbbe0d 100644 --

[PATCH 8/9] meminfo: switch to pr_xxx

2012-12-13 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/meminfo.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/meminfo.c b/common/meminfo.c index 06fce5a..989024f 100644 --- a/common/meminfo.c +++ b/common/meminfo.c @@ -9,12 +9,12 @@ static int display_

[PATCH 4/9] introduce printk support

2012-12-13 Thread Jean-Christophe PLAGNIOL-VILLARD
this will allow to fill the output buffer and now have 2 output mode pr_xxx for drivers and printf for application Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/console.c| 47 +++ include/common.h| 28 +

[PATCH 8/9] fixup! USB i.MX: Add chipidea driver support

2012-12-13 Thread Sascha Hauer
--- drivers/usb/imx/chipidea-imx.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/imx/chipidea-imx.c b/drivers/usb/imx/chipidea-imx.c index 66eb1ad..5b4c081 100644 --- a/drivers/usb/imx/chipidea-imx.c +++ b/drivers/usb/imx/chipidea-imx.c @@ -52,7 +52,7 @@ static

[PATCH 4/9] ARM i.MX51: Add USB device functions

2012-12-13 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/imx51.c |1 + arch/arm/mach-imx/include/mach/devices-imx51.h | 15 +++ 2 files changed, 16 insertions(+) diff --git a/arch/arm/mach-imx/imx51.c b/arch/arm/mach-imx/imx51.c index a62daf8..cffcca3 100644 --- a

[PATCH 9/9] ARM i.MX pcm038: Update defconfig for chipidea driver

2012-12-13 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/configs/pcm038_defconfig |9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/arm/configs/pcm038_defconfig b/arch/arm/configs/pcm038_defconfig index 13e2451..e2f5388 100644 --- a/arch/arm/configs/pcm038_defconfig +++ b/arch

[PATCH] i.MX chipidea support

2012-12-13 Thread Sascha Hauer
The following adds support for the chipidea core of the i.MX SoCs. It is somewhat designed after the kernel chipidea driver. A usb-misc driver matches to the misc registers and allows a driver which binds to the usb devices themselves to configure the misc registers. If ULPI support is selected, t

[PATCH 1/9] USB ehci: Allow to register independently from device

2012-12-13 Thread Sascha Hauer
The EHCI core often is part of a otg core. Allow it to be registered separately from another driver. Signed-off-by: Sascha Hauer --- drivers/usb/host/ehci-hcd.c | 46 ++- include/usb/ehci.h | 17 ++-- 2 files changed, 43 insertions

[PATCH 7/9] pcm038: Stop ongoing ULPI transfers before registering the transceiver

2012-12-13 Thread Sascha Hauer
The ULPI lines are normally input to the USB port. In order to configure the ULPI transceiver properly the ongoing transfers must be stopped. This can be done by configuring the the STP pin as gpio output and drinving it high. Signed-off-by: Sascha Hauer --- arch/arm/boards/pcm038/pcm970.c | 1

[PATCH 2/9] USB i.MX: Add chipidea driver support

2012-12-13 Thread Sascha Hauer
For proper USB function the usbmisc registers have to be initialized. This patch adds a driver which matches for the usbmisc registers. This driver is called from a new driver which binds to the USB ports to configure the misc registers. After that the driver registers the EHCI driver and an ULPI t

[PATCH 5/9] ARM i.MX31: Add USB device functions

2012-12-13 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/imx31.c |1 + arch/arm/mach-imx/include/mach/devices-imx31.h | 15 +++ 2 files changed, 16 insertions(+) diff --git a/arch/arm/mach-imx/imx31.c b/arch/arm/mach-imx/imx31.c index 2882675..f0954b5 100644 --- a

[PATCH 3/9] ARM i.MX27: Add USB device functions

2012-12-13 Thread Sascha Hauer
Register the USB misc devices and provide convenience wrappers to register the USB ports for i.MX27. Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/devices.c|5 + arch/arm/mach-imx/imx27.c |1 + arch/arm/mach-imx/include/mach/devices-imx27.

[PATCH 6/9] ARM i.MX pcm038: switch to chipidea support

2012-12-13 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/boards/pcm038/pcm970.c | 34 -- arch/arm/configs/pcm038_defconfig |1 + 2 files changed, 9 insertions(+), 26 deletions(-) diff --git a/arch/arm/boards/pcm038/pcm970.c b/arch/arm/boards/pcm038/pcm970.c index 93a1839.

[PATCH 4/7] mfd mc13893: Add register defines

2012-12-13 Thread Sascha Hauer
Add register defines for the mc13892. Signed-off-by: Sascha Hauer --- include/mfd/mc13892.h | 217 + 1 file changed, 217 insertions(+) create mode 100644 include/mfd/mc13892.h diff --git a/include/mfd/mc13892.h b/include/mfd/mc13892.h new file m

[PATCH 7/7] USB ehci: Add powerup fixup for EfikaSB

2012-12-13 Thread Sascha Hauer
The EfikaSB has a bug requiring to write to an ULPI register after powerup. It doesn't seem that this this bug is present on any other hardware, so add a workaround directly into the driver. Signed-off-by: Sascha Hauer --- drivers/usb/host/ehci-hcd.c | 23 ++- 1 file change

[PATCH 3/7] mci i.MX esdhc: Allow to specify devicename from platformdata

2012-12-13 Thread Sascha Hauer
For boards which need to have persistent names for the device file. Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/include/mach/esdhc.h |1 + drivers/mci/imx-esdhc.c|3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/include/mach/esdhc.h b/arch/ar

[PATCH 2/7] mci: Allow to specify device name

2012-12-13 Thread Sascha Hauer
When multiple MMC/SD cards are present in the system we often have to have persistent names to identify them during runtime. This patch allows to overwrite the devicename which is used. Signed-off-by: Sascha Hauer --- drivers/mci/mci-core.c | 10 +++--- include/mci.h |1 + 2 f

[PATCH] Efika MX Smartbook support

2012-12-13 Thread Sascha Hauer
The following adds support for the Efika MX Smartbook. Support is almost complete including - USB - SD card slots - Internal PATA flash drive - Internal SPI NOR flash - LEDs I have written some documentation for using barebox on the Smartbook here: http://wiki.barebox.org/doku.php?id=boards:efik

[PATCH 1/7] ata sff: set device pointer in ata port

2012-12-13 Thread Sascha Hauer
This was forgotten in the last ata updates and leads to NULL pointer dereferences. Signed-off-by: Sascha Hauer --- drivers/ata/ide-sff.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ata/ide-sff.c b/drivers/ata/ide-sff.c index 3dd6f63..632b0e5 100644 --- a/drivers/ata/ide-sff.c

[PATCH 6/7] ARM: Add defconfig for Efika MX smartbook

2012-12-13 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/configs/efika-mx-smartbook_defconfig | 108 + 1 file changed, 108 insertions(+) create mode 100644 arch/arm/configs/efika-mx-smartbook_defconfig diff --git a/arch/arm/configs/efika-mx-smartbook_defconfig b/arch/arm/configs/efika

[PATCH 5/7] ARM i.MX51: Add support for the Efika MX Smartbook

2012-12-13 Thread Sascha Hauer
The Efika MX Smartbook is a i.MX51 based netbook. This patch adds nearly full support for it including: - USB - SD card slots - Internal SPI NOR flash - Internal flash PATA drive - LEDs Signed-off-by: Sascha Hauer --- arch/arm/Makefile |1 + arch/arm/boards/

Re: [PATCH 0/3] MIPS: add pre-bootloader (pbl) image support

2012-12-13 Thread Sascha Hauer
On Wed, Dec 12, 2012 at 11:24:45PM +0400, Antony Pavlov wrote: > This patch series introduce pre-bootloader (pbl) support on MIPS. > The only supported board is qemu-malta. > > [PATCH 1/3] MIPS: add pre-bootloader (pbl) image support > [PATCH 2/3] MIPS: qemu-malta: add trivial pbl support > [PATCH

Re: [PATCHv2 0/3] ARM: cfa10036: Load a different DTB depending on variants

2012-12-13 Thread Sascha Hauer
On Thu, Dec 13, 2012 at 11:26:42AM +0100, Maxime Ripard wrote: > Hi, > > The CFA-10036 is actually a module that can be plugged in an expansion board. > > For now, there is only two of these expansion boards, the CFA-10037 and the > CFA-10049, with different features, muxing and so on. > > So, a

Re: [PATCH] commands: flash: add missing newlines to error messages

2012-12-13 Thread Sascha Hauer
On Thu, Dec 13, 2012 at 04:46:46PM +0100, Wolfram Sang wrote: > Signed-off-by: Wolfram Sang > --- Applied, thanks Sascha > commands/flash.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/commands/flash.c b/commands/flash.c > index b1673de..d22d6a0 100644 > --