beagleboard-validation:privaadoor02s-u-boot.git
7 years agoFixed bugs in cmd_led jason-upstream-20110419
Jason Kridner [Wed, 20 Apr 2011 02:20:45 +0000 (21:20 -0500)]
Fixed bugs in cmd_led

* break prevented 'led all <on|off>' from working
* removed trailing whitespace
* on/off were reversed in the structure

7 years agoBeagleBaord: Configure DVI/S-video
Jason Kridner [Tue, 19 Apr 2011 19:01:13 +0000 (14:01 -0500)]
BeagleBaord: Configure DVI/S-video

Based on patches from Syed Mohammed Khasim (khasim@ti.com).

Configures the output of the BeagleBoard DVI to be orange.
Configures the output of the BeagleBoard S-Video to be a colorbar.

Rebased on u-boot-ti.

7 years agoBeagleBoard: config: enable DSS
Jason Kridner [Tue, 19 Apr 2011 16:47:59 +0000 (11:47 -0500)]
BeagleBoard: config: enable DSS

7 years agoOMAP3: Add DSS driver for OMAP3
Syed Mohammed Khasim [Tue, 12 Jan 2010 18:27:28 +0000 (23:57 +0530)]
OMAP3: Add DSS driver for OMAP3

Supports dynamic panel configuration
Supports dynamic tv standard selection
Adds support for DSS register access through generic APIs

Incorporated DSS register access using structures.

Previous discussions are here
http://www.mail-archive.com/u-boot@lists.denx.de/msg27150.html
---
v2 updates:
  * Enable panel output for BeagleBoard
  * BeagleBoard: Update DVI-D orange screen frequencies for xM

v3 updates:
  * Remove non-platform (OMAP3) updates

Signed-off-by: Syed Mohammed Khasim <khasim@ti.com>
7 years agoDSS makefile update
Jason Kridner [Tue, 19 Apr 2011 19:00:34 +0000 (14:00 -0500)]
DSS makefile update

7 years agoBeagleBoard: config: use the USERBUTTON command
Jason Kridner [Tue, 19 Apr 2011 16:57:41 +0000 (11:57 -0500)]
BeagleBoard: config: use the USERBUTTON command

7 years agoBeagleBoard: Added userbutton command
Jason Kridner [Wed, 21 Jul 2010 12:41:25 +0000 (07:41 -0500)]
BeagleBoard: Added userbutton command

Based on commit f1099c7c43caf5bac3bf6a65aa266fade4747072
    Author: Greg Turner <gregturner@ti.com>
    Date:   Tue May 25 09:19:06 2010 -0500

    New u-boot command for status of USER button on BeagleBoard-xM

         Modified bootcmd to check the staus at boot time and set
 filename of the boot script.

* Moved to a BeagleBoard specific file.
* Removed changes to default boot command from adding userbutton
  command.
* Made to handle pre-xM boards.
* Flipped polarity of the return value to avoid confusion.  Success (0)
  is when the button is pressed.  Failure (1) is when the button is NOT
  pressed.
* Used latest revision getting function.
* Used latest macros for board revision.
--
v2 update:
* Added xM-C revision definition (optional, since it was default)

7 years agoBeagleBoard: config: add ramboot
Jason Kridner [Tue, 19 Apr 2011 17:04:41 +0000 (12:04 -0500)]
BeagleBoard: config: add ramboot

7 years agoBeagleBoard: config: add optargs/buddy/camera
Jason Kridner [Tue, 19 Apr 2011 17:09:18 +0000 (12:09 -0500)]
BeagleBoard: config: add optargs/buddy/camera

7 years agoBeagleBoard: config: load kernel via MMC ext2
Jason Kridner [Thu, 10 Mar 2011 00:48:19 +0000 (18:48 -0600)]
BeagleBoard: config: load kernel via MMC ext2

7 years agoBeagleBoard: config: increase command-line functionality
Jason Kridner [Tue, 19 Apr 2011 16:50:55 +0000 (11:50 -0500)]
BeagleBoard: config: increase command-line functionality

7 years agoBeagleBoard: config: make mtest run
Jason Kridner [Tue, 19 Apr 2011 16:58:54 +0000 (11:58 -0500)]
BeagleBoard: config: make mtest run

7 years agoBeagleBoard: config: don't suck in blank line
Jason Kridner [Tue, 19 Apr 2011 16:58:27 +0000 (11:58 -0500)]
BeagleBoard: config: don't suck in blank line

7 years agoBeagleBoard: config: change default resolution to VGA
Jason Kridner [Tue, 19 Apr 2011 16:54:43 +0000 (11:54 -0500)]
BeagleBoard: config: change default resolution to VGA

7 years agoBeagleBoard: config: reduce BOOTDELAY to 3
Jason Kridner [Tue, 19 Apr 2011 16:51:32 +0000 (11:51 -0500)]
BeagleBoard: config: reduce BOOTDELAY to 3

7 years agoBeagleBoard: config: add I2C multibus support
Jason Kridner [Tue, 19 Apr 2011 16:46:24 +0000 (11:46 -0500)]
BeagleBoard: config: add I2C multibus support

See http://lists.denx.de/pipermail/u-boot/2010-February/067592.html.
From my observation, it seems this patch still needs to be applied.

7 years agoBeagleBoard: config: Remove omapfb.debug=y from Beagle and Overo env settings
Steve Sakoman [Thu, 30 Dec 2010 07:19:44 +0000 (07:19 +0000)]
BeagleBoard: config: Remove omapfb.debug=y from Beagle and Overo env settings

The kernel DSS2 code is mature now, and keeping this setting hurts performance

Signed-off-by: Steve Sakoman <steve@sakoman.com>
(cherry picked from commit 0588da9057fddb5f6a6a04aedd7e0a79eb39e9e5)

7 years agoBeagleBoard: config: Switch default console from ttyS2 to ttyO2
Alexander Holler [Thu, 17 Feb 2011 22:37:57 +0000 (22:37 +0000)]
BeagleBoard: config: Switch default console from ttyS2 to ttyO2

Linux kernels >= 2.6.36 are using ttyOn instead ttySn for the
serials on OMAPs.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
7 years agoBeagleBoard: Pin mux initialization glitch fix
Bob Feretich [Thu, 24 Feb 2011 13:16:44 +0000 (13:16 +0000)]
BeagleBoard: Pin mux initialization glitch fix

The below patch reverses the order of two segments in the board file.
Output pins need to have their values initialized, before they are
exposed to the logic outside the chip.

Signed-off-by: Bob Feretich <bob.feretich@rafresearch.com>
Cc: Wolfgang Denk <wd@denx.de>
7 years agoBeagleBoard: Added LED driver
Jason Kridner [Tue, 19 Apr 2011 15:55:26 +0000 (10:55 -0500)]
BeagleBoard: Added LED driver

Added LED driver using status_led.  USR0 is set to monitor the boot
status.  USR1 is set to be the green LED.

Included adding configuration and command to the default configuration.

v2 updates
 * Fixed USR0/USR1 to be LED 0/1 respectively

Conflicts:

board/ti/beagle/led.c

7 years agoCorrected LED name match finding avoiding extraneous Usage printouts
Jason Kridner [Wed, 9 Mar 2011 02:42:01 +0000 (20:42 -0600)]
Corrected LED name match finding avoiding extraneous Usage printouts

7 years agoBeagleBoard: Fixed typo in typecast
Jason Kridner [Tue, 8 Mar 2011 23:04:22 +0000 (17:04 -0600)]
BeagleBoard: Fixed typo in typecast

7 years agoBeagleBoard: add xM rev C to ID table
Jason Kridner [Wed, 30 Mar 2011 15:44:17 +0000 (10:44 -0500)]
BeagleBoard: add xM rev C to ID table

7 years agoARMV7: OMAP3: Add GPMC_CONFIGx register value definitions
Luca Ceresoli [Tue, 19 Apr 2011 13:48:51 +0000 (09:48 -0400)]
ARMV7: OMAP3: Add GPMC_CONFIGx register value definitions

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoARMV7: OMAP3: Fix preprocessor check for CONFIG_OMAP34XX
Luca Ceresoli [Tue, 19 Apr 2011 13:47:21 +0000 (09:47 -0400)]
ARMV7: OMAP3: Fix preprocessor check for CONFIG_OMAP34XX

CONFIG_OMAP34XX must be checked for existence, not value.

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Albert Aribaud <albert.aribaud@free.fr>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoomap3_beagle: enable EHCI and USB storage.
Alexander Holler [Tue, 19 Apr 2011 13:30:35 +0000 (09:30 -0400)]
omap3_beagle: enable EHCI and USB storage.

The reset sequence/configuration for ehci is highly board specific,
so this will be done in the source for the board, instead of
introducing several CONFIG_* which would be needed to make those
few lines in beagle.c usable across different OMAP boards.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoOMAP3: Add support for DPLL5 (usbhost)
Alexander Holler [Tue, 19 Apr 2011 13:27:55 +0000 (09:27 -0400)]
OMAP3: Add support for DPLL5 (usbhost)

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoOMAP3: Change some USB related MUX values
Alexander Holler [Tue, 19 Apr 2011 13:27:23 +0000 (09:27 -0400)]
OMAP3: Change some USB related MUX values

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoARM: OMAP3: Revamp IGEP module default configuration
Enric Balletbo i Serra [Tue, 19 Apr 2011 13:17:11 +0000 (09:17 -0400)]
ARM: OMAP3: Revamp IGEP module default configuration

The default IGEP configuration doesn't do anything useful; using some
boot.scr search logic like BeagleBoard is much more useful.

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoARM: OMAP3: Revamp IGEP v2 default
Enric Balletbo i Serra [Tue, 19 Apr 2011 13:16:36 +0000 (09:16 -0400)]
ARM: OMAP3: Revamp IGEP v2 default

configuration

The default IGEP configuration doesn't do anything useful; using some
boot.scr search logic like BeagleBoard is much more useful.

Signed-off-by: Loïc Minier <loic.minier@linaro.org>
Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoMerge remote-tracking branch 'u-boot-ti/master'
Albert Aribaud [Tue, 19 Apr 2011 05:38:35 +0000 (07:38 +0200)]
Merge remote-tracking branch 'u-boot-ti/master'

7 years agoReplace obsolete e-mail address
Albert (U-Boot) [Wed, 13 Apr 2011 09:42:41 +0000 (09:42 +0000)]
Replace obsolete e-mail address

Signed-off-by: Albert (U-Boot) <albert.u.boot@aribaud.net>
7 years agoa320evb: fix include path of timer fttmr010
Macpaul Lin [Mon, 21 Mar 2011 01:45:43 +0000 (01:45 +0000)]
a320evb: fix include path of timer fttmr010

Fix include path of timer fttmr010 in a320evb.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
7 years agofttmr010: move fttmr010 header to include/faraday
Macpaul Lin [Mon, 21 Mar 2011 01:45:42 +0000 (01:45 +0000)]
fttmr010: move fttmr010 header to include/faraday

Move the header file and definitions of fttmr010
power control unit from a320 SoC folder to
"include/faraday" folder.

This change will let other SoC which also use fttmr010
could share the same header file.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
7 years agoftpmu010.h: add asm support used by lowlevel_init
Macpaul Lin [Sun, 20 Mar 2011 23:44:07 +0000 (23:44 +0000)]
ftpmu010.h: add asm support used by lowlevel_init

Add asm support which is ususally used in lowlevel_init to set
power related parameters to sdram controller and static memory controller.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
7 years agoftpmu010: fix relocation and enhance features
Macpaul Lin [Sun, 20 Mar 2011 23:44:06 +0000 (23:44 +0000)]
ftpmu010: fix relocation and enhance features

1. ftpmu010.h: fix and add definitions
   Enhanced for more features and asm related support
   according to datasheet.

   Note:
    - FTPMU010_PDLLCR0_HCLKOUTDIS is "incorrect" in datasheet.
    - FTPMU010_PDLLCR0_DLLFRANG is only 1 bit at bit #19. (not 20-19)
    - FTPMU010_PDLLCR0_HCLKOUTDIS is 4 bits at bit #20. (not 24-21)

2. ftpmu010.c: enhance features and fix relocation
   - The following functions is added for pmu features.
     ftpmu010_mfpsr_select_dev()
     ftpmu010_sdramhtc_set()
   - This patch also fix the declare statement for relocation.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
7 years agoOrion5x: Correct DRAM bank detection
Rogan Dawes [Wed, 13 Apr 2011 18:24:53 +0000 (23:54 +0530)]
Orion5x: Correct DRAM bank detection

7 years agoI2C: add i2c support for Armada100 platform
Lei Wen [Wed, 13 Apr 2011 18:18:44 +0000 (23:48 +0530)]
I2C: add i2c support for Armada100 platform

Add i2c support to aspenite board with Armada100 soc.

Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
7 years agoI2C: mv_i2c: add multi bus support
Lei Wen [Wed, 13 Apr 2011 18:18:39 +0000 (23:48 +0530)]
I2C: mv_i2c: add multi bus support

Add the ability to support multiple i2c bus for mv_i2c

Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
7 years agoI2C: add i2c support for Pantheon platform
Lei Wen [Wed, 13 Apr 2011 18:18:34 +0000 (23:48 +0530)]
I2C: add i2c support for Pantheon platform

Add i2c support to dkb board with pantheon soc.

Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
7 years agomv_i2c: use structure to replace the direclty define
Lei Wen [Wed, 13 Apr 2011 18:18:31 +0000 (23:48 +0530)]
mv_i2c: use structure to replace the direclty define

Add i2c_clk_enable in the cpu specific code, since previous platform it,
while new platform don't need. In the pantheon and armada100 platform,
this function is defined as NULL one.

Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
7 years agomv_i2c: fix timeout value to be consistent with comments
Lei Wen [Wed, 13 Apr 2011 18:18:26 +0000 (23:48 +0530)]
mv_i2c: fix timeout value to be consistent with comments

The original 10000 value would be 100ms, which is not
the comments said.

Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
7 years agopxa: move i2c driver to the common place
Lei Wen [Wed, 13 Apr 2011 18:18:16 +0000 (23:48 +0530)]
pxa: move i2c driver to the common place

For better sharing with other platform other than pxa's,
it is more convenient to put the driver to the common place.

Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
7 years agoMX25: tx25: Add _end section on nand_spl
Fabio Estevam [Sun, 3 Apr 2011 12:17:19 +0000 (12:17 +0000)]
MX25: tx25: Add _end section on nand_spl

Commit f326cbb (arm: fix incorrect monitor protection region in FLASH) missed to update
nand_spl/board/karo/tx25/u-boot.lds.

Add the _end section.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
7 years agoMX31: mx31pdk: fix nand_spl
Stefano Babic [Sun, 3 Apr 2011 00:01:49 +0000 (00:01 +0000)]
MX31: mx31pdk: fix nand_spl

Commit f326cbba98bae21d41df8daac0bd78121d557af1 breaks mx31pdk,
as the _end section in u-boot.lds is missing for the nand_spl
production.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
7 years agoARMV7: Vexpress: Remove config.mk
Matt Waddel [Thu, 3 Mar 2011 06:54:48 +0000 (06:54 +0000)]
ARMV7: Vexpress: Remove config.mk

Remove obsolete board config.mk.

Signed-off-by: Matt Waddel <matt.waddel@linaro.org>
7 years agoDon't grab memory for LCD if FB address is defined
Minkyu Kang [Mon, 14 Mar 2011 22:35:15 +0000 (22:35 +0000)]
Don't grab memory for LCD if FB address is defined

f FB address is defined specific address then don't grab memory for LCD

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Cc: Albert Aribaud <albert.aribaud@free.fr>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Kim Phillips <kim.phillips@freescale.com>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Kumar Gala <kumar.gala@freescale.com>
7 years agoarm: a320: use new ftpmu010 API
Po-Yu Chuang [Thu, 17 Feb 2011 19:35:23 +0000 (19:35 +0000)]
arm: a320: use new ftpmu010 API

ftpmu010 related code has been moved to drivers/power/.

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
7 years agopower: ftpmu010: move drivers/power/ftpmu010.h to include/faraday
Po-Yu Chuang [Thu, 17 Feb 2011 19:34:07 +0000 (19:34 +0000)]
power: ftpmu010: move drivers/power/ftpmu010.h to include/faraday

Also add API declarations.

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
7 years agoarm: Use optimized memcpy and memset from linux
Matthias Weisser [Thu, 10 Mar 2011 21:36:32 +0000 (21:36 +0000)]
arm: Use optimized memcpy and memset from linux

Using optimized versions of memset and memcpy from linux brings a quite
noticeable speed (x2 or better) improvement for these two functions.

Here are some numbers for test done with jadecpu

                           | HEAD(1)| HEAD(1)| HEAD(2)| HEAD(2)|
                           |        | +patch |        | +patch |
---------------------------+--------+--------+--------+--------+
Reset to prompt            |  438ms |  330ms |  228ms |  120ms |
                           |        |        |        |        |
TFTP a 3MB img             | 4782ms | 3428ms | 3245ms | 2820ms |
                           |        |        |        |        |
FATLOAD USB a 3MB img*     | 8515ms | 8510ms | ------ | ------ |
                           |        |        |        |        |
BOOTM LZO img in RAM       | 3473ms | 3168ms |  592ms |  592ms |
 where CRC is              |  615ms |  615ms |   54ms |   54ms |
 uncompress                | 2460ms | 2462ms |  450ms |  451ms |
 final boot_elf            |  376ms |   68ms |   65ms |   65ms |
                           |        |        |        |        |
BOOTM LZO img in FLASH     | 3207ms | 2902ms | 1050ms | 1050ms |
 where CRC is              |  600ms |  600ms |  135ms |  135ms |
 uncompress                | 2209ms | 2211ms |  828ms |  828ms |
                           |        |        |        |        |
Copy 1.4MB from NOR to RAM |  134ms |   72ms |  120ms |   70ms |

(1) No dcache
(2) dcache enabled in board_init
*Does not work when dcache is on

Size impact:

C version:
   text    data     bss     dec     hex filename
 202862   18912  266456  488230   77326 u-boot

ASM version:
   text    data     bss     dec     hex filename
 203798   18912  266288  488998   77626 u-boot
222712  u-boot.bin

Signed-off-by: Matthias Weisser <weisserm@arcor.de>
7 years agoMX5: Enable flat-device-tree support on mx53 loco board
Jason Liu [Tue, 29 Mar 2011 09:43:59 +0000 (17:43 +0800)]
MX5: Enable flat-device-tree support on mx53 loco board

Signed-off-by: Jason Liu <jason.hui@linaro.org>
7 years agomx53loco: set mmc env to MMC slot1
Jason Liu [Tue, 22 Mar 2011 07:45:08 +0000 (15:45 +0800)]
mx53loco: set mmc env to MMC slot1

mx53loco board has two MMC slots, one is for MicroSD,
the other one is for normal SD, but the final board
design is to only boot from MicroSD. So, make the mmc
env default to slot1(MicroSD slot)

Signed-off-by: Jason Liu <jason.hui@linaro.org>
7 years agoIMX: MX31: Cleanup include files and drop nasty #ifdef in drivers
Stefano Babic [Mon, 14 Mar 2011 14:43:56 +0000 (15:43 +0100)]
IMX: MX31: Cleanup include files and drop nasty #ifdef in drivers

As exception among the i.MX processors, the i.MX31 has headers
without general names (mx31-regs.h, mx31.h instead of imx-regs.h and
clock.h). This requires several nasty #ifdef in the drivers to
include the correct header. The patch cleans up the driver and
renames the header files as for the other i.MX processors.

Signed-off-by: Stefano Babic <sbabic@denx.de>
7 years agoMX5: Enable flat-device-tree support on mx51/53 evk board
Liu Hui-R64343 [Mon, 21 Feb 2011 00:14:33 +0000 (00:14 +0000)]
MX5: Enable flat-device-tree support on mx51/53 evk board

device tree for uboot arm support has already been enabled
in the master branch. This patch enable device tree support
for mx51/53 evk board for DT test.

Signed-off-by: Jason Liu <r64343@freescale.com>
7 years agoMX53: support for freescale MX53LOCO board
Liu Hui-R64343 [Tue, 22 Feb 2011 21:26:10 +0000 (21:26 +0000)]
MX53: support for freescale MX53LOCO board

This patch add initial support for freescale MX53LOCO board.
Network(FEC),SD/MMC, UART have been supported by this patch.

Signed-off-by: Jason Liu <r64343@freescale.com>
7 years agoMX53: drop config.mk from mx53evk
Liu Hui-R64343 [Tue, 22 Feb 2011 21:26:09 +0000 (21:26 +0000)]
MX53: drop config.mk from mx53evk

The config.mk file in board directory is now obsolete and
should be removed. Add option for the IMX image into
boards.cfg

Signed-off-by: Jason Liu <r64343@freescale.com>
7 years agomx25: Make the UART port number explicit in its setup function
Fabio Estevam [Wed, 2 Mar 2011 09:14:27 +0000 (10:14 +0100)]
mx25: Make the UART port number explicit in its setup function

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
7 years agoMX31: qong: add watchdog
Stefano Babic [Wed, 2 Feb 2011 00:49:37 +0000 (00:49 +0000)]
MX31: qong: add watchdog

Signed-off-by: Stefano Babic <sbabic@denx.de>
7 years agoMX31: add support for MX31 watchdog
Stefano Babic [Wed, 2 Feb 2011 00:49:36 +0000 (00:49 +0000)]
MX31: add support for MX31 watchdog

The patch add CONFIG_HW_WATCHDOG to be used
with the internal watchdog timer of the MX31
processor. Two function are exported for the
board maintainers:
mxc_hw_watchdog_enable
mxc_hw_watchdog_reset

The board maintainer can decide to use mxc_hw_watchdog_reset as
hw_watchdog_reset, or to implement his own function to reset
the watchdog.
The watchdog timer can be configured with CONFIG_SYS_WD_TIMER_SECS
(value in seconds). The MX31 allows values between 0.5
(CONFIG_SYS_WD_TIMER_SECS = 0) and 128 seconds.

Signed-off-by: Stefano Babic <sbabic@denx.de>
7 years agoMX51: drop config.mk from mx51evk
Stefano Babic [Mon, 24 Jan 2011 00:14:27 +0000 (00:14 +0000)]
MX51: drop config.mk from mx51evk

The config.mk file in board directory is now obsolete and
should be removed. Add option for the IMX image into
boards.cfg

Signed-off-by: Stefano Babic <sbabic@denx.de>
7 years agoMakefile: change rule to build IMX image
Stefano Babic [Mon, 24 Jan 2011 00:14:26 +0000 (00:14 +0000)]
Makefile: change rule to build IMX image

config.mk in board directory is obsolete and should be removed.
The patch allows to get rid of own config.mk adding the imximage.cfg
file to the options in the boards.cfg

Signed-off-by: Stefano Babic <sbabic@denx.de>
7 years agoOMAP3: CM-T35: Add support for CM-T3730
Igor Grinberg [Mon, 18 Apr 2011 21:55:21 +0000 (17:55 -0400)]
OMAP3: CM-T35: Add support for CM-T3730

CM-T3730 is exactly the same board as CM-T35, but it has
TI DM3730 SoC onboard and therefore some changes have to take place

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoOMAP3: CM-T35: enable the green LED
Igor Grinberg [Mon, 18 Apr 2011 21:54:33 +0000 (17:54 -0400)]
OMAP3: CM-T35: enable the green LED

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoOMAP3: CM-T35: remove redundand i2c initialization
Igor Grinberg [Mon, 18 Apr 2011 21:53:33 +0000 (17:53 -0400)]
OMAP3: CM-T35: remove redundand i2c initialization

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoOMAP3: CM-T35: fix mmc
Igor Grinberg [Mon, 18 Apr 2011 21:52:31 +0000 (17:52 -0400)]
OMAP3: CM-T35: fix mmc

Use CONFIG_OMAP3_MMC in cm-t35 configuration file.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoOMAP3: CM-T35: add MMC1 pinmux
Igor Grinberg [Mon, 18 Apr 2011 21:50:07 +0000 (17:50 -0400)]
OMAP3: CM-T35: add MMC1 pinmux

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoOMAP3: CM-T35: update MAINTAINERS file
Igor Grinberg [Mon, 18 Apr 2011 21:49:26 +0000 (17:49 -0400)]
OMAP3: CM-T35: update MAINTAINERS file

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Acked-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoOMAP3: CM-T35: update board files header information
Igor Grinberg [Mon, 18 Apr 2011 21:48:31 +0000 (17:48 -0400)]
OMAP3: CM-T35: update board files header information

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoOMAP3: CM-T35: update config
Igor Grinberg [Mon, 18 Apr 2011 21:48:28 +0000 (17:48 -0400)]
OMAP3: CM-T35: update config

update config for OMAP3 CM-T35

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoOMAP3: CM-T35: Move DECLARE_GLOBAL_DATA_PTR to file scope
Igor Grinberg [Mon, 18 Apr 2011 21:43:26 +0000 (17:43 -0400)]
OMAP3: CM-T35: Move DECLARE_GLOBAL_DATA_PTR to file scope

Move DECLARE_GLOBAL_DATA_PTR to file scop

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoARMV7: AM3517/05: Add support for CraneBoard.
Srinath [Mon, 18 Apr 2011 21:40:35 +0000 (17:40 -0400)]
ARMV7: AM3517/05: Add support for CraneBoard.

It is a low cost reference design based on Sitara AM3517 SoC from Texas Instruments
Please refer to <www.craneboard.org> for more details.

Signed-off-by: Srinath <srinath@mistralsolutions.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoOMAP3: BeagleBoard: add more expansionboard IDs
Koen Kooi [Mon, 18 Apr 2011 21:29:35 +0000 (17:29 -0400)]
OMAP3: BeagleBoard: add more expansionboard IDs

Information on configurations pulled from
http://www.elinux.org/BeagleBoardPinMux#Vendor_and_Device_IDs

Boards added:
* Added BeagleBoardToys WiFi, VGA and LCD boards
* Added KBADC Beagle FPGA board
* Added Brainmux LCDog and LCDog Touch
* Added Liquidware BeagleTouch

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoOMAP3: BeagleBoard: add xM rev B to ID table
Koen Kooi [Mon, 18 Apr 2011 21:28:32 +0000 (17:28 -0400)]
OMAP3: BeagleBoard: add xM rev B to ID table

Patch was updated by Jason Kridner <jkridner@beagleboard.org>:
* Use tabs to match style of other board revisions
* Only include board revisions that exist
* Default to the same configuration as the latest revision, but
  without setting 'beaglerev'

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoOMAP3: BeagleBoard: Enable pullups on i2c2.
Steve Kipisz [Mon, 18 Apr 2011 21:27:00 +0000 (17:27 -0400)]
OMAP3: BeagleBoard: Enable pullups on i2c2.

This allows the reading of EEPROMS on the expansion bus without adding
external pull-ups.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Steve Kipisz <s-kipisz2@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoomap3_beagle: enable the use of a plain text file
Alexander Holler [Mon, 18 Apr 2011 21:25:13 +0000 (17:25 -0400)]
omap3_beagle: enable the use of a plain text file

Using the new env import command it is possible to use plain text files instead
of script-images. Plain text files are much easier to handle.

E.g. If your boot.scr contains the following:
-----------------------------------
setenv dvimode 1024x768-16@60
run loaduimage
run mmcboot
-----------------------------------
you could create a file named uEnv.txt and use that instead of boot.scr:
-----------------------------------
dvimode=1024x768-16@60
uenvcmd=run loaduimage; run mmcboot
-----------------------------------
The variable uenvcmd (if existent) will be executed (using run) after uEnv.txt
was loaded. If uenvcmd doesn't exist the default boot sequence will be started,
therefore you could just use
-----------------------------------
dvimode=1024x768-16@60
-----------------------------------
as uEnv.txt because loaduimage and mmcboot is part of the default boot sequence

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoBeagleBoard: Added LED driver
Jason Kridner [Mon, 18 Apr 2011 21:23:35 +0000 (17:23 -0400)]
BeagleBoard: Added LED driver

Added LED driver using status_led.  USR0 is set to monitor the boot
status.  USR1 is set to be the green LED.

Included adding configuration and command to the default configuration.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoAdd 'led' command
Jason Kridner [Mon, 18 Apr 2011 21:22:44 +0000 (17:22 -0400)]
Add 'led' command

This patch allows any board implementing the coloured LED API
to control the LEDs from the console.

led [green | yellow | red | all ]  [ on | off ]

or

led [ 1 | 2 | 3 | all ]  [ on | off ]

Adds configuration item CONFIG_CMD_LED enabling the command.

Partially based on patch from Ulf Samuelsson:
http://www.mail-archive.com/u-boot@lists.denx.de/msg09593.html.

Updated based on feedback:
http://www.mail-archive.com/u-boot@lists.denx.de/msg41847.html
https://groups.google.com/d/topic/beagleboard/8Wf1HiK_QBo/discussion
* Fixed a handful of style issues.
* Significantly reduced the number of #ifdefs and redundant code
* Converted redundant code into loops test against a structure
* Made use of cmd_usage()
* Introduced a str_onoff() function, but haven't yet put it in common
* Eliminated trailing newline

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
7 years agoMAINTAINERS: fix email address case
Fabio Estevam [Mon, 21 Feb 2011 18:02:07 +0000 (15:02 -0300)]
MAINTAINERS: fix email address case

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
7 years agoFix bad padding of bootp request packet
Simon Glass [Wed, 2 Feb 2011 23:03:28 +0000 (15:03 -0800)]
Fix bad padding of bootp request packet

This seems to pad to one byte longer than required

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoMerge branch 'sf' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Wed, 13 Apr 2011 20:04:11 +0000 (22:04 +0200)]
Merge branch 'sf' of git://git.denx.de/u-boot-blackfin

7 years agoMerge branch 'master' of git://git.denx.de/u-boot-x86
Wolfgang Denk [Wed, 13 Apr 2011 19:53:09 +0000 (21:53 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-x86

7 years agocfi_flash: Fix CONFIG_SYS_FLASH_AUTOPROTECT_LIST usage
Peter Tyser [Wed, 13 Apr 2011 16:46:56 +0000 (11:46 -0500)]
cfi_flash: Fix CONFIG_SYS_FLASH_AUTOPROTECT_LIST usage

Commit 6ee1416e8184b4d9ebe6087d396a60bcecf3551c (mtd, cfi: introduce
void flash_protect_default(void)) introduced a bug which resulted in
boards that define CONFIG_SYS_FLASH_AUTOPROTECT_LIST not compiling with
the the following errors and warning:
  ptyser@petert u-boot $ make -s xpedite520x
  Configuring for xpedite520x board...
  cfi_flash.c: In function 'flash_protect_default':
  cfi_flash.c:2118: error: 'i' undeclared (first use in this function)
  cfi_flash.c:2118: error: (Each undeclared identifier is reported only once
  cfi_flash.c:2118: error: for each function it appears in.)
  cfi_flash.c:2118: error: 'apl' undeclared (first use in this function)
  cfi_flash.c:2118: error: invalid application of 'sizeof' to incomplete type 'struct apl_s'
  cfi_flash.c: In function 'flash_init':
  cfi_flash.c:2137: warning: unused variable 'apl'

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Reported-by: Kumar Gala <galak@kernel.crashing.org>
Cc: Heiko Schocher <hs@denx.de>
7 years agosf: sst: add support for SST25VF064C
James Kosin [Wed, 13 Apr 2011 19:12:18 +0000 (15:12 -0400)]
sf: sst: add support for SST25VF064C

Signed-off-by: James Kosin <jkosin@intcomgrp.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
7 years agoMerge branch 'master' of git://git.denx.de/u-boot-x86
Graeme Russ [Wed, 13 Apr 2011 09:56:23 +0000 (19:56 +1000)]
Merge branch 'master' of git://git.denx.de/u-boot-x86

7 years agox86: Update MAINTAINERS and delete README files
Graeme Russ [Wed, 13 Apr 2011 09:43:30 +0000 (19:43 +1000)]
x86: Update MAINTAINERS and delete README files

The README files are totally out-of-date to the point where they do more
harm than good

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
7 years agosc520: Move reset to stand-alone file
Graeme Russ [Wed, 13 Apr 2011 09:43:29 +0000 (19:43 +1000)]
sc520: Move reset to stand-alone file

Partial linking allows weak functions to be overridden in files containing
only one function. Moving the sc520 override of reset_cpu gets rid of an
ugly #ifdef

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
7 years agox86: Rename i386 to x86
Graeme Russ [Wed, 13 Apr 2011 09:43:28 +0000 (19:43 +1000)]
x86: Rename i386 to x86

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
7 years agox86: Code cleanup
Graeme Russ [Wed, 13 Apr 2011 09:43:26 +0000 (19:43 +1000)]
x86: Code cleanup

Make the copyright notices in the x86 files consistent and update them with
proper attributions for recent updates

Also fix a few comment style/accuracy and whitespace/blank line issues

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
7 years agoeNET: Remove config.mk
Graeme Russ [Wed, 13 Apr 2011 09:43:25 +0000 (19:43 +1000)]
eNET: Remove config.mk

By including <config.h> in the ld script, CONFIG_SYS_MONITOR_LEN (defined
in the boards config file) can be used in lieu of FLASH_SIZE (defined in
the board specific config.mk)

As this is the last remaining entry in the board specific config.mk, this
file can now be removed

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
7 years agoeNET: Fix saveenv crash
Graeme Russ [Wed, 13 Apr 2011 09:43:24 +0000 (19:43 +1000)]
eNET: Fix saveenv crash

CONFIG_ENV_SIZE = CONFIG_ENV_SECT_SIZE = 128kB but CONFIG_SYS_STACK_SIZE
is only 32kB resulting in saveenv causing a stack overflow and crashing
U-Boot. Resolve by reducing CONFIG_ENV_SIZE to 4kB

Also fix up CONFIG_SYS_MALLOC_LEN to correctly use environment sector
size and add some comments to the memory organisation configuration

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
7 years agodisk/part.c: fix potential stack overflow bug
Lei Wen [Tue, 15 Feb 2011 08:56:40 +0000 (16:56 +0800)]
disk/part.c: fix potential stack overflow bug

If the param pass to get_dev is not the one defined in the block_drvr,
it could make uboot becomes unstable, for it would continue run after
search complete the block_drvr table.

Signed-off-by: Lei Wen <leiwen@marvell.com>
7 years agoAdd support for dataflash to U-boot environment settings tool.
Remy Bohmer [Sat, 12 Feb 2011 18:06:26 +0000 (19:06 +0100)]
Add support for dataflash to U-boot environment settings tool.

* The sector size for SPI-dataflash (like AT45 flashes) are not always
  a power-of-2. So, the sector calculations are rewritten such that it
  works for either power-of-2 as any size sectors.
* Make the flash sector size optional in case it is the same value as
  the environment size.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
7 years agomkimage: add "-V" option to print version information
Wolfgang Denk [Sat, 12 Feb 2011 09:37:11 +0000 (10:37 +0100)]
mkimage: add "-V" option to print version information

Signed-off-by: Wolfgang Denk <wd@denx.de>
7 years agoftwdt010_wdt: move header to include/faraday and enhance
Macpaul Lin [Tue, 12 Apr 2011 05:04:02 +0000 (13:04 +0800)]
ftwdt010_wdt: move header to include/faraday and enhance

1. Move header to include/faraday
2. Fix include path in ftwdt010_wdt.c
3. Fix function prototype and declaration to
  - ftwdt010_wdt_settimeout
  - ftwdt010_wdt_reset
  - ftwdt010_wdt_disable
4. Add "#if definde (CONFIG_HW_WATCHDOG)" let user have flexibilty
  to choose which better to his product.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
7 years agocommon/cmd_bdinfo.c: fix do_bdinfo() for AVR32
Andreas Bießmann [Wed, 9 Feb 2011 14:10:31 +0000 (15:10 +0100)]
common/cmd_bdinfo.c: fix do_bdinfo() for AVR32

This patch fixes following warning message:

---8<---
cmd_bdinfo.c:458: warning: initialization from incompatible pointer type
--->8---

There was a prototype change in 54841ab50c20d6fa6c9cc3eb826989da3a22d934 for
argv[] pointer type to const. This change was not made for AVR32 cause this
code came in later by a merge.

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
7 years agocmd_nvedit: use explicit typecast for printf
Andreas Bießmann [Wed, 9 Feb 2011 14:10:29 +0000 (15:10 +0100)]
cmd_nvedit: use explicit typecast for printf

This patch fixes warnings in MAKEALL for avr32:

---8<---
cmd_nvedit.c: In function 'do_env_export':
cmd_nvedit.c:663: warning: format '%zX' expects type 'size_t', but argument 3 has type 'ssize_t'
--->8---

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
7 years agoMake STANDALONE_LOAD_ADDR configurable per board
Wolfgang Denk [Fri, 4 Feb 2011 13:25:17 +0000 (14:25 +0100)]
Make STANDALONE_LOAD_ADDR configurable per board

Rename STANDALONE_LOAD_ADDR into CONFIG_STANDALONE_LOAD_ADDR
and allow that the architecture-specific default value gets
overwritten by defining the value in the board header file.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
Cc: Daniel Hellstrom <daniel@gaisler.com>
Cc: Tsi Chung Liew <tsi-chung.liew@freescale.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
7 years agoDrop config.h include in tools/imximage.h
Loïc Minier [Thu, 3 Feb 2011 14:07:01 +0000 (15:07 +0100)]
Drop config.h include in tools/imximage.h

"make tools-all" should allow building tools such as mkimage and the new
imximage without any config, but imximage.c currently fails to build
with:
imximage.h:27:20: error: config.h: No such file or directory

config.h is not needed in imximage.h nor in imximage.c, and imximage.h
is only included from imximage.c, so drop this include to fix the build.

Signed-off-by: Loïc Minier <loic.minier@linaro.org>
7 years agoFix misc spelling errors found by lintian
Loïc Minier [Thu, 3 Feb 2011 21:04:26 +0000 (22:04 +0100)]
Fix misc spelling errors found by lintian

Signed-off-by: Loïc Minier <loic.minier@linaro.org>
7 years agoFix gunzip to work for any gziped uImage size
Catalin Radu [Fri, 4 Feb 2011 12:35:47 +0000 (14:35 +0200)]
Fix gunzip to work for any gziped uImage size

Signed-off-by: Catalin Radu <Catalin@VirtualMetrix.com>