Re: [U-Boot] Custodians, Maintainers and old platforms

2012-09-29 Thread Marek Vasut
Dear Stefan Kristiansson, > On Fri, Sep 21, 2012 at 05:28:18PM -0700, Tom Rini wrote: > > Hey all, > > > > (I had attempted to bcc this to all listed maintainer, but that upset > > Google greatly. I'll send this out manually instead later). > > > > I'd like to put this out here for custodians a

Re: [U-Boot] Custodians, Maintainers and old platforms

2012-09-29 Thread Stefan Kristiansson
On Fri, Sep 21, 2012 at 05:28:18PM -0700, Tom Rini wrote: > Hey all, > > (I had attempted to bcc this to all listed maintainer, but that upset > Google greatly. I'll send this out manually instead later). > > I'd like to put this out here for custodians and maintainers to > consider, especially

[U-Boot] [PATCH] fs: fat: Fix mkcksum() function parameters

2012-09-29 Thread Marek Vasut
The mkcksum() function now takes one parameter, the pointer to 11-byte wide character array, which it then operates on. Currently, the function is wrongly passed (dir_entry)->name, which is only 8-byte wide character array. Though by further inspecting the dir_entry structure, it can be noticed th

[U-Boot] [PATCH 3/4] doc: kerneldoc: Implement "Example" section handling

2012-09-29 Thread Marek Vasut
The default kernel-doc strips starting spaces from every single line in the Example section. This makes the code look bad. Thus, implement special handling for this section. Signed-off-by: Marek Vasut --- tools/kernel-doc/kernel-doc |3 +++ 1 file changed, 3 insertions(+) diff --git a/tools

[U-Boot] [PATCH 2/4] doc: kerneldoc: Add nicer CSS stylesheet for HTML docs

2012-09-29 Thread Marek Vasut
Import basic CSS stylesheet for the HTML documentation. The base for the stylesheet is taken from: http://ds9a.nl/docbook/minimal-page.html I customized the CSS a bit further, for example to add curvy corners to example section and change the tint of gray. The HTML documentation does not

[U-Boot] [PATCH 4/4] doc: kerneldoc: tmpl: Implement template for LG-arrays

2012-09-29 Thread Marek Vasut
Implement kerneldoc template for linker-generated arrays. This is the first template in U-Boot that is used to generate kerneldoc style documentation. This template is very basic. Signed-off-by: Marek Vasut --- doc/DocBook/Makefile |2 +- doc/DocBook/linker_lists.tmpl | 46 +++

[U-Boot] [PATCH 0/4 V2] Implant kernel-doc from Linux kernel

2012-09-29 Thread Marek Vasut
This patch series implants slightly modified kernel-doc documentation generator from Linux kernel into U-Boot. First patch pulls in all the necessary components with minor modifications made to them to work with the layout of U-Boot source tree and without kbuild. Further patch implement CSS to ma

[U-Boot] [PATCH 4/5] common: Convert the U-Boot commands to LG-arrays

2012-09-29 Thread Marek Vasut
This patch converts the old method of creating a list of command onto the new LG-arrays code. The old u_boot_cmd section is converted to new u_boot_list_cmd subsection and LG-array macros used as needed. Minor adjustments had to be made to the common code to work with the LG-array macros, mostly t

[U-Boot] [PATCH 2/5] common: Implement support for linker-generated arrays

2012-09-29 Thread Marek Vasut
This patch adds support for linker-generated array. These arrays are a generalization of the U-Boot command declaration approach. Basically, the idea is to generate an array, where elements of the array are statically initialized at compile time and each element is declared separatelly at differen

[U-Boot] [PATCH 1/5] common: Add symbol handling for generic lists into Makefile

2012-09-29 Thread Marek Vasut
This patch adds essential components for generation of the contents of the linker section that is used by the linker-generated array. All of the contents is held in a separate file, u-boot.lst, which is generated at runtime just before U-Boot is linked. The purpose of this code is to especially ge

[U-Boot] [PATCH 0/5] Linker-generated arrays (take 2)

2012-09-29 Thread Marek Vasut
This is a second stab at the linker-generated array. Basically, this concept is a generic abstraction of how u_boot_cmd works today. The patch 2/4 contains a huge pile of documentation which should clarify most of the questions. I don't see size growth, I see size fluctiation in the order of tens

[U-Boot] [PATCH 72/72] serial: Enhance the manual relocation

2012-09-29 Thread Marek Vasut
Enhance the manual relocation of drivers operations structure by checking if the entries are NULL and increment them only if they are not. This allows for setting any entry to NULL and it will survive the manual relocation. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc: Tom Rini Cc: Anatolij Gu

[U-Boot] [PATCH 71/72] serial: Compile drivers/serial/serial.c by default

2012-09-29 Thread Marek Vasut
Compile drivers/serial/serial.c by default both into SPL and into non-SPL builds, since CONFIG_SERIAL_MULTI is now the default state. Also having common/serial.c in by default now, it's pointless to keep -DCONFIG_SERIAL_MULTI in CPPFLAGS any longer, so remove it as well. Signed-off-by: Marek Vasut

[U-Boot] [PATCH 70/72] serial: Remove CONFIG_SERIAL_MULTI from remaining sources

2012-09-29 Thread Marek Vasut
Remove the parts depending either on disabled CONFIG_SERIAL_MULTI or ifdefs around CONFIG_SERIAL_MULTI parts since CONFIG_SERIAL_MULTI is now enabled by default. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc: Tom Rini Cc: Anatolij Gustschin Cc: Stefan Roese --- arch/arm/lib/board.c

[U-Boot] [PATCH 68/72] serial: Remove CONFIG_SERIAL_MULTI from config files

2012-09-29 Thread Marek Vasut
Remove any notion of CONFIG_SERIAL_MULTI from board config files. Since CONFIG_SERIAL_MULTI is now enabled by default, it is useless to specify this config option in the board config files. Therefore remove it. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc: Tom Rini Cc: Anatolij Gustschin Cc:

[U-Boot] [PATCH 65/72] serial: ns16550: Rename serial.c to serial_ns16550.c

2012-09-29 Thread Marek Vasut
This serial driver had wrong name of the source file for some time now. The name of the driver was serial.c instead of any more logical and fitting name. Thus, rename the driver source file to serial_ns16550.c and be done with it. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc: Tom Rini Cc: Anat

[U-Boot] [PATCH 66/72] serial: Move common/serial.c to drivers/serial/

2012-09-29 Thread Marek Vasut
Move the common/serial.c into driver/serial/, since this file provides serial multiplexing functions and it is imperative to be linked with libserial.o instead of libcommon.o. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc: Tom Rini --- common/Makefile |1 - common/serial.c

[U-Boot] [PATCH 67/72] serial: Unconditionally enable CONFIG_SERIAL_MULTI

2012-09-29 Thread Marek Vasut
Enable CONFIG_SERIAL_MULTI for all builds of U-Boot. That includes both SPL builds and non-SPL builds, everything. To avoid poluting this patch with removal of ifdef-endif constructions containing CONFIG_SERIAL_MULTI, the CONFIG_SERIAL_MULTI is temporarily added into CPPFLAGS in config.mk . This wi

[U-Boot] [PATCH 61/72] serial: sh: Implement CONFIG_SERIAL_MULTI into sh serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into sh serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the sh driver. Also, add a weak implementation of default_serial_console() ret

[U-Boot] [PATCH 64/72] serial: ns16550: Call usbtty_poll only in non-SPL build

2012-09-29 Thread Marek Vasut
Having both USBTTY and CONFIG_SERIAL_MULTI enabled in SPL, the usbtty.c file is protected in Makefile to not be compiled into the SPL. Yet, the ns16550 serial driver does not contain such protection. Add it to avoid missing symbol error. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc: Tom Rini -

[U-Boot] [PATCH 63/72] serial: Use puts() and hang() instead of panic() in SPL

2012-09-29 Thread Marek Vasut
If case the get_current() call fails before relocation, the U-Boot must try to print an error message, fail and either reset or halt. Such error is critical enough to halt the system, as it means the system is in very bad state. This is now also used in SPL, since CONFIG_SERIAL_MULTI is enabled un

[U-Boot] [PATCH 62/72] serial: mxs: spl: Remove empty serial_* functions from SPL code

2012-09-29 Thread Marek Vasut
Remove the empty bodies from serial_* functions from MXS SPL code. These empty implementations are now in common/serial.c instead so declaring them also in the SPL code would cause a colision once serial multi is enabled unconditionally. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc: Tom Rini C

[U-Boot] [PATCH 60/72] serial: arm: Implement CONFIG_SERIAL_MULTI into sa1100 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into sa1100 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the sa1100 driver. Also, add a weak implementation of default_serial_conso

[U-Boot] [PATCH 58/72] serial: arm: Implement CONFIG_SERIAL_MULTI into pl01x serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into pl01x serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the pl01x driver. Also, add a weak implementation of default_serial_console

[U-Boot] [PATCH 59/72] serial: arm: Implement CONFIG_SERIAL_MULTI into s3c44b0 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into s3c44b0 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the s3c44b0 driver. Also, add a weak implementation of default_serial_con

[U-Boot] [PATCH 57/72] serial: arm: Implement CONFIG_SERIAL_MULTI into netarm serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into netarm serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the netarm driver. Also, add a weak implementation of default_serial_conso

[U-Boot] [PATCH 56/72] serial: arm: Implement CONFIG_SERIAL_MULTI into mxc serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into mxc serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the mxc driver. Also, add a weak implementation of default_serial_console() r

[U-Boot] [PATCH 51/72] serial: arm: Implement CONFIG_SERIAL_MULTI into ixp serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into ixp serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the ixp driver. Also, add a weak implementation of default_serial_console() r

[U-Boot] [PATCH 55/72] serial: Implement CONFIG_SERIAL_MULTI into max3100 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into max3100 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the max3100 driver. Also, add a weak implementation of default_serial_con

[U-Boot] [PATCH 53/72] serial: arm: Implement CONFIG_SERIAL_MULTI into lh7a40x serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into lh7a40x serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the lh7a40x driver. Also, add a weak implementation of default_serial_con

[U-Boot] [PATCH 54/72] serial: arm: Implement CONFIG_SERIAL_MULTI into lpc2292 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into lpc2292 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the lpc2292 driver. Also, add a weak implementation of default_serial_con

[U-Boot] [PATCH 52/72] serial: arm: Implement CONFIG_SERIAL_MULTI into ks8695 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into ks8695 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the ks8695 driver. Also, add a weak implementation of default_serial_conso

[U-Boot] [PATCH 50/72] serial: arm: Implement CONFIG_SERIAL_MULTI into imx serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into imx serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the imx driver. Also, add a weak implementation of default_serial_console() r

[U-Boot] [PATCH 49/72] serial: arm: Implement CONFIG_SERIAL_MULTI into clps7111 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into clps7111 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the clps7111 driver. Also, add a weak implementation of default_serial_c

[U-Boot] [PATCH 48/72] serial: sandbox: Implement CONFIG_SERIAL_MULTI into sandbox serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into sandbox serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the sandbox driver. Also, add a weak implementation of default_serial_con

[U-Boot] [PATCH 47/72] serial: arm: Implement CONFIG_SERIAL_MULTI into s3c64xx serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into s3c64xx serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the s3c64xx driver. Also, add a weak implementation of default_serial_con

[U-Boot] [PATCH 46/72] serial: arm: Implement CONFIG_SERIAL_MULTI into s3c4510b serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into s3c4510b serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the s3c4510b driver. Also, add a weak implementation of default_serial_c

[U-Boot] [PATCH 45/72] serial: oc: Implement CONFIG_SERIAL_MULTI into OpenCores serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into OpenCores serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the OpenCores driver. Also, add a weak implementation of default_serial

[U-Boot] [PATCH 44/72] serial: Implement CONFIG_SERIAL_MULTI into ns9750 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into ns9750 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the ns9750 driver. Also, add a weak implementation of default_serial_conso

[U-Boot] [PATCH 43/72] serial: mcf: Implement CONFIG_SERIAL_MULTI into MCF serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into MCF serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the MCF driver. Also, add a weak implementation of default_serial_console() r

[U-Boot] [PATCH 42/72] serial: arm: Implement CONFIG_SERIAL_MULTI into lpc32xx serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into lpc32xx serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the lpc32xx driver. Also, add a weak implementation of default_serial_con

[U-Boot] [PATCH 39/72] serial: arm: Implement CONFIG_SERIAL_MULTI into altera_jtag serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into altera_jtag serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the altera_jtag driver. Also, add a weak implementation of default_se

[U-Boot] [PATCH 35/72] serial: powerpc: Implement CONFIG_SERIAL_MULTI into evb64260 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into evb64260 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the evb64260 driver. Also, add a weak implementation of default_serial_c

[U-Boot] [PATCH 34/72] serial: powerpc: Implement CONFIG_SERIAL_MULTI into cpci750 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into cpci750 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the cpci750 driver. Also, add a weak implementation of default_serial_con

[U-Boot] [PATCH 22/72] serial: mips: Implement CONFIG_SERIAL_MULTI into JZ serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into JZ serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the JZ driver. Also, add a weak implementation of default_serial_console() ret

[U-Boot] [PATCH 33/72] serial: powerpc: Implement CONFIG_SERIAL_MULTI into cogent serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into cogent serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the cogent driver. Also, add a weak implementation of default_serial_conso

[U-Boot] [PATCH 29/72] serial: sparc: Implement CONFIG_SERIAL_MULTI into leon3 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into leon3 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the leon3 driver. Also, add a weak implementation of default_serial_console

[U-Boot] [PATCH 27/72] serial: powerpc: Implement CONFIG_SERIAL_MULTI into iop480 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into iop480 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the iop480 driver. Also, add a weak implementation of default_serial_conso

[U-Boot] [PATCH 28/72] serial: sparc: Implement CONFIG_SERIAL_MULTI into leon2 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into leon2 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the leon2 driver. Also, add a weak implementation of default_serial_console

[U-Boot] [PATCH 26/72] serial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc85xx serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into mpc85xx serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the mpc85xx driver. Also, add a weak implementation of default_serial_con

[U-Boot] [PATCH 24/72] serial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc8220 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into mpc8220 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the mpc8220 driver. Also, add a weak implementation of default_serial_con

[U-Boot] [PATCH 40/72] serial: arm: Implement CONFIG_SERIAL_MULTI into altera serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into altera serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the altera driver. Also, add a weak implementation of default_serial_conso

[U-Boot] [PATCH 37/72] serial: powerpc: Implement CONFIG_SERIAL_MULTI into sconsole serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into sconsole serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the sconsole driver. Also, add a weak implementation of default_serial_c

[U-Boot] [PATCH 41/72] serial: arm: Implement CONFIG_SERIAL_MULTI into atmel serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into atmel serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the atmel driver. Also, add a weak implementation of default_serial_console

[U-Boot] [PATCH 38/72] serial: powerpc: Implement CONFIG_SERIAL_MULTI into p3mx serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into p3mx serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the p3mx driver. Also, add a weak implementation of default_serial_console()

[U-Boot] [PATCH 36/72] serial: powerpc: Implement CONFIG_SERIAL_MULTI into ml2 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into ml2 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the ml2 driver. Also, add a weak implementation of default_serial_console() r

[U-Boot] [PATCH 31/72] serial: powerpc: Implement CONFIG_SERIAL_MULTI into amirix serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into amirix serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the amirix driver. Also, add a weak implementation of default_serial_conso

[U-Boot] [PATCH 23/72] serial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc5xx serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into mpc5xx serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the mpc5xx driver. Also, add a weak implementation of default_serial_conso

[U-Boot] [PATCH 25/72] serial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc8260 serial drivers

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into both SCC and SMC mpc8260 serial drivers. These drivers were so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the mpc8260 drivers. Also, add a weak implementation

[U-Boot] [PATCH 21/72] serial: mips: Implement CONFIG_SERIAL_MULTI into asc serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into asc serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the asc driver. Also, add a weak implementation of default_serial_console() r

[U-Boot] [PATCH 20/72] serial: mips: Implement CONFIG_SERIAL_MULTI into au1x00 serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into au1x00 serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the au1x00 driver. Also, add a weak implementation of default_serial_conso

[U-Boot] [PATCH 32/72] serial: powerpc: Implement CONFIG_SERIAL_MULTI into bmw serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into bmw serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the bmw driver. Also, add a weak implementation of default_serial_console() r

[U-Boot] [PATCH 30/72] serial: powerpc: Implement CONFIG_SERIAL_MULTI into marvell serial driver

2012-09-29 Thread Marek Vasut
Implement support for CONFIG_SERIAL_MULTI into marvell serial driver. This driver was so far only usable directly, but this patch also adds support for the multi method. This allows using more than one serial driver alongside the marvell driver. Also, add a weak implementation of default_serial_con

[U-Boot] [PATCH 19/72] serial: bfin: Flip the jtag serial console to CONFIG_SERIAL_MULTI

2012-09-29 Thread Marek Vasut
Rework the emulation of serial console via JTAG from simple ad-hoc implementation of serial port routines to CONFIG_SERIAL_MULTI and enable CONFIG_SERIAL_MULTI unconditionally for blackfin. In order for the JTAG serial console to take precedence over all other serial ports available in system, imp

[U-Boot] [PATCH 18/72] serial: zoom2: Remove zoom2 serial prototypes from serial.h

2012-09-29 Thread Marek Vasut
Remove the prototypes for zoom2_serial_deviceN from serial.h . This can't be done right away, as they are referenced from the zoom2 config file. Therefore, adjust the code so the config file only specifies number of the port. Then, replace the simple return in default_serial_console() with a switch

[U-Boot] [PATCH 17/72] serial: bfin: Adjust serial_register_bfin_uart()

2012-09-29 Thread Marek Vasut
Rename the serial_register_bfin_uart() to bfin_initialize_serial() to be consistent with the rest of the naming. Next, remove it's prototype from serial.h and properly insert it into serial.c as the rest of the serial initialization functions. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc: Tom R

[U-Boot] [PATCH 12/72] serial: s5p: Move serial registration from serial_initialize()

2012-09-29 Thread Marek Vasut
Move the registration of s5p_serialN_device ports from default serial_initialize() into driver specific function called from serial_initialize(). This slims down the serial_initialize() call to a bare tracker of all possible serial port registration routines in U-Boot. The newly implemented s5p_se

[U-Boot] [PATCH 13/72] serial: microblaze: Move serial registration from serial_initialize()

2012-09-29 Thread Marek Vasut
Move the registration of xuartlite_serialN_device ports from default serial_initialize() into driver specific function called from serial_initialize(). This slims down the serial_initialize() call to a bare tracker of all possible serial port registration routines in U-Boot. The newly implemented

[U-Boot] [PATCH 15/72] serial: ns16550: Move serial registration from serial_initialize()

2012-09-29 Thread Marek Vasut
Move the registration of eserialN_device ports from default serial_initialize() into driver specific function called from serial_initialize(). This slims down the serial_initialize() call to a bare tracker of all possible serial port registration routines in U-Boot. The newly implemented ns16550_s

[U-Boot] [PATCH 06/72] serial: pxa: Make local functions static

2012-09-29 Thread Marek Vasut
Make functions that are local-only static, so no hairy symbols stick out of the serial_pxa driver file. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc: Tom Rini --- drivers/serial/serial_pxa.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/serial/serial_pxa

[U-Boot] [PATCH 07/72] serial: mpc512x: Properly define CONFIG_SYS_PSC3 in config files

2012-09-29 Thread Marek Vasut
Some of the boards using the mpc512x serial driver didn't properly define which PSC console to use. This caused breakage when building with CONFIG_SERIAL_MULTI enabled. Fix this by defining the default PSC console. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc: Tom Rini Cc: Anatolij Gustschin

[U-Boot] [PATCH 04/72] serial: pxa: Implement default_serial_console in serial_pxa.c

2012-09-29 Thread Marek Vasut
Implement weak default_serial_console() function in serial_pxa driver, which gets available in case CONFIG_SERIAL_MULTI is enabled. This will get helpful in subsequent patches, which will encapsulate PXA's struct serial_device instances in serial_pxa driver. Signed-off-by: Marek Vasut Cc: Marek V

[U-Boot] [PATCH 14/72] serial: mpc512x: Move serial registration from serial_initialize()

2012-09-29 Thread Marek Vasut
Move the registration of serialN_device ports from default serial_initialize() into driver specific function called from serial_initialize(). This slims down the serial_initialize() call to a bare tracker of all possible serial port registration routines in U-Boot. The newly implemented mpc512x_se

[U-Boot] [PATCH 16/72] serial: bfin: Remove the bfin_serialN_device exports from serial.h

2012-09-29 Thread Marek Vasut
Remove the exports from serial.h as they are only used in the blackfin serial driver. Furthermore, they are only used for registration, which is handled already inside that driver and default_serial_port() call, which is also handled in that driver. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc:

[U-Boot] [PATCH 00/72 V3] serial: Massive rework of the serial subsystem

2012-09-29 Thread Marek Vasut
This patchset is a STAGE 1 of preparation of the stdio and serial subsys for the driver model. The idea of this patchset is: 1) Clean up the struct serial_device Do a coding style cleanup. 2) Replace .init and .uninit with .start and .stop This is to bring struct serial_device much closer t

[U-Boot] [PATCH 11/72] serial: pxa: Move serial registration from serial_initialize()

2012-09-29 Thread Marek Vasut
Move the registration of serial_XXuart ports from default serial_initialize() into driver specific function called from serial_initialize(). This slims down the serial_initialize() call to a bare tracker of all possible serial port registration routines in U-Boot. The newly implemented pxa_serial_

[U-Boot] [PATCH 09/72] serial: mpc8xx: Move serial registration from serial_initialize()

2012-09-29 Thread Marek Vasut
Move the registration of serial_smc and serial_scc ports from default serial_initialize() into CPU specific function called from serial_initialize(). This slims down the serial_initialize() call to a bare tracker of all possible serial port registration routines in U-Boot. The exports of both seri

[U-Boot] [PATCH 03/72] serial: Properly spell out the structure member names of serial_driver

2012-09-29 Thread Marek Vasut
Properly spell out the whole structure member names when an initialized varible is instantiated from the struct serial_driver. In case the structure definition for struct serial_driver undergoes reordering, there will be no impact on variables defined based on this structure. Signed-off-by: Marek

[U-Boot] [PATCH 10/72] serial: s3c24xx: Move serial registration from serial_initialize()

2012-09-29 Thread Marek Vasut
Move the registration of s3c24xx_serialN_device ports from default serial_initialize() into driver specific function called from serial_initialize(). This slims down the serial_initialize() call to a bare tracker of all possible serial port registration routines in U-Boot. The newly implemented s3

[U-Boot] [PATCH 05/72] serial: pxa: Make use of default_serial_console in serial_pxa

2012-09-29 Thread Marek Vasut
Make use of the newly implemented weak default_serial_console in the serial_pxa driver. This removes all reimplementations of this function from board files. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc: Tom Rini --- board/balloon3/balloon3.c |5 - board/palmld/pal

[U-Boot] [PATCH 08/72] serial: Implement serial_initfunc() macro

2012-09-29 Thread Marek Vasut
This macro simplifies declaration of weak aliases for per-driver functions, which register these drivers with the serial subsystem. The idea here is to push serial_register() calls from serial.c into the drivers. To avoid pile of ifdef construct as it is now, create weak aliases to these functions,

[U-Boot] [PATCH 01/72] serial: Coding style cleanup of struct serial_device

2012-09-29 Thread Marek Vasut
Do a simple cleanup of the struct serial_device and align it with current coding style. Checkpatch now reports no errors. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc: Tom Rini --- include/serial.h | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a

[U-Boot] [PATCH 02/72] serial: Rename .init() and .uninit() in serial_device

2012-09-29 Thread Marek Vasut
Rename .init() to .start() and .uninit() to .stop() in struct serial_device. This allows aligning struct serial_device with closer to struct stdio_dev. The real goal here is to allow these two structures to converge together and eventually make one to be a superset of the other. Signed-off-by: Mar

Re: [U-Boot] [PATCH v2] mx6: Remove lowlevel_init.S

2012-09-29 Thread Fabio Estevam
Hi Benoît, On Sat, Sep 29, 2012 at 5:10 PM, Benoît Thébaudeau wrote: > Also, can link succeed for i.MX6 with this patch? Isn't there something > missing? > I mean: lowlevel_init() is still called but no longer defined, so shouldn't > the Yes, you are right, thanks. I suggest Stefano just dro

[U-Boot] [PATCH v1 7/9] sil_sata: Make sata_write() comply with

2012-09-29 Thread Tom Rini
sata_write() takes a const void as the last argument. Fixing this means we also need to make ata_low_level_rw_lba{28,48} also take a const void. Signed-off-by: Tom Rini --- drivers/block/sata_sil.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/block/sata_s

[U-Boot] [PATCH v1 9/9] sata.h: Make all sata/ata drivers include

2012-09-29 Thread Tom Rini
From: Pavel Herrmann - block_dev_desc_t says that block_(read|write) take lbaint_t for blkcnt not ulong. - We also move the extern of sata_dev_desc into - Remove now duplicate declarations from driver-specific headers. Signed-off-by: Tom Rini Signed-off-by: Pavel Herrmann --- drivers/block

[U-Boot] [PATCH v1 6/9] sata_dwc: Make sata_write() use const void, per

2012-09-29 Thread Tom Rini
Signed-off-by: Tom Rini --- drivers/block/sata_dwc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/sata_dwc.c b/drivers/block/sata_dwc.c index 75101b5..cc4446a 100644 --- a/drivers/block/sata_dwc.c +++ b/drivers/block/sata_dwc.c @@ -1907,7 +1907,7 @@ err_out

[U-Boot] [PATCH v1 8/9] ide.h: Make ide_(read|write) match block_dev_desc_t block_(read|write)

2012-09-29 Thread Tom Rini
block_dev_desc_t says that block_(read|write) take lbaint_t for blkcnt not ulong Signed-off-by: Tom Rini --- include/ide.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ide.h b/include/ide.h index 8ecc9dd..1dfd5a8 100644 --- a/include/ide.h +++ b/include/ide.

[U-Boot] [PATCH v1 5/9] pata_bfin: Make sata_{read, write}() comply with

2012-09-29 Thread Tom Rini
These functions take lbaint_t for blkcnt. Signed-off-by: Tom Rini --- drivers/block/pata_bfin.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/pata_bfin.c b/drivers/block/pata_bfin.c index cce21fb..2b4437e 100644 --- a/drivers/block/pata_bfin.c +++ b/dri

[U-Boot] [PATCH v1 4/9] fsl_sata: Make sata_{read, write}() comply with

2012-09-29 Thread Tom Rini
- sata_write() takes a const void as the last argument. Fixing this means we also need to make ata_low_level_rw_lba{28,48} also take a const void. - Both sata_{read,write} take lbaint_t for blkcnt and ulong for blknr Signed-off-by: Tom Rini --- drivers/block/fsl_sata.c | 10 ++ 1

[U-Boot] [PATCH v1 3/9] dwc_ahsata: Make sata_write() comply with

2012-09-29 Thread Tom Rini
sata_write() takes a const void as the last argument. Fixing this means we also need to make ata_low_level_rw_lba{28,48} also take a const void. Signed-off-by: Tom Rini --- drivers/block/dwc_ahsata.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/block/dw

[U-Boot] [PATCH v1 2/9] ata_piix: sata_write must take a const void argument.

2012-09-29 Thread Tom Rini
Signed-off-by: Tom Rini --- drivers/block/ata_piix.c |2 +- drivers/block/ata_piix.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/ata_piix.c b/drivers/block/ata_piix.c index 0404771..dd411f1 100644 --- a/drivers/block/ata_piix.c +++ b/drivers/block/a

[U-Boot] [PATCH v1 1/9] ata_piix: Fix checkpatch issues

2012-09-29 Thread Tom Rini
While in here also: - Switch to debug from custom PRINTF for debugging. - Use mdelay rather than custom msleep. Signed-off-by: Tom Rini --- drivers/block/ata_piix.c | 451 ++ drivers/block/ata_piix.h | 48 ++--- 2 files changed, 232 insertions(+), 2

[U-Boot] [PATCH v1 0/9] block: Fix some inconsistencies in block_{read, write} implementors

2012-09-29 Thread Tom Rini
Hey all, I ran into this problem while testing Pavel Herrmann's patch to move externs to . To fix these problems I've taken over the patch. Pavel's patch makes all of the sata drivers include , and this exposed a number of build problems due to type mis-match. Examining these mis-matches leads t

Re: [U-Boot] [PATCH v2] mx6: Remove lowlevel_init.S

2012-09-29 Thread Benoît Thébaudeau
Hi Fabio, On Saturday, September 29, 2012 9:31:07 PM, Fabio Estevam wrote: > Hi Stefano/Benoît, > > On Fri, Sep 28, 2012 at 5:30 AM, Stefano Babic > wrote: > > > > > I am testing the -next branch. MX5 does not boot anymore - I have > > tested > > on MX53. In fact: > > Sorry for the breakage, t

[U-Boot] [PATCH v2] tegra: add Colibri T20 board support

2012-09-29 Thread Lucas Stach
This adds board support for the Toradex Colibri T20 module. Working functions: - SD card boot - USB boot - Network - NAND environment Signed-off-by: Lucas Stach CC: Stephen Warren CC: Tom Warren --- v2: rename .dts file to match board name --- MAINTAINERS | 4 ++

[U-Boot] [PATCH v2 2/2] tegra: nand: add board pinmux

2012-09-29 Thread Lucas Stach
Boards may require a different pinmux setup for NAND than the default one. Add a way to call into board specific code to set this up. Signed-off-by: Lucas Stach --- v2: move pinmux setup to common Tegra board code --- arch/arm/include/asm/arch-tegra/board.h | 1 + board/nvidia/common/board.c

[U-Boot] [PATCH v2 1/2] tegra: clean up board include hell

2012-09-29 Thread Lucas Stach
The prototypes used in board files were all scattered out, which lead to code duplication between SPL and normal U-Boot and some prototypes not actually being used. Consolidate this in a common board header. Signed-off-by: Lucas Stach --- v2: remove wrong paragraph about how to move ahead in the

[U-Boot] [PATCH] mpc52xx/motionpro: fix monitor size and update default environment

2012-09-29 Thread Wolfgang Grandegger
Since a while, the size of the u-boot.bin image is larger than 256kB. This requires moving the environment sectors by one. As we are at it, we also update a few other custom settings. Signed-off-by: Wolfgang Grandegger --- include/configs/motionpro.h | 44 +-

Re: [U-Boot] [PATCH v2] mx6: Remove lowlevel_init.S

2012-09-29 Thread Fabio Estevam
Hi Stefano/Benoît, On Fri, Sep 28, 2012 at 5:30 AM, Stefano Babic wrote: > > I am testing the -next branch. MX5 does not boot anymore - I have tested > on MX53. In fact: Sorry for the breakage, the correct patch would be: --- arch/arm/cpu/armv7/mx6/Makefile|3 +-- arch/arm/cpu/arm

  1   2   >