]> git.ipfire.org Git - people/ms/u-boot.git/log
people/ms/u-boot.git
11 years agoserial: arm: Implement CONFIG_SERIAL_MULTI into mxc serial driver
Marek Vasut [Fri, 14 Sep 2012 20:37:43 +0000 (22:37 +0200)] 
serial: arm: Implement CONFIG_SERIAL_MULTI into mxc serial driver

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() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Stefano Babic <sbabic@denx.de>
11 years agoserial: Implement CONFIG_SERIAL_MULTI into max3100 serial driver
Marek Vasut [Fri, 14 Sep 2012 20:37:17 +0000 (22:37 +0200)] 
serial: Implement CONFIG_SERIAL_MULTI into max3100 serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
11 years agoserial: arm: Implement CONFIG_SERIAL_MULTI into lpc2292 serial driver
Marek Vasut [Fri, 14 Sep 2012 20:36:50 +0000 (22:36 +0200)] 
serial: arm: Implement CONFIG_SERIAL_MULTI into lpc2292 serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
11 years agoserial: arm: Implement CONFIG_SERIAL_MULTI into lh7a40x serial driver
Marek Vasut [Fri, 14 Sep 2012 20:36:27 +0000 (22:36 +0200)] 
serial: arm: Implement CONFIG_SERIAL_MULTI into lh7a40x serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
11 years agoserial: arm: Implement CONFIG_SERIAL_MULTI into ks8695 serial driver
Marek Vasut [Fri, 14 Sep 2012 20:35:43 +0000 (22:35 +0200)] 
serial: arm: Implement CONFIG_SERIAL_MULTI into ks8695 serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
11 years agoserial: arm: Implement CONFIG_SERIAL_MULTI into ixp serial driver
Marek Vasut [Fri, 14 Sep 2012 20:35:14 +0000 (22:35 +0200)] 
serial: arm: Implement CONFIG_SERIAL_MULTI into ixp serial driver

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() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Michael Schwingen <michael@schwingen.org>
11 years agoserial: arm: Implement CONFIG_SERIAL_MULTI into imx serial driver
Marek Vasut [Fri, 14 Sep 2012 20:34:51 +0000 (22:34 +0200)] 
serial: arm: Implement CONFIG_SERIAL_MULTI into imx serial driver

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() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Stefano Babic <sbabic@denx.de>
11 years agoserial: arm: Implement CONFIG_SERIAL_MULTI into clps7111 serial driver
Marek Vasut [Fri, 14 Sep 2012 20:34:22 +0000 (22:34 +0200)] 
serial: arm: Implement CONFIG_SERIAL_MULTI into clps7111 serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
11 years agoserial: sandbox: Implement CONFIG_SERIAL_MULTI into sandbox serial driver
Marek Vasut [Fri, 14 Sep 2012 20:33:21 +0000 (22:33 +0200)] 
serial: sandbox: Implement CONFIG_SERIAL_MULTI into sandbox serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Mike Frysinger <vapier@gentoo.org>
11 years agoserial: arm: Implement CONFIG_SERIAL_MULTI into s3c64xx serial driver
Marek Vasut [Thu, 13 Sep 2012 14:53:49 +0000 (16:53 +0200)] 
serial: arm: Implement CONFIG_SERIAL_MULTI into s3c64xx serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: John Rigby <john.rigby@linaro.org>
Cc: Minkyu Kang <mk7.kang@samsung.com>
11 years agoserial: arm: Implement CONFIG_SERIAL_MULTI into s3c4510b serial driver
Marek Vasut [Thu, 13 Sep 2012 14:53:15 +0000 (16:53 +0200)] 
serial: arm: Implement CONFIG_SERIAL_MULTI into s3c4510b serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
11 years agoserial: oc: Implement CONFIG_SERIAL_MULTI into OpenCores serial driver
Marek Vasut [Thu, 13 Sep 2012 14:52:38 +0000 (16:52 +0200)] 
serial: oc: Implement CONFIG_SERIAL_MULTI into OpenCores serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Scott McNutt <smcnutt@psyent.com>
11 years agoserial: Implement CONFIG_SERIAL_MULTI into ns9750 serial driver
Marek Vasut [Thu, 13 Sep 2012 14:52:07 +0000 (16:52 +0200)] 
serial: Implement CONFIG_SERIAL_MULTI into ns9750 serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
11 years agoserial: mcf: Implement CONFIG_SERIAL_MULTI into MCF serial driver
Marek Vasut [Thu, 13 Sep 2012 14:51:38 +0000 (16:51 +0200)] 
serial: mcf: Implement CONFIG_SERIAL_MULTI into MCF serial driver

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() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: TsiChung Liew <tsicliew@gmail.com>
11 years agoserial: arm: Implement CONFIG_SERIAL_MULTI into lpc32xx serial driver
Marek Vasut [Thu, 13 Sep 2012 14:51:02 +0000 (16:51 +0200)] 
serial: arm: Implement CONFIG_SERIAL_MULTI into lpc32xx serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Vladimir Zapolskiy <vz@mleia.com>
11 years agoserial: arm: Implement CONFIG_SERIAL_MULTI into atmel serial driver
Marek Vasut [Thu, 13 Sep 2012 14:50:30 +0000 (16:50 +0200)] 
serial: arm: Implement CONFIG_SERIAL_MULTI into atmel serial driver

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() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Xu, Hong <Hong.Xu@atmel.com>
11 years agoserial: arm: Implement CONFIG_SERIAL_MULTI into altera serial driver
Marek Vasut [Thu, 13 Sep 2012 14:49:51 +0000 (16:49 +0200)] 
serial: arm: Implement CONFIG_SERIAL_MULTI into altera serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Scott McNutt <smcnutt@psyent.com>
11 years agoserial: arm: Implement CONFIG_SERIAL_MULTI into altera_jtag serial driver
Marek Vasut [Thu, 13 Sep 2012 14:48:50 +0000 (16:48 +0200)] 
serial: arm: Implement CONFIG_SERIAL_MULTI into altera_jtag serial driver

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_serial_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Thomas Chou <thomas@wytron.com.tw>
11 years agoserial: powerpc: Implement CONFIG_SERIAL_MULTI into p3mx serial driver
Marek Vasut [Thu, 13 Sep 2012 10:35:54 +0000 (12:35 +0200)] 
serial: powerpc: Implement CONFIG_SERIAL_MULTI into p3mx serial driver

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() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: powerpc: Implement CONFIG_SERIAL_MULTI into sconsole serial driver
Marek Vasut [Thu, 13 Sep 2012 10:34:49 +0000 (12:34 +0200)] 
serial: powerpc: Implement CONFIG_SERIAL_MULTI into sconsole serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: powerpc: Implement CONFIG_SERIAL_MULTI into ml2 serial driver
Marek Vasut [Thu, 13 Sep 2012 10:34:24 +0000 (12:34 +0200)] 
serial: powerpc: Implement CONFIG_SERIAL_MULTI into ml2 serial driver

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() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: powerpc: Implement CONFIG_SERIAL_MULTI into evb64260 serial driver
Marek Vasut [Thu, 13 Sep 2012 10:33:50 +0000 (12:33 +0200)] 
serial: powerpc: Implement CONFIG_SERIAL_MULTI into evb64260 serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: powerpc: Implement CONFIG_SERIAL_MULTI into cpci750 serial driver
Marek Vasut [Thu, 13 Sep 2012 10:32:56 +0000 (12:32 +0200)] 
serial: powerpc: Implement CONFIG_SERIAL_MULTI into cpci750 serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: powerpc: Implement CONFIG_SERIAL_MULTI into cogent serial driver
Marek Vasut [Thu, 13 Sep 2012 10:29:31 +0000 (12:29 +0200)] 
serial: powerpc: Implement CONFIG_SERIAL_MULTI into cogent serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: powerpc: Implement CONFIG_SERIAL_MULTI into bmw serial driver
Marek Vasut [Thu, 13 Sep 2012 10:28:07 +0000 (12:28 +0200)] 
serial: powerpc: Implement CONFIG_SERIAL_MULTI into bmw serial driver

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() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: powerpc: Implement CONFIG_SERIAL_MULTI into amirix serial driver
Marek Vasut [Thu, 13 Sep 2012 10:27:37 +0000 (12:27 +0200)] 
serial: powerpc: Implement CONFIG_SERIAL_MULTI into amirix serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: powerpc: Implement CONFIG_SERIAL_MULTI into marvell serial driver
Marek Vasut [Thu, 13 Sep 2012 10:26:39 +0000 (12:26 +0200)] 
serial: powerpc: Implement CONFIG_SERIAL_MULTI into marvell serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: sparc: Implement CONFIG_SERIAL_MULTI into leon3 serial driver
Marek Vasut [Thu, 13 Sep 2012 10:25:48 +0000 (12:25 +0200)] 
serial: sparc: Implement CONFIG_SERIAL_MULTI into leon3 serial driver

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() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Peter Tyser <ptyser@xes-inc.com>
11 years agoserial: sparc: Implement CONFIG_SERIAL_MULTI into leon2 serial driver
Marek Vasut [Thu, 13 Sep 2012 10:25:07 +0000 (12:25 +0200)] 
serial: sparc: Implement CONFIG_SERIAL_MULTI into leon2 serial driver

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() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Peter Tyser <ptyser@xes-inc.com>
11 years agoserial: powerpc: Implement CONFIG_SERIAL_MULTI into iop480 serial driver
Marek Vasut [Wed, 12 Sep 2012 23:40:33 +0000 (01:40 +0200)] 
serial: powerpc: Implement CONFIG_SERIAL_MULTI into iop480 serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc85xx serial driver
Marek Vasut [Wed, 12 Sep 2012 23:38:52 +0000 (01:38 +0200)] 
serial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc85xx serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc8260 serial drivers
Marek Vasut [Wed, 12 Sep 2012 23:34:16 +0000 (01:34 +0200)] 
serial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc8260 serial drivers

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 of default_serial_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc8220 serial driver
Marek Vasut [Wed, 12 Sep 2012 23:29:31 +0000 (01:29 +0200)] 
serial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc8220 serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc5xx serial driver
Marek Vasut [Wed, 12 Sep 2012 23:26:42 +0000 (01:26 +0200)] 
serial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc5xx serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: mips: Implement CONFIG_SERIAL_MULTI into JZ serial driver
Marek Vasut [Wed, 12 Sep 2012 23:20:59 +0000 (01:20 +0200)] 
serial: mips: Implement CONFIG_SERIAL_MULTI into JZ serial driver

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() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
11 years agoserial: mips: Implement CONFIG_SERIAL_MULTI into asc serial driver
Marek Vasut [Wed, 12 Sep 2012 23:20:07 +0000 (01:20 +0200)] 
serial: mips: Implement CONFIG_SERIAL_MULTI into asc serial driver

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() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
11 years agoserial: mips: Implement CONFIG_SERIAL_MULTI into au1x00 serial driver
Marek Vasut [Wed, 12 Sep 2012 23:16:50 +0000 (01:16 +0200)] 
serial: mips: Implement CONFIG_SERIAL_MULTI into au1x00 serial driver

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_console() returning this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
11 years agoserial: bfin: Flip the jtag serial console to CONFIG_SERIAL_MULTI
Marek Vasut [Wed, 12 Sep 2012 22:02:54 +0000 (00:02 +0200)] 
serial: bfin: Flip the jtag serial console to CONFIG_SERIAL_MULTI

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, implement override for
default_serial_console call returning this JTAG serial console.

This brings in a bit of a growth of size, but eventually will allow
us to unconditionally enable CONFIG_SERIAL_MULTI throughout the whole
U-Boot and maintain only one serial subsystem.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Mike Frysinger <vapier@gentoo.org>
11 years agoserial: zoom2: Remove zoom2 serial prototypes from serial.h
Marek Vasut [Wed, 12 Sep 2012 18:15:06 +0000 (20:15 +0200)] 
serial: zoom2: Remove zoom2 serial prototypes from serial.h

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 across possible values, which
returns the zoom2_serial_deviceN . With such adjustment in place,
the exported prototypes in serial.h can be safely removed.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
11 years agoserial: bfin: Adjust serial_register_bfin_uart()
Marek Vasut [Wed, 12 Sep 2012 18:07:54 +0000 (20:07 +0200)] 
serial: bfin: Adjust serial_register_bfin_uart()

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 <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Mike Frysinger <vapier@gentoo.org>
11 years agoserial: bfin: Remove the bfin_serialN_device exports from serial.h
Marek Vasut [Wed, 12 Sep 2012 18:05:13 +0000 (20:05 +0200)] 
serial: bfin: Remove the bfin_serialN_device exports from serial.h

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 <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Mike Frysinger <vapier@gentoo.org>
11 years agoserial: ns16550: Move serial registration from serial_initialize()
Marek Vasut [Wed, 12 Sep 2012 18:02:05 +0000 (20:02 +0200)] 
serial: ns16550: Move serial registration from serial_initialize()

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_serial_initialize() function, which is
implemented inside of the ns16550 serial driver allows encapsulation
of eserialN_device within the ns16550 serial driver itself.

Also, remove the exports of eserialN_device from include/serial.h
as they are no longer needed. This is simply because the implementation of
default_serial_console() is wrapped into the ns16550 serial driver and
the default console is picked by CONFIG_SERIAL<N> macro in config file.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Michal Simek <monstr@monstr.eu>
11 years agoserial: mpc512x: Move serial registration from serial_initialize()
Marek Vasut [Wed, 12 Sep 2012 17:50:18 +0000 (19:50 +0200)] 
serial: mpc512x: Move serial registration from serial_initialize()

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_serial_initialize() function, which is
implemented inside of the mpc512x serial driver allows encapsulation
of serialN_device within the mpc512x serial driver itself.

Also, remove the exports of serialN_device from include/serial.h
as they are no longer needed. This is simply because the implementation of
default_serial_console() is wrapped into the mpx512x serial driver and
the default console is picked by CONFIG_SERIAL<N> macro in config file.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: microblaze: Move serial registration from serial_initialize()
Marek Vasut [Wed, 12 Sep 2012 17:45:58 +0000 (19:45 +0200)] 
serial: microblaze: Move serial registration from serial_initialize()

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 xuartlite_serial_initialize() function, which is
implemented inside of the serial_xuartlite driver allows encapsulation
of xuartlite_serialN_device within the serial_xuartlite driver itself.

Also, remove the exports of xuartlite_serialN_device from include/serial.h
as they are no longer needed. This is simply because the implementation of
default_serial_console() is wrapped into the serial_xuartlite driver and
the default console is picked by CONFIG_SERIAL<N> macro in config file.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Michal Simek <monstr@monstr.eu>
11 years agoserial: zynq: Move serial registration from serial_initialize()
Tom Rini [Mon, 8 Oct 2012 21:46:23 +0000 (14:46 -0700)] 
serial: zynq: Move serial registration from serial_initialize()

Move the registration of zynq_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 zynq_serial_initialize() function, which is
implemented inside of the serial_zynq driver allows encapsulation
of zynq_serialN_device within the serial_zynq driver itself.

Also, remove the exports of zynq_serialN_device from include/serial.h
as they are no longer needed. This is simply because the implementation of
default_serial_console() is wrapped into the serial_zynq driver and
the default console is picked by CONFIG_SERIAL<N> macro in config file.

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoserial: s5p: Move serial registration from serial_initialize()
Marek Vasut [Wed, 12 Sep 2012 17:39:57 +0000 (19:39 +0200)] 
serial: s5p: Move serial registration from serial_initialize()

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_serial_initialize() function, which is
implemented inside of the serial_s5p driver allows encapsulation
of s5p_serialN_device within the serial_s5p driver itself.

Also, remove the exports of s5p_serialN_device from include/serial.h
as they are no longer needed. This is simply because the implementation of
default_serial_console() is wrapped into the serial_s5p driver and
the default console is picked by CONFIG_SERIAL<N> macro in config file.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
11 years agoserial: pxa: Move serial registration from serial_initialize()
Marek Vasut [Wed, 12 Sep 2012 11:57:58 +0000 (13:57 +0200)] 
serial: pxa: Move serial registration from serial_initialize()

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_initialize() function, which is
implemented inside of the serial_pxa driver allows encapsulation
of serial_XXuart within the serial_pxa driver itself.

Also, remove the exports of serial_XXuart from include/serial.h
as they are no longer needed. This is simply because the implementation of
default_serial_console() is wrapped into the serial_pxa driver and
the default console is picked by CONFIG_CONS_IDX macro in config file.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
11 years agoserial: s3c24xx: Move serial registration from serial_initialize()
Marek Vasut [Wed, 12 Sep 2012 14:01:16 +0000 (16:01 +0200)] 
serial: s3c24xx: Move serial registration from serial_initialize()

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 s3c24xx_serial_initialize() function, which is
implemented inside of the serial_s3c24xx driver allows encapsulation
of s3c24xx_serialN_device within the serial_s3c24xx driver itself.

Also, remove the exports of s3c24xx_serialN_device from include/serial.h
as they are no longer needed. This is simply because the implementation of
default_serial_console() is wrapped into the serial_s3c24xx driver and
the default console is picked by CONFIG_SERIAL<N> macro in config file.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: C Nauman <cnauman@diagraph.com>
11 years agoserial: mpc8xx: Move serial registration from serial_initialize()
Marek Vasut [Wed, 12 Sep 2012 11:50:56 +0000 (13:50 +0200)] 
serial: mpc8xx: Move serial registration from serial_initialize()

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 serial_scc_device and serial_smc_device can
not yet be removed as they are still used in default_serial_console()
calls.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
11 years agoserial: Implement serial_initfunc() macro
Marek Vasut [Wed, 12 Sep 2012 15:49:58 +0000 (17:49 +0200)] 
serial: Implement serial_initfunc() macro

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, which in case the driver is not
present alias onto an empty function, which is in turn optimized out
altogether.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
11 years agoserial: mpc512x: Properly define CONFIG_SYS_PSC3 in config files
Marek Vasut [Sun, 16 Sep 2012 14:07:24 +0000 (16:07 +0200)] 
serial: mpc512x: Properly define CONFIG_SYS_PSC3 in config files

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 <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
11 years agoserial: pxa: Make local functions static
Marek Vasut [Wed, 12 Sep 2012 10:59:42 +0000 (12:59 +0200)] 
serial: pxa: Make local functions static

Make functions that are local-only static, so no hairy symbols
stick out of the serial_pxa driver file.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
11 years agoserial: pxa: Make use of default_serial_console in serial_pxa
Marek Vasut [Wed, 12 Sep 2012 10:36:25 +0000 (12:36 +0200)] 
serial: pxa: Make use of default_serial_console in serial_pxa

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 <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
11 years agoserial: pxa: Implement default_serial_console in serial_pxa.c
Marek Vasut [Wed, 12 Sep 2012 10:26:30 +0000 (12:26 +0200)] 
serial: pxa: Implement default_serial_console in serial_pxa.c

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 <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
11 years agoserial: Properly spell out the structure member names of serial_driver
Marek Vasut [Sun, 9 Sep 2012 16:48:28 +0000 (18:48 +0200)] 
serial: Properly spell out the structure member names of serial_driver

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 Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: C Nauman <cnauman@diagraph.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Michal Simek <monstr@monstr.eu>
11 years agoserial: Rename .init() and .uninit() in serial_device
Marek Vasut [Fri, 7 Sep 2012 12:35:31 +0000 (14:35 +0200)] 
serial: Rename .init() and .uninit() in serial_device

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: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Tom Rini <trini@ti.com>
11 years agoserial: Coding style cleanup of struct serial_device
Marek Vasut [Fri, 7 Sep 2012 12:32:10 +0000 (14:32 +0200)] 
serial: Coding style cleanup of struct serial_device

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 <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
11 years agoCOMMON: Use __stringify() instead of rest of implementations
Marek Vasut [Sun, 23 Sep 2012 15:41:25 +0000 (17:41 +0200)] 
COMMON: Use __stringify() instead of rest of implementations

Fix up the rest of implementations of __stringify().

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
11 years agoCOMMON: Use __stringify() instead of MK_STR()
Marek Vasut [Sun, 23 Sep 2012 15:41:24 +0000 (17:41 +0200)] 
COMMON: Use __stringify() instead of MK_STR()

Kill multiple occurances and redeclaration of MK_STR
in favor of __stringify().

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Signed-off-by: Tom Rini <trini@ti.com>
11 years agoCOMMON: Use __stringify() instead of xstr()
Marek Vasut [Sun, 23 Sep 2012 15:41:23 +0000 (17:41 +0200)] 
COMMON: Use __stringify() instead of xstr()

Kill multiple occurances and redeclaration of xstr in favor of __stringify().

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
11 years agoCOMMON: Add __stringify() function
Marek Vasut [Thu, 27 Sep 2012 15:08:15 +0000 (17:08 +0200)] 
COMMON: Add __stringify() function

Copied from Linux kernel:
commit 8f7c2c37319a81ef4c2bfdec67b1ccd5744d97e4
Date:   Wed Apr 8 16:58:57 2009 +0800

Pull in the __stringify() macro from Linux kernel. This macro is usually used to
convert numbers to strings at preprocessor level, yet it is not limited only to
that. This is useful as it allows higher usage of puts() in favour of printf().

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
11 years agoSPL: Remove setting GD_FLG_RELOC in preloader_console_init()
Tom Rini [Mon, 1 Oct 2012 21:44:31 +0000 (14:44 -0700)] 
SPL: Remove setting GD_FLG_RELOC in preloader_console_init()

We have not strictly speaking relocated at this point, do not claim that
we have.  This is not required for output.

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoMAINTAINERS: Move dbau1x00 to orphaned.
Tom Rini [Wed, 26 Sep 2012 22:22:32 +0000 (15:22 -0700)] 
MAINTAINERS: Move dbau1x00 to orphaned.

The former maintainer is no longer interested, move to orphaned.  Patch
is from the former maintainer.

Signed-off-by: Tom Rini <trini@ti.com>
11 years agogth2: Remove this platform
Tom Rini [Wed, 26 Sep 2012 22:20:33 +0000 (15:20 -0700)] 
gth2: Remove this platform

After taking with the former maintainer, delete this platform.  The
patch is from the former maintainer.

Signed-off-by: Tom Rini <trini@ti.com>
11 years agocommon: cmd_elf.c: use uintptr_t for casts from u32 to void*
Daniel Schwierzeck [Sun, 16 Sep 2012 06:55:06 +0000 (06:55 +0000)] 
common: cmd_elf.c: use uintptr_t for casts from u32 to void*

This fixes warnings when compiling with ELDK-5.2.1 for MIPS64:

cmd_elf.c: In function 'load_elf_image_phdr':
cmd_elf.c:289:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
cmd_elf.c: In function 'load_elf_image_shdr':
cmd_elf.c:343:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
cmd_elf.c:346:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
11 years agocommon: cmd_elf.c: fix checkpath.pl warnings
Daniel Schwierzeck [Sun, 16 Sep 2012 06:55:05 +0000 (06:55 +0000)] 
common: cmd_elf.c: fix checkpath.pl warnings

[Tom: Move valid_elf_image around and don't mark it as static as another
board makes use of this function]

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Signed-off-by: Tom Rini <trini@ti.com>
11 years agolib: vsprintf.c: replace NUM_TYPE with s64/u64 types
Daniel Schwierzeck [Sun, 16 Sep 2012 06:55:04 +0000 (06:55 +0000)] 
lib: vsprintf.c: replace NUM_TYPE with s64/u64 types

This fixes warnings when compiling with ELDK-5.2.1 for MIPS64:

vsprintf.c: In function 'put_dec':
vsprintf.c:258:9: warning: comparison of distinct pointer types lacks a cast [enabled by default]
vsprintf.c:258:3: warning: passing argument 1 of '__div64_32' from incompatible pointer type [enabled by default]
include/div64.h:22:17: note: expected 'uint64_t *' but argument is of type 'long long unsigned int *'

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
11 years agolib: vsprintf.c: fix checkpath.pl warnings
Daniel Schwierzeck [Sun, 16 Sep 2012 06:55:03 +0000 (06:55 +0000)] 
lib: vsprintf.c: fix checkpath.pl warnings

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
11 years agoARM: prevent misaligned array inits
Albert ARIBAUD [Tue, 9 Oct 2012 09:28:15 +0000 (09:28 +0000)] 
ARM: prevent misaligned array inits

Under option -munaligned-access, gcc can perform local char
or 16-bit array initializations using misaligned native
accesses which will throw a data abort exception. Fix files
where these array initializations were unneeded, and for
files known to contain such initializations, enforce gcc
option -mno-unaligned-access.

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
[trini: Switch to usign call cc-option for -mno-unaligned-access as
Albert had done previously as that's really correct]
Signed-off-by: Tom Rini <trini@ti.com>
11 years agoPrepare v2012.10
Tom Rini [Mon, 15 Oct 2012 15:14:08 +0000 (08:14 -0700)] 
Prepare v2012.10

Signed-off-by: Tom Rini <trini@ti.com>
11 years agom28: Properly configure the SPI flash chipselect
Marek Vasut [Thu, 11 Oct 2012 15:36:56 +0000 (15:36 +0000)] 
m28: Properly configure the SPI flash chipselect

The SPI flash is not properly detected by plain "sf probe" due to
it being located on different bus and different chipselect. Fix
this problem.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Tom Rini <trini@ti.com>
11 years agoPrepare v2012.10-rc3
Tom Rini [Mon, 8 Oct 2012 18:20:28 +0000 (11:20 -0700)] 
Prepare v2012.10-rc3

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoarm: armv7: omap3: Fix restore sequence in lowlevel_init
Albert ARIBAUD [Sun, 7 Oct 2012 09:24:10 +0000 (09:24 +0000)] 
arm: armv7: omap3: Fix restore sequence in lowlevel_init

The restore sequence in lowlevel_init was in the wrong order,
causing lr to lose its original value and be set equal to ip
instead. Also, its use of the stack clashes with that of
s_init, so move the s_init call after the restore and turn
it  into a tail-optimized branch.

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Tested-by: Jeroen Hofstee <jeroen@myspectrum.nl>
11 years agoyaffs2: Fix GCC 4.6 compile warnings
Anatolij Gustschin [Fri, 5 Oct 2012 23:31:03 +0000 (23:31 +0000)] 
yaffs2: Fix GCC 4.6 compile warnings

Fix:
yaffs_guts.c: In function 'yaffs_check_chunk_erased':
yaffs_guts.c:324:6: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
yaffs_guts.c: In function 'yaffs_verify_chunk_written':
yaffs_guts.c:352:6: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
yaffs_guts.c: In function 'yaffs_grab_chunk_cache':
yaffs_guts.c:1488:6: warning: variable 'pushout' set but not used
[-Wunused-but-set-variable]
yaffs_guts.c: In function 'yaffs_check_obj_details_loaded':
yaffs_guts.c:3180:6: warning: variable 'alloc_failed' set but not used
[-Wunused-but-set-variable]
yaffs_guts.c:3179:6: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
yaffs_guts.c: In function 'yaffs_update_oh':
yaffs_guts.c:3288:6: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
yaffs_guts.c: In function 'yaffs_get_obj_name':
yaffs_guts.c:4447:7: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
yaffs_summary.c: In function 'yaffs_summary_read':
yaffs_summary.c:194:6: warning: variable 'sum_tags_bytes' set but not
used [-Wunused-but-set-variable]
yaffs_verify.c: In function 'yaffs_verify_file':
yaffs_verify.c:227:6: warning: variable 'actual_depth' set but not used
[-Wunused-but-set-variable]
yaffs_yaffs1.c: In function 'yaffs1_scan':
yaffs_yaffs1.c:26:6: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
yaffs_yaffs2.c: In function 'yaffs2_scan_chunk':
yaffs_yaffs2.c:949:6: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
yaffs_yaffs2.c: In function 'yaffs2_scan_backwards':
yaffs_yaffs2.c:1352:6: warning: variable 'deleted' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Charles Manning <cdhmanning@gmail.com>
Tested-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
11 years agodisk: part_dos: don't claim whole-disk FAT filesystems
Stephen Warren [Fri, 5 Oct 2012 13:17:40 +0000 (13:17 +0000)] 
disk: part_dos: don't claim whole-disk FAT filesystems

Logically, a disk that contains a raw FAT filesystem does not in fact
have a partition table. However, test_part_dos() was claiming that such
disks did in fact have a DOS-style partition table. This caused
get_device_and_partition() not to return a whole-disk disk_partition_t,
since part_type != PART_TYPE_UNKNOWN.

part_dos.c's print_partition_extended() detected the raw FAT filesystem
condition and printed a fake partition table that encompassed the whole
disk.

However, part_dos.c's get_partition_info_extended() did not return any
valid partitions in this case. This combination caused
get_device_and_partition() not to find any valid partitions, and hence
to return an error.

Fix test_part_dos() not to claim that raw FAT filesystems are DOS
partition tables. In turn, this causes get_device_and_partition() to
return a whole-disk disk_partition_t, and hence the following commands
work:

fatls mmc 0 /
fatls mmc 0:auto /

An alternative would be to modify print_partition_extended() to detect
raw FAT filesystems, just like print_partition_extended() does, and to
return a fake partition in this case. However, this seems logically
incorrect, and also duplicates code, since get_device_and_partition()
falls back to returning a whole-disk partition when there is no partition
table on the device.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
11 years agoFAT: check for partition 0 not 1 for whole-disk fs
Stephen Warren [Fri, 5 Oct 2012 13:17:39 +0000 (13:17 +0000)] 
FAT: check for partition 0 not 1 for whole-disk fs

The recent switch to use get_device_and_partition() from do_fat_ls()
broke the ability to access a FAT filesystem directly on a whole device;
FAT only works within a partition on a device.

This change makes e.g. "fatls mmc 0:0" work; explicitly requesting
partition ID 0 is something that get_device_and_partition() fully
supports. However, fat_register_device() expects partition ID 1 to be
used in the full-disk case; partition ID 1 was previously implicitly
specified when the user didn't actually specify a partition ID. Update
fat_register_device() to expect the correct ID.

This change does imply that if a user explicitly executes "fatls mmc 0:1"
then this will fail, and may be a change in behaviour.

Note that this still prevents "fatls mmc 0:auto" from working. The next
patch will fix that.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
11 years agoarm: rmobile: bugfix: wrong register saving in lowlevel_init
Tetsuyuki Kobayashi [Thu, 4 Oct 2012 18:39:22 +0000 (18:39 +0000)] 
arm: rmobile: bugfix: wrong register saving in lowlevel_init

lowlevel_init() of rmobile badly assumed that ip register holds return address.
The commit "63ee53a7 armv7 cpu_init_crit: Simplify code" breaks this assumption.
This patch removes this bad assumption and simplify code.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
11 years agoide: Correct IDE_BUS(dev) macro
Luka Perkov [Mon, 14 May 2012 09:29:10 +0000 (09:29 +0000)] 
ide: Correct IDE_BUS(dev) macro

The IDE_BUS(dev) macro was previously doing dev >> 1.  This however is a
mis-match of the usage in common/cmd_ide.c and would cause boards with
multiple ports / devices to not correctly detect all devices.  For more
details please see:
http://lists.denx.de/pipermail/u-boot/2012-April/122525.html

[Tom Rini: Reword commit message only]

Tested-by: Luka Perkov <uboot@lukaperkov.net>
Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Signed-off-by: Tom Rini <trini@ti.com>
11 years agoGPIO: pca953x: fix error reporting
Laurence Withers [Wed, 25 Jul 2012 03:55:48 +0000 (03:55 +0000)] 
GPIO: pca953x: fix error reporting

Use the standard CMD_RET_* constants to clearly report errors from the
pca953x command. In addition, print error messages when I2C communication
fails.

Signed-off-by: Laurence Withers <lwithers@guralp.com>
11 years agoGPIO: pca953x: fix spelling in help
Laurence Withers [Wed, 25 Jul 2012 03:55:47 +0000 (03:55 +0000)] 
GPIO: pca953x: fix spelling in help

Signed-off-by: Laurence Withers <lwithers@guralp.com>
11 years agoml507: Fix Xilinx uartlite driver hang
Rommel Custodio [Mon, 24 Sep 2012 13:27:05 +0000 (13:27 +0000)] 
ml507: Fix Xilinx uartlite driver hang

The default configuration for ml507 will generate a hang() in the
Xilinx uartlite driver.

userial_ports[] in drivers/serial/serial_xuartlite.c does not get
initialized properly. CONFIG_SERIAL_BASE is unused.
XILINX_UARTLITE_BASEADDR is used instead.

Signed-off-by: Rommel Custodio <sessyargc+uboot@gmail.com>
11 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Tom Rini [Fri, 5 Oct 2012 20:56:45 +0000 (13:56 -0700)] 
Merge branch 'master' of git://git.denx.de/u-boot-arm

11 years agoarm: armv7: temporarily set -mno-unaligned-access
Albert ARIBAUD [Fri, 5 Oct 2012 16:43:33 +0000 (18:43 +0200)] 
arm: armv7: temporarily set -mno-unaligned-access

This patch aims at ensuring that the 2012.10 release works
out-of-the-box on as many targets as possible, by reinstating
commit 5347560f5427bcdd48a563b62180481606ac8044, which adds
option -mno-unaligned-access to armv7 builds.

This patch will be overriden immediately after release of 2012.10.

11 years agoMAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g
Tetsuyuki Kobayashi [Mon, 16 Jul 2012 19:13:10 +0000 (19:13 +0000)] 
MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
11 years agoenv: fix crash using default -f -a
Gerlando Falauto [Fri, 5 Oct 2012 00:46:10 +0000 (00:46 +0000)] 
env: fix crash using default -f -a

env default -a -f calls env_check_apply on all existing environment
variables with a NULL value for "newval" as a way of cleaning up.
This causes string manipulation functions to crash on most architectures.
So replace a NULL argument with an empty string.

Reported-By: Stefano Babic <sbabic@denx.de>
Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Tested-by: Stefano Babic <sbabic@denx.de>
11 years agoImprove license declaration for cmd_ini.h
Joe Hershberger [Thu, 4 Oct 2012 09:54:07 +0000 (09:54 +0000)] 
Improve license declaration for cmd_ini.h

Instead of referenceing the source webpage (which can change) include
the license in the source file.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reported-by: Igor Grinberg <grinberg@compulab.co.il>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Tom Rini <trini@ti.com>
Cc: Wolfgang Denk <wd@denx.de>
Acked-by: Wolfgang Denk <wd@denx.de>
11 years agoMPC85xx: remove support for TQM85xx boards
Wolfgang Denk [Wed, 3 Oct 2012 23:36:18 +0000 (23:36 +0000)] 
MPC85xx: remove support for TQM85xx boards

Due to grown code sizes the TQM85xx boards don't build any more with
some older tool chains (like ELDK 4.2).  As these boards have long
reached EOL it seems a waste of effort trying to fix them.  The vendor
has agreed to drop support for them, too.  So let's get rid of them.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
cc: Kim Phillips <kim.phillips@freescale.com>
Acked-by: Stefan Roese <sr@denx.de>
11 years agosh: ap_sh4a_4a: Fixed initialization value of DDR memory
Nobuhiro Iwamatsu [Thu, 6 Sep 2012 00:35:10 +0000 (09:35 +0900)] 
sh: ap_sh4a_4a: Fixed initialization value of DDR memory

The wrong value was set as value of column of DDR memory for ap_sh4a_4a.
10 is the right value. This fixed this problem.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
11 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Tom Rini [Thu, 4 Oct 2012 17:00:42 +0000 (10:00 -0700)] 
Merge branch 'master' of git://git.denx.de/u-boot-arm

11 years agoARM: Add Altera SOCFPGA Cyclone5
Dinh Nguyen [Thu, 4 Oct 2012 06:46:02 +0000 (06:46 +0000)] 
ARM: Add Altera SOCFPGA Cyclone5

Add minimal support for Altera's SOCFPGA Cyclone 5 hardware.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Signed-off-by: Chin Liang See <clsee@altera.com>
Signed-off-by: Pavel Machek <pavel@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Tom Trini <trini@ti.com>
Cc: Wolfgang Denx <wd@denx.de>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Stefan Roese <sr@denx.de>
----
v8: Remove no_return attribute for reset_cpu

Based on v2012.10-rc2

11 years agosnowball: Clear UART RX FIFO
Ramesh Chandrasekaran [Mon, 10 Sep 2012 20:28:27 +0000 (20:28 +0000)] 
snowball: Clear UART RX FIFO

Without usb-serial cable plugged at this stage, some
garbage is seen in UART RX FIFO, which blocks autoboot
progress. The fix makes sure to empty the RX FIFO,
before we wait for user input to interrupt autoboot.

Signed-off-by: Ramesh Chandrasekaran <ramesh.chandrasekaran@stericsson.com>
11 years agoxilinx: Add new Zynq board
Michal Simek [Fri, 28 Sep 2012 09:56:37 +0000 (09:56 +0000)] 
xilinx: Add new Zynq board

Add support for Xilinx Zynq board.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Marek Vasut <marex@denx.de>
CC: Joe Hershberger <joe.hershberger@gmail.com>
11 years agoarm: Support new Xilinx Zynq platform
Michal Simek [Thu, 13 Sep 2012 20:23:35 +0000 (20:23 +0000)] 
arm: Support new Xilinx Zynq platform

Add timer driver.

Signed-off-by: Michal Simek <monstr@monstr.eu>
CC: Joe Hershberger <joe.hershberger@gmail.com>
CC: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
11 years agoserial: Add Zynq serial driver
Michal Simek [Fri, 14 Sep 2012 00:55:24 +0000 (00:55 +0000)] 
serial: Add Zynq serial driver

The driver is used on Xilinx Zynq platform.

Signed-off-by: Michal Simek <monstr@monstr.eu>
CC: Joe Hershberger <joe.hershberger@gmail.com>
CC: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
11 years agoarm: Fixed the offset for the no relocation.
Zhong Hongbo [Sat, 1 Sep 2012 20:49:52 +0000 (20:49 +0000)] 
arm: Fixed the offset for the no relocation.

When the u-boot address of destination equal to  __start,
no relocation. relocation offset(r9) = 0.

Signed-off-by: Zhong Hongbo <bocui107@gmail.com>
Tested-by: Stefano Babic <sbabic@denx.de>
11 years agoarm: Add CONFIG_OF_BOARD_SETUP support to bootm
Joe Hershberger [Fri, 17 Aug 2012 10:28:50 +0000 (10:28 +0000)] 
arm: Add CONFIG_OF_BOARD_SETUP support to bootm

ARM boards need to change device tree settings as well

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
11 years agoarm: Remove additional config flags
Michal Simek [Tue, 14 Aug 2012 01:15:17 +0000 (01:15 +0000)] 
arm: Remove additional config flags

These options are just duplicated from arch/arm/cpu/armv7/config.mk

Signed-off-by: Michal Simek <monstr@monstr.eu>
11 years agoarmv7 cpu_init_crit: Simplify code
Benoît Thébaudeau [Fri, 10 Aug 2012 12:05:16 +0000 (12:05 +0000)] 
armv7 cpu_init_crit: Simplify code

We don't need to return to cpu_init_crit after calling lowlevel_init, so
lowlevel_init can directly return to the caller of cpu_init_crit.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
11 years agoarm: work around assembler bug
Allen Martin [Wed, 18 Jul 2012 13:45:53 +0000 (13:45 +0000)] 
arm: work around assembler bug

Disable sibling call optimization based on binutils version.  This is
to work around a bug in the assember in binutils versions < 2.22.
Branches to weak symbols can be incorrectly optimized in thumb mode to
a short branch (b.n instruction) that won't reach when the symbol gets
preempted.

http://sourceware.org/bugzilla/show_bug.cgi?id=12532

Signed-off-by: Allen Martin <amartin@nvidia.com>
Acked-by: Tom Rini <trini@ti.com>
11 years agotools, config.mk: add binutils-version
Allen Martin [Wed, 15 Aug 2012 11:38:53 +0000 (11:38 +0000)] 
tools, config.mk: add binutils-version

Modeled after gcc-version, add function to get binutils version.

Signed-off-by: Allen Martin <amartin@nvidia.com>
Acked-by: Wolfgang Denk <wd@denx.de>