oweals/u-boot.git
12 years agoboard/c2mon/pcmcia.c: Fix GCC 4.6 build warning
Wolfgang Denk [Fri, 4 Nov 2011 15:55:23 +0000 (15:55 +0000)]
board/c2mon/pcmcia.c: Fix GCC 4.6 build warning

Fix:
pcmcia.c: In function 'pcmcia_voltage_set':
pcmcia.c:202:21: warning: variable 'cp' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
12 years agodrivers/pcmcia/mpc8xx_pcmcia.c: Fix GCC 4.6 build warning
Wolfgang Denk [Fri, 4 Nov 2011 15:55:22 +0000 (15:55 +0000)]
drivers/pcmcia/mpc8xx_pcmcia.c: Fix GCC 4.6 build warning

Fix:
mpc8xx_pcmcia.c: In function 'pcmcia_on':
mpc8xx_pcmcia.c:76:8: warning: variable 'slotbit' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
12 years agompc8xx/fec.c: Fix GCC 4.6 build warnings
Wolfgang Denk [Fri, 4 Nov 2011 15:55:21 +0000 (15:55 +0000)]
mpc8xx/fec.c: Fix GCC 4.6 build warnings

Fix:
fec.c: In function 'fec_pin_init':
fec.c:381:18: warning: variable 'fecp' set but not used
[-Wunused-but-set-variable]
fec.c: In function 'fec8xx_miiphy_write':
fec.c:1013:8: warning: variable 'rdreg' set but not used
[-Wunused-but-set-variable]

Note: The code was slightly rearranged, but no functional changes
attempted, i. e. no conversion to use I/O accessors.

Signed-off-by: Wolfgang Denk <wd@denx.de>
12 years agodrivers/video/cfb_console.c:Fix GCC 4.6 build warning
Wolfgang Denk [Fri, 4 Nov 2011 15:55:20 +0000 (15:55 +0000)]
drivers/video/cfb_console.c:Fix GCC 4.6 build warning

Silence this warning:
cfb_console.c: In function 'video_logo':
cfb_console.c:1563:18: warning: variable 'y_off' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
Acked-by: Anatolij Gustschin <agust@denx.de>
12 years agoboard/tqc/tqm5200/cam5200_flash.c: Fix GCC 4.6 build warning
Wolfgang Denk [Fri, 4 Nov 2011 15:55:19 +0000 (15:55 +0000)]
board/tqc/tqm5200/cam5200_flash.c: Fix GCC 4.6 build warning

Fix:
cam5200_flash.c: In function 'flash_erase_32':
cam5200_flash.c:282:24: warning: variable 'l_sect' set but not used
[-Wunused-but-set-variable]
cam5200_flash.c: In function 'flash_erase_16':
cam5200_flash.c:612:24: warning: variable 'l_sect' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
12 years agoboard/esd/pf5200/pf5200.c: Fix GCC 4.6 build warning
Wolfgang Denk [Fri, 4 Nov 2011 15:55:18 +0000 (15:55 +0000)]
board/esd/pf5200/pf5200.c: Fix GCC 4.6 build warning

Fix:
pf5200.c: In function 'do_phypower':
pf5200.c:330:6: warning: variable 'status' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Reinhard Arlt <reinhard.arlt@esd-electronics.com>
12 years agoboard/esd/cpci5200/strataflash.c: Fix GCC 4.6 build warning
Wolfgang Denk [Fri, 4 Nov 2011 15:55:17 +0000 (15:55 +0000)]
board/esd/cpci5200/strataflash.c: Fix GCC 4.6 build warning

Fix:
strataflash.c: In function 'flash_write_cfiword':
strataflash.c:681:11: warning: variable 'ctladdr' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Reinhard Arlt <reinhard.arlt@esd-electronics.com>
12 years agoPM520: add missing enable_interrupts()
Wolfgang Denk [Fri, 4 Nov 2011 15:55:16 +0000 (15:55 +0000)]
PM520: add missing enable_interrupts()

The code disabled interrupts in several locations, without re-enabling
them again.  Fix this.

While we are at it, also fix a GCC 4.6 build warning:
flash.c: In function 'flash_erase':
flash.c:373:21: warning: variable 'last' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Josef Wagner <Wagner@Microsys.de>
12 years agofs/fat/fat.c: Fix GCC 4.6 build warning
Wolfgang Denk [Fri, 4 Nov 2011 15:55:15 +0000 (15:55 +0000)]
fs/fat/fat.c: Fix GCC 4.6 build warning

Fix:
fat.c: In function 'fat_register_device':
fat.c:74:19: warning: variable 'info' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
12 years agodrivers/video/videomodes.c: fix GCC 4.6 build warning
Wolfgang Denk [Fri, 4 Nov 2011 15:55:14 +0000 (15:55 +0000)]
drivers/video/videomodes.c: fix GCC 4.6 build warning

Fix:
videomodes.c: In function 'video_get_params':
videomodes.c:162:13: warning: variable 't' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Anatolij Gustschin <agust@denx.de>
12 years agodrivers/rtc/rv3029.c: fix GCC 4.6 build warnings
Wolfgang Denk [Fri, 4 Nov 2011 15:55:13 +0000 (15:55 +0000)]
drivers/rtc/rv3029.c: fix GCC 4.6 build warnings

Fix:
rv3029.c: In function 'rtc_set':
rv3029.c:98:6: warning: variable 'ret' set but not used
[-Wunused-but-set-variable]
rv3029.c: In function 'set_eere_bit':
rv3029.c:131:6: warning: variable 'ret' set but not used
[-Wunused-but-set-variable]
rv3029.c: In function 'wait_eebusy':
rv3029.c:149:9: warning: variable 'ret' set but not used
[-Wunused-but-set-variable]
rv3029.c: In function 'rtc_reset':
rv3029.c:165:6: warning: variable 'ret' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
12 years agodrivers/rtc/ds3231.c: fix GCC 4.6 build warnings
Wolfgang Denk [Fri, 4 Nov 2011 15:55:12 +0000 (15:55 +0000)]
drivers/rtc/ds3231.c: fix GCC 4.6 build warnings

Fix:
ds3231.c: In function 'rtc_get':
ds3231.c:90:52: warning: variable 'control' set but not used
[-Wunused-but-set-variable]

Fix is done by switching to standard debug() instead of custom macro.

Signed-off-by: Wolfgang Denk <wd@denx.de>
12 years agoboard/mcc200/auto_update.c: fixx GCC 4.6 build warnings
Wolfgang Denk [Fri, 4 Nov 2011 15:55:11 +0000 (15:55 +0000)]
board/mcc200/auto_update.c: fixx GCC 4.6 build warnings

Fix:
auto_update.c: In function 'do_auto_update':
auto_update.c:344:48: warning: variable 'got_ctrlc' set but not used
[-Wunused-but-set-variable]
auto_update.c:344:18: warning: variable 'bitmap_first' set but not
used [-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
12 years agoarch/powerpc/cpu/mpc5xxx/usb_ohci.c: fix GCC 4.6 build warnings
Wolfgang Denk [Fri, 4 Nov 2011 15:55:10 +0000 (15:55 +0000)]
arch/powerpc/cpu/mpc5xxx/usb_ohci.c: fix GCC 4.6 build warnings

Fix:
usb_ohci.c: In function 'dl_transfer_length':
usb_ohci.c:751:8: warning: variable 'tdINFO' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
12 years agoboard/tqc/tqm5200/cmd_stk52xx.c: fix GC 4.6 build warnings
Wolfgang Denk [Fri, 4 Nov 2011 15:55:09 +0000 (15:55 +0000)]
board/tqc/tqm5200/cmd_stk52xx.c: fix GC 4.6 build warnings

Fix:
cmd_stk52xx.c: In function 'spi_transmit':
cmd_stk52xx.c:85:6: warning: variable 'dummy' set but not used
[-Wunused-but-set-variable]
cmd_stk52xx.c: In function 'i2s_play_wave':
cmd_stk52xx.c:199:3: warning: dereferencing type-punned pointer will
break strict-aliasing rules [-Wstrict-aliasing]

Signed-off-by: Wolfgang Denk <wd@denx.de>
12 years agoarch/powerpc/lib/board.c: fix build warning
Wolfgang Denk [Fri, 4 Nov 2011 15:55:08 +0000 (15:55 +0000)]
arch/powerpc/lib/board.c: fix build warning

Fix:
board.c: In function 'board_init_r':
board.c:633:8: warning: unused variable 's' [-Wunused-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
12 years agoarch/powerpc/lib/board.c: make (mostly) checkpatch-clean
Wolfgang Denk [Fri, 4 Nov 2011 15:55:07 +0000 (15:55 +0000)]
arch/powerpc/lib/board.c: make (mostly) checkpatch-clean

CodingStyle cleanup.

Accepted (in this cleanup) checkpatch messages:

- externs should be avoided
  (to be cleaned up later)
- no spaces at the start of a line
  (accepted in multi-line #if's)
- Macros with complex values
  (false reports)
- do not use assignment in if condition
  (accepted in one place, where avoiding it would have required an
  additional level of nesting, resulting in less readable code)

Signed-off-by: Wolfgang Denk <wd@denx.de>
12 years agoarch/powerpc/cpu/mpc5xxx/i2c.c: fix GC 4.6 build warnings
Wolfgang Denk [Fri, 4 Nov 2011 15:55:06 +0000 (15:55 +0000)]
arch/powerpc/cpu/mpc5xxx/i2c.c: fix GC 4.6 build warnings

Fix:
i2c.c: In function 'wait_for_bb':
i2c.c:104:16: warning: variable 'temp' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Heiko Schocher <hs@denx.de>
12 years agoboard/mpl/common/flash.c: fix GCC 4.6 build warning
Wolfgang Denk [Fri, 4 Nov 2011 15:55:05 +0000 (15:55 +0000)]
board/mpl/common/flash.c: fix GCC 4.6 build warning

Fix:
../common/flash.c: In function 'flash_erase':
../common/flash.c:603:24: warning: variable 'l_sect' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Denis Peter <d.peter@mpl.ch>
12 years agoconfig.mk: use memoization in cc-option macro to speed up compilation
Daniel Schwierzeck [Mon, 7 Nov 2011 05:26:43 +0000 (05:26 +0000)]
config.mk: use memoization in cc-option macro to speed up compilation

Apply memoization to cc-option macro by caching the results of the
gcc calls. This macro is called very often so using cached results
leads to faster compilation times.

The old behaviour can be restored by defining the config option
CONFIG_CC_OPT_CACHE_DISABLE=y.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
12 years agoColdFire: The EB+MCF-EV123 boards config update
Jason Jin [Thu, 27 Oct 2011 08:05:55 +0000 (16:05 +0800)]
ColdFire: The EB+MCF-EV123 boards config update

Update the config.mk for EB+MCF-EV123 boards according
to the config change from Makefile to boards.cfg.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
12 years agoColdFire: Fix the compile issue for M52277
Jason Jin [Thu, 27 Oct 2011 07:44:52 +0000 (15:44 +0800)]
ColdFire: Fix the compile issue for M52277

After commit 327474f854a33b5b7a11c374b0446d1d40d9f673, the
M52277EVB_stmicro configuration fail to build. Fix it by moving
the env outside the flash and update the lds file.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
12 years agoColdFire:Moving the remaining coldfire boards to boards.cfg
Jason Jin [Thu, 27 Oct 2011 07:40:33 +0000 (15:40 +0800)]
ColdFire:Moving the remaining coldfire boards to boards.cfg

Move the coldfire boards to boards.cfg. The config name
for the EB+MCF-EV123 boards are changed to EB-MCF-EV123
as the '+' cannot be recognized.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
12 years agoArm: re-introduce the MACH_TYPE_XXXXXX for EB_CPUX9K2 board
Jens Scharsig [Mon, 31 Oct 2011 08:52:22 +0000 (08:52 +0000)]
Arm: re-introduce the MACH_TYPE_XXXXXX for EB_CPUX9K2 board

* re-introduce the MACH_TYPE_XXXXXX for EB_CPUX9K2 board

Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
12 years agoarm: jadecpu: Readd MACH_TYPE_JADECPU
Matthias Weisser [Sat, 5 Nov 2011 02:15:44 +0000 (02:15 +0000)]
arm: jadecpu: Readd MACH_TYPE_JADECPU

MACH_TYPE_JADECPU was removed from mach-types.h. Add it to board
config file.

Signed-off-by: Matthias Weisser <weisserm@arcor.de>
12 years agoat91: defined mach-types for otc570 board in board config file
Daniel Gorsulowski [Sun, 30 Oct 2011 22:52:29 +0000 (22:52 +0000)]
at91: defined mach-types for otc570 board in board config file

quotation from Albert ARIBAUD:
"Recently the ARM mach-types.h file has been brought in sync with its
Linux original, leasing to a number of boards not being listed any more,
as the new list only contains boards which have actual Linux support or
were declared less than one year ago.

The symptom is a build failure with a message of the form "error:
'MACH_TYPE_XXXXXX' undeclared (first use in this function)".

U-Boot maintainers of such boards (in Cc: of this mail) should provide a
patch to re-introduce the MACH_TYPE_XXXXXX definition in their boards'
config header file in include/configs/."

Signed-off-by: Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
12 years agoat91: defined mach-types for meesc board in board config file
Daniel Gorsulowski [Sun, 30 Oct 2011 22:52:28 +0000 (22:52 +0000)]
at91: defined mach-types for meesc board in board config file

quotation from Albert ARIBAUD:
"Recently the ARM mach-types.h file has been brought in sync with its
Linux original, leasing to a number of boards not being listed any more,
as the new list only contains boards which have actual Linux support or
were declared less than one year ago.

The symptom is a build failure with a message of the form "error:
'MACH_TYPE_XXXXXX' undeclared (first use in this function)".

U-Boot maintainers of such boards (in Cc: of this mail) should provide a
patch to re-introduce the MACH_TYPE_XXXXXX definition in their boards'
config header file in include/configs/."

Signed-off-by: Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
12 years agomx31pdk: Enable D and I caches
Fabio Estevam [Tue, 1 Nov 2011 08:16:37 +0000 (08:16 +0000)]
mx31pdk: Enable D and I caches

Enable D and I caches on mx31pdk.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agoehci-mxc: remove incorrect comment
Wolfgang Grandegger [Mon, 17 Oct 2011 08:17:47 +0000 (08:17 +0000)]
ehci-mxc: remove incorrect comment

The USB port to be used is determined by CONFIG_MXC_USB_PORT.
So, it appears that the comment is not correct. Remove it.

Signed-off-by: Wolfgang Grandegger <wg@denx.de>
12 years agoREADME: Fix supported i.MX SoC list for CONFIG_MXC_SPI
Fabio Estevam [Fri, 28 Oct 2011 08:57:46 +0000 (08:57 +0000)]
README: Fix supported i.MX SoC list for CONFIG_MXC_SPI

CONFIG_MXC_SPI currently works on MX31/35/51 boards, so update the README file.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx53: Turn off child clocks before reconfigure perclk_root
Fabio Estevam [Mon, 24 Oct 2011 08:08:00 +0000 (08:08 +0000)]
mx53: Turn off child clocks before reconfigure perclk_root

In addition to ensuring that PERCLK remains at least 2.5 times slower
than the AHB clock, certain steps need to be followed to ensure robust
operation of PERCLK when reconfiguring the PERCLK clock source.

To properly configure the PERCLK clock source, the following steps are
required:

1.In the CCGR registers, gate the clocks to all PERCLK-dependent
  modules.
2.Select the desired input clock for the PERCLK root clock (to be either
  source from the peripherals main source clock or the
  lp_apm clock source). Refer to the CMCBR register,  perclk_lp_apm_sel bit.
3.Configure the perclk_pred1, perclk_pred2, and perclk_podf dividers
  to the desired setting.  Refer to the CBCDR register for details.
4.In the CCGR registers, enable the desired clocks for the
  PERCLK-dependent module clocks.

If these steps aren't followed, GPT timer may stop and the kernel stops
at "Calibrating delay loop".

Signed-off-by: Terry Lv <r65388@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agoqong: enable support for compressed images
Wolfgang Denk [Tue, 25 Oct 2011 09:48:16 +0000 (09:48 +0000)]
qong: enable support for compressed images

- enable support for unzip command
- enable support for compressed bitmap images

We also have to increase the malloc() arena a bit for this.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
12 years agoimx: imx31_phycore.h: fix checkpatch warnings
Anatolij Gustschin [Sat, 29 Oct 2011 05:12:25 +0000 (05:12 +0000)]
imx: imx31_phycore.h: fix checkpatch warnings

Cleanup board config file and fix issues reported by
checkpatch.pl script.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agovision2: Remove unused get_board_rev function
Fabio Estevam [Thu, 27 Oct 2011 01:29:45 +0000 (01:29 +0000)]
vision2: Remove unused get_board_rev function

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

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx53smd: Remove unused get_board_rev function
Fabio Estevam [Thu, 27 Oct 2011 01:29:43 +0000 (01:29 +0000)]
mx53smd: Remove unused get_board_rev function

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

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx53ard: Remove unused get_board_rev function
Fabio Estevam [Thu, 27 Oct 2011 01:29:42 +0000 (01:29 +0000)]
mx53ard: Remove unused get_board_rev function

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

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomx53evk: Remove unused get_board_rev function
Fabio Estevam [Thu, 27 Oct 2011 01:29:41 +0000 (01:29 +0000)]
mx53evk: Remove unused get_board_rev function

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

Cc: Jason Liu <r64343@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Jason Liu <r64343@freescale.com>
12 years agomx53evk: Add RTC support
Fabio Estevam [Tue, 25 Oct 2011 01:44:19 +0000 (01:44 +0000)]
mx53evk: Add RTC support

MX53EVK has an MC13892 PMIC. Add RTC support.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Jason Liu < jason.hui@linaro.org>
12 years agomx53loco: Remove unused get_board_rev function
Fabio Estevam [Thu, 27 Oct 2011 01:29:44 +0000 (01:29 +0000)]
mx53loco: Remove unused get_board_rev function

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

Cc: Jason Liu <r64343@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Jason Liu <r64343@freescale.com>
12 years agomx53evk: Remove unneeded '1' from mx53evk.h
Fabio Estevam [Thu, 27 Oct 2011 01:32:43 +0000 (01:32 +0000)]
mx53evk: Remove unneeded '1' from mx53evk.h

Remove unneeded '1' from mx53evk.h.

Cc: Jason Liu <r64343@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Jason Liu <r64343@freescale.com>
12 years agoOMAP3: mvblx: Initial support for mvBlueLYNX-X
Michael Jones [Fri, 4 Nov 2011 17:53:44 +0000 (13:53 -0400)]
OMAP3: mvblx: Initial support for mvBlueLYNX-X

Add support for the MATRIX VISION mvBlueLYNX-X, an OMAP3-based
intelligent camera.

Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 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>
12 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>
12 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>
12 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>
12 years agoPowerpc/i2c: Use the same initialize codes
Jerry Huang [Wed, 26 Oct 2011 15:29:38 +0000 (15:29 +0000)]
Powerpc/i2c: Use the same initialize codes

Make the I2C2 and I2C1 use the same initialize codes.

Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
12 years agopowerpc/mpc83xx: Add 512MB DDR support for mpc8360emds
Jerry Huang [Thu, 3 Nov 2011 06:46:12 +0000 (14:46 +0800)]
powerpc/mpc83xx: Add 512MB DDR support for mpc8360emds

The new MPC8360EMDS board supports 512MB DDR since 2008.

For 512MB DDR:
BAT0 is used for the first 256MB memory, BAT4 is used for the second
256MB memory and the address space of SDRAM follows the DDR, so if the
size of DDR is 256MB, the BAT4 will be used for SDRAM and if the size of
DDR is 512MB, the BAT4 will be used for the second 256MB memory and
there is no BAT for SDRAM.
Therefore, if the size of DDR is 512MB, this patch will use BAT6 for
SDRAM and BAT5 will be used for PCI MEM to replace the BAT6 after the
codes relocates to the DDR.

Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
CC: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: Rename CONFIG_SYS_DDR_CONFIG and cleanup DDR csbnds code
Joe Hershberger [Wed, 12 Oct 2011 04:57:31 +0000 (23:57 -0500)]
mpc83xx: Rename CONFIG_SYS_DDR_CONFIG and cleanup DDR csbnds code

Rename CONFIG_SYS_DDR_CONFIG to include which CS it is configuring
Cleanup the setting of the csnbds to respect the setting of
CONFIG_SYS_DDR_SDRAM_BASE
Use __ilog2 instead of writing the code to compute it
Disable unused CS configs
Ensure ddrlaw.bar is configured

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: Cleanup usage of LBC constants
Joe Hershberger [Wed, 12 Oct 2011 04:57:30 +0000 (23:57 -0500)]
mpc83xx: Cleanup usage of LBC constants

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: Cleanup usage of DDR constants
Joe Hershberger [Wed, 12 Oct 2011 04:57:29 +0000 (23:57 -0500)]
mpc83xx: Cleanup usage of DDR constants

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: Cleanup usage of BAT constants
Joe Hershberger [Wed, 12 Oct 2011 04:57:28 +0000 (23:57 -0500)]
mpc83xx: Cleanup usage of BAT constants

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: vme8349.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:27 +0000 (23:57 -0500)]
mpc83xx: cosmetic: vme8349.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: ve8313.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:26 +0000 (23:57 -0500)]
mpc83xx: cosmetic: ve8313.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: sbc8349.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:25 +0000 (23:57 -0500)]
mpc83xx: cosmetic: sbc8349.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: mpc8308_p1m.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:24 +0000 (23:57 -0500)]
mpc83xx: cosmetic: mpc8308_p1m.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: kmeter1.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:23 +0000 (23:57 -0500)]
mpc83xx: cosmetic: kmeter1.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: TQM834x.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:22 +0000 (23:57 -0500)]
mpc83xx: cosmetic: TQM834x.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: SIMPC8313.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:21 +0000 (23:57 -0500)]
mpc83xx: cosmetic: SIMPC8313.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: MVBLM7.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:20 +0000 (23:57 -0500)]
mpc83xx: cosmetic: MVBLM7.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: MPC837XERDB.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:19 +0000 (23:57 -0500)]
mpc83xx: cosmetic: MPC837XERDB.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: MPC837XEMDS.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:18 +0000 (23:57 -0500)]
mpc83xx: cosmetic: MPC837XEMDS.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: MPC8360ERDK.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:17 +0000 (23:57 -0500)]
mpc83xx: cosmetic: MPC8360ERDK.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: MPC8360EMDS.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:16 +0000 (23:57 -0500)]
mpc83xx: cosmetic: MPC8360EMDS.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: MPC8349ITX.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:15 +0000 (23:57 -0500)]
mpc83xx: cosmetic: MPC8349ITX.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: MPC8349EMDS.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:14 +0000 (23:57 -0500)]
mpc83xx: cosmetic: MPC8349EMDS.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: MPC832XEMDS.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:13 +0000 (23:57 -0500)]
mpc83xx: cosmetic: MPC832XEMDS.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: MPC8323ERDB.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:12 +0000 (23:57 -0500)]
mpc83xx: cosmetic: MPC8323ERDB.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: MPC8315ERDB.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:11 +0000 (23:57 -0500)]
mpc83xx: cosmetic: MPC8315ERDB.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: MPC8313ERDB.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:10 +0000 (23:57 -0500)]
mpc83xx: cosmetic: MPC8313ERDB.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: MPC8308RDB.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:09 +0000 (23:57 -0500)]
mpc83xx: cosmetic: MPC8308RDB.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: cosmetic: MERGERBOX.h checkpatch compliance
Joe Hershberger [Wed, 12 Oct 2011 04:57:08 +0000 (23:57 -0500)]
mpc83xx: cosmetic: MERGERBOX.h checkpatch compliance

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: Fix ipic structure definition
Joe Hershberger [Wed, 12 Oct 2011 02:46:04 +0000 (21:46 -0500)]
mpc83xx: Fix ipic structure definition

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Added siprr_{b,c} and sepcr for completeness.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agopowerpc, mpc83xx: add DDR SDRAM Timing Configuration 3 definitions
Heiko Schocher [Mon, 26 Sep 2011 11:36:54 +0000 (13:36 +0200)]
powerpc, mpc83xx: add DDR SDRAM Timing Configuration 3 definitions

Signed-off-by: Heiko Schocher <hs@denx.de>
Added its mask, too, for intra-file consistency.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agocosmetic, powerpc, mpc83xx: checkpatch cleanup
Heiko Schocher [Mon, 26 Sep 2011 11:36:53 +0000 (13:36 +0200)]
cosmetic, powerpc, mpc83xx: checkpatch cleanup

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agopowerpc/83xx: move km 83xx specific i2c code to km83xx_i2c
Holger Brunck [Wed, 14 Sep 2011 08:54:12 +0000 (10:54 +0200)]
powerpc/83xx: move km 83xx specific i2c code to km83xx_i2c

The common code should be valid for more than one architecture.
Therefore this code was reorganized and moved to the new
file km83xx_i2c.c

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 years agompc83xx: fix global timer structure definition
Kim Phillips [Mon, 15 Aug 2011 04:09:39 +0000 (23:09 -0500)]
mpc83xx: fix global timer structure definition

The byte address distance between GTCFR2 and GTMDR1 is 11, not 10.

Reported-by: Shawn Bai <programassem@hotmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>