Re: [PATCH 14/14] don't cast negative error codes to unsigned size_t

2014-02-07 Thread Juergen Beisert
uimage_get_size(struct uimage_handle *handle, unsigned int image_no) What about ssize_t? jbe -- Pengutronix e.K.                              | Juergen Beisert             | Linux Solutions for Science and Industry      | http://www.pengutronix.de

[PATCH 1/3] FPGA: add a simple programming handler framework

2013-11-06 Thread Juergen Beisert
This framework handles a list of registered FPGA programming handlers to unify a firmware programming interface by hiding the details how to program a specific FPGA in its handler. Signed-off-by: Juergen Beisert j...@pengutronix.de --- common/Kconfig| 3 ++ common/Makefile | 1

[PATCH 3/3] FPGA: provide a handler to program ALTERA FPGAs

2013-11-06 Thread Juergen Beisert
This handler uses a regular SPI master and a few GPIO to program an ALTERA FPGA in serial mode. Signed-off-by: Juergen Beisert j...@pengutronix.de --- drivers/Kconfig | 1 + drivers/Makefile | 1 + drivers/fpga/Kconfig | 10 ++ drivers/fpga/Makefile

Re: [PATCH 2/6] mci: do not limit clock to card capabilities

2013-05-31 Thread Juergen Beisert
transfer speed *and* a standard/high speed bit. Which one is reliable? jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | ___ barebox

Re: [PATCH 1/6] mci: print current clock in info

2013-05-31 Thread Juergen Beisert
-- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman

Re: [PATCH 3/6] mci: rename trans_speed field to csd_max_dtr

2013-05-31 Thread Juergen Beisert
/ ;) /** currently used data block length for read accesses */ unsigned read_bl_len; /** currently used data block length for write accesses */ Acked-by: Juergen Beisert j...@pengutronix.de jbe -- Pengutronix e.K. | Juergen Beisert | Linux

Re: Unable to Boot from NAND on Mini2440

2013-05-27 Thread Juergen Beisert
Vikram Narayanan wrote: On 21/05/2013 00:26, Juergen Beisert wrote: Hmm, never had a Mini2440 with a 1 GiB NAND. Can you see, what kind of SDRAM devices are on your Mini2440 board? Maybe they also changed the SDRAMs... Sorry, I was totally away from mail access. Here is the name

[PATCH] MXS/i.MX23: add boot source detection

2013-05-21 Thread Juergen Beisert
. This detection approach reads again the GPIOs. It switches temporarily the pins to act as GPIOs and input, reads their settings, and switches back to their previous functions. Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-mxs/imx.c | 44

Re: [RFC] MXS/i.MX23: detecting the boot source

2013-05-21 Thread Juergen Beisert
Sascha Hauer wrote: On Fri, May 17, 2013 at 10:18:39AM +0200, Juergen Beisert wrote: The boot source for the i.MX23 is configured via a few GPIOs, which are later be used for different purposes (like LCD data for example). The SoC internal ROM reads these GPIOs and uses the selected boot

[RFC] MXS/i.MX23: detecting the boot source

2013-05-17 Thread Juergen Beisert
, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman

[PATCH] MCI/MXS: fix signed/unsigned mismatch

2013-05-08 Thread Juergen Beisert
: barebox:/ devinfo mxs_mci0 resources: num : 0 start : 0x80034000 size : 0x2000 driver: mxs_mci bus: platform Interface Min. bus clock: 1476 Hz Max. bus clock: 4800 Hz Current bus clock: 2400 Hz Bus width: 8 bit Signed-off-by: Juergen Beisert j...@pengutronix.de

[PATCH 3/6] MCI/Core: increase the transmission frequency while card detection

2013-04-26 Thread Juergen Beisert
According to the SD card spec the detection can happen at 400 kHz Signed-off-by: Juergen Beisert j...@pengutronix.de --- drivers/mci/mci-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index a269aee..9aeaa4d 100644

[PATCH 5/6] MCI/MXS: report a better matching error code when the transfer fails

2013-04-26 Thread Juergen Beisert
EIO is a better error message to describe the data transfer to or from the SD cards has failed. Signed-off-by: Juergen Beisert j...@pengutronix.de --- drivers/mci/mxs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mci/mxs.c b/drivers/mci/mxs.c index 3045e6a

[PATCH 1/6] MXS/MCI: add forgotten header file

2013-04-26 Thread Juergen Beisert
Commit b36f68d74b5379c216429a0f15aeedbd7917e10d now uses the generic mxs_reset_block() routine, but this requires the mxs.h header file for the prototype. Signed-off-by: Juergen Beisert j...@pengutronix.de --- drivers/mci/mxs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mci

[PATCH 4/6] MCI/Core: honor transmission limits at the card's side

2013-04-26 Thread Juergen Beisert
The host limits are only one limit we must honor when changing the transmission frequency. The SD cards have their own limits, so take them also into account. Signed-off-by: Juergen Beisert j...@pengutronix.de --- drivers/mci/mci-core.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion

[PATCH 2/6] MXS/MCI: don't touch variables in the host structure

2013-04-26 Thread Juergen Beisert
MMC_BUS_WIDTH_* macros do not correspond with the real bus width. After setting a bus width larger than 1 bit the next call to change the frequency ends in the default handler and the host interface stays silently at the previous frequency. Signed-off-by: Juergen Beisert j...@pengutronix.de

[PATCH 6/6] MCI/Core: move an ugly ifdef to the header file

2013-04-26 Thread Juergen Beisert
To avoid the compiler complains about an unused variable when no SPI host is enabled, use an inline function instead of a macro. Signed-off-by: Juergen Beisert j...@pengutronix.de --- drivers/mci/mci-core.c | 3 +-- include/mci.h | 15 +-- 2 files changed, 10 insertions

Make Chumby work again with its SD card

2013-04-23 Thread Juergen Beisert
Due to a missing resource size the Chumby isn't able to work with its SD card anymore. Instead it hangs forever. By using the generic block reset routine I was able to discover the cause. The following two patches makes the Chumby work again. At least the resource size patch should be applied to

[PATCH 2/2] MXS/MCI: simplify reset of the MCI device block

2013-04-23 Thread Juergen Beisert
Since a generic block reset function is a available, also the MCI driver should make use of it. Signed-off-by: Juergen Beisert j...@pengutronix.de --- drivers/mci/mxs.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/mci/mxs.c b/drivers/mci/mxs.c index

[PATCH 1/2] MXS/Chumby: fix MCI device registration

2013-04-23 Thread Juergen Beisert
Due to some changes in the framework a resource size of zero does not map anything at all and it does it silently. Defining the resource size for the MCI interface make it work again on the Chumby. Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/boards/chumby_falconwing

Re: can barebox running on mini6410 boot from nand?

2013-04-08 Thread Juergen Beisert
Hi Yi, Yi Qingliang wrote: can barebox running on mini6410 boot from nand? Barebox support for Mini6410/Tiny6410 is currently in a very basic state. Additional developers are welcome. ;) Regards Juergen -- Pengutronix e.K. | Juergen Beisert | Linux

Re: [PATCH 2/4] ARM: head: Add some space behind the image header

2013-03-12 Thread Juergen Beisert
Sascha Hauer wrote: [...] +/* + * 32 bytes at this is offset is reserved in the barebox head for board/SoC + * usage + */ [...] Hmm, one 'is' too much in this sentence? jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science

Re: [PATCH 3/4] ARM: i.MX: Add bbu handler for external NAND boot

2013-03-12 Thread Juergen Beisert
output more info here. The device (or better partition?) can be too small in general, or it can be too small due to many bad blocks inside. IMHO it would be helpful to see more info here why it failed. jbe -- Pengutronix e.K. | Juergen Beisert | Linux

Re: [PATCH 3/4] ARM: i.MX: Add bbu handler for external NAND boot

2013-03-12 Thread Juergen Beisert
Sascha Hauer wrote: On Tue, Mar 12, 2013 at 10:48:16AM +0100, Juergen Beisert wrote: Sascha Hauer wrote: [...] +   if (size_available 0) { +   printf(device is too small\n); +   ret = -ENOSPC; +   goto out

Re: [PATCH] image and bss size decrease

2013-03-11 Thread Juergen Beisert
. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH 1/2] memsize: Make get_ram_size RAM proof

2013-03-07 Thread Juergen Beisert
this test in the bootlets instead. As they run from the internal SRAM, you can do whatever you want with the SDRAM controller. jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de

Re: [PATCH 09/10] mtd: nand: Add bbt parameter

2013-03-04 Thread Juergen Beisert
) || + (chip-bbt_md chip-bbt_md-pages[0] != -1)) + str = flashbased; + else + str = memorybased; + + return str; +} + jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry

Re: [PATCH 10/10] mtd: nand: Add command to generate a flash BBT

2013-03-04 Thread Juergen Beisert
. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH 1/2] cfa-10036: Use the second MMC partition to store the environment

2013-02-14 Thread Juergen Beisert
) register_persist*e*nt_environment Seems a copy from my typo in the falconwing. I really should fix it :)) [...] jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de

[PATCH] arm/i.M23/chumbyfalconwing: just fix a typo

2013-02-14 Thread Juergen Beisert
the 'env0' persistant environment storage (%d)\n, rc); -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | Phone: +49-5121-206917-5128 | Peiner Str. 6-8, 31137 Hildesheim, Germany| Fax: +49-5121-206917-

[PATCH v2] arm/i.M23/chumbyfalconwing: just fix a typo

2013-02-14 Thread Juergen Beisert
Juergen Beisert wrote: [...] if (rc != 0) printf(Cannot create the 'env0' persistant environment storage (%d)\n, rc); ___^ Arrghh, still two 'a' left. :( diff --git a/arch/arm/boards/chumby_falconwing/falconwing.c b

RFC, i.MX28 related

2013-02-08 Thread Juergen Beisert
setting for all i.MX28 based system (e.g. in the i.MX28 generic part of Barebox) or better on a board by board base? jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de

Re: imx23evk NAND support

2013-01-13 Thread Juergen Beisert
). IIRC ivt/non-ivt is relevant for the i.MX28 firmware, not for i.MX23. On the other hand, for some i.MX23 based systems the encryption must be enabled for the bootstream, but with an empty key. Hope it helps. Juergen -- Pengutronix e.K. | Juergen Beisert

Re: s3c2440's register: MRSR6

2013-01-13 Thread Juergen Beisert
with the Trcd in the BANKCON* register. Note: the impact of higher CL values is huge. Data throughput with 100 MHz @ CL2 is higher than at 133 MHz @ CL3. Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry

Re: about s3c2442

2013-01-10 Thread Juergen Beisert
Hi Yi, Yi Qingliang wrote: On Thursday, January 10, 2013 09:36:36 AM Juergen Beisert wrote: Yi Qingliang wrote: I'm using barebox (based on mini2440) on my s3c2442 board, 1. flash barebox into nand: can't start normally, but can see early output on serial. 2. load it in sdram

Re: about s3c2442

2013-01-10 Thread Juergen Beisert
Hi Yi, Yi Qingliang wrote: On Thursday, January 10, 2013 10:14:07 AM Juergen Beisert wrote: Yi Qingliang wrote: On Thursday, January 10, 2013 09:36:36 AM Juergen Beisert wrote: Yi Qingliang wrote: I'm using barebox (based on mini2440) on my s3c2442 board, 1. flash

Re: about s3c2442

2013-01-10 Thread Juergen Beisert
Hi Yi, Yi Qingliang wrote: On Thursday, January 10, 2013 11:00:53 AM Juergen Beisert wrote: Yi Qingliang wrote: On Thursday, January 10, 2013 10:14:07 AM Juergen Beisert wrote: Yi Qingliang wrote: On Thursday, January 10, 2013 09:36:36 AM Juergen Beisert wrote: Yi Qingliang

Re: about the dm9000 in mini2440

2012-12-07 Thread Juergen Beisert
Yi Qingliang wrote: and if connected jtager, the ON switch does not work some time. Seems your jtager powers the system by accident. Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http

Re: about the dm9000 in mini2440

2012-12-07 Thread Juergen Beisert
of dm9000, it said that EED0 is pulled down internaly. Sure. But if you have some power floating around your board the chip might detect a high level at system start. But this idea is just a shot into the dark. Regards, Juergen -- Pengutronix e.K. | Juergen

Re: about the dm9000 in mini2440

2012-12-06 Thread Juergen Beisert
. Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http

Re: about the dm9000 in mini2440

2012-12-06 Thread Juergen Beisert
), but in mini2440 initialize code is 16bit. any suggestion? This would mean the EED0 pin of the DM9000 has a pull up connected, which is not the case for the Mini2440. Are you sure, you are using an original Mini2440? Regards, Juergen -- Pengutronix e.K. | Juergen Beisert

[Patch] ARM/MXS/i.MX28: distinguish POR and wake-up event correctly

2012-11-30 Thread Juergen Beisert
for this special case. Signed-off-by: Juergen Beisert j...@pengutronix.de diff --git a/drivers/watchdog/im28wd.c b/drivers/watchdog/im28wd.c index ca32a72..bc19369 100644 --- a/drivers/watchdog/im28wd.c +++ b/drivers/watchdog/im28wd.c @@ -82,6 +82,17 @@ static void __maybe_unused

Re: [PATCH 2/3] dma: apbh: check for errors when resetting ip core

2012-10-31 Thread Juergen Beisert
register Do you think this message is helpful to give the user a pointer *where* the failure happens? jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de

Re: [PATCH 2/3] dma: apbh: check for errors when resetting ip core

2012-10-31 Thread Juergen Beisert
Wolfram Sang wrote: On Wed, Oct 31, 2012 at 09:29:56AM +0100, Juergen Beisert wrote: Wolfram Sang wrote: Signed-off-by: Wolfram Sang w.s...@pengutronix.de --- drivers/dma/apbh_dma.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/dma

Re: [PATCH 2/3] dma: apbh: check for errors when resetting ip core

2012-10-31 Thread Juergen Beisert
Wolfram Sang wrote: On Wed, Oct 31, 2012 at 09:48:31AM +0100, Juergen Beisert wrote: Wolfram Sang wrote: On Wed, Oct 31, 2012 at 09:29:56AM +0100, Juergen Beisert wrote: Wolfram Sang wrote: Signed-off-by: Wolfram Sang w.s...@pengutronix.de --- drivers/dma/apbh_dma.c

Re: [PATCH 1/2] Add bcm2835/Raspberry-Pi support

2012-09-19 Thread Juergen Beisert
+ bool Broadcom BCM2835 boards + select GENERIC_GPIO + select CPU_ARM1176 please keep in alphabetic order What a useless rule... Just my 2ct. jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | Phone

Re: [PATCH 1/2] Add bcm2835/Raspberry-Pi support

2012-09-19 Thread Juergen Beisert
Jean-Christophe PLAGNIOL-VILLARD wrote: On 09:42 Wed 19 Sep , Juergen Beisert wrote: Jean-Christophe PLAGNIOL-VILLARD wrote: [...] diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index a54ad03..f8eb1b4 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -92,6

[RFC] Dedicated command to make a target bootable with Barebox

2012-09-03 Thread Juergen Beisert
in the OOB area Other constraints on different architectures that comes into your minds? Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de

Re: SD card experts wanted

2012-08-30 Thread Juergen Beisert
Hi Johannes, Johannes Stezenbach wrote: On Thu, Aug 30, 2012 at 03:08:19PM +0200, Juergen Beisert wrote: Johannes Stezenbach wrote: MMC has the following speed modes: - legacy 0-26MHz - high speed SDR 0-52MHz - high speed DDR 0-52MHz - HS200 SDR 0-200MHz Ahh, here come

SD card experts wanted

2012-08-29 Thread Juergen Beisert
? Any pointers would help. jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http

Re: [PATCH 4/8] ARM s3c boards: Do not hardcode image sizes

2012-08-12 Thread Juergen Beisert
Sascha Hauer wrote: The existing nand_boot functions all do the same, so move it to a common place. To be flexible enough for future boards the real image size is used instead of hardcoded 256k. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Cc: Juergen Beisert j...@pengutronix.de

Re: [PATCH] omap: use 512k barebox partition

2012-07-30 Thread Juergen Beisert
Hi Sascha, Sascha Hauer wrote: On Fri, Jul 27, 2012 at 06:54:16PM +0200, Juergen Beisert wrote: Sascha Hauer wrote: On Fri, Jul 27, 2012 at 01:09:07PM +0200, Jan Weitzel wrote: Use 512k NAND Partion for barebox. Problem is we don't know the size of the barebox inside xload. Set

Re: [PATCH] omap: use 512k barebox partition

2012-07-30 Thread Juergen Beisert
Sascha Hauer wrote: On Mon, Jul 30, 2012 at 10:11:32AM +0200, Juergen Beisert wrote: Hi Sascha, Sascha Hauer wrote: On Fri, Jul 27, 2012 at 06:54:16PM +0200, Juergen Beisert wrote: Sascha Hauer wrote: On Fri, Jul 27, 2012 at 01:09:07PM +0200, Jan Weitzel wrote: Use 512k

Re: [PATCH 00/12 v3] Add Pre-Bootloader support

2012-07-30 Thread Juergen Beisert
...I know...nobody reads documentation... jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | ___ barebox mailing list barebox

Re: [PATCH 00/12 v3] Add Pre-Bootloader support

2012-07-30 Thread Juergen Beisert
Jean-Christophe PLAGNIOL-VILLARD wrote: On 16:44 Mon 30 Jul , Thomas Petazzoni wrote: Le Mon, 30 Jul 2012 12:38:43 +0200, Juergen Beisert j...@pengutronix.de a écrit : Jean-Christophe PLAGNIOL-VILLARD wrote: [...] Currently on the compressed image is implemented the boot

Re: Barebox hangs after boot

2012-07-29 Thread Juergen Beisert
and how do I debug it? Broken timer? Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | ___ barebox mailing list barebox

[PATCH 6/8] ARM/Samsung: add the S3C6410 SoC

2012-07-28 Thread Juergen Beisert
After adding the base support, the SoC can now be enabled in the build system. Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/Kconfig |6 ++ arch/arm/mach-samsung/Kconfig |9 + 2 files changed, 15 insertions(+) diff --git a/arch/arm/Kconfig b

[PATCH 1/8] ARM/Samsung: add S3C6410 SoC iomap

2012-07-28 Thread Juergen Beisert
Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/include/mach/s3c-iomap.h |3 ++ arch/arm/mach-samsung/include/mach/s3c64xx-iomap.h | 51 2 files changed, 54 insertions(+) create mode 100644 arch/arm/mach-samsung/include/mach/s3c64xx

[PATCH 5/8] ARM/Samsung: add generic S3C6410 SoC specific functions

2012-07-28 Thread Juergen Beisert
Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/Makefile |2 +- .../mach-samsung/include/mach/devices-s3c64xx.h| 40 arch/arm/mach-samsung/include/mach/s3c-generic.h | 17 + arch/arm/mach-samsung/mem-s3c64xx.c

[PATCH 7/8] ARM/Samsung: add the Mini6410 platform as a user of the S3C6410 SoC

2012-07-28 Thread Juergen Beisert
Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/Makefile |1 + arch/arm/boards/friendlyarm-mini6410/Makefile |1 + arch/arm/boards/friendlyarm-mini6410/config.h |8 + arch/arm/boards/friendlyarm-mini6410/env/config | 56 + arch

[PATCH 8/8] ARM/Samsung: add the Tiny6410 platform as a user of the S3C6410 SoC

2012-07-28 Thread Juergen Beisert
The Tiny6410 and its base board is a pure development platform. Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/Makefile |1 + arch/arm/boards/friendlyarm-tiny6410/Kconfig | 19 arch/arm/boards/friendlyarm-tiny6410/Makefile

[PATCH 4/8] ARM/Samsung: add GPIO handling support for the S3C6410 SoC

2012-07-28 Thread Juergen Beisert
Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/Makefile |2 +- arch/arm/mach-samsung/gpio-s3c64xx.c | 301 +++ arch/arm/mach-samsung/include/mach/gpio.h |3 + arch/arm/mach-samsung/include/mach/iomux

[PATCH 3/8] ARM/Samsung: add the clock tree support for the S3C6410 SoC

2012-07-28 Thread Juergen Beisert
Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/Makefile |1 + arch/arm/mach-samsung/clocks-s3c64xx.c | 338 arch/arm/mach-samsung/include/mach/s3c-clocks.h|3 + .../arm/mach-samsung/include/mach

RFC: How to setup and handle NAND flashes in Barebox

2012-07-27 Thread Juergen Beisert
Sascha Hauer wrote: On Fri, Jul 27, 2012 at 11:24:48AM +1000, Marc Reilly wrote: Thanks for your ideas. I managed to clear the BBT, it was a bit of a hack... the saga is below for anyone who runs into similar problem. On Thursday, July 26, 2012 11:27:48 AM Juergen Beisert wrote

Re: [PATCH RFC] arm/imx: provide command to add ram device with autodetected size

2012-07-26 Thread Juergen Beisert
. I is useful for all my Samsung targets, too. Maybe it should be a generic feature, because *most* of the supported SoCs are able to detect the available RAM size in such a way. jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science

[PATCH] ARM/Samsung: remaining clean up...

2012-07-24 Thread Juergen Beisert
...in preparation to add the S3C6410 SoC support. Mostly simplifying the Samsung serial driver and some more cosmetic. These patches are a re-work and re-send of the remaining ones not yet included from the previous ARM/Samsung: more clean up... series. The patches 1/3 and 3/3 base on the

[PATCH 5/8] ARM/Samsung: add generic S3C6410 SoC specific functions

2012-07-21 Thread Juergen Beisert
Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/Makefile |2 +- .../mach-samsung/include/mach/devices-s3c64xx.h| 40 arch/arm/mach-samsung/include/mach/s3c-generic.h | 16 + arch/arm/mach-samsung/mem-s3c64xx.c

[PATCH 2/8] ARM/Samsung: adapt the generic timer driver to support the S3C6410 SoC

2012-07-21 Thread Juergen Beisert
The S3C64XX SoC has a real 32 bit counter, but almost the same style of registers. It's enough to change the parameters, to get the routines work on this SoC. TODO: what about the S5P SoCs? Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/s3c-timer.c | 17

[PATCH] Addd the Samsung S3C6410 SoC to Barebox

2012-07-21 Thread Juergen Beisert
This patch series tries to add support for the Samsung's S3C6410 ARMv11 SoC and with this main support also two popular platforms which are using this SoC: FriendlyARM's Mini6410 and Tiny6410. Comments are welcome. If someone wants to try this series it can be found here

[PATCH 8/8] ARM/Samsung: add the Tiny6410 platform as the second user of the S3C6410 SoC

2012-07-21 Thread Juergen Beisert
The Tiny6410 and its base board is a pure development platform. Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/Makefile |1 + arch/arm/boards/friendlyarm-tiny6410/Kconfig | 19 arch/arm/boards/friendlyarm-tiny6410/Makefile

[PATCH 1/3] ARM/Samsung: be able to include the nand header multiple times

2012-07-20 Thread Juergen Beisert
This is required in preparation for the following patches. Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/include/mach/s3c24xx-nand.h |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-samsung/include/mach/s3c24xx-nand.h b/arch/arm/mach

[PATCH 2/3] ARM/Samsung: unify device registration for the S3C24XX SoCs

2012-07-20 Thread Juergen Beisert
and A9M2440 compile time tested only. - Mini2440 also runtime tested. Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/boards/a9m2410/a9m2410.c |7 ++- arch/arm/boards/a9m2440/a9m2440.c |7 ++- arch/arm/boards/mini2440/mini2440.c

[PATCH/master] ARM/MXS: pull-up and bitkeeper must be handled differently

2012-07-20 Thread Juergen Beisert
separately. Signed-off-by: Juergen Beisert j...@pengutronix.de diff --git a/arch/arm/mach-mxs/include/mach/iomux-imx23.h b/arch/arm/mach-mxs/include/mach/iomux-imx23.h index 7b2883c..82362d7 100644 --- a/arch/arm/mach-mxs/include/mach/iomux-imx23.h +++ b/arch/arm/mach-mxs/include/mach/iomux-imx23

[PATCH] ARM/Samsung: more clean up...

2012-07-20 Thread Juergen Beisert
+0200) Juergen Beisert (9): ARM/Samsung: List only really supported S3C24xx SoCs ARM/Samsung: follow the name style of the other source files in this directory Samsung/serial: remove more ugly ifdef lines Samsung

[PATCH 9/9] Samsung/serial: make the clock source configureable

2012-07-20 Thread Juergen Beisert
Instead of taking the value from somewhere, use the selected architecture to select one. This ensures the selected clock source corresponds to the values setup in the clocks-*.c from the mach directory. Signed-off-by: Juergen Beisert j...@pengutronix.de --- drivers/serial/serial_s3c.c | 18

[PATCH 7/9] Samsung/serial: move the decision about an improved UART into Kconfig

2012-07-20 Thread Juergen Beisert
More or less just cosmetic (removing ifdefs!). Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/Kconfig |5 + arch/arm/mach-samsung/include/mach/s5pcxx-iomap.h |5 +++-- drivers/serial/serial_s3c.c | 16

[PATCH] ARM/Samsung: add the vendor FriendlyARM to the board's directory name

2012-07-19 Thread Juergen Beisert
-by: Juergen Beisert j...@pengutronix.de --- arch/arm/Makefile |4 ++-- arch/arm/boards/{mini2440 = friendlyarm-mini2440}/Kconfig |0 arch/arm/boards/{mini2440 = friendlyarm-mini2440}/Makefile|0 arch/arm/boards/{mini2440

[PATCHv5] Enable a way to provide the reason for being here

2012-07-18 Thread Juergen Beisert
cause detection (2012-07-18 10:40:22 +0200) Juergen Beisert (4): Enable a way to provide the reason for being here ARM/Samsung: add support to detect the reset source ARM/i.MX: add support to detect the reset source

[PATCH 3/4] ARM/i.MX: add support to detect the reset source

2012-07-18 Thread Juergen Beisert
Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-imx/Makefile |1 + arch/arm/mach-imx/reset_source.c | 72 ++ 2 files changed, 73 insertions(+) create mode 100644 arch/arm/mach-imx/reset_source.c diff --git a/arch/arm/mach-imx

[PATCH 1/4] Enable a way to provide the reason for being here

2012-07-18 Thread Juergen Beisert
system. Signed-off-by: Juergen Beisert j...@pengutronix.de --- common/Kconfig |8 common/Makefile|1 + common/reset_source.c | 44 include/reset_source.h | 27 +++ 4 files changed, 80

[PATCH 2/4] ARM/Samsung: add support to detect the reset source

2012-07-18 Thread Juergen Beisert
Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/Makefile |1 + arch/arm/mach-samsung/reset_source.c | 56 ++ 2 files changed, 57 insertions(+) create mode 100644 arch/arm/mach-samsung/reset_source.c diff --git a/arch/arm

Board's naming style

2012-07-18 Thread Juergen Beisert
and Tiny6410 inclusion. Can we rename the currently existing Mini2440 and Tiny210 to friendlyarm-mini2440 and friendlyarm-tiny210? @Sascha: Do you need a patch for this? Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science

Re: [PATCH 02/18] ARM/Samsung: unify device registration for the S3C24XX SoCs

2012-07-16 Thread Juergen Beisert
Sascha Hauer wrote: On Fri, Jul 13, 2012 at 09:00:54PM +0200, Juergen Beisert wrote: Barebox crashes since it has trouble with a resource size of 0. Most of the S3C24XX based platforms crashes at runtime and can't use devices with resource sizes of 0 anymore. This patch fix it by unifying

[PATCH 2/4] ARM/Samsung: add support to detect the reset source

2012-07-13 Thread Juergen Beisert
Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/Makefile |1 + arch/arm/mach-samsung/reset_source.c | 56 ++ 2 files changed, 57 insertions(+) create mode 100644 arch/arm/mach-samsung/reset_source.c diff --git a/arch/arm

[PATCH 4/4] ARM/MXS: add reset cause detection

2012-07-13 Thread Juergen Beisert
Signed-off-by: Juergen Beisert j...@pengutronix.de --- drivers/watchdog/im28wd.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/watchdog/im28wd.c b/drivers/watchdog/im28wd.c index b016910..eb6099a 100644 --- a/drivers/watchdog/im28wd.c +++ b/drivers

[PATCHv4] Enable a way to provide the reason for being here

2012-07-13 Thread Juergen Beisert
+0200) Juergen Beisert (4): Enable a way to provide the reason for being here ARM/Samsung: add support to detect the reset source ARM/i.MX: add support to detect the reset source ARM/MXS: add reset cause

[PATCH 1/4] Enable a way to provide the reason for being here

2012-07-13 Thread Juergen Beisert
system. Signed-off-by: Juergen Beisert j...@pengutronix.de --- common/Makefile|2 +- common/reset_source.c | 44 include/reset_source.h | 27 +++ 3 files changed, 72 insertions(+), 1 deletion(-) create mode

[PATCH 06/18] Samsung/serial: make the code more readable

2012-07-13 Thread Juergen Beisert
This bit magic is just setting and reading the UART's selected clock source. Signed-off-by: Juergen Beisert j...@pengutronix.de --- drivers/serial/serial_s3c.c |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/serial/serial_s3c.c b/drivers/serial/serial_s3c.c

[PATCH 05/18] Samsung/serial: make the clock source configureable

2012-07-13 Thread Juergen Beisert
Instead of taking the value from somewhere, use the menu to select one. Also provide sane default values for known SoCs. Signed-off-by: Juergen Beisert j...@pengutronix.de --- drivers/serial/Kconfig | 12 drivers/serial/serial_s3c.c |7 +-- 2 files changed, 13

[PATCH 04/18] Samsung/serial: remove more ugly ifdef lines

2012-07-13 Thread Juergen Beisert
More or less just cosmetic. Easier to read, and lets the compiler remove unused code. Signed-off-by: Juergen Beisert j...@pengutronix.de --- drivers/serial/serial_s3c.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/serial/serial_s3c.c b/drivers/serial

[RFC] Inclusion of the Samsung S3C6410 SoC

2012-07-13 Thread Juergen Beisert
This patch series tries to include the Samsung S3C6410 processor into Barebox. This SoC is used on the popular FriendlyARM Mini6410 platform and an implementation for this platfrom is part of this series. This series is WIP, so please comment if the changes are ready for mainline or not. Patches

[PATCH 01/18] ARM/Samsung: be able to include the nand header multiple times

2012-07-13 Thread Juergen Beisert
This is required in preparation for the following patches. Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/include/mach/s3c24xx-nand.h |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-samsung/include/mach/s3c24xx-nand.h b/arch/arm/mach

[PATCH 11/18] ARM/Samsung: add generic lowlevel init

2012-07-13 Thread Juergen Beisert
-samsung/lowlevel-s3c64xx.c new file mode 100644 index 000..b1ba719 --- /dev/null +++ b/arch/arm/mach-samsung/lowlevel-s3c64xx.c @@ -0,0 +1,14 @@ +/* + * Copyright (C) 2012 Juergen Beisert + * + * This program is free software; you can redistribute it and/or + * modify it under the terms

[PATCH 10/18] Samsung/serial: unify UCON register settings

2012-07-13 Thread Juergen Beisert
This should work on S3C24XX and S3C64XX SoCs. Tested at runtime on a Mini2440 and Mini6410. Signed-off-by: Juergen Beisert j...@pengutronix.de --- drivers/serial/serial_s3c.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/serial/serial_s3c.c b/drivers

[PATCH 02/18] ARM/Samsung: unify device registration for the S3C24XX SoCs

2012-07-13 Thread Juergen Beisert
and A9M2440 compile time tested only. - Mini2440 also runtime tested. Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/boards/a9m2410/a9m2410.c |6 +-- arch/arm/boards/a9m2440/a9m2440.c |7 ++- arch/arm/boards/mini2440/mini2440.c

[PATCH 17/18] ARM/Samsung: add the S3C6410 SoC

2012-07-13 Thread Juergen Beisert
After adding the base support, the CPU can now be enabled in the build system. Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/Kconfig |6 ++ arch/arm/mach-samsung/Kconfig | 21 - drivers/serial/Kconfig|2 +- 3 files changed

[PATCH 09/18] Samsung/serial: move the decision about an improved UART into Kconfig

2012-07-13 Thread Juergen Beisert
More or less just cosmetic (removing ifdefs!). Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/Kconfig |5 + arch/arm/mach-samsung/include/mach/s5pcxx-iomap.h |2 -- drivers/serial/serial_s3c.c | 16

[PATCH 12/18] ARM/Samsung: add S3C6410 SoC iomap

2012-07-13 Thread Juergen Beisert
Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/include/mach/s3c-iomap.h |3 ++ arch/arm/mach-samsung/include/mach/s3c64xx-iomap.h | 44 2 files changed, 47 insertions(+) create mode 100644 arch/arm/mach-samsung/include/mach/s3c64xx

[PATCH 16/18] ARM/Samsung: add generic S3C6410 SoC specific functions

2012-07-13 Thread Juergen Beisert
Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/Makefile |2 +- arch/arm/mach-samsung/include/mach/s3c-generic.h | 13 + arch/arm/mach-samsung/mem-s3c64xx.c | 65 ++ 3 files changed, 79 insertions(+), 1

[PATCH 03/18] ARM/Samsung: follow the name style of the other source files in this directory

2012-07-13 Thread Juergen Beisert
Signed-off-by: Juergen Beisert j...@pengutronix.de --- arch/arm/mach-samsung/Makefile |2 +- arch/arm/mach-samsung/clocks-s3c24xx.c | 157 arch/arm/mach-samsung/s3c24xx-clocks.c | 157 3 files changed, 158 insertions

  1   2   >