oweals/u-boot.git
13 years agoARM: dig297: Define MACH_TYPE_OMAP3_CPS and CONFIG_MACH_TYPE
Luca Ceresoli [Fri, 4 Nov 2011 17:42:09 +0000 (13:42 -0400)]
ARM: dig297: Define MACH_TYPE_OMAP3_CPS and CONFIG_MACH_TYPE

MACH_TYPE_OMAP3_CPS was dropped in the latest mach-types sync (47af6f61bcd9)
because it is not mainlined in Linux.

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Wolfgang Denk <wd@denx.de>
CC: Tom Rini <tom.rini@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3: mem: Move comments next to definitions
Sanjeev Premi [Thu, 27 Oct 2011 11:23:14 +0000 (16:53 +0530)]
omap3: mem: Move comments next to definitions

Calculations for ACTIM_CTRLA amd ACTIM_CTRLB values
are defined in 'header' style comments.

Moved them along with definitions. Should help maintain
consistency between comments and code if any of these
are tweaked in future.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3: mem: Clean-up whitespaces
Sanjeev Premi [Thu, 27 Oct 2011 10:51:57 +0000 (16:21 +0530)]
omap3: mem: Clean-up whitespaces

Consistent use of TABs and align definitions with
neighbouring code.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3: mem: Define and use common macros
Sanjeev Premi [Thu, 27 Oct 2011 10:45:19 +0000 (16:15 +0530)]
omap3: mem: Define and use common macros

Define common macros to arrive at the values of registers
SDRC_ACTIM_CTRLA and SDRC_ACTIM_CTRLB for different memory
types.

This doesn't make any real change in the execution but
helps readability.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDavinci: ea20: added PREBOOT to configuration
Stefano Babic [Tue, 4 Oct 2011 23:43:39 +0000 (23:43 +0000)]
Davinci: ea20: added PREBOOT to configuration

PREBOOT is used on the ea20 to load a splash image
at the start up.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDavinci: ea20: added I2C support
Stefano Babic [Tue, 4 Oct 2011 23:43:38 +0000 (23:43 +0000)]
Davinci: ea20: added I2C support

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDavinci: ea20: added video support
Stefano Babic [Tue, 4 Oct 2011 23:43:37 +0000 (23:43 +0000)]
Davinci: ea20: added video support

Signed-off-by: Stefano Babic <sbabic@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
CC: Sandeep Paulraj <s-paulraj@ti.com>
Acked-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoVIDEO: davinci: add framebuffer to da8xx
Stefano Babic [Fri, 7 Oct 2011 23:27:34 +0000 (23:27 +0000)]
VIDEO: davinci: add framebuffer to da8xx

The patch is a port from the framebuffer driver
of the Linux driver drivers/video/da8xx-fb.c, used
on davinci da8xx and OMAP-L138 boards.

As base for the port, the following commit (last changes
for this driver at the moment in the Linux kernel tree)
was taken:

commit 1db41e032d563eb47deab40dc5595be306b143ba
Author: axel lin <axel.lin@gmail.com>
Date:   Tue Feb 22 01:52:42 2011 +0000

    video: da8xx-fb: fix section mismatch warning

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Acked-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoARM: Davinci: added missing registers to hardware.h
Stefano Babic [Tue, 4 Oct 2011 23:43:35 +0000 (23:43 +0000)]
ARM: Davinci: added missing registers to hardware.h

The hardware base address for ther LCD configuration
registers is missing, as well as some syscfg registers.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDavinci: ea20: add gpios for LCD backlight control
Bastian Ruppert [Tue, 4 Oct 2011 23:43:34 +0000 (23:43 +0000)]
Davinci: ea20: add gpios for LCD backlight control

Signed-off-by: Bastian Ruppert <Bastian.Ruppert@Sewerin.de>
CC: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDavinci: ea20: add gpio for keeping power on in board_late_init
Bastian Ruppert [Tue, 4 Oct 2011 23:43:33 +0000 (23:43 +0000)]
Davinci: ea20: add gpio for keeping power on in board_late_init

The pin called HALTEN drives a transistor to operate the supply
voltage. After HALTEN is high, the user can release the power
switch button and the device will stay powered on.

Signed-off-by: Bastian Ruppert <Bastian.Ruppert@Sewerin.de>
CC: sbabic@denx.de
CC: dzu@denx.de
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDavinci: ea20: Add default U-Boot environment
Stefano Babic [Tue, 4 Oct 2011 23:43:32 +0000 (23:43 +0000)]
Davinci: ea20: Add default U-Boot environment

Signed-off-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Bastian Ruppert <Bastian.Ruppert@Sewerin.de>
CC: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDavinci: ea20: Add early init to get early output from console
Stefano Babic [Tue, 4 Oct 2011 23:43:31 +0000 (23:43 +0000)]
Davinci: ea20: Add early init to get early output from console

Use board_early_init_f so that the full boot log output can be displayed.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDavinci: ea20: Add NAND support
Stefano Babic [Tue, 4 Oct 2011 23:43:30 +0000 (23:43 +0000)]
Davinci: ea20: Add NAND support

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Sandeep Paulraj <s-paulraj@ti.com>
CC: Scott Wood <scottwood@freescale.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDavinci: ea20: set GPIOs to hold MII-Phy in reset and set UART0-Switch for console
Bastian Ruppert [Tue, 4 Oct 2011 23:43:29 +0000 (23:43 +0000)]
Davinci: ea20: set GPIOs to hold MII-Phy in reset and set UART0-Switch for console

Signed-off-by: Bastian Ruppert <Bastian.Ruppert@Sewerin.de>
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: dzu@denx.de
CC: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDavinci: ea20: set console on UART0
Bastian Ruppert [Tue, 4 Oct 2011 23:43:28 +0000 (23:43 +0000)]
Davinci: ea20: set console on UART0

Signed-off-by: Bastian Ruppert <Bastian.Ruppert@Sewerin.de>
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarm, davinci: add cam_enc_4xx support
Heiko Schocher [Tue, 1 Nov 2011 20:00:35 +0000 (20:00 +0000)]
arm, davinci: add cam_enc_4xx support

- DM368 SOC
- booting with spl not with UBL from TI
- before loading u-boot from NAND into RAM, test
  the RAM with the post memory test. If error
  is found, switch all LEDs on and halt system.
- SPI Flash
  Dataflash Typ: M25PE80
- Ethernet DM9161BI
- MMC
- USB

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarm926ejs, davinci: add missing spi defines for dm365
Heiko Schocher [Tue, 1 Nov 2011 20:00:34 +0000 (20:00 +0000)]
arm926ejs, davinci: add missing spi defines for dm365

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarm926ejs, davinci: add cpuinfo for dm365
Heiko Schocher [Tue, 1 Nov 2011 20:00:33 +0000 (20:00 +0000)]
arm926ejs, davinci: add cpuinfo for dm365

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarm, davinci: add lowlevel function for dm365 soc
Heiko Schocher [Tue, 1 Nov 2011 20:00:32 +0000 (20:00 +0000)]
arm, davinci: add lowlevel function for dm365 soc

used for booting (for example) from NAND using spl code.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Christian Riesch <christian.riesch@omicron.at>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarm, davinci: add header files for dm365
Heiko Schocher [Tue, 1 Nov 2011 20:00:31 +0000 (20:00 +0000)]
arm, davinci: add header files for dm365

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Christian Riesch <christian.riesch@omicron.at>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agospl, nand: add 4bit HW ecc oob first nand_read_page function
Heiko Schocher [Tue, 1 Nov 2011 20:00:30 +0000 (20:00 +0000)]
spl, nand: add 4bit HW ecc oob first nand_read_page function

similiar to commit dc7cd8e59ba077f3b4c1a4557c9cd86a31b9ab1f, only
adapted for the new spl framework.

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Tom Rini <trini@ti.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarm, davinci: add support for new spl framework
Heiko Schocher [Tue, 1 Nov 2011 20:00:29 +0000 (20:00 +0000)]
arm, davinci: add support for new spl framework

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agospl: add option for adding post memory test to the SPL framework
Heiko Schocher [Tue, 1 Nov 2011 20:00:28 +0000 (20:00 +0000)]
spl: add option for adding post memory test to the SPL framework

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agonet, davinci_emac: make clock divider in MDIO control register configurable
Heiko Schocher [Tue, 1 Nov 2011 20:00:27 +0000 (20:00 +0000)]
net, davinci_emac: make clock divider in MDIO control register configurable

Define CONFIG_SYS_EMAC_TI_CLKDIV for setting the clkdiv value
in the MDIO control register.

Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Sandeep Paulraj <s-paulraj@ti.com>
cc: Wolfgang Denk <wd@denx.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarm, usb, davinci: make USBPHY_CTL register configurable
Heiko Schocher [Tue, 1 Nov 2011 20:00:26 +0000 (20:00 +0000)]
arm, usb, davinci: make USBPHY_CTL register configurable

Define CONFIG_DV_USBPHY_CTL for setting the USB PHY control
register.

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Remy Bohmer <linux@bohmer.net>
cc: Sandeep Paulraj <s-paulraj@ti.com>
cc: Remy Bohmer <linux@bohmer.net>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agousb, davinci: add enable_vbus() weak function
Heiko Schocher [Tue, 1 Nov 2011 20:00:25 +0000 (20:00 +0000)]
usb, davinci: add enable_vbus() weak function

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Remy Bohmer <linux@bohmer.net>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3evm: fix errors caused by multiple definitions
Sanjeev Premi [Tue, 25 Oct 2011 06:11:33 +0000 (06:11 +0000)]
omap3evm: fix errors caused by multiple definitions

Fix these errors when building with recently added
omap3_evm_quick_nand_config:

env_nowhere.o: In function `env_relocate_spec':
/home/premi/u-boot/common/env_nowhere.c:40: multiple definition
 of `env_relocate_spec'
env_nand.o:/home/premi/u-boot/common/env_nand.c:416: first defi
ned here
env_nowhere.o: In function `env_get_char_spec':
/home/premi/u-boot/common/env_nowhere.c:44: multiple definition
 of `env_get_char_spec'
env_nand.o:/home/premi/u-boot/common/env_nand.c:77: first defin
ed here
env_nowhere.o: In function `env_init':
/home/premi/u-boot/common/env_nowhere.c:54: multiple definition
 of `env_init'
env_nand.o:/home/premi/u-boot/common/env_nand.c:144: first defi
ned here
env_nowhere.o: In function `env_relocate_spec':
/home/premi/u-boot/common/env_nowhere.c:40: multiple definition
 of `env_ptr'
env_nand.o:/home/premi/u-boot/common/env_nand.c:77: first defin
ed here

Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3evm: Add (quick) configuration for NAND only
Sanjeev Premi [Tue, 25 Oct 2011 06:11:32 +0000 (06:11 +0000)]
omap3evm: Add (quick) configuration for NAND only

Add an optimized board configuration that only
supports boot from NAND.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3evm: Add (quick) configuration for MMC/SD only
Sanjeev Premi [Tue, 25 Oct 2011 06:11:31 +0000 (06:11 +0000)]
omap3evm: Add (quick) configuration for MMC/SD only

Add an optimized board configuration that only
supports boot from MMC/SD.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3evm: move common config options to new file
Sanjeev Premi [Tue, 25 Oct 2011 06:11:30 +0000 (06:11 +0000)]
omap3evm: move common config options to new file

This patch moves common config options to a new
file. Common options can now be included in other
board configs for this evm.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3evm: Prepare to split configuration
Sanjeev Premi [Tue, 25 Oct 2011 06:11:29 +0000 (06:11 +0000)]
omap3evm: Prepare to split configuration

This patch marks the beginning of steps that would
lead to clean and easy split of the configuration
file. Common portion can then be re-used by other
configurations.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3evm: Reorder related config options
Sanjeev Premi [Tue, 25 Oct 2011 06:11:28 +0000 (06:11 +0000)]
omap3evm: Reorder related config options

This patch brings related config options together.
Most config options won't be evaluated for numerical
value, but they are being set to 1. This patch also
removes this assignment.

Some formatting changes were also done for consistent
look-n-feel after the movement.

The patch doesn't make/include any other functional
change.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap/spl: actually enable the console
Ilya Yanok [Tue, 1 Nov 2011 13:16:03 +0000 (13:16 +0000)]
omap/spl: actually enable the console

Currently OMAP SPL code does all the initialization but does not set the
gd->have_console value so no output is actually performed. This patch
sets gd->have_console to 1.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agodavinci_emac: compilation fix, phy is array now
Ilya Yanok [Tue, 1 Nov 2011 13:15:55 +0000 (13:15 +0000)]
davinci_emac: compilation fix, phy is array now

Fix compilation issues introduced by recent multiply PHY patch.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3evm: Set environment variable 'ethaddr'
Sanjeev Premi [Fri, 2 Sep 2011 05:57:16 +0000 (05:57 +0000)]
omap3evm: Set environment variable 'ethaddr'

It is now responsibility of the board specific init
code to set the environment variable corresponding
to the MAC address.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarm, arm926: fix missing symbols in NAND_SPL mode
Heiko Schocher [Sat, 16 Jul 2011 00:06:43 +0000 (00:06 +0000)]
arm, arm926: fix missing symbols in NAND_SPL mode

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarm, davinci: Add function lpsc_syncreset()
Christian Riesch [Wed, 12 Oct 2011 21:26:43 +0000 (21:26 +0000)]
arm, davinci: Add function lpsc_syncreset()

This patch adds a function lpsc_syncreset that allows setting a
lpsc module into Sync Reset state.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Heiko Schocher <hs@denx.de>
Cc: Paulraj Sandeep <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Acked-by: Heiko Schocher <hs@denx.de>
Tested-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarm, davinci: replace CONFIG_PRELOADER with CONFIG_SPL_BUILD
Heiko Schocher [Tue, 26 Jul 2011 20:12:34 +0000 (20:12 +0000)]
arm, davinci: replace CONFIG_PRELOADER with CONFIG_SPL_BUILD

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarm/km: portl2 environment address update to P1B
Thomas Herzmann [Tue, 13 Sep 2011 22:41:03 +0000 (22:41 +0000)]
arm/km: portl2 environment address update to P1B

The environment eeprom is now at a different MUX address.

Signed-off-by: Thomas Herzmann <thomas.herzmann@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>

13 years agoarm/km: adapt bootcounter evaluation
Holger Brunck [Tue, 13 Sep 2011 22:41:02 +0000 (22:41 +0000)]
arm/km: adapt bootcounter evaluation

The bootcounter (stored in the RAM) is not enough protected with the 4 Bytes
BOOTCOUNT_MAGIC against bit errors due to short power loss or holding a system
in RESET. It has been seen, that the bootcounter value has been changed due to
a bit flip on a system holding in RESET, but the BOOTCOUNT_MAGIC was still valid.

A bit pattern with 4000 bytes (after BOOTCOUNT_MAGIC) has been implemented,
which should be enough to detect a bit error.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>

13 years agoarm/km: enable jffs2 cmds
Holger Brunck [Tue, 13 Sep 2011 22:41:06 +0000 (22:41 +0000)]
arm/km: enable jffs2 cmds

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>

13 years agoarm/km: trigger reconfiguration for the Xilinx FPGA
Holger Brunck [Tue, 13 Sep 2011 22:41:05 +0000 (22:41 +0000)]
arm/km: trigger reconfiguration for the Xilinx FPGA

The Xilinx FPGA must be reconfigured each time the unit
reboots. The FPGA is connected to the GPIO pin 39 from kirkwood.
This patch triggers this pin for km_kirkwood_pci targets.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>

13 years agoarm/km: add boardid and hwkey to kernel command line
Holger Brunck [Tue, 13 Sep 2011 22:41:04 +0000 (22:41 +0000)]
arm/km: add boardid and hwkey to kernel command line

We need in some cases a possibility for the kernel to distinguish
on which board he is running. On powerpc we did this with different
dts files. On arm currently we can't do this, so add boardid and
hwkey to the kernel command line and use it later on in the kernel
code.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
13 years agoARM: Reintroduce MACH_TYPE_KM_KIRKWOOD for keymile ARM boards
Valentin Longchamp [Tue, 1 Nov 2011 11:56:36 +0000 (17:26 +0530)]
ARM: Reintroduce MACH_TYPE_KM_KIRKWOOD for keymile ARM boards

We got dropped from Linux mach-types.h because of a lack of mainline
support and this is needed since the last Linux/u-boot mach-types
synchro.

This patch also defines CONFIG_MACH_TYPE for all keymile boards, as
this is a mandatory CONFIG for ARM boards now. The initialization
of gd->bd->bi_arch_number is removed form km_arm.c, our board file.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
13 years agonetspace_v2: enable I2C EEPROM support
Simon Guinot [Tue, 1 Nov 2011 11:14:12 +0000 (16:44 +0530)]
netspace_v2: enable I2C EEPROM support

An I2C EEPROM HT24LC04 (512B) is available on the netspace_v2 board
(and parents). This EEPROM hold data such as Ethernet MAC addresses
and power flags.

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
13 years agonetspace_v2: fix SDRAM configuration
Simon Guinot [Tue, 1 Nov 2011 11:14:12 +0000 (16:44 +0530)]
netspace_v2: fix SDRAM configuration

Network Space (Max) v2 and Internet Space v2 boards have different
SDRAM configuration and size: respectively 256MB (DDR2 1Gb, 128Mbx8
organisation) and 128MB (DDR2 512Mb, 64Mbx8 organisation). To handle
the differences, this patch add a dedicated kwimage.cfg file for
Internet Space v2.

Additionnaly the number of SDRAM banks is fixed.

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
13 years agoarmada100: define CONFIG_SYS_CACHELINE_SIZE
Lei Wen [Tue, 1 Nov 2011 10:55:56 +0000 (16:25 +0530)]
armada100: define CONFIG_SYS_CACHELINE_SIZE

By default, on Armada100 SoC DCache Lnd ICache line
lengths are 32 bytes long

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agopantheon: define CONFIG_SYS_CACHELINE_SIZE
Lei Wen [Tue, 1 Nov 2011 10:55:56 +0000 (16:25 +0530)]
pantheon: define CONFIG_SYS_CACHELINE_SIZE

By default, on Pantheon SoC DCache Lnd ICache line
lengths are 32 bytes long

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agokirkwood: define CONFIG_SYS_CACHELINE_SIZE
Michael Walle [Mon, 31 Oct 2011 14:52:58 +0000 (20:22 +0530)]
kirkwood: define CONFIG_SYS_CACHELINE_SIZE

By default, on Kirkwood SoC DCache Lnd ICache line
lengths are 32 bytes long

Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
13 years agokirkwood: drop empty asm-offsets.s file
Mike Frysinger [Mon, 31 Oct 2011 14:33:38 +0000 (20:03 +0530)]
kirkwood: drop empty asm-offsets.s file

This generated file does not belong in the tree -> punt.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
13 years agoarm/km/mgcoge3un: enhance "waitforne" feature
Holger Brunck [Tue, 27 Sep 2011 02:54:31 +0000 (02:54 +0000)]
arm/km/mgcoge3un: enhance "waitforne" feature

The mgcoge3un waits to be released from mgcoge3ne at startup.
This patch enhances this feature with the possibility to interrupt
this wait if a key is pressed.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>

13 years agoarm/km: add variable waitforne to mgcoge3un
Holger Brunck [Tue, 27 Sep 2011 02:54:30 +0000 (02:54 +0000)]
arm/km: add variable waitforne to mgcoge3un

Add this board specific variable to the default environment
of this board.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>

13 years agogplugD: Fix for error:MACH_TYPE_SHEEVAD undeclared
Ajay Bhargav [Mon, 31 Oct 2011 11:57:46 +0000 (17:27 +0530)]
gplugD: Fix for error:MACH_TYPE_SHEEVAD undeclared

This patch fix the build failure (error: 'MACH_TYPE_SHEEVAD' undeclared
(first use in this function)) for gplugD due to recent sync of
mach-types.h with its linux original.

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
13 years agoARM: dreamplug: fix compilation
Anatolij Gustschin [Sat, 29 Oct 2011 11:19:47 +0000 (11:19 +0000)]
ARM: dreamplug: fix compilation

Fix build issues:

mvrtc.c: In function 'rtc_get':
mvrtc.c:45: warning: implicit declaration of function 'readl'
mvrtc.c: In function 'rtc_set':
mvrtc.c:100: warning: implicit declaration of function 'writel'
dreamplug.c: In function 'board_early_init_f':
dreamplug.c:43: warning: implicit declaration of function 'kw_config_gpio'
dreamplug.c: In function 'board_init':
dreamplug.c:108: warning: implicit declaration of function 'kw_sdram_bar'
drivers/rtc/librtc.o: In function `rtc_set':
/home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:92: undefined reference to `writel'
/home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:103: undefined reference to `writel'
drivers/rtc/librtc.o: In function `rtc_reset':
/home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:117: undefined reference to `readl'
/home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:120: undefined reference to `readl'
drivers/rtc/librtc.o: In function `rtc_get':
/home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:45: undefined reference to `readl'
/home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:48: undefined reference to `readl'
...

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Jason Cooper <u-boot@lakedaemon.net>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
13 years agoARM: DockStar: fix compilation
Anatolij Gustschin [Sat, 29 Oct 2011 10:09:22 +0000 (10:09 +0000)]
ARM: DockStar: fix compilation

Fix build problem:

mvgbe.c: In function 'mvgbe_initialize':
mvgbe.c:735: warning: implicit declaration of function 'get_random_hex'
dockstar.c: In function 'board_early_init_f':
dockstar.c:43: warning: implicit declaration of function 'kw_config_gpio'
dockstar.c: In function 'board_init':
dockstar.c:113: warning: implicit declaration of function 'kw_sdram_bar'
dockstar.c: In function 'set_leds':
dockstar.c:161: warning: implicit declaration of function 'readl'
dockstar.c:161: error: dereferencing pointer to incomplete type
dockstar.c:162: warning: implicit declaration of function 'writel'
dockstar.c:162: error: dereferencing pointer to incomplete type
dockstar.c:163: error: dereferencing pointer to incomplete type
dockstar.c:164: error: dereferencing pointer to incomplete type
make[1]: *** [dockstar.o] Error 1
make: *** [board/Seagate/dockstar/libdockstar.o] Error 2

Reported-by: Roland Kletzing <devzero@web.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
13 years agoARM: netspace_v2: fix warnings
Anatolij Gustschin [Sat, 29 Oct 2011 11:31:19 +0000 (11:31 +0000)]
ARM: netspace_v2: fix warnings

Fix compiler warnings when compiling for netspace_v2, netspace_max_v2
and inetspace_v2:

netspace_v2.c: In function 'board_early_init_f':
netspace_v2.c:37: warning: implicit declaration of function 'kw_config_gpio'
netspace_v2.c: In function 'board_init':
netspace_v2.c:86: warning: implicit declaration of function 'kw_sdram_bar'

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Simon Guinot <simon.guinot@sequanux.org>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
13 years agoam335x: Drop board_sysinfo struct
Tom Rini [Fri, 21 Oct 2011 12:23:07 +0000 (12:23 +0000)]
am335x: Drop board_sysinfo struct

This isn't used presumably should be a typedef if needed later.

Signed-off-by: Tom Rini <trini@ti.com>
13 years agoam335x: Temporarily add MACH_TYPE define
Tom Rini [Fri, 21 Oct 2011 12:23:06 +0000 (12:23 +0000)]
am335x: Temporarily add MACH_TYPE define

This is registered and can be removed at the next sync up.

Signed-off-by: Tom Rini <trini@ti.com>
13 years agomisc:pmic:samsung Enable PMIC driver at C210 Universal target
Łukasz Majewski [Wed, 26 Oct 2011 22:33:17 +0000 (22:33 +0000)]
misc:pmic:samsung Enable PMIC driver at C210 Universal target

Enable support for PMIC driver at C210 Universal reference target.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
13 years agodcache:s5p CONFIG_SYS_CACHELINE_SIZE added for s5p UNIVERSAL C210 target
Łukasz Majewski [Mon, 17 Oct 2011 01:42:24 +0000 (01:42 +0000)]
dcache:s5p CONFIG_SYS_CACHELINE_SIZE added for s5p UNIVERSAL C210 target

Define the D-cache line size for S5PC210 UNIVERSAL reference target.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Anton Staaf <robotboy@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
13 years agodcache:s5p CONFIG_SYS_CACHELINE_SIZE added for s5p GONI target
Łukasz Majewski [Mon, 17 Oct 2011 01:42:23 +0000 (01:42 +0000)]
dcache:s5p CONFIG_SYS_CACHELINE_SIZE added for s5p GONI target

Define the D-cache line size for S5PC110 GONI reference target.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Anton Staaf <robotboy@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
13 years agosmdkv310: use macro for mmc data read function address
Chander Kashyap [Tue, 20 Sep 2011 21:25:04 +0000 (21:25 +0000)]
smdkv310: use macro for mmc data read function address

board/samsung/smdkv310/mmc_boot.c:
Removed the typedef for "mmc data read API (copy_sd_mmc_to_mem)"
as it is used only once and replaced hard-coded API address value
by macro.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
13 years agosmdkv310: use spl framework for mmc spl
Chander Kashyap [Tue, 20 Sep 2011 21:25:03 +0000 (21:25 +0000)]
smdkv310: use spl framework for mmc spl

smdkv310 board was using mmc_spl framework for mmc spl support.
This patch migrates the framework from mmc_spl to spl.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
13 years agoSMDKV310: use get_ram_size() to validate dram size
Chander Kashyap [Tue, 20 Sep 2011 21:25:02 +0000 (21:25 +0000)]
SMDKV310: use get_ram_size() to validate dram size

smdkv310.c: in dram_init_banksize(void) function dram size was
initialized without validation. get_ram_size() function will
validate the bank size before initialization.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
13 years agoSMDKV310: Initialize board id using CONFIG_MACH_TYPE
Chander Kashyap [Tue, 20 Sep 2011 21:25:01 +0000 (21:25 +0000)]
SMDKV310: Initialize board id using CONFIG_MACH_TYPE

Use CONFIG_MACH_TYPE generic macro to initialize board id.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
13 years agoORIGEN : use absolute paths and fix tool naming
Angus Ainslie [Mon, 12 Sep 2011 10:11:58 +0000 (10:11 +0000)]
ORIGEN : use absolute paths and fix tool naming

On some hosts using relative paths will cause the build to fail. This
patch sets absolute paths for the tools directory

Get rid of MSDOS style excecutable extension

Signed-off-by: Angus Ainslie <angus.ainslie@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
13 years agoORIGEN : enable device tree support
Angus Ainslie [Fri, 9 Sep 2011 12:02:02 +0000 (12:02 +0000)]
ORIGEN : enable device tree support

Enable passing a flattened device tree to the kernel.

Signed-off-by: Angus Ainslie <angus.ainslie@linaro.org>
Acked-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
13 years agoMX25: tx25: Fix building due to missing MACH_TYPE
Stefano Babic [Fri, 28 Oct 2011 08:23:02 +0000 (10:23 +0200)]
MX25: tx25: Fix building due to missing MACH_TYPE

Added MACH_TYPE for the tx25 to the configuration file.
The MACH_TYPE is dropped from mach-types.h after last sync
with kernel.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agomx31: Add board support for HALE TT-01
Helmut Raiger [Thu, 27 Oct 2011 01:31:15 +0000 (01:31 +0000)]
mx31: Add board support for HALE TT-01

This adds basic board support for TT-01 based on
the Bluetechnix i.MX31 SOM. Currently only NOR-Flash
boot is implemented.

Signed-off-by: Helmut Raiger <helmut.raiger@hale.at>
Acked-by: Stefano Babic <sbabic@denx.de>
13 years agomx31: add ESD control registers
Helmut Raiger [Thu, 27 Oct 2011 01:31:14 +0000 (01:31 +0000)]
mx31: add ESD control registers

This allows to initialize DDR memory in C code.
Currently all mx31 boards use assembler code (lowlevel_init.S)

Signed-off-by: Helmut Raiger <helmut.raiger@hale.at>
Acked-by: Stefano Babic <sbabic@denx.de>
13 years agomx31: define pins and init for UART2 and CSPI3
Helmut Raiger [Thu, 27 Oct 2011 01:31:13 +0000 (01:31 +0000)]
mx31: define pins and init for UART2 and CSPI3

Signed-off-by: Helmut Raiger <helmut.raiger@hale.at>
Acked-by: Stefano Babic <sbabic@denx.de>
13 years agoMX35: add support for flea3 board
Stefano Babic [Sun, 23 Oct 2011 23:58:20 +0000 (23:58 +0000)]
MX35: add support for flea3 board

The flea3 board is a custom board by CarMediaLab used
in automotive.
Network (FEC), NOR, NAND and SPI are supported.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoMX51: vision2: add MACH_TYPE in config file
Stefano Babic [Thu, 27 Oct 2011 12:30:27 +0000 (14:30 +0200)]
MX51: vision2: add MACH_TYPE in config file

Add the MACH type to the configuration file. Maybe the board
will be not pushed into linux ML, but it remains compatible
with older kernels.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agovision2: Remove unused header file
Fabio Estevam [Tue, 25 Oct 2011 04:34:20 +0000 (04:34 +0000)]
vision2: Remove unused header file

errno.h is not used on this file, so remove it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agomx51evk: Remove unused get_board_rev function
Fabio Estevam [Wed, 26 Oct 2011 09:01:00 +0000 (09:01 +0000)]
mx51evk: Remove unused get_board_rev function

No board information is passed for MX51EVK, so remove get_board_rev function.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agomx51evk: Remove unneeded '1' from mx51evk.h
Fabio Estevam [Mon, 24 Oct 2011 08:24:28 +0000 (08:24 +0000)]
mx51evk: Remove unneeded '1' from mx51evk.h

Remove unneeded '1' from mx51evk.h.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agoI2C: Fix mxc_i2c.c problem on imx31_phycore
Marek Vasut [Wed, 26 Oct 2011 00:05:44 +0000 (00:05 +0000)]
I2C: Fix mxc_i2c.c problem on imx31_phycore

The problem was caused by a global variable being used early in the boot
process.

The symptoms were on imx31_phycore board, reading the environment from I2C
EEPROM didn't work correctly and causes default environment to be loaded.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Heiko Schocher <hs@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
Tested-by: Anatolij Gustschin <agust@denx.de>
Tested-by: Stefano Babic <sbabic@denx.de>
13 years agomx35pdk: Add RTC support
Fabio Estevam [Tue, 25 Oct 2011 01:35:37 +0000 (01:35 +0000)]
mx35pdk: Add RTC support

MX35PDK has an MC13892 PMIC. Add RTC support.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Tested-by: Stefano Babic <sbabic@denx.de>
13 years agomx51evk: Use GPIO API for configuring the IOMUX
Fabio Estevam [Tue, 25 Oct 2011 03:14:00 +0000 (03:14 +0000)]
mx51evk: Use GPIO API for configuring the IOMUX

GPIO API provides mxc_request_iomux function for setting the IOMUX mode.

Use this function instead of directly writing to the IOMUX register.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agomx51evk: Add RTC support
Fabio Estevam [Mon, 24 Oct 2011 06:44:16 +0000 (06:44 +0000)]
mx51evk: Add RTC support

MX51EVK has a MC13892 PMIC. Add RTC support.

Tested via 'date' command that reads the PMIC RTC registers:

MX51EVK U-Boot > date
Date: 1970-01-01 (Thursday)    Time:  0:40:35

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agortc: Make mc13783-rtc driver generic
Fabio Estevam [Mon, 24 Oct 2011 06:44:15 +0000 (06:44 +0000)]
rtc: Make mc13783-rtc driver generic

Rename mc13783-rtc so that it can be used for both MC13783 and MC13892 PMICs.

efikamx board, for example, does use a MC13892 PMIC, but the RTC selection is currently made as:

#define CONFIG_RTC_MC13783

,which is not very obvious.

Let the MC13783 and MC13892 RTC be selected by:

#define CONFIG_RTC_MC13XXX

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
13 years agoqong: remove unneeded IOMUX settings
Fabio Estevam [Thu, 20 Oct 2011 16:01:31 +0000 (16:01 +0000)]
qong: remove unneeded IOMUX settings

On qong board some of the USBH2 pins are set via GPR register, so don need to setup
the IOMUX for each pin individually.

Other than that, these pins should not be configured as primary function because the primary
function selects SSI functionality.

Let GPR register do the work and remove the unneeded IOMUX setup.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
13 years agoqong: Use mx31_set_gpr to setup USBH2 pins
Fabio Estevam [Thu, 20 Oct 2011 16:01:30 +0000 (16:01 +0000)]
qong: Use mx31_set_gpr to setup USBH2 pins

Instead of writing directly to the GPR register, use mx31_set_gpr to setup USBH2 pins.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agomx31: Introduce mx31_set_gpr function
Fabio Estevam [Thu, 20 Oct 2011 16:01:29 +0000 (16:01 +0000)]
mx31: Introduce mx31_set_gpr function

Introduce mx31_set_gpr function for setting the GPR (General Purpose Register) on MX31.

This function can be useful for setting a group of pins into tied to some specific peripherals.

Reuse this function from the linux kernel.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agomx31pdk: Add MC13783 PMIC support
Fabio Estevam [Mon, 24 Oct 2011 05:32:28 +0000 (05:32 +0000)]
mx31pdk: Add MC13783 PMIC support

Add MC13783 PMIC support.

Tested by using the 'date' command, which reads the MC13783 RTC registers:

MX31PDK U-Boot > date
Date: 1970-01-01 (Thursday)    Time:  2:22:35

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agoqong: remove unneeded "1" from qong.h
Fabio Estevam [Fri, 21 Oct 2011 07:03:54 +0000 (07:03 +0000)]
qong: remove unneeded "1" from qong.h

Remove unneeded "1" from qong.h.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agomisc: pmic: fix regression in pmic_fsl.c (SPI)
Helmut Raiger [Wed, 19 Oct 2011 20:34:43 +0000 (20:34 +0000)]
misc: pmic: fix regression in pmic_fsl.c (SPI)

This fixes write access to PMIC registers, the bug was
introduced partly in commit 64aac65099 and in commit c9fe76dd91.
It was tested on an i.mx31 with a mc13783.

Signed-off-by: Helmut Raiger <helmut.raiger@hale.at>
Acked-by: Stefano Babic <sbabic@denx.de>
13 years agomx5 configs: CONFIG_PRIME should really be CONFIG_ETHPRIME
Wolfgang Grandegger [Mon, 17 Oct 2011 08:21:56 +0000 (08:21 +0000)]
mx5 configs: CONFIG_PRIME should really be CONFIG_ETHPRIME

Signed-off-by: Wolfgang Grandegger <wg@denx.de>
Acked-by: Stefano Babic <sbabic@denx.de>
13 years agoMX35: Drop unnecessary prototypes from imx-regs.h
Stefano Babic [Tue, 6 Sep 2011 14:46:07 +0000 (16:46 +0200)]
MX35: Drop unnecessary prototypes from imx-regs.h

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoI2C: added I2C-2 and I2C-3 to MX35
Stefano Babic [Fri, 5 Aug 2011 10:19:08 +0000 (12:19 +0200)]
I2C: added I2C-2 and I2C-3 to MX35

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Heiko Schocher <hs@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
13 years agoMX35: factorize common assembly code
Stefano Babic [Fri, 5 Aug 2011 11:43:21 +0000 (13:43 +0200)]
MX35: factorize common assembly code

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoMX35: add reset cause as provided by other i.MX
Stefano Babic [Fri, 5 Aug 2011 10:21:37 +0000 (12:21 +0200)]
MX35: add reset cause as provided by other i.MX

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoMX35: add pins definition for UART3
Stefano Babic [Fri, 5 Aug 2011 07:12:34 +0000 (09:12 +0200)]
MX35: add pins definition for UART3

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agoMX35: added ESDC structure to imx-regs
Stefano Babic [Fri, 5 Aug 2011 07:11:11 +0000 (09:11 +0200)]
MX35: added ESDC structure to imx-regs

The structure and PLL defines are added to
the imx-regs.h file and dropped from board
header files.

Signed-off-by: Stefano Babic <sbabic@denx.de>
13 years agosandbox: drop unused return
Mike Frysinger [Wed, 26 Oct 2011 00:22:14 +0000 (00:22 +0000)]
sandbox: drop unused return

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Simon Glass <sjg@chromium.org>
13 years agosandbox: put stdin into raw mode
Mike Frysinger [Wed, 26 Oct 2011 00:21:29 +0000 (00:21 +0000)]
sandbox: put stdin into raw mode

This allows us to act like a serial device: we get tab chars and CTRL+C
and respond appropriately.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Tested-by: Simon Glass <sjg@chromium.org>
13 years agoserial: sandbox: use ssize_t to match os_read
Mike Frysinger [Wed, 26 Oct 2011 00:21:01 +0000 (00:21 +0000)]
serial: sandbox: use ssize_t to match os_read

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Simon Glass <sjg@chromium.org>
13 years agoserial: sandbox: optimize puts
Mike Frysinger [Wed, 26 Oct 2011 00:20:39 +0000 (00:20 +0000)]
serial: sandbox: optimize puts

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Simon Glass <sjg@chromium.org>
13 years agosandbox/tegra2: fix typo in autocomplete define
Mike Frysinger [Wed, 26 Oct 2011 00:19:58 +0000 (00:19 +0000)]
sandbox/tegra2: fix typo in autocomplete define

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Simon Glass <sjg@chromium.org>