oweals/u-boot.git
13 years agompc5200: digsy_mtc: fix extension board EEPROM I2C address for rev5
Anatolij Gustschin [Mon, 1 Aug 2011 04:16:29 +0000 (04:16 +0000)]
mpc5200: digsy_mtc: fix extension board EEPROM I2C address for rev5

On newer rev5 hardware the extension board EEPROM I2C address
has been changed to 0x54. Make this I2C address configurable
depending on CONFIG_DIGSY_REV5 so that extention board presence
detection works correctly on newer hardware.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agohwmon: do not init sensors on startup
Heiko Schocher [Mon, 1 Aug 2011 04:01:43 +0000 (04:01 +0000)]
hwmon: do not init sensors on startup

The U-Boot Design Principles[1] clearly say:

  Initialize devices only when they are needed within U-Boot, i.e. don't
  initialize the Ethernet interface(s) unless U-Boot performs a download
  over Ethernet; don't initialize any IDE or USB devices unless U-Boot
  actually tries to load files from these, etc. (and don't forget to
  shut down these devices after using them - otherwise nasty things may
  happen when you try to boot your OS).

So, do not initialize and read the sensors on startup.

Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Holger Brunck <holger.brunck@keymile.com>

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Thu, 4 Aug 2011 21:05:07 +0000 (23:05 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

* 'master' of git://git.denx.de/u-boot-arm:
  drivers/rtc: add Marvell Integrated RTC
  Armada100: Add Board Support for Marvell GuruPlug-Display
  Armada100: MFP macro naming correction
  arm: auto gen asm-offsets.h for mb86r0x
  spear: fix build errors for spear3xx/spear600 platforms
  cosmetic: arm: lib/board.c: Coding Style cleanup
  ARM: versatile: fix board support
  SMDKV310: Enable device tree support
  SMDKV310: MMC_SPL: Fix building when using "make O="
  arm: a320: enable tagged list support
  arm: a320: fix multiline comment style
  ARMv7: u8500_href: Add missing header to fix compiler warning
  Removed unused define, CONFIG_ARMV7.
  avr32: add grasshopper (ICnova AP7000) board
  AT91/SPI: fix atmel_dataflash_spi.c to allow building without warnings
  MAKEALL: remove AT91 boards that are in boards.cfg
  AT91: Makes AT91SAM9263-EK build correctly against u-boot-atmel/master
  AT91: Makes AT91SAM9263 SoC build correctly against u-boot-atmel/master
  AT91: Board fix for AT91SAM9261-EK
  AT91: SoC fix at91sam9261_matrix.h
  AT91: Makes AT91SAM9RL-EK build correctly against u-boot-atmel/master
  AT91: Makes AT91SAM9RL SoC build correctly against u-boot-atmel/master
  AT91: change common at91sam9261 files to compile with new scheme
  AT91: fix mistake in at91sam9260_devices.c(spi1_hw_init)
  a/a/c/arm920t/at91/reset.c: drop obsolete CONFIG_AT91RM9200_USART
  README: fix arm920t/at91 path
  net/eth.c: drop obsolete at91rm9200 support
  README.at91-soc: remove AT91(RM9200) joining notice
  a/a/c/arm920t/cpu.c: remove CONFIG_AT91_LEGACY warning
  MAKEALL: remove obsolete at91rm9200 soc
  ARM: remove obsolete at91rm9200
  omap4: clock init support for omap4460
  omap4: support TPS programming
  omap: reuse omap3 gpio support in omap4
  omap4: sdram init changes for omap4460
  omap4: add omap4460 revision detection
  mkimage: Add OMAP boot image support
  omap: add MMC and FAT support to SPL
  omap: add basic SPL support
  armv7: start.S: fixes and enhancements for SPL
  omap4: automatic sdram detection
  omap4: calculate EMIF register values
  omap4: add sdram init support
  omap4: add clock support
  omap4: add OMAP4430 revision check
  omap4: cleanup pin mux data
  omap4: utility function to identify the context of hw init
  DA8xx: fix LPSC constants
  DA8xx: switch an enum to defines for consistency
  DA8xx: add MMC/SD controller addresses
  DaVinci EMAC: declare function for all DA8xx CPUs
  DA8xx: add generic GPIO driver
  DaVinci: rename gpio_defs.h to gpio.h
  omap3evm: eth: Include functions only when necessary
  omap3evm: Update ethernet reset sequence for Rev.G board
  omap3evm: eth: split function setup_net_chip
  omap3: Include array definition only when it is used
  omap730p2: fix build breaks
  omap2420h4: fix build breaks
  omap1610inn: fix build breaks
  omap1510inn: fix build breaks
  omap5912osk: fix build breaks
  omap1610h2: fix build breaks

13 years agovideo: mb862xx: change controller detection message
Anatolij Gustschin [Sat, 16 Jul 2011 20:28:23 +0000 (22:28 +0200)]
video: mb862xx: change controller detection message

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agovideo: mb862xx: support Coral-PA controller
Anatolij Gustschin [Fri, 27 May 2011 14:08:20 +0000 (16:08 +0200)]
video: mb862xx: support Coral-PA controller

Add detection of Coral-PA and configure Coral CCF an MMR parameters
using CONFIG_SYS_MB862xx_CCF and CONFIG_SYS_MB862xx_MMR macros.
Use CCF and MMR parameters for Coral-P Eval. Board if the appropriate
macros weren't defined.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agovideo: Add SHARP LQ084S3LG01 LCD support on P1022DS
Timur Tabi [Thu, 26 May 2011 14:02:17 +0000 (09:02 -0500)]
video: Add SHARP LQ084S3LG01 LCD support on P1022DS

The SHARP LQ084S3LG01 is a TFT LCD used on the P1022DS (revision "C") board.
This device only supports 800x600 resolution, so if that resolution is selected,
assume that this is the device.  The device is attached to the LVDS port
on the P1022DS board.

The existing 800x600 entry (for the PDM360NG board) is actually 800x480,
so we fix that.  To support two different 800x resolutions, the Y-resolution
is now passed to fsl_diu_init() and both values are used to pick the proper
fb_videomode structure.

The data for the 800x600 video mode is originally from Jiang Yutang.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Jiang Yutang <b14898@freescale.com>
13 years agodrivers/rtc: add Marvell Integrated RTC
Jason Cooper [Thu, 4 Aug 2011 15:56:16 +0000 (21:26 +0530)]
drivers/rtc: add Marvell Integrated RTC

This driver can be used for kirkwood SoCs by enabling CONFIG_RTC_MV.  Tested on
Global Scale Technologies Dreamplug.

Signed-off-by: Jason Cooper <u-boot@lakedaemon.net>
13 years agoArmada100: Add Board Support for Marvell GuruPlug-Display
Ajay Bhargav [Thu, 4 Aug 2011 15:56:02 +0000 (21:26 +0530)]
Armada100: Add Board Support for Marvell GuruPlug-Display

This patch adds basic board support with DRAM and UART functionality

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
Acked-by: Tanmay Upadhyay <tanmay.upadhyay@einfochips.com>
13 years agoArmada100: MFP macro naming correction
Ajay Bhargav [Thu, 4 Aug 2011 15:36:44 +0000 (21:06 +0530)]
Armada100: MFP macro naming correction

MFP macros for UART3 updated.

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
13 years agoMerge commit '7b2fac7654f7420c2787f74ec3b1540fa3b343e9'
Albert ARIBAUD [Thu, 4 Aug 2011 16:59:59 +0000 (18:59 +0200)]
Merge commit '7b2fac7654f7420c2787f74ec3b1540fa3b343e9'

13 years agoarm: auto gen asm-offsets.h for mb86r0x
Matthias Weisser [Mon, 1 Aug 2011 05:11:52 +0000 (05:11 +0000)]
arm: auto gen asm-offsets.h for mb86r0x

auto gen asm-offsets.h for mb86r0x

Signed-off-by: Matthias Weisser <weisserm@arcor.de>
13 years agospear: fix build errors for spear3xx/spear600 platforms
Shiraz Hashim [Sat, 11 Jun 2011 21:32:57 +0000 (21:32 +0000)]
spear: fix build errors for spear3xx/spear600 platforms

Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Acked-by: Vipin Kumar <vipin.kumar@st.com>
13 years agocosmetic: arm: lib/board.c: Coding Style cleanup
Heiko Schocher [Fri, 15 Jul 2011 19:36:36 +0000 (19:36 +0000)]
cosmetic: arm: lib/board.c: Coding Style cleanup

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
cc: Albert Aribaud <albert.u.boot@aribaud.net>
cc: <macpaul@gmail.com>
cc: Wolfgang Denk <wd@denx.de>

13 years agoARM: versatile: fix board support
Stefano Babic [Fri, 24 Jun 2011 03:04:38 +0000 (03:04 +0000)]
ARM: versatile: fix board support

Versatile board is used as example to run u-boot under qemu.
The patch fixes relocation for all versatile boards and adds
a versatileqemu target to be used under qemu.

Patch tested only under qemu, not on real boards.
Tested with QEMU emulator version 0.14.50.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Alessandro Rubini <rubini-list@gnudd.com>
CC: Loïc Minier <loic.minier@linaro.org>
13 years agoSMDKV310: Enable device tree support
Thomas Abraham [Fri, 3 Jun 2011 22:52:17 +0000 (22:52 +0000)]
SMDKV310: Enable device tree support

Enable passing a flattened device tree to the kernel.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
13 years agoSMDKV310: MMC_SPL: Fix building when using "make O="
Chander Kashyap [Thu, 2 Jun 2011 18:07:32 +0000 (18:07 +0000)]
SMDKV310: MMC_SPL: Fix building when using "make O="

Fixes dependency build error with "make O=" option.
"make O=" option is used to specify output directory.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
13 years agoarm: a320: enable tagged list support
Po-Yu Chuang [Mon, 18 Jul 2011 16:56:53 +0000 (16:56 +0000)]
arm: a320: enable tagged list support

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
13 years agoarm: a320: fix multiline comment style
Po-Yu Chuang [Mon, 18 Jul 2011 16:55:39 +0000 (16:55 +0000)]
arm: a320: fix multiline comment style

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
13 years agoARMv7: u8500_href: Add missing header to fix compiler warning
Dirk Behme [Sat, 9 Jul 2011 20:52:17 +0000 (20:52 +0000)]
ARMv7: u8500_href: Add missing header to fix compiler warning

Fix the compiler warning

u8500_href.c: In function 'hrefplus_mmc_power_init':
u8500_href.c:258: warning: implicit declaration of function 'prcmu_i2c_read'
u8500_href.c:265: warning: implicit declaration of function 'prcmu_i2c_write'

by adding the missing header file.

Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
13 years agoRemoved unused define, CONFIG_ARMV7.
Christopher Harvey [Thu, 7 Jul 2011 04:37:55 +0000 (04:37 +0000)]
Removed unused define, CONFIG_ARMV7.

Signed-off-by: Christopher Harvey <charvey@matrox.com>
13 years agoavr32: add grasshopper (ICnova AP7000) board
Andreas Bießmann [Thu, 30 Jun 2011 22:03:20 +0000 (22:03 +0000)]
avr32: add grasshopper (ICnova AP7000) board

The grasshopper board is a neat avr32 evaluation kit produced by In-Circuit
GmbH.
See http://www.ic-board.de/product_info.php?info=p75_ICnova-AP7000-Base.html
for detailed information about this device.

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91/SPI: fix atmel_dataflash_spi.c to allow building without warnings
Reinhard Meyer [Tue, 2 Aug 2011 15:09:55 +0000 (15:09 +0000)]
AT91/SPI: fix atmel_dataflash_spi.c to allow building without warnings

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoMAKEALL: remove AT91 boards that are in boards.cfg
Reinhard Meyer [Tue, 2 Aug 2011 13:31:11 +0000 (13:31 +0000)]
MAKEALL: remove AT91 boards that are in boards.cfg

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: Makes AT91SAM9263-EK build correctly against u-boot-atmel/master
Xu, Hong [Fri, 10 Jun 2011 21:31:26 +0000 (21:31 +0000)]
AT91: Makes AT91SAM9263-EK build correctly against u-boot-atmel/master

Rework for AT91SAM9263-EK, makes it build again.
Based on the work for AT91SAM9260-EK.

Signed-off-by: Hong Xu <hong.xu@atmel.com>
Signed-off-by: Reinhard Meyer <uboot@emk-elektronik.de>
13 years agoAT91: Makes AT91SAM9263 SoC build correctly against u-boot-atmel/master
Xu, Hong [Fri, 10 Jun 2011 21:31:25 +0000 (21:31 +0000)]
AT91: Makes AT91SAM9263 SoC build correctly against u-boot-atmel/master

Rework for AT91SAM9263 SoC, makes it build again.
Based on the work for AT91SAM9260-EK.

Signed-off-by: Hong Xu <hong.xu@atmel.com>
Signed-off-by: Reinhard Meyer <uboot@emk-elektronik.de>
13 years agoAT91: Board fix for AT91SAM9261-EK
Xu, Hong [Sun, 31 Jul 2011 22:49:00 +0000 (22:49 +0000)]
AT91: Board fix for AT91SAM9261-EK

Fix board part of AT91SAM9261-EK according to the new scheme

Signed-off-by: Hong Xu <hong.xu@atmel.com>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: SoC fix at91sam9261_matrix.h
Xu, Hong [Sun, 31 Jul 2011 22:37:06 +0000 (22:37 +0000)]
AT91: SoC fix at91sam9261_matrix.h

Fix at91sam9261_matrix.h according to the new scheme.

Signed-off-by: Hong Xu <hong.xu@atmel.com>
13 years agoAT91: Makes AT91SAM9RL-EK build correctly against u-boot-atmel/master
Xu, Hong [Mon, 1 Aug 2011 03:56:53 +0000 (03:56 +0000)]
AT91: Makes AT91SAM9RL-EK build correctly against u-boot-atmel/master

Rework for AT91SAM9RL-EK, makes it build again.
Based on the work for AT91SAM9260-EK.
V4: added changes to MAKEALL

Signed-off-by: Hong Xu <hong.xu@atmel.com>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: Makes AT91SAM9RL SoC build correctly against u-boot-atmel/master
Xu, Hong [Mon, 1 Aug 2011 03:56:32 +0000 (03:56 +0000)]
AT91: Makes AT91SAM9RL SoC build correctly against u-boot-atmel/master

Rework for AT91SAM9RL SoC, makes it build again.
Based on the work for AT91SAM9260-EK.
V4: US->USART, cosmetics

Signed-off-by: Hong Xu <hong.xu@atmel.com>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: change common at91sam9261 files to compile with new scheme
Asen Dimov [Tue, 26 Jul 2011 01:23:39 +0000 (01:23 +0000)]
AT91: change common at91sam9261 files to compile with new scheme

Signed-off-by: Asen Dimov <dimov@ronetix.at>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoAT91: fix mistake in at91sam9260_devices.c(spi1_hw_init)
Reinhard Meyer [Mon, 25 Jul 2011 21:56:04 +0000 (21:56 +0000)]
AT91: fix mistake in at91sam9260_devices.c(spi1_hw_init)

Bits 0..3 in cs_mask = CS0..CS3 in SPI mode require it to be peripheral
Bits 4..7 in cs_mask = CS0..CS3 in GPIO mode require it to be output

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
13 years agoa/a/c/arm920t/at91/reset.c: drop obsolete CONFIG_AT91RM9200_USART
Andreas Bießmann [Mon, 18 Jul 2011 09:57:45 +0000 (09:57 +0000)]
a/a/c/arm920t/at91/reset.c: drop obsolete CONFIG_AT91RM9200_USART

The CONFIG_AT91RM9200_USART is an remnant of
18ed5e9550810e2fc5bf2c757aee47774609651c which deleted the
at91rm9200_usart driver.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoREADME: fix arm920t/at91 path
Andreas Bießmann [Mon, 18 Jul 2011 09:41:08 +0000 (09:41 +0000)]
README: fix arm920t/at91 path

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agonet/eth.c: drop obsolete at91rm9200 support
Andreas Bießmann [Mon, 18 Jul 2011 09:41:07 +0000 (09:41 +0000)]
net/eth.c: drop obsolete at91rm9200 support

All available at91rm9200 boards have migrated to ar920t/at91 and
therefore to CONFIG_NET_MULTI.
The obsolete at91rm9200_miiphy_initialize() was removed in "ARM: remove
obsolete at91rm9200".

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoREADME.at91-soc: remove AT91(RM9200) joining notice
Andreas Bießmann [Mon, 18 Jul 2011 09:41:06 +0000 (09:41 +0000)]
README.at91-soc: remove AT91(RM9200) joining notice

Since all currently supported at91rm9200 boards are migrated to at91
support the joining notice can be removed.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoa/a/c/arm920t/cpu.c: remove CONFIG_AT91_LEGACY warning
Andreas Bießmann [Mon, 18 Jul 2011 09:41:05 +0000 (09:41 +0000)]
a/a/c/arm920t/cpu.c: remove CONFIG_AT91_LEGACY warning

The CONFIG_AT91_LEGACY warning became obsolete due to complete removal of
at91rm9200 arch code in arm920t.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoMAKEALL: remove obsolete at91rm9200 soc
Andreas Bießmann [Mon, 18 Jul 2011 09:41:04 +0000 (09:41 +0000)]
MAKEALL: remove obsolete at91rm9200 soc

Since complete at91rm9200 SoC device was droped (due to replacement with
common at91 code) this parameter can safely be removed.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoARM: remove obsolete at91rm9200
Andreas Bießmann [Mon, 18 Jul 2011 09:41:03 +0000 (09:41 +0000)]
ARM: remove obsolete at91rm9200

The big "ARM: remove broken boards" series deletes all boards using
obsolete arm920t/at91rm9200 arch code. Therefore we can safely remove
this code now.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoomap4: clock init support for omap4460
Aneesh V [Thu, 21 Jul 2011 13:29:36 +0000 (09:29 -0400)]
omap4: clock init support for omap4460

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: support TPS programming
Aneesh V [Thu, 21 Jul 2011 13:29:32 +0000 (09:29 -0400)]
omap4: support TPS programming

TPS62361 is the new power supply used in OMAP4460 that
supplies vdd_mpu.

VCORE1 from Phoenix supplies vdd_core and VCORE2 supplies
vdd_iva. VCORE3 is not used in OMAP4460.

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap: reuse omap3 gpio support in omap4
Aneesh V [Thu, 21 Jul 2011 13:29:29 +0000 (09:29 -0400)]
omap: reuse omap3 gpio support in omap4

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: sdram init changes for omap4460
Aneesh V [Thu, 21 Jul 2011 13:29:26 +0000 (09:29 -0400)]
omap4: sdram init changes for omap4460

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: add omap4460 revision detection
Aneesh V [Thu, 21 Jul 2011 13:29:23 +0000 (09:29 -0400)]
omap4: add omap4460 revision detection

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agomkimage: Add OMAP boot image support
John Rigby [Thu, 21 Jul 2011 13:10:30 +0000 (09:10 -0400)]
mkimage: Add OMAP boot image support

- Add mkimage support for OMAP boot image
- Add support for OMAP boot image(MLO) generation in the new
  SPL framework

Signed-off-by: John Rigby <john.rigby@linaro.org>
Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap: add MMC and FAT support to SPL
Aneesh V [Thu, 21 Jul 2011 13:10:27 +0000 (09:10 -0400)]
omap: add MMC and FAT support to SPL

- Add MMC raw and FAT mode boot support for OMAP
- Provide a means by which parameters passed by ROM-code
  can be saved in u-boot.
- Save boot mode related information passed by OMAP4 ROM-code
  and use it to determine where to load the u-boot from
- Assumes that the image has a mkimage header. Gets the
  payload size and load address from this header. If the
  header is not detected assume u-boot.bin as payload

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap: add basic SPL support
Aneesh V [Thu, 21 Jul 2011 13:10:21 +0000 (09:10 -0400)]
omap: add basic SPL support

- Provide alternate implementations of board_init_f()
  board_init_r() for OMAP spl.
- Provide linker script
- Initialize global data
- Add serial console support
- Update CONFIG_SYS_TEXT_BASE to allow for SPL's bss and move
  it to board config header from config.mk

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarmv7: start.S: fixes and enhancements for SPL
Aneesh V [Thu, 21 Jul 2011 13:10:18 +0000 (09:10 -0400)]
armv7: start.S: fixes and enhancements for SPL

- Allow SPL to have .bss disjoint from rest of the image
- Allow for .bss setup in CONFIG_SPL_BUILD case too.
- Take care of the special case where relocation offset = 0.
- Compile out exception handling code and install a simpler
  vector

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: automatic sdram detection
Aneesh V [Thu, 21 Jul 2011 13:10:15 +0000 (09:10 -0400)]
omap4: automatic sdram detection

Identify SDRAM devices connected to EMIF automatically:
LPDDR2 devices have some Mode Registers that provide details
about the device such as the type, density, bus width
etc. EMIF has the capability to read these registers. If there
are no devices connected to a given chip-select reading mode
registers will return junk values. After reading as many such
registers as possible and matching with expected ranges of
values the driver can identify if there is a device connected
to the respective CS. If we identify that a device is connected
the values read give us complete details about the device.

This along with the base AC timings specified by JESD209-2
allows us to do a complete automatic initialization of
SDRAM that works on all boards.

Please note that the default AC timings specified by JESD209-2
will be safe for all devices but not necessarily optimal. However,
for the Elpida devices used on Panda and SDP the default timings
are both safe and optimal.

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: calculate EMIF register values
Aneesh V [Thu, 21 Jul 2011 13:10:12 +0000 (09:10 -0400)]
omap4: calculate EMIF register values

Calculate EMIF register values based on AC timing parameters
from the SDRAM datasheet and the DDR frequency rather than
using the hard-coded values.

For a new board the user doen't have to go through the tedious
process of calculating the register values. Instead, just
provide the AC timings from the device data sheet as input
and the driver will automatically calculate the register values.

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: add sdram init support
Aneesh V [Thu, 21 Jul 2011 13:10:09 +0000 (09:10 -0400)]
omap4: add sdram init support

Add support for the SDRAM controller (EMIF).

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: add clock support
Aneesh V [Thu, 21 Jul 2011 13:10:07 +0000 (09:10 -0400)]
omap4: add clock support

Add support for:
1. DPLL locking
2. Initialization of clock domains and clock modules
3. Setting up the right voltage on voltage rails

This work draws upon previous work done for x-loader by:
Santosh Shilimkar <santosh.shilimkar@ti.com>
Rajendra Nayak <rnayak@ti.com>

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: add OMAP4430 revision check
Aneesh V [Thu, 21 Jul 2011 13:10:04 +0000 (09:10 -0400)]
omap4: add OMAP4430 revision check

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: cleanup pin mux data
Aneesh V [Thu, 21 Jul 2011 13:10:01 +0000 (09:10 -0400)]
omap4: cleanup pin mux data

- separate mux settings into essential and non essential parts
- essential part is board independent as of now(so move it
  to SoC directory). Will help in having single SPL for all
  boards.
- Non-essential part(the pins not essential for u-boot to function)
  need to be phased out eventually.
- Correct mux data by aligning to the latest settings in x-loader

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap4: utility function to identify the context of hw init
Aneesh V [Thu, 21 Jul 2011 13:09:59 +0000 (09:09 -0400)]
omap4: utility function to identify the context of hw init

The basic hardware init of OMAP4(s_init()) can happen in 4
different contexts:
 1. SPL running from SRAM
 2. U-Boot running from FLASH
 3. Non-XIP U-Boot loaded to SDRAM by SPL
 4. Non-XIP U-Boot loaded to SDRAM by ROM code using the
    Configuration Header feature

What level of hw initialization gets done depends on this
context. Add a utility function to find this context.

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDA8xx: fix LPSC constants
Laurence Withers [Mon, 18 Jul 2011 13:53:23 +0000 (09:53 -0400)]
DA8xx: fix LPSC constants

Some of the LPSC constants were incorrect, and some were missing. This
commit fixes the incorrect constants (which were not used anywhere in
the tree) and adds all constants for both DA830 and DA850, as per the
TI datasheets.

Signed-off-by: Laurence Withers <lwithers@guralp.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDA8xx: switch an enum to defines for consistency
Laurence Withers [Mon, 18 Jul 2011 13:53:19 +0000 (09:53 -0400)]
DA8xx: switch an enum to defines for consistency

There are two main sets of LPSC constants, depending on the processor
family.  The DA8xx constants were given in an enum whereas the non-DA8xx
constants were preprocessor defines. This commit switches the DA8xx
constants to defines for consistency.

Signed-off-by: Laurence Withers <lwithers@guralp.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDA8xx: add MMC/SD controller addresses
Laurence Withers [Mon, 18 Jul 2011 13:53:17 +0000 (09:53 -0400)]
DA8xx: add MMC/SD controller addresses

Signed-off-by: Laurence Withers <lwithers@guralp.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci EMAC: declare function for all DA8xx CPUs
Laurence Withers [Mon, 18 Jul 2011 13:53:14 +0000 (09:53 -0400)]
DaVinci EMAC: declare function for all DA8xx CPUs

The function davinci_emac_mii_mode_sel() is defined in
board/davinci/common/misc.c for any DA8xx CPU which has
CONFIG_DRIVER_TI_EMAC enabled. However, the prototype was only being
declared in <include/asm/arch/davinci_misc.h> for the DA850 EVM board.
This patch declares it for all DA8xx CPUs where CONFIG_DRIVER_TI_EMAC
is enabled.

Signed-off-by: Laurence Withers <lwithers@guralp.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDA8xx: add generic GPIO driver
Laurence Withers [Mon, 18 Jul 2011 13:26:01 +0000 (09:26 -0400)]
DA8xx: add generic GPIO driver

Add a generic GPIO driver for the DaVinci DA8xx processors. It is turned
on by defining CONFIG_DA8XX_GPIO and fulfills the generic GPIO interface
specified in <asm/gpio.h> . The driver has support for both manipulating
GPIO pins as well as automatically configuring the pin multiplexor
registers to set the pin function to GPIO.

Signed-off-by: Laurence Withers <lwithers@guralp.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoDaVinci: rename gpio_defs.h to gpio.h
Laurence Withers [Mon, 18 Jul 2011 13:25:58 +0000 (09:25 -0400)]
DaVinci: rename gpio_defs.h to gpio.h

In preparation for a generic GPIO driver for the DA8xx processors,
rename <asm/arch/gpio_defs.h> to <asm/arch/gpio.h> and fix up all files
which include it.

Signed-off-by: Laurence Withers <lwithers@guralp.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3evm: eth: Include functions only when necessary
Sanjeev Premi [Mon, 18 Jul 2011 13:23:00 +0000 (09:23 -0400)]
omap3evm: eth: Include functions only when necessary

These functions are not required when CONFIG_CMD_NET
is not defined:
  - setup_net_chip()
  - reset_net_chip()
  - board_eth_init()

This patch wraps them in #ifdef CONFIG_CMD_NET...#endif

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3evm: Update ethernet reset sequence for Rev.G board
Sriramakrishnan [Mon, 18 Jul 2011 13:21:55 +0000 (09:21 -0400)]
omap3evm: Update ethernet reset sequence for Rev.G board

The GPIO pin used for resetting the external LAN chip has
changed for Rev.G board.

The patch uses generic gpio API instead of direct access
to corresponding registers.

Signed-off-by: Sriramakrishnan <srk@ti.com>
Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3evm: eth: split function setup_net_chip
Sanjeev Premi [Mon, 18 Jul 2011 13:20:15 +0000 (09:20 -0400)]
omap3evm: eth: split function setup_net_chip

In current implementation, the function sets up the ethernet
chip and resets it. The steps to reset depend upon the board
revision.

The patch moves the reset actions to new function reset_net_chip().

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoomap3: Include array definition only when it is used
Sanjeev Premi [Mon, 18 Jul 2011 13:12:24 +0000 (09:12 -0400)]
omap3: Include array definition only when it is used

The array of strings corresponding to cpu revision is
used only when CONFIG_DISPLAY_CPUINFO is selected - in
the function print_cpuinfo().

Enclose definition of this array in #ifdef...#endif for
the same.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agovideo: Use memset instead of loop
Matthias Weisser [Wed, 29 Jun 2011 11:57:25 +0000 (13:57 +0200)]
video: Use memset instead of loop

There is a optimized version of memset in u-boot available so use it instead
of the hand written loop version.

Signed-off-by: Matthias Weisser <weisserm@arcor.de>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-mmc
Wolfgang Denk [Tue, 2 Aug 2011 20:39:36 +0000 (22:39 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mmc

* 'master' of git://git.denx.de/u-boot-mmc:
  Revert "AT91:mmc:fix multiple read/write error"

13 years agosf: macronix: disable write protection when initializing
Simon Guinot [Mon, 2 May 2011 11:01:38 +0000 (11:01 +0000)]
sf: macronix: disable write protection when initializing

Signed-off-by: Simon Guinot <sguinot@lacie.com>
13 years agosf: spansion: add support for S25FL129P_64K
Shaohui Xie [Wed, 20 Apr 2011 20:07:11 +0000 (20:07 +0000)]
sf: spansion: add support for S25FL129P_64K

Signed-off-by: Shaohui Xie <b21989@freescale.com>
Cc: Mike Frysinger <vapier@gentoo.org>
13 years agomtd/spi/macronix.c: add MX25L4005 and MX25L8005
Macpaul Lin [Wed, 20 Apr 2011 16:51:39 +0000 (16:51 +0000)]
mtd/spi/macronix.c: add MX25L4005 and MX25L8005

Add support of MX25L4005 and MX25L8005 according to the datasheet
http://www.mct.net/download/macronix/mx25l8005.pdf

This patch has been tested with MX25L4005 and MX25L8005

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Tue, 2 Aug 2011 19:52:21 +0000 (21:52 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

* 'master' of git://git.denx.de/u-boot-ppc4xx:
  net/4xx: Install interrupt handler after driver registration

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Tue, 2 Aug 2011 19:46:53 +0000 (21:46 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-blackfin

* 'master' of git://git.denx.de/u-boot-blackfin:
  Blackfin: jtag-console: fix timer usage
  Blackfin: switch to common display_options()
  Blackfin: serial: move early debug strings into .rodata section
  Blackfin: adi boards: also set stderr to nc with helper
  Blackfin: update anomaly lists to latest public info
  Blackfin: serial: convert to bfin_{read,write} helpers
  Blackfin: split out async setup
  Blackfin: adi boards: enable pretty flash progress output
  Blackfin: drop unused dma.h header from start code
  Blackfin: portmux: allow header to be included in assembly files
  Blackfin: cm-bf537e/cm-bf537u/tcm-bf537: enable mmc_spi support
  Blackfin: cm-bf537e/cm-bf537u/tcm-bf537: update network settings
  Blackfin: sync MMR read/write helpers with Linux
  Blackfin: gpio: optimize free path a little
  Blackfin: post: setup default CONFIG_SYS_POST_WORD_ADDR
  Blackfin: uart: fix printf warning
  Blackfin: add init.elf helper code
  Blackfin: dont reset SWRST on newer bf526 parts
  Blackfin: adi boards: enable multi serial support by default
  Blackfin: uart: add multiple serial support
  Blackfin: uart: move debug buffers into local bss

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-mips
Wolfgang Denk [Tue, 2 Aug 2011 19:45:45 +0000 (21:45 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-mips

* 'master' of git://git.denx.de/u-boot-mips:
  README: update MIPS related informations
  MIPS: make cache operation mode configurable
  MIPS: rename INFINEON_EBU_BOOTCFG to CONFIG_SYS_XWAY_EBU_BOOTFG
  MIPS: INCA-IP: rename inca-swap-bytes host tool

13 years agotqm834x.c: fix compiler warning
Wolfgang Denk [Sat, 30 Jul 2011 21:50:50 +0000 (23:50 +0200)]
tqm834x.c: fix compiler warning

Fix:

tqm834x.c:299: warning: passing argument 1 of 'get_ram_size' discards
qualifiers from pointer target type

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
13 years agoenvironment.h: fix warning: "CONFIG_ENV_IS_EMBEDDED" redefined
Wolfgang Denk [Sat, 30 Jul 2011 14:01:08 +0000 (14:01 +0000)]
environment.h: fix warning: "CONFIG_ENV_IS_EMBEDDED" redefined

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
13 years agofpga: constify to fix build warning
Wolfgang Denk [Sat, 30 Jul 2011 13:33:49 +0000 (13:33 +0000)]
fpga: constify to fix build warning

Fix compiler warning:

cmd_fpga.c:318: warning: passing argument 3 of 'fit_image_get_data'
from incompatible pointer type

Adding the needed 'const' here entails a whole bunch of additonal
changes all over the FPGA code.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Andre Schwarz <andre.schwarz@matrix-vision.de>
Cc: Murray Jensen <Murray.Jensen@csiro.au>
Acked-by: Andre Schwarz<andre.schwarz@matrix-vision.de>
13 years agoUnify timer_init() and cpu_init() prototypes
Wolfgang Denk [Sat, 30 Jul 2011 12:32:45 +0000 (12:32 +0000)]
Unify timer_init() and cpu_init() prototypes

Clean up some duplicated prototype declarations.
Get rid of now useless AVR32 initcalls.h file.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert Aribaud <albert.aribaud@free.fr>
Cc: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Cc: Graeme Russ <graeme.russ@gmail.com>
13 years agoARM: fix error: conflicting types for 'setenv'
seedshope [Sat, 30 Jul 2011 07:28:49 +0000 (07:28 +0000)]
ARM: fix error: conflicting types for 'setenv'

Also remove bogus comment.

Signed-off-by: Zhong hongbo <bocui107@gmail.com>
Changed commit message
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert Aribaud <albert.aribaud@free.fr>
13 years agocfb_console.c: checkpatch cleanup
Wolfgang Denk [Sat, 30 Jul 2011 12:48:09 +0000 (12:48 +0000)]
cfb_console.c: checkpatch cleanup

Fix the following:

ERROR: do not initialise statics to 0 or NULL
ERROR: do not use assignment in if condition

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agocfb_console.c: drop custom PRINTD() and use debug() instead
Wolfgang Denk [Fri, 29 Jul 2011 09:55:28 +0000 (09:55 +0000)]
cfb_console.c: drop custom PRINTD() and use debug() instead

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoCosmetic: reformat drivers/video/cfb_console.c
Wolfgang Denk [Fri, 29 Jul 2011 09:55:27 +0000 (09:55 +0000)]
Cosmetic: reformat drivers/video/cfb_console.c

Run cfb_console.c through indent and manually fix some of he
deficiencies of the automatic line breaking.

Fix multiline comments, excessive line spacing and such.

No changes to code done.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoREADME: update MIPS related informations
Daniel Schwierzeck [Wed, 27 Jul 2011 11:22:39 +0000 (13:22 +0200)]
README: update MIPS related informations

Amend section 'Directory Hierarchy' for current MIPS directory.
Describe config options for MIPS.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Acked-by: Thomas Langer <thomas.langer@lantiq.com>
Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
13 years agoMIPS: make cache operation mode configurable
Daniel Schwierzeck [Wed, 27 Jul 2011 11:22:38 +0000 (13:22 +0200)]
MIPS: make cache operation mode configurable

Currently the cache operation mode is hard-coded to
CONF_CM_CACHABLE_NONCOHERENT. This is not appropiate for CPUs or SOCs
which operate at a different mode.

This patch makes the cache operation mode configurable via board config.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Acked-by: Thomas Langer <thomas.langer@lantiq.com>
Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
13 years agoMIPS: rename INFINEON_EBU_BOOTCFG to CONFIG_SYS_XWAY_EBU_BOOTFG
Daniel Schwierzeck [Wed, 27 Jul 2011 11:22:37 +0000 (13:22 +0200)]
MIPS: rename INFINEON_EBU_BOOTCFG to CONFIG_SYS_XWAY_EBU_BOOTFG

This define is a board-specific config option and should be
renamed to follow the U-Boot naming convention. Additionally,
add an explaining comment for this option.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Acked-by: Thomas Langer <thomas.langer@lantiq.com>
Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
13 years agoMIPS: INCA-IP: rename inca-swap-bytes host tool
Daniel Schwierzeck [Wed, 27 Jul 2011 11:22:36 +0000 (13:22 +0200)]
MIPS: INCA-IP: rename inca-swap-bytes host tool

The INCA-IP SoC belongs to the Lantiq XWAY SoC product portfolio.
For the upcoming support of other Lantiq SoC devices this tool should
not solely depend on the INCA-IP board.

Rename the tool to xway-swap-bytes and add an config option
to enable compilation optionally.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Acked-by: Thomas Langer <thomas.langer@lantiq.com>
Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
13 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Fri, 29 Jul 2011 23:39:14 +0000 (01:39 +0200)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

* 'master' of /home/wd/git/u-boot/custodians:
  powerpc/8xxx: Remove dependency on <usb.h>
  powerpc/85xx: enable USB2 gadget mode for corenet ds board
  powerpc/85xx: verify the device tree before booting Linux
  MPC8xxx: drop redundant boot messages
  powerpc/85xx: Fix build failure for P1023RDS
  powerpc/p2041rdb: Enable SATA support
  powerpc/85xx: Cleanup handling of PVR detection for e500/e500mc/e5500
  powerpc/85xx: Fix up clock_freq property in CAN node of dts
  85xx: enable FDT support for STX SSA board
  powerpc/85xx: provide 85xx flush_icache for cmd_cache
  powerpc/p2041rdb: Enable backside L2 cache support
  powerpc/85xx: Handle the lack of L2 cache on P2040/P2040E
  powerpc/85xx: Add support for P2041[e] XAUI in SERDES
  powerpc/85xx: Rename P2040 id & SERDES to P2041
  powerpc/85xx: Adding configuration for DCSRCR to enable 32M access
  powerpc/85xx: Fix setting of EPAPR_MAGIC value

13 years agoConstify getenv(), setenv() and hash code functions
Wolfgang Denk [Fri, 29 Jul 2011 12:42:18 +0000 (14:42 +0200)]
Constify getenv(), setenv() and hash code functions

This is needed to get rid of build warnings like

main.c:311: warning: passing argument 2 of 'setenv' discards qualifiers from pointer target type

which result from commit 09c2e90 "unify version_string".

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoREADME: udate Coding Style description to current status quo
Wolfgang Denk [Wed, 27 Jul 2011 10:59:55 +0000 (10:59 +0000)]
README: udate Coding Style description to current status quo

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agopowerpc/8xxx: Remove dependency on <usb.h>
Kumar Gala [Fri, 29 Jul 2011 13:51:26 +0000 (08:51 -0500)]
powerpc/8xxx: Remove dependency on <usb.h>

We used <usb.h> for USB_MAX_DEVICE.  However this requires we actual
build in support for USB into u-boot (which should not be required for
device tree fixup).

At this time no FSL SoC that utilizies this code (83xx/85xx) has more
than 2 USB controllers.  So we replace USB_MAX_DEVICE with a local
define FSL_MAX_NUM_USB_CTRLS.

If/when a device shows up with more than 2 controllers we can easily
bump this value or refactor into a proper define per SoC.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: enable USB2 gadget mode for corenet ds board
Shaohui Xie [Thu, 28 Jul 2011 08:17:32 +0000 (16:17 +0800)]
powerpc/85xx: enable USB2 gadget mode for corenet ds board

to make USB2 worked in gadget mode, we need to set it's 'dr_mode' to
'peripheral' in hwconfig, but driver starts scan from 'usb1', it'll break
out if it cannot find 'usb1', so drop the 'else' clause to make driver scan
all the 'usbx'.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: verify the device tree before booting Linux
Timur Tabi [Tue, 3 May 2011 18:24:08 +0000 (13:24 -0500)]
powerpc/85xx: verify the device tree before booting Linux

Introduce ft_verify_fdt(), a function that is called after the device tree
has been fixed up, that displays warning messages if there is a mismatch
between the physical addresses of some devices that U-Boot has configured
with what the device tree says the addresses are.

This is a particular problem when booting a 36-bit device tree from a
32-bit U-Boot (or vice versa), because the physical address of CCSR is
wrong in the device tree.  When the operating system boots, no messages are
displayed, so the user generally has no idea what's wrong.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agoMPC8xxx: drop redundant boot messages
Wolfgang Denk [Mon, 25 Jul 2011 08:13:53 +0000 (10:13 +0200)]
MPC8xxx: drop redundant boot messages

Current code would print RAM size information like this:

DRAM:  DDR: 256 MiB (DDR1, 64-bit, CL=2, ECC off)

Turn a number of printf()s into debug() to get rid of the redundant
"DDR: " string like this:

DRAM:  256 MiB (DDR1, 64-bit, CL=2, ECC off)

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Fix build failure for P1023RDS
Kumar Gala [Thu, 28 Jul 2011 19:34:30 +0000 (14:34 -0500)]
powerpc/85xx: Fix build failure for P1023RDS

When we added the fman fdt fixup we forgot to fixup the P1023RDS
platform.  So we would get:

fdt.c: In function 'fdt_fixup_fman_firmware':
fdt.c:465:15: error: 'CONFIG_SYS_FMAN_FW_LENGTH' undeclared (first use in this function)
fdt.c:465:15: note: each undeclared identifier is reported only once for each function it appears in

Add the needed #defines in P1023RDS.h to fix this.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/p2041rdb: Enable SATA support
Mingkai Hu [Wed, 27 Jul 2011 01:55:51 +0000 (09:55 +0800)]
powerpc/p2041rdb: Enable SATA support

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Cleanup handling of PVR detection for e500/e500mc/e5500
Kumar Gala [Mon, 25 Jul 2011 14:28:39 +0000 (09:28 -0500)]
powerpc/85xx: Cleanup handling of PVR detection for e500/e500mc/e5500

At some point we broke the detection of e500v1 class cores.  Fix that
and simply the code to just utilize PVR_VER() to have a single case
statement.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Fix up clock_freq property in CAN node of dts
Bhaskar Upadhaya [Fri, 4 Mar 2011 14:57:58 +0000 (20:27 +0530)]
powerpc/85xx: Fix up clock_freq property in CAN node of dts

Fix up the device tree property associated with the Flexcan clock
frequency. This property is used to calculate the bit timing parameters
for Flexcan.

Signed-off-by: Bhaskar Upadhaya <Bhaskar.Upadhaya@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years ago85xx: enable FDT support for STX SSA board
Wolfgang Denk [Mon, 25 Jul 2011 13:15:44 +0000 (15:15 +0200)]
85xx: enable FDT support for STX SSA board

We also have to shift TEXT_BASE to accomodate for the additional
code size.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: provide 85xx flush_icache for cmd_cache
Matthew McClintock [Mon, 23 May 2011 08:38:53 +0000 (08:38 +0000)]
powerpc/85xx: provide 85xx flush_icache for cmd_cache

This provides a function that will override the weak function
flush_icache to let 85xx boards to flush the icache

cc: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Matthew McClintock <msm@freescale.com>
13 years agopowerpc/p2041rdb: Enable backside L2 cache support
Mingkai Hu [Thu, 21 Jul 2011 22:03:54 +0000 (17:03 -0500)]
powerpc/p2041rdb: Enable backside L2 cache support

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Handle the lack of L2 cache on P2040/P2040E
Kumar Gala [Thu, 21 Jul 2011 05:20:21 +0000 (00:20 -0500)]
powerpc/85xx: Handle the lack of L2 cache on P2040/P2040E

The P2040/P2040E have no L2 cache.  So we utilize the SVR to determine
if we are one of these devices and skip the L2 init code in cpu_init.c
and release.  For the device tree we skip the updating of the L2 cache
properties but we still update the chain of caches so the CPC/L3 node
can be properly updated.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Add support for P2041[e] XAUI in SERDES
Kumar Gala [Thu, 21 Jul 2011 05:20:20 +0000 (00:20 -0500)]
powerpc/85xx: Add support for P2041[e] XAUI in SERDES

We add XAUI_FM1 into the SERDES tables for P2041[e] devices.  However
for the P2040[e] devices that dont support XAUI we handle this at
runtime via SVR checks.  If we are on a P2040[e] device the SERDES
functions will behave as follows:

is_serdes_prtcl_valid() will always report invalid if prtcl passed in is
XAUI_FM1.

serdes_get_prtcl() will report NONE if the prtcl in the table is set to
XAUI_FM1.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>