oweals/u-boot.git
13 years agopowerpc/85xx: Implement work-around for P4080 erratum SERDES-A001
Timur Tabi [Mon, 18 Apr 2011 22:16:00 +0000 (17:16 -0500)]
powerpc/85xx: Implement work-around for P4080 erratum SERDES-A001

Bank powerdown through RCW[SRDS_LPD_Bn] for XAUI on FM2 and SGMII on FM1
are swapped.

Erratum SERDES-A001 says that if bank two is kept disabled and after bank
three is enabled, then the PLL for bank three won't lock properly.  The
work-around is to enable and then disable bank two after bank three is
enabled.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Extend SERDES9 erratum work-around to SGMII, SRIO, and AURORA
Timur Tabi [Thu, 14 Apr 2011 20:37:06 +0000 (15:37 -0500)]
powerpc/85xx: Extend SERDES9 erratum work-around to SGMII, SRIO, and AURORA

Part of the SERDES9 erratum work-around is to set some bits in the SerDes
TTLCR0 register for lanes configured as XAUI, SGMII, SRIO, or AURORA.  The
current code does this only for XAUI, so extend it to the other protocols.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Display SERDES 8 erratum warning if banks are not disabled
Timur Tabi [Wed, 13 Apr 2011 15:38:23 +0000 (10:38 -0500)]
powerpc/85xx: Display SERDES 8 erratum warning if banks are not disabled

The work-around for P4080 erratum SERDES-8 requires all lanes of banks two
and three to be disabled (powered down) in the RCW.  Display a warning
message if this is not the case.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Implement work-around for P4080 erratum SERDES-A005
Timur Tabi [Fri, 1 Apr 2011 18:19:36 +0000 (13:19 -0500)]
powerpc/85xx: Implement work-around for P4080 erratum SERDES-A005

SerDes PLL bandwidth default setting is incorrect when no lanes are
configured as PCI Express.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/fsl: add 'pixis_reset dump' command
Timur Tabi [Wed, 9 Feb 2011 22:28:48 +0000 (16:28 -0600)]
powerpc/fsl: add 'pixis_reset dump' command

Add the 'pixis_reset dump' command, which displays the contents of the PIXIS
registers.  This command is only available if DEBUG is defined.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/86xx: remove empty board_early_init_f()
Timur Tabi [Thu, 28 Apr 2011 20:01:14 +0000 (15:01 -0500)]
powerpc/86xx: remove empty board_early_init_f()

Remove an empty board_early_init_f() from the MPC8641HPCN board.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Don't set FT_FSL_PCI_SETUP if CONFIG_PCI is not set
Matthew McClintock [Mon, 25 Apr 2011 19:10:35 +0000 (14:10 -0500)]
powerpc/85xx: Don't set FT_FSL_PCI_SETUP if CONFIG_PCI is not set

A lot of boards set FT_FSL_PCI_SETUP directly in their board code
and don't check to see if CONFIG_PCI is actually defined. This
will cause the board compilation to fail if CONFIG_PCI is not
defined. The p1022ds board is one such example.

Instead of fixing every board this patch wraps FT_FSL_PCI_SETUP
around CONFIG_PCI so we can remove CONFIG_PCI and boards will
still build properly.

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: handle both "secX.Y" and "sec-vX.Y" properties
Kim Phillips [Tue, 12 Apr 2011 19:12:47 +0000 (14:12 -0500)]
powerpc/85xx: handle both "secX.Y" and "sec-vX.Y" properties

versioned SEC properties changed names during development, so
for now search and update LIODNs for both "secX.Y" and
"sec-vX.Y" based properties.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Enable ESDHC111 erratum on P2040/P3041/P5010/P5020 SoCs
Lei Xu [Tue, 19 Apr 2011 07:28:41 +0000 (15:28 +0800)]
powerpc/85xx: Enable ESDHC111 erratum on P2040/P3041/P5010/P5020 SoCs

The workaround for ESDHC111 should also be applied on
P2040/P3041/P5010/P5020 SoCs.

Signed-off-by: Lei Xu <B33228@freescale.com>
Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Enable Internal USB PHY for p2040, p3041, p5010 and p5020
Roy Zang [Wed, 13 Apr 2011 05:08:51 +0000 (00:08 -0500)]
powerpc/85xx: Enable Internal USB PHY for p2040, p3041, p5010 and p5020

The P2040, P3041, P5010, and P5020 all have internal USB PHYs that we
need to enable for them to function.

Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc: Add P3041DS/P5020DS board support (uses corenet_ds code)
Kumar Gala [Wed, 9 Feb 2011 02:00:08 +0000 (02:00 +0000)]
powerpc: Add P3041DS/P5020DS board support (uses corenet_ds code)

The P3041DS & P5020DS boards are almost identical (except for the
processor in them).  Additionally they are based on the P4080DS board
design so we use the some board code for all 3 boards.

Some ngPIXIS (FPGA) registers where reserved on P4080DS and now have
meaning on P3041DS/P5020DS.  We utilize some of these for SERDES clock
configuration.

Additionally, the P3041DS/P5020DS support NAND.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Shaohui Xie <b21989@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agop4080/serdes: Implement the XAUI workaround for SERDES9 erratum
Emil Medve [Wed, 1 Sep 2010 03:57:38 +0000 (22:57 -0500)]
p4080/serdes: Implement the XAUI workaround for SERDES9 erratum

Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: fsl_corenet_serdes code rework
Emil Medve [Wed, 1 Sep 2010 03:57:36 +0000 (22:57 -0500)]
powerpc/85xx: fsl_corenet_serdes code rework

Rework and add some new APIs to the fsl_corenet_serdes code for use by
erratum and drivers.

* Rename serdes_get_bank() to serdes_get_bank_by_lane()
* Add serdes_get_first_lane returns which SERDES lane is used by device

Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Fix Wrong PCIe 3 virtual address on corenet_ds platforms
Trübenbach, Ralf [Wed, 20 Apr 2011 13:04:47 +0000 (13:04 +0000)]
powerpc/85xx: Fix Wrong PCIe 3 virtual address on corenet_ds platforms

This patch fixes a wrong address define in corenet_ds.h (used by
P4080DS.h, P3041DS.h, P5020DS.h).

Since board/Freescale/corenet_ds/tlb.c does not use the
CONFIG_SYS_PCIE3_MEM_VIRT define (uses CONFIG_SYS_PCIE1_MEM_VIRT with a
fix offset instead) this has no effect to the functionality. But it may
be important for changes in the future?

Signed-off-by: Ralf Trübenbach <ralf.truebenbach@men.de>
Cc: Andy Fleming <afleming@gmail.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Add device tree fixup for bman portal
Haiying Wang [Tue, 1 Mar 2011 14:30:07 +0000 (09:30 -0500)]
powerpc/85xx: Add device tree fixup for bman portal

Fix fdt bportal to pass the bman revision number to kernel via device tree.

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Add support for 2nd USB controller on p1_p2_rdb
Ramneek Mehresh [Sat, 9 Apr 2011 18:08:47 +0000 (13:08 -0500)]
powerpc/85xx: Add support for 2nd USB controller on p1_p2_rdb

Second USB controller only works for SPI and SD boot because of pin muxing

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
13 years agopowerpc/85xx: Added PMUXCR1 and PMUXCR2 defines for P1010/P1014 SoC
Dipen Dudhat [Tue, 22 Mar 2011 13:31:36 +0000 (08:31 -0500)]
powerpc/85xx: Added PMUXCR1 and PMUXCR2 defines for P1010/P1014 SoC

Signed-off-by: Dipen Dudhat <Dipen.Dudhat@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Change CS timing params before changing CS properties on IFC
Dipen Dudhat [Fri, 8 Apr 2011 10:34:51 +0000 (16:04 +0530)]
powerpc/85xx: Change CS timing params before changing CS properties on IFC

To make sure that machine change operation work successfully, change
timing parameters first before changing machine for chip select on IFC.

Signed-off-by: Dipen Dudhat <Dipen.Dudhat@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Add support to save environment in SD card on p1_p2_rdb
Priyanka Jain [Tue, 8 Feb 2011 07:47:15 +0000 (13:17 +0530)]
powerpc/85xx: Add support to save environment in SD card on p1_p2_rdb

If we boot from a SD card use it for the environment as well.

Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
Signed-off-by: Poonam Aggrwal <Poonam.Aggrwal@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agocommon: add a grepenv command
Kim Phillips [Tue, 5 Apr 2011 07:15:14 +0000 (07:15 +0000)]
common: add a grepenv command

u-boot environments, esp. when boards are shared across multiple
users, can get pretty large and time consuming to visually parse.
The grepenv command this patch adds can be used in lieu of printenv
to facilitate searching.  grepenv works like printenv but limits
its output only to environment strings (variable name and value
pairs) that match the user specified substring.

the following examples are on a board with a 5313 byte environment
that spans multiple screen pages:

Example 1:  summarize ethernet configuration:

=> grepenv eth TSEC
etact=FM1@DTSEC2
eth=FM1@DTSEC4
ethact=FM1@DTSEC2
eth1addr=00:E0:0C:00:8b:01
eth2addr=00:E0:0C:00:8b:02
eth3addr=00:E0:0C:00:8b:03
eth4addr=00:E0:0C:00:8b:04
eth5addr=00:E0:0C:00:8b:05
eth6addr=00:E0:0C:00:8b:06
eth7addr=00:E0:0C:00:8b:07
eth8addr=00:E0:0C:00:8b:08
eth9addr=00:E0:0C:00:8b:09
ethaddr=00:E0:0C:00:8b:00
netdev=eth0
uprcw=setenv ethact $eth;setenv filename p4080ds/R_PPSXX_0xe/rcw_0xe_2sgmii_rev2_high.bin;setenv start 0xe8000000;protect off all;run upimage;protect on all
upuboot=setenv ethact $eth;setenv filename u-boot.bin;setenv start eff80000;protect off all;run upimage;protect on all
upucode=setenv ethact $eth;setenv filename fsl_fman_ucode_P4080_101_6.bin;setenv start 0xef000000;protect off all;run upimage;protect on all
usdboot=setenv ethact $eth;tftp 1000000 $dir/$bootfile;tftp 2000000 $dir/initramfs.cpio.gz.uboot;tftp c00000 $dir/p4080ds-usdpaa.dtb;setenv bootargs root=/dev/ram rw console=ttyS0,115200 $othbootargs;bootm 1000000 2000000 c00000;
=>

Example 2: detect unused env vars:

=> grepenv etact
etact=FM1@DTSEC2
=>

Example 3: reveal hardcoded variables; e.g., for fdtaddr:

=> grepenv fdtaddr
fdtaddr=c00000
nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr
ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr
=> grep $fdtaddr
fdtaddr=c00000
my_boot=bootm 0x40000000 0x41000000 0x00c00000
my_dtb=tftp 0x00c00000 $prefix/p4080ds.dtb
nohvboot=tftp 1000000 $dir/$bootfile;tftp 2000000 $dir/$ramdiskfile;tftp c00000 $dir/$fdtfile;setenv bootargs root=/dev/ram rw ramdisk_size=0x10000000 console=ttyS0,115200;bootm 1000000 2000000 c00000;
=>

This patch also enables the grepenv command by default on
corenet_ds based boards (and repositions the DHCP command
entry to keep the list sorted).

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Cc: Kumar Gala <kumar.gala@freescale.com>
Cc: Andy Fleming <afleming@freescale.com>
13 years agopowerpc: fix implementation of out_8 to match the other out_XX functions
Timur Tabi [Fri, 3 Dec 2010 09:03:46 +0000 (09:03 +0000)]
powerpc: fix implementation of out_8 to match the other out_XX functions

Signed-off-by: Timur Tabi <timur@freescale.com>
13 years agoenv: fix env var autocompletion
Kim Phillips [Mon, 4 Apr 2011 15:17:45 +0000 (15:17 +0000)]
env: fix env var autocompletion

commit 560d424b6d7cd4205b062ad95f1b104bd4f8bcc3 "env: re-add
support for auto-completion" fell short of its description -
the 'used' logic in hmatch_r was reversed - 'used' is 0 if
the hash table entry is not used, or -1 if deleted.  This
patch makes hmatch_r actually match on valid ('used') entries,
instead of skipping them and failing to match anything.

typing 'printenv tft' and hitting 'tab' now displays valid
choices for variable names.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Tested-by: Mike Frysinger <vapier@gentoo.org>
13 years agompc52xx, digsy_mtc: protect default flash sectors
Heiko Schocher [Sun, 3 Apr 2011 20:10:22 +0000 (20:10 +0000)]
mpc52xx, digsy_mtc: protect default flash sectors

call flash_protect_default() to protect default sectors.

Signed-off-by: Heiko Schocher <hs@denx.de>
13 years agompc52xx, digsy_mtc: change phy addr for rev5 boards.
Heiko Schocher [Sun, 3 Apr 2011 20:10:20 +0000 (20:10 +0000)]
mpc52xx, digsy_mtc: change phy addr for rev5 boards.

- rev5 board has phy addr 1 -> adapt CONFIG_PHY_ADDR define
  in board config file.
- also fixup the phy addr entry in dts, before booting
  Linux.

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agoNET: Correct potential missing goto label in case statement.
Gray Remlin [Tue, 29 Mar 2011 10:21:32 +0000 (10:21 +0000)]
NET: Correct potential missing goto label in case statement.

If neither CONFIG_CMD_PING or CONFIG_CMD_SNTP are defined but
CONFIG_CMD_DNS is, a compile-time error will occur due to the
absence of a goto label.

Signed-off-by: Gray Remlin <gryrmln@gmail.com>
13 years agofix redundant environment for serial flash
thomas.langer@lantiq.com [Tue, 29 Mar 2011 02:35:14 +0000 (02:35 +0000)]
fix redundant environment for serial flash

This patch fixes problems in the handling of redundant environment in env_sf.c

The major problem are double calls of free() on the allocated buffers,
which damages the internal data of malloc and crashes on next call.

In addition, the selection of the active environment had errors and compiler
warnings, which are corrected by this patch.

Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Wed, 27 Apr 2011 19:48:09 +0000 (21:48 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

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

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

13 years agoMerge branch 'spi' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Wed, 27 Apr 2011 19:42:18 +0000 (21:42 +0200)]
Merge branch 'spi' of git://git.denx.de/u-boot-blackfin

13 years agoDon't grab memory for LCD if FB address is defined
Minkyu Kang [Sun, 24 Apr 2011 22:22:34 +0000 (22:22 +0000)]
Don't grab memory for LCD if FB address is defined

If 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>
13 years agonhk8815: move config targets from Makefile to boards.cfg
Alessandro Rubini [Sat, 16 Apr 2011 07:50:01 +0000 (07:50 +0000)]
nhk8815: move config targets from Makefile to boards.cfg

Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
13 years agonhk8815: add support for relocation
Alessandro Rubini [Sat, 16 Apr 2011 13:00:12 +0000 (13:00 +0000)]
nhk8815: add support for relocation

This patch defines all the needed symbols in the header file
and removes the now-unused config.mk in board directory.
Changes to board C file as requested.

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
13 years agonhk8815: remove platform.S, which was unused at link time
Alessandro Rubini [Sat, 16 Apr 2011 07:49:40 +0000 (07:49 +0000)]
nhk8815: remove platform.S, which was unused at link time

This source file, which I got by the vendor in their own port,
was not actually executing because lib-based compilation
didn't call lowlevel_init (we have CONFIG_SKIP_LOWLEVEL_INIT).
With the change to object-based linking, an undefined symbol in
this file started hitting in the final link.

Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
13 years agocpuat91: fix board support
Eric Benard [Sun, 3 Apr 2011 06:35:55 +0000 (06:35 +0000)]
cpuat91: fix board support

- fix board support following relocation changes
- switch to boards.cfg
- disable i2c to keep size under 128kiB (1 sector)

Signed-off-by: Eric Bénard <eric@eukrea.com>
13 years agoftsmc020: move ftsmc020 static mem controller to driver/mtd
Macpaul Lin [Fri, 15 Apr 2011 21:37:11 +0000 (21:37 +0000)]
ftsmc020: move ftsmc020 static mem controller to driver/mtd

Move the header file and definitions of ftsmc020
static memory control unit from a320 SoC folder to
"drivers/mtd" folder.

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

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoftsdmc020: move ftsdmc020.h to include/faraday
Macpaul Lin [Fri, 15 Apr 2011 21:37:10 +0000 (21:37 +0000)]
ftsdmc020: move ftsdmc020.h to include/faraday

Move the header file "ftsdmc020.h" (SDRAM Controller)
to "include/faraday" folder.

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

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agocpu9260: update board support
Eric Benard [Sun, 3 Apr 2011 06:35:54 +0000 (06:35 +0000)]
cpu9260: update board support

- update to new relocation code
- switch to boards.cfg
- get rid of LEGACY (still a little hack in .h to compile)
- add nand boot configuration
- boot tested for the following configurations :
9260 (64MB RAM & nor boot)
9260_nand (64MB RAM & nand boot)
9G20_128M (128MB RAM & nor boot)
9G20_nand_128M (128MB RAM & nand boot)
(nor boot is using lowlevel init)

Signed-off-by: Eric Bénard <eric@eukrea.com>
13 years agoFix the issue of _end symbol not being found while building
Sughosh Ganu [Sun, 10 Apr 2011 10:16:08 +0000 (10:16 +0000)]
Fix the issue of _end symbol not being found while building

Fix the nand_spl build for the hawkboard

Signed-off-by: Sughosh Ganu <urwithsughosh@gmail.com>
13 years agoARMV7: OMAP3: Add support for Comelit DIG297 board
Luca Ceresoli [Wed, 20 Apr 2011 15:02:08 +0000 (11:02 -0400)]
ARMV7: OMAP3: Add support for Comelit DIG297 board

Board support for the DIG297 board manufactured by Comelit Group SpA.
It is a custom board based on the BeagleBoard <http://beagleboard.org/> by
Texas Instruments.

The board support is based on the BeagleBoard implementation.

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>
13 years agoARMV7: OMAP3: Cleanup extern variables in mem.c
Luca Ceresoli [Wed, 20 Apr 2011 15:02:05 +0000 (11:02 -0400)]
ARMV7: OMAP3: Cleanup extern variables in mem.c

Removed boot_flash_* extern variables.
boot_flash_type was totally unused. The other ones were actually constants, so
they have been replaced with #defines in the board config files.

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>
13 years agoarm: Tegra2: Move clk/mux init to board_early_init_f, add GPIO init
Tom Warren [Thu, 14 Apr 2011 12:09:41 +0000 (12:09 +0000)]
arm: Tegra2: Move clk/mux init to board_early_init_f, add GPIO init

Signed-off-by: Tom Warren <twarren@nvidia.com>
13 years agoarm: Tegra2: GPIO: Add basic GPIO definitions
Tom Warren [Thu, 14 Apr 2011 12:09:40 +0000 (12:09 +0000)]
arm: Tegra2: GPIO: Add basic GPIO definitions

Signed-off-by: Tom Warren <twarren@nvidia.com>
13 years agoarm: Tegra2: Add missing PLLX init
Tom Warren [Thu, 14 Apr 2011 12:09:39 +0000 (12:09 +0000)]
arm: Tegra2: Add missing PLLX init

Signed-off-by: Tom Warren <twarren@nvidia.com>
13 years agoARM: fix stack pointer adjustment in board_init_f()
Eric Cooper [Thu, 14 Apr 2011 12:32:37 +0000 (12:32 +0000)]
ARM: fix stack pointer adjustment in board_init_f()

Since addr_sp is a byte address, it should be adjusted by 12 here.

Signed-off-by: Eric Cooper <ecc@cmu.edu>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Acked-by: Wolfgang Denk <wd@denx.de>
13 years agoarm: Tegra2: add support for A9 CPU init
Tom Warren [Thu, 14 Apr 2011 12:18:06 +0000 (12:18 +0000)]
arm: Tegra2: add support for A9 CPU init

Signed-off-by: Tom Warren <twarren@nvidia.com>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 years agoReplace obsolete e-mail address
Albert ARIBAUD [Fri, 22 Apr 2011 17:41:02 +0000 (19:41 +0200)]
Replace obsolete e-mail address

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
13 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>
13 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>
13 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>
13 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>
13 years agoOrion5x: Correct DRAM bank detection
Rogan Dawes [Wed, 13 Apr 2011 18:24:53 +0000 (23:54 +0530)]
Orion5x: Correct DRAM bank detection

13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 years agoMX31: drop warnings in get_cpu_rev
Stefano Babic [Thu, 21 Apr 2011 16:01:33 +0000 (18:01 +0200)]
MX31: drop warnings in get_cpu_rev

Drop warnings due to recent commit
ARM: mx31: Print the silicon version

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Fabio Estevam <fabio.estevam@freescale.com>
13 years agoMX5: factor out boot cause funciton to common code
Jason Liu [Wed, 20 Apr 2011 00:47:04 +0000 (00:47 +0000)]
MX5: factor out boot cause funciton to common code

factor out boot cause function to common code to avoid
the duplicate code in each board support package

Signed-off-by: Jason Liu <jason.hui@linaro.org>
13 years agoARM: MX31: Fix file name label
Fabio Estevam [Fri, 15 Apr 2011 16:54:50 +0000 (16:54 +0000)]
ARM: MX31: Fix file name label

Commit 5d2c154 (IMX: MX31: Cleanup include files and drop nasty #ifdef in drivers)
renamed mx31-imx-regs.h to imx-regs.h.

Change the file label accordingly.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agoMX31: mx31pdk: Make the board name simpler.
Fabio Estevam [Mon, 18 Apr 2011 07:38:12 +0000 (07:38 +0000)]
MX31: mx31pdk: Make the board name simpler.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agoMX31: Introduce get_reset_cause()
Fabio Estevam [Mon, 18 Apr 2011 07:38:11 +0000 (07:38 +0000)]
MX31: Introduce get_reset_cause()

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agoARM: mx31: Print the silicon version
Fabio Estevam [Mon, 11 Apr 2011 16:18:12 +0000 (16:18 +0000)]
ARM: mx31: Print the silicon version

Use the same method of the Linux kernel to print the MX31 silicon version on
boot.

Tested on a MX31PDK with a 2.0 silicon, where it shows:

CPU:   Freescale i.MX31 rev 2.0 at 531 MHz

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>