karo-tx-uboot.git
7 years agoAdded missing initialisation of chksum v1.2.1
Lothar Waßmann [Wed, 14 Mar 2012 07:03:14 +0000 (08:03 +0100)]
Added missing initialisation of chksum

7 years agoprevent crash in StELFFile::dumpSections() for certain section types v1.2
Lothar Waßmann [Fri, 9 Mar 2012 14:27:18 +0000 (15:27 +0100)]
prevent crash in StELFFile::dumpSections() for certain section types

7 years agoAdd u-boot.sb to the ALL-y target
Lothar Waßmann [Fri, 9 Mar 2012 14:26:10 +0000 (15:26 +0100)]
Add u-boot.sb to the ALL-y target

7 years agoUse the proper filename for elftosb input file
Lothar Waßmann [Fri, 9 Mar 2012 14:25:16 +0000 (15:25 +0100)]
Use the proper filename for elftosb input file

7 years agoproperly integrate 'elftosb' into the build environment
Lothar Waßmann [Fri, 9 Mar 2012 14:22:15 +0000 (15:22 +0100)]
properly integrate 'elftosb' into the build environment

7 years agopatched elftosb to include rel.dyn and dynsym sections in the output
Lothar Waßmann [Fri, 9 Mar 2012 14:12:37 +0000 (15:12 +0100)]
patched elftosb to include rel.dyn and dynsym sections in the output
and to exclude NOBITS sections to prevent the .bss section from
overwriting the overlayed .rel.dyn section

7 years agoAdded source of Freescale's 'elftosb' tool
Lothar Waßmann [Fri, 9 Mar 2012 13:36:13 +0000 (14:36 +0100)]
Added source of Freescale's 'elftosb' tool

7 years agoUpdate TX28 support and add support for TX28S AKA TX28-4130
Lothar Waßmann [Fri, 9 Mar 2012 08:45:04 +0000 (09:45 +0100)]
Update TX28 support and add support for TX28S AKA TX28-4130
Note: This code does not fully work on TX28 because mx28_power_init()
      does not properly support powering the chip from a fixed supply
      on the battery input rather than from the 5V supply.

7 years agoEnable caches
Lothar Waßmann [Fri, 9 Mar 2012 08:42:44 +0000 (09:42 +0100)]
Enable caches

7 years ago- Implement missing get_ticks(), get_timer() and get_tbclk() functions
Lothar Waßmann [Fri, 9 Mar 2012 08:23:32 +0000 (09:23 +0100)]
- Implement missing get_ticks(), get_timer() and get_tbclk() functions
  to fix build error
- Simplify the implementation of __udelay() and fix an OBIWAN error in
  the bogus rollover handling
  The period of the MX28_HW_DIGCTL_MICROSECONDS counter is 2^32, thus
  in the rollover case the correct calculation would be:
incr = 0x100000000 - old;
incr += new;
  instead of:
incr = 0xffffffff - old;
incr += new;
  But in 32bit arithmetic that is the same as:
incr = 0 - old;
incr += new;
  which is in no way different from the else path:
incr += new - old;
  Thus the 'if' clause is absolutely useless!
  Whoever invented this routine should read up on two's complement
  arithmetic!
  Subtracting two unsigned integers with a finite number of bits in
  two's complement arithmetic will _ALWAYS_ yield the difference
  between the two numbers (thus the number of ticks between two timer
  reads). There is NO NEED for any fancy rollover checks if one only
  deals with differences between timer ticks rather than absolute
  tick values!
- Add some debug code to verify the rollover handling
- Remove unused us_to_tick()

7 years ago- check for CONDIF_SYS_DCACHE_OFF or CONFIG_SYS_ARM_CACHE_WRITETHROUGH
Lothar Waßmann [Fri, 9 Mar 2012 08:02:11 +0000 (09:02 +0100)]
- check for CONDIF_SYS_DCACHE_OFF or CONFIG_SYS_ARM_CACHE_WRITETHROUGH
  to prevent driver from being used with WB cache and add an
  explanatory comment
- invalidate cache for packet buffers in fec_rbd_init()
- move cache flush/invalidate operations closer to the point where
  they are actually required
- use correct parameters for cache operations

7 years ago- fix the range of the cache flush/invalidate operations
Lothar Waßmann [Fri, 9 Mar 2012 07:39:39 +0000 (08:39 +0100)]
- fix the range of the cache flush/invalidate operations
- don't reset the BCH if it is already operational during NAND-boot,
  since doing this will lead to random read errors on boot
- use CONFIG_SYS_NAND_USE_FLASH_BBT

7 years agomake it possible to override CPPFLAGS from platform specific config.mk
Lothar Waßmann [Fri, 9 Mar 2012 07:27:44 +0000 (08:27 +0100)]
make it possible to override CPPFLAGS from platform specific config.mk

7 years agoAdd cache flush operation for dma descriptor
Lothar Waßmann [Fri, 9 Mar 2012 07:21:47 +0000 (08:21 +0100)]
Add cache flush operation for dma descriptor

7 years agoMake CONFIG_SHOW_ACTIVITY work with CONFIG_CMDLINE_EDITING support
Lothar Waßmann [Thu, 8 Mar 2012 14:00:46 +0000 (15:00 +0100)]
Make CONFIG_SHOW_ACTIVITY work with CONFIG_CMDLINE_EDITING support

7 years agoUse the correct parameters in the flush_dcache_range() and flush_cache() functions
Lothar Waßmann [Thu, 8 Mar 2012 13:17:32 +0000 (14:17 +0100)]
Use the correct parameters in the flush_dcache_range() and flush_cache() functions

7 years agoremove bogus cp_delay() function in arch/arm/lib/cache-cp15.c and
Lothar Waßmann [Thu, 8 Mar 2012 13:12:08 +0000 (14:12 +0100)]
remove bogus cp_delay() function in arch/arm/lib/cache-cp15.c and
replace it with an 'asm volatile' in the 'get_cr()' function.

7 years agomake search_bbt() less verbose
Lothar Waßmann [Thu, 8 Mar 2012 12:35:23 +0000 (13:35 +0100)]
make search_bbt() less verbose

7 years agomove DDR2 setup code to platform specific function mx28_ddr2_setup()
Lothar Waßmann [Tue, 6 Mar 2012 16:35:39 +0000 (17:35 +0100)]
move DDR2 setup code to platform specific function mx28_ddr2_setup()

7 years ago- make locally used functions static
Lothar Waßmann [Tue, 6 Mar 2012 16:05:32 +0000 (17:05 +0100)]
- make locally used functions static
- change constant 0x2a to ~21 to better reflect the value being
  written to CLKCTRL_FRAC0_EMIFRAC

7 years agoDon't set up the CPSR for SPL_BUILD
Lothar Waßmann [Tue, 6 Mar 2012 15:39:31 +0000 (16:39 +0100)]
Don't set up the CPSR for SPL_BUILD

In SPL_BUILD the ROM code will have set up the CPSR correctly and
Booting from USB may require interrupts to be enabled.
Also enhance the comment to reflect the fact, that interrupts will be
disabled when setting up the CPSR.

Remove bits that will be asserted from the clear mask

7 years agoAdd '.pc' to the list of 'quilt' files
Lothar Waßmann [Tue, 6 Mar 2012 15:36:32 +0000 (16:36 +0100)]
Add '.pc' to the list of 'quilt' files

7 years ago- fix typo
Lothar Waßmann [Tue, 6 Mar 2012 15:33:06 +0000 (16:33 +0100)]
- fix typo
- change early_delay() to use a rollover safe check even if it is not
  strictly necessary. If someone copies the code for other purposes
  it's better to be safe.

7 years agoAdd cache flush operations
Lothar Waßmann [Tue, 6 Mar 2012 15:28:55 +0000 (16:28 +0100)]
Add cache flush operations

7 years agoadd timeout to polling loop for FEC_TBD_READY
Lothar Waßmann [Tue, 6 Mar 2012 15:28:22 +0000 (16:28 +0100)]
add timeout to polling loop for FEC_TBD_READY

7 years agoMisc cleanups:
Lothar Waßmann [Tue, 6 Mar 2012 15:09:20 +0000 (16:09 +0100)]
Misc cleanups:
- remove unused return value from fec_[rt]x_task_(en|dis)able()
- remove useless casts
- change type of variable 'base' in fec_init() to (void *) to
  eliminate excessive type casts
- use ALIGN() macro where appropriate
- use calloc() to eliminate need for memset()

7 years agoAdd cache control functions
Lothar Waßmann [Tue, 6 Mar 2012 14:20:59 +0000 (15:20 +0100)]
Add cache control functions

7 years agofix grammatical error in comment and remove useless ()
Lothar Waßmann [Tue, 6 Mar 2012 14:19:34 +0000 (15:19 +0100)]
fix grammatical error in comment and remove useless ()

7 years agoFix order of enet clock pad setup and PLL enable according to i.MX28 Ref. Manual
Lothar Waßmann [Tue, 6 Mar 2012 14:15:21 +0000 (15:15 +0100)]
Fix order of enet clock pad setup and PLL enable according to i.MX28 Ref. Manual

7 years agoImplement cache functions for ARM-926ejs
Lothar Waßmann [Tue, 6 Mar 2012 14:12:32 +0000 (15:12 +0100)]
Implement cache functions for ARM-926ejs

7 years agoCombine asm statements to prevent the compiler from reordering them
Lothar Waßmann [Tue, 6 Mar 2012 14:12:07 +0000 (15:12 +0100)]
Combine asm statements to prevent the compiler from reordering them

7 years agoCorrect typo
Lothar Waßmann [Sun, 4 Mar 2012 11:32:46 +0000 (12:32 +0100)]
Correct typo

7 years agoMerge branch 'master' of ../denx-uboot into tx28
Lothar Waßmann [Fri, 24 Feb 2012 11:03:41 +0000 (12:03 +0100)]
Merge branch 'master' of ../denx-uboot into tx28

7 years agoCleanup after merge
Lothar Waßmann [Fri, 24 Feb 2012 10:56:32 +0000 (11:56 +0100)]
Cleanup after merge

7 years agomerged current version of git://git.denx.de/u-boot
Lothar Waßmann [Thu, 23 Feb 2012 13:40:17 +0000 (14:40 +0100)]
merged current version of git://git.denx.de/u-boot

7 years agoapplied patches from Freescale and Ka-Ro
Lothar Waßmann [Thu, 23 Feb 2012 12:42:25 +0000 (13:42 +0100)]
applied patches from Freescale and Ka-Ro

7 years agoMerge branch 'master' of git://git.denx.de/u-boot-mmc
Wolfgang Denk [Fri, 17 Feb 2012 22:54:46 +0000 (23:54 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-mmc

* 'master' of git://git.denx.de/u-boot-mmc:
  mmc: make mmc_send_status() more reliable
  mmc: fix card busy polling
  Tegra: mmc: Fixed handling of interrupts in timeouts.
  omap_hsmmc: Wait for CMDI to be clear

7 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Wolfgang Denk [Fri, 17 Feb 2012 22:54:17 +0000 (23:54 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx

* 'master' of git://git.denx.de/u-boot-mpc85xx:
  powerpc/8xxx:Add MPH controller support in USB device-tree fixup
  powerpc/8xxx: Cleanup USB device-tree fixup

7 years agoMerge branch 'trini@ti.com' of git://git.denx.de/u-boot-staging
Wolfgang Denk [Fri, 17 Feb 2012 22:52:52 +0000 (23:52 +0100)]
Merge branch 'trini@ti.com' of git://git.denx.de/u-boot-staging

* 'trini@ti.com' of git://git.denx.de/u-boot-staging:
  usb_ether: fix typo
  cmd_eeprom: typo
  doc: complete, typos

7 years agoMerge branch 'master' of git://git.denx.de/u-boot-x86
Wolfgang Denk [Fri, 17 Feb 2012 22:47:29 +0000 (23:47 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-x86

* 'master' of git://git.denx.de/u-boot-x86:
  x86: Convert board_init_f_r to a processing loop
  x86: Split init functions out of board.c
  x86: Move relocation code out of board.c
  x86: Move setup_pcat_compatibility() out of board.c
  x86: Move do_go_exec() out of board.c
  CHECKPATCH: arch/x86/lib/*
  x86: Tweak IDT and GDT for alignment and readability
  x86: Allow cache before copy to RAM
  x86: Create weak init_cache() and default enable_caches() functions
  x86: Set GD_FLG_RELOC after entering in-RAM copy of U-Boot
  x86: Use fs for global data
  x86: Rework relocation calculations
  x86: Simplify Flash-to-RAM code execution transition
  x86: Rework Global Descriptor Table loading
  x86: Remove GDR related magic numbers
  x86: Speed up copy-to-RAM and clear BSS operations
  x86: Import glibc memcpy implementation

7 years agommc: make mmc_send_status() more reliable
Jan Kloetzke [Sun, 5 Feb 2012 22:29:12 +0000 (22:29 +0000)]
mmc: make mmc_send_status() more reliable

Align the card status polling with the Linux kernel and retry the
command at least five times. Also some cards apparently mishandle the
status bits, so make sure to check the card state too.

Signed-off-by: Jan Kloetzke <jan.kloetzke@dspg.com>
Cc: Andy Fleming <afleming@gmail.com>
7 years agommc: fix card busy polling
Jan Kloetzke [Sun, 5 Feb 2012 22:29:11 +0000 (22:29 +0000)]
mmc: fix card busy polling

A MMC/SD card may always go into the programming state (and hence be
busy) after a block write. Therefore always check the card state, even
after single block writes. On the other hand there is no need to check
the card status after a read.

Also make sure that errors during busy polling are propagated upwards.

Signed-off-by: Jan Kloetzke <jan.kloetzke@dspg.com>
Cc: Andy Fleming <afleming@gmail.com>
7 years agoTegra: mmc: Fixed handling of interrupts in timeouts.
Tom Warren [Tue, 7 Feb 2012 06:17:16 +0000 (06:17 +0000)]
Tegra: mmc: Fixed handling of interrupts in timeouts.

We are seeing occasional timeouts in the Tegra mmc code when
we are reading from external MMC cards. These don't seem to be
detrimental if they are handled properly.  This CL properly
clears the "normal interrupt status register" (norintsts) in
error conditions.  If we don't do this, when we come back into
mmc_send_cmd() the register will still contain status from the
last transaction.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
7 years agoomap_hsmmc: Wait for CMDI to be clear
Tom Rini [Mon, 30 Jan 2012 11:22:25 +0000 (11:22 +0000)]
omap_hsmmc: Wait for CMDI to be clear

Before we can send a command we need both the DATI (command inhibit on
mmc_dat line) bit and CMDI (command inhibit on mmc_cmd line) are clear.
The previous behavior of only checking on DATI was insufficient on some
cards and incorrect behavior in any case.  This makes the code check
for both bits being clear and makes the error print more clear as
to what happened.  DATI_CMDDIS is removed as it was unused elsewhere
in the code and stood for 'DATI is set, cmds are disabled still'.

Fix originally spotted by Peter Bigot.

Tested-by: Peter A. Bigot <bigotp@acm.org>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Signed-off-by: Tom Rini <trini@ti.com>
Tested-by: Andreas Müller <schnitzeltony@googlemail.com>
7 years agopowerpc/8xxx:Add MPH controller support in USB device-tree fixup
ramneek mehresh [Fri, 10 Feb 2012 00:36:43 +0000 (00:36 +0000)]
powerpc/8xxx:Add MPH controller support in USB device-tree fixup

Add support for fixing usb mode and phy type for
MPH(Multi Port Host) USB controllers in device-tree nodes.
Required for socs like P3060, P5020, etc having MPH USB controller

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
7 years agopowerpc/8xxx: Cleanup USB device-tree fixup
ramneek mehresh [Mon, 6 Feb 2012 19:17:29 +0000 (19:17 +0000)]
powerpc/8xxx: Cleanup USB device-tree fixup

Some code cleanup done for USB device-tree fixup:
- handling error value returned from fdt_fixup_usb_mode_phy_type()
- using ARRAY_SIZE macro
- using snprintf instead of sprintf

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
7 years agousb_ether: fix typo
Peter Meerwald [Wed, 8 Feb 2012 05:31:54 +0000 (05:31 +0000)]
usb_ether: fix typo

Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
7 years agocmd_eeprom: typo
Peter Meerwald [Wed, 8 Feb 2012 05:31:53 +0000 (05:31 +0000)]
cmd_eeprom: typo

Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
7 years agodoc: complete, typos
Peter Meerwald [Wed, 8 Feb 2012 05:31:52 +0000 (05:31 +0000)]
doc: complete, typos

mention repeatable to README.commands and fix some typos

Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Tested-by: Marek Vasut <marek.vasut@gmail.com>
7 years agoMerge branch 'sf' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Mon, 13 Feb 2012 22:15:25 +0000 (23:15 +0100)]
Merge branch 'sf' of git://git.denx.de/u-boot-blackfin

* 'sf' of git://git.denx.de/u-boot-blackfin:
  README: Add description of SPI Flash (SF) command configuration
  sf command: allow default bus and chip selects
  sf: eeprom_m95xxx: set a sane default timeout
  sf: eeprom_m95xxx: fix up style

7 years agoMerge branch 'master' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Mon, 13 Feb 2012 22:13:22 +0000 (23:13 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-blackfin

* 'master' of git://git.denx.de/u-boot-blackfin:
  Blackfin: pata_bfin: fix printf warning
  Blackfin: bfin_nand: mark local func static
  linkage.h: move from blackfin to common includes
  Blackfin: br4: new board port
  Blackfin: add in/out le32 variants
  post: add blackfin to the post_time_ms list
  Blackfin: bf537-stamp: drop board reset workaround
  Blackfin: pr1: new board port

7 years agoREADME: Add description of SPI Flash (SF) command configuration
Eric Nelson [Tue, 31 Jan 2012 17:52:08 +0000 (10:52 -0700)]
README: Add description of SPI Flash (SF) command configuration

Acked-by: Jason Liu <jason.hui@linaro.org>
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
7 years agosf command: allow default bus and chip selects
Eric Nelson [Tue, 31 Jan 2012 17:52:07 +0000 (10:52 -0700)]
sf command: allow default bus and chip selects

This patch allows a board configuration file to provide default bus
and chip-selects for SPI flash so that first argument to the 'sf' command
is optional.

On boards that use the mxc_spi driver and a GPIO for chip select, this allows
a much simpler command line:
U-Boot> sf probe
instead of
U-Boot> sf probe 0x5300

Tested-by: Jason Liu <jason.hui@linaro.org>
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
7 years agosf: eeprom_m95xxx: set a sane default timeout
Mike Frysinger [Fri, 20 Jan 2012 03:31:01 +0000 (22:31 -0500)]
sf: eeprom_m95xxx: set a sane default timeout

Every board currently defines this to the same value, so just default
to that to avoid having to make everyone do the same thing.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
7 years agosf: eeprom_m95xxx: fix up style
Mike Frysinger [Fri, 20 Jan 2012 03:25:55 +0000 (22:25 -0500)]
sf: eeprom_m95xxx: fix up style

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
7 years agoBlackfin: pata_bfin: fix printf warning
Mike Frysinger [Fri, 3 Feb 2012 13:04:22 +0000 (08:04 -0500)]
Blackfin: pata_bfin: fix printf warning

pata_bfin.c: In function 'bfin_ata_identify':
pata_bfin.c:887:2: warning: format '%x' expects type 'unsigned int',
but argument 2 has type 'lbaint_t'

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
7 years agoBlackfin: bfin_nand: mark local func static
Mike Frysinger [Thu, 2 Feb 2012 23:54:20 +0000 (18:54 -0500)]
Blackfin: bfin_nand: mark local func static

This devready func is only used in this driver, so mark it static.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
7 years agolinkage.h: move from blackfin to common includes
Macpaul Lin [Thu, 1 Dec 2011 04:32:10 +0000 (12:32 +0800)]
linkage.h: move from blackfin to common includes

1. Add linkage.h support from blackfin to common include,
   which is a reduced version from Linux.
2. Add architecture part support of linkage.h into blackfin
3. Fix include path of in blackfin related to linkage.h
   due to header file movement.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
7 years agoBlackfin: br4: new board port
Dimitar Penev [Fri, 25 Nov 2011 21:05:54 +0000 (16:05 -0500)]
Blackfin: br4: new board port

This adds support for the BR4 Appliance.  It is a quad channel ISDN BRI
board based on Blackfin BF537 CPU.

Signed-off-by: Dimitar Penev <dpn@switchfin.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
7 years agoBlackfin: add in/out le32 variants
Mike Frysinger [Fri, 25 Nov 2011 20:57:42 +0000 (15:57 -0500)]
Blackfin: add in/out le32 variants

These are rarely used, but the post code does currently, so add small
redirect hacks for that.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
7 years agopost: add blackfin to the post_time_ms list
Mike Frysinger [Fri, 25 Nov 2011 20:56:30 +0000 (15:56 -0500)]
post: add blackfin to the post_time_ms list

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
7 years agoBlackfin: bf537-stamp: drop board reset workaround
Mike Frysinger [Sat, 19 Nov 2011 20:38:06 +0000 (15:38 -0500)]
Blackfin: bf537-stamp: drop board reset workaround

The bf537-stamp shouldn't need this SPI flash workaround.  It was added
by accident a long time ago through a convoluted series of steps which
originated from a customer board (not the bf537-stamp).  So drop it to
keep people from incorrectly adding it to their own boards.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
7 years agoBlackfin: pr1: new board port
Dimitar Penev [Sat, 19 Nov 2011 20:02:00 +0000 (15:02 -0500)]
Blackfin: pr1: new board port

This add support for the PR1 Appliance - Asterisk based ISDN PRI PBX.
This board is Blackfin BF537 based.  The schematics are not fully opened.

Signed-off-by: Dimitar Penev <dpn@switchfin.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
7 years agoarm, davinci: Add support for the Calimain board from OMICRON electronics
Christian Riesch [Thu, 2 Feb 2012 00:44:42 +0000 (00:44 +0000)]
arm, davinci: Add support for the Calimain board from OMICRON electronics

This patch adds support for the Calimain board from
OMICRON electronics GmbH. The board features a Texas Instruments AM1808
SoC, 128 MB DDR2 memory, and 64 MB NOR flash memory connected to CS2 and
CS3.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
7 years agoChanges to move hawkboard to the new spl infrastructure
Sughosh Ganu [Thu, 2 Feb 2012 00:44:41 +0000 (00:44 +0000)]
Changes to move hawkboard to the new spl infrastructure

This patch moves hawkboard to the new spl infrastructure from the
older nand_spl one.

Removed the hawkboard_nand_config build option -- The spl code now
gets compiled with hawkboard_config, after building the main u-boot
image, using the CONFIG_SPL_TEXT_BASE. Modified the README.hawkboard
to reflect the same.

Signed-off-by: Sughosh Ganu <urwithsughosh@gmail.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Cc: Christian Riesch <christian.riesch@omicron.at>
Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Cc: Tom Rini <trini@ti.com>
Acked-by: Christian Riesch <christian.riesch@omicron.at>
7 years agoarm, arm926ejs: Enable icache only if CONFIG_SYS_ICACHE_OFF is not defined
Christian Riesch [Thu, 2 Feb 2012 00:44:40 +0000 (00:44 +0000)]
arm, arm926ejs: Enable icache only if CONFIG_SYS_ICACHE_OFF is not defined

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Tom Rini <trini@ti.com>
Acked-by: Heiko Schocher <hs@denx.de>
Tested-by: Heiko Schocher <hs@denx.de>
7 years agoarm, arm926ejs: Add option CONFIG_SYS_EXCEPTION_VECTORS_HIGH
Christian Riesch [Thu, 2 Feb 2012 00:44:39 +0000 (00:44 +0000)]
arm, arm926ejs: Add option CONFIG_SYS_EXCEPTION_VECTORS_HIGH

The V bit of the c1 register of CP15 should not be cleared on DA850
SoCs since they have no valid memory at 0x00000000. This patch
introduces a configuration option CONFIG_SYS_EXCEPTION_VECTORS_HIGH
that allows setting the correct value for the V bit.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Reported-by: Sughosh Ganu <urwithsughosh@gmail.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Tom Rini <trini@ti.com>
Cc: Sughosh Ganu <urwithsughosh@gmail.com>
Cc: Heiko Schocher <hs@denx.de>
7 years agoarm, arm926ejs: Flush the data cache before disabling it
Sughosh Ganu [Thu, 2 Feb 2012 00:44:38 +0000 (00:44 +0000)]
arm, arm926ejs: Flush the data cache before disabling it

The current implementation invalidates the data cache before turning it
off and causes problems on the hawkboard. See the discussion in
http://lists.denx.de/pipermail/u-boot/2012-January/115212.html

According to the ARM926EJ-S Technical Reference Manual, the cache should
be flushed instead.

Also fix the comments to match code.

Signed-off-by: Sughosh Ganu <urwithsughosh@gmail.com>
Rebased and corrected commit message.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Tom Rini <trini@ti.com>
Acked-by: Heiko Schocher <hs@denx.de>
Tested-by: Heiko Schocher <hs@denx.de>
7 years agoarm, arm926ejs: Do cpu critical inits only for boards that require it
Christian Riesch [Thu, 2 Feb 2012 00:44:37 +0000 (00:44 +0000)]
arm, arm926ejs: Do cpu critical inits only for boards that require it

This patch reverts commit ca4b55800ed74207c35271bf7335a092d4955416
"arm, arm926ejs: always do cpu critical inits" since it impacts all
arm926ejs based configurations and caused problems, e.g., with
the hawkboard.

Instead the patch removes the CONFIG_SKIP_LOWLEVEL_INIT defines
from the board configurations that need low level initialization.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Tom Rini <trini@ti.com>
Cc: Heiko Schocher <hs@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
Tested-by: Heiko Schocher <hs@denx.de>
7 years agoarm, davinci: Add lowlevel_init for SoCs other than DM644X
Christian Riesch [Thu, 2 Feb 2012 00:44:36 +0000 (00:44 +0000)]
arm, davinci: Add lowlevel_init for SoCs other than DM644X

The low level initialization code in
arch/arm/cpu/arm926ejs/davinci/lowlevel_init.S was written for
DM644X SoCs only. This patch makes the lowlevel_init function in this
file a dummy function for SoCs other than DM644X.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Tom Rini <trini@ti.com>
Cc: Sergey Kubushyn <ksi@koi8.net>
Acked-by: Heiko Schocher <hs@denx.de>
Tested-by: Heiko Schocher <hs@denx.de>
7 years agoARMV7: Fix duplicate use of "b" parameter in ACTIM_CTRLA definition
Peter Barada [Tue, 7 Feb 2012 11:02:40 +0000 (11:02 +0000)]
ARMV7: Fix duplicate use of "b" parameter in ACTIM_CTRLA definition

ACTIM_CTRLA macro errently passes "b" parameter to ACTIM_CTRLA_TRAS()
instead of "c".  To make usage more clear, replace all single-letter
macro parameters with more descriptive parameter names.

Signed-off-by: Peter Barada <peter.barada@logicpd.com>
7 years agoomap3logic: Add missing GPMC pinmux for LAN92xx access
Peter Barada [Tue, 7 Feb 2012 08:15:51 +0000 (08:15 +0000)]
omap3logic: Add missing GPMC pinmux for LAN92xx access

The initial checkin dropped pinmux setup for GPMC pins A6-A10, D0-D7 and
NCS1/2 necessary to access LAN92xx on Logic OMAP35x/DM37x modules.

Signed-off-by: Peter Barada <peter.barada@logicpd.com>
7 years agoOMAP4460: Reduce MPU clock speed from 920 to 700
Aneesh V [Mon, 6 Feb 2012 05:07:43 +0000 (05:07 +0000)]
OMAP4460: Reduce MPU clock speed from 920 to 700

We do not have thermal management or Smartreflex
enabled at U-Boot level. So, it's better to stick
to OPP100 for MPU instead of the OPP Turbo that is
used now. Adjust the VDD_MPU accordingly.

Tested-by: Sebastien Jan <s-jan@ti.com>
Signed-off-by: Aneesh V <aneesh@ti.com>
7 years agodavinci: add support for printing clock frequency
Hadli, Manjunath [Mon, 6 Feb 2012 00:30:44 +0000 (00:30 +0000)]
davinci: add support for printing clock frequency

add support for printing various clock frequency info found
in SOC such as ARM core frequency, DSP core frequency and DDR
frequency as part of bdinfo command.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Cc: Tom Rini <trini@ti.com>
7 years agodavinci: remove macro CONFIG_DISPLAY_CPUINFO
Hadli, Manjunath [Mon, 6 Feb 2012 00:30:43 +0000 (00:30 +0000)]
davinci: remove macro CONFIG_DISPLAY_CPUINFO

remove the macro CONFIG_DISPLAY_CPUINFO as it is no longer
required. This is because clock info will be printed as part
'bdinfo' command and also remove support print_cpuinfo() as it will
no longer be called.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Cc: Tom Rini <trini@ti.com>
7 years agodoc: fix typos
Peter Meerwald [Thu, 2 Feb 2012 12:51:03 +0000 (12:51 +0000)]
doc: fix typos

Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
7 years agoomap3: fix comment typos
Peter Meerwald [Thu, 2 Feb 2012 12:51:02 +0000 (12:51 +0000)]
omap3: fix comment typos

Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
7 years agobeagle: fix typos
Peter Meerwald [Thu, 2 Feb 2012 12:51:01 +0000 (12:51 +0000)]
beagle: fix typos

Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
7 years agoAM3517: Changed default clock rate for AM3517
Schuyler Patton [Wed, 1 Feb 2012 07:31:44 +0000 (07:31 +0000)]
AM3517: Changed default clock rate for AM3517

AM3517: Changed default clock rate for AM3517

Changed #define MPU_M_13_ES2 from 0x1F4 to 0x258, this allows
the AM3517 to boot up at 600MHz instead of 500 MHz

Signed-off-by: Schuyler Patton <spatton@ti.com>
CC: Tom Rini <tom.rini@gmail.com>
CC: Simon Schwarz <simonschwarzcor@gmail.com>
CC: Stefano Babic <sbabic@denx.de>
7 years agomcx: support for HTKW mcx board
Ilya Yanok [Tue, 7 Feb 2012 23:30:22 +0000 (23:30 +0000)]
mcx: support for HTKW mcx board

This patch adds support for the HTKW mcx AM3517-based board.
Serial, Ethernet, NAND, MMC, RTC, EHCI USB host and both
NAND and MMC SPLs are supported.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Tom Rini <tom.rini@gmail.com>
Cc: Detlev Zundel <dzu@denx.de>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
7 years agoARM: omap3: Added Teejet mt_ventoux
Stefano Babic [Tue, 7 Feb 2012 23:29:34 +0000 (23:29 +0000)]
ARM: omap3: Added Teejet mt_ventoux

The mt_ventoux board is a custom board using
the Technexion TAM3517 module.

The patch fixes also the mtdparts variable in the
TAM3517 common configuration file.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Ilya Yanok <yanok@emcraft.com>
CC: Igor Grinberg <grinberg@compulab.co.il>
CC: Tom Rini <tom.rini@gmail.com>
Cc: Detlev Zundel <dzu@denx.de>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
7 years agoOMAP3: TAM3517: update ehci interface
Stefano Babic [Tue, 7 Feb 2012 23:28:58 +0000 (23:28 +0000)]
OMAP3: TAM3517: update ehci interface

Changed the EHCI interface using the ulpi framework.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Tom Rini <tom.rini@gmail.com>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
7 years agoOMAP4: ehci-omap: enable ehci-omap for panda boards
Govindraj.R [Mon, 6 Feb 2012 03:55:37 +0000 (03:55 +0000)]
OMAP4: ehci-omap: enable ehci-omap for panda boards

For panda initialise the mux pins for ehci usage and
enable ehci in omap4_panda config file.

Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
Tested-by: Stefano Babic <sbabic@denx.de>
7 years agoOMAP4: clock-common: Move the usb dppl configuration to new func
Govindraj.R [Mon, 6 Feb 2012 03:55:36 +0000 (03:55 +0000)]
OMAP4: clock-common: Move the usb dppl configuration to new func

usb dpll configuration is done only part of non-essential
dppl configuration however if CONFIG_USB_EHCI_OMAP is defined
we may have to configure usb dpll's for proper functioning
of usb modules. So move the usb dppl configuration to a new func.
and utilise the same during essential dpll configuration.

Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
Tested-by: Stefano Babic <sbabic@denx.de>
7 years agoOMAP3+: Clock: Adding ehci clock enabling
Govindraj.R [Mon, 6 Feb 2012 03:55:35 +0000 (03:55 +0000)]
OMAP3+: Clock: Adding ehci clock enabling

Adding ehci clock enabling mechanism part of clock framework.
When essential clocks are enabled during init phase usb host
clocks can also be enabled from clock framework.

Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
Tested-by: Stefano Babic <sbabic@denx.de>
7 years agoehci-omap: Clean up added ehci-omap.c
Govindraj.R [Mon, 6 Feb 2012 03:55:34 +0000 (03:55 +0000)]
ehci-omap: Clean up added ehci-omap.c

Clean up added ehci-omap.c and make it generic for re-use across
omap-soc having same ehci ip block. Also pass the modes to be configured
from board file and configure the ports accordingly. All usb layers
are not cache aligned, till then keep cache off for usb ops as ehci will use
internally dma for all usb ops.

* Add a generic common header ehci-omap.h having common ip block
  data and reg shifts.
* Rename and modify ehci-omap3 to ehci.h retain only conflicting
  sysc reg shifts remove others and move to common header file.
* pass the board data for beagle/panda accordinly to use
  ehci ports.

Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
7 years agoehci-omap: driver for EHCI host on OMAP3
Ilya Yanok [Mon, 6 Feb 2012 03:55:33 +0000 (03:55 +0000)]
ehci-omap: driver for EHCI host on OMAP3

Taken from Beagle code. Tested on mcx board (AM3517-based).

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Tested-by: Stefano Babic <sbabic@denx.de>
7 years agousb: ulpi: Add omap-ulpi-view port support
Govindraj.R [Mon, 6 Feb 2012 03:55:32 +0000 (03:55 +0000)]
usb: ulpi: Add omap-ulpi-view port support

Based on discussion from this thread [1].
Adding omap-view port that helps us in using the generic ulpi
framework for any ulpi phy ops using the INSNREG05_ULPI viewport
reg available on omap platform.

Currently ehci ports are available on omap3/4 platforms so enable the same
for beagle and panda, patch is tested on the same boards.

Thanks to Igor Grinberg <grinberg@compulab.co.il> for reviewing the
omap-ehci patches and suggesting this approach.

[1]: http://www.mail-archive.com/u-boot@lists.denx.de/msg76076.html

Tested-by: Stefano Babic <sbabic@denx.de>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
7 years agousb: ulpi: Extend the existing ulpi framework.
Govindraj.R [Mon, 6 Feb 2012 03:55:31 +0000 (03:55 +0000)]
usb: ulpi: Extend the existing ulpi framework.

Extend the existing ulpi viewport framework
to pass the port number information for any ulpi
ops. Fix the usage of ulpi api's accordingly.

Tested-by: Stefano Babic <sbabic@denx.de>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
7 years agoARM: Convert spear3xx and spear6xx boards to boards.cfg
Amit Virdi [Thu, 9 Feb 2012 00:25:33 +0000 (00:25 +0000)]
ARM: Convert spear3xx and spear6xx boards to boards.cfg

Signed-off-by: Amit Virdi <amit.virdi@st.com>
Acked-by: Stefan Roese <sr@denx.de>
7 years agoSMDK5250: Add ethernet support
Chander Kashyap [Thu, 9 Feb 2012 01:26:19 +0000 (01:26 +0000)]
SMDK5250: Add ethernet support

This patch enable support for SMC911X based ethernet device.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
7 years agoEXYNOS: SMDK5250: Add MMC SPL support
Chander Kashyap [Sun, 5 Feb 2012 23:01:48 +0000 (23:01 +0000)]
EXYNOS: SMDK5250: Add MMC SPL support

This patch adds support for MMC SPL booting.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
7 years agoEXYNOS: Add SMDK5250 board support
Chander Kashyap [Sun, 5 Feb 2012 23:01:47 +0000 (23:01 +0000)]
EXYNOS: Add SMDK5250 board support

SMDK5250 board is based on Samsungs EXYNOS5250 SoC.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
7 years agoARM: EXYNOS: Add support for Exynos5 based SoCs
Chander Kashyap [Sun, 5 Feb 2012 23:01:46 +0000 (23:01 +0000)]
ARM: EXYNOS: Add support for Exynos5 based SoCs

Samsung's ARM Cortex-A15 based SoCs are known as Exynos5 series of
SoCs. This patch adds the support for Exynos5.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
7 years agoExynos: Clock.c: Use CONFIG_SYS_CLK_FREQ macro
Chander Kashyap [Sun, 5 Feb 2012 23:01:45 +0000 (23:01 +0000)]
Exynos: Clock.c: Use CONFIG_SYS_CLK_FREQ macro

CONFIG_SYS_CLK_FREQ_C210 macro giving notion of S5PC2XX (Exynos4)
architecture. Replace CONFIG_SYS_CLK_FREQ_C210 with CONFIG_SYS_CLK_FREQ
to make it generic for exynos architecture.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
7 years agoTRATS: set gpio of UART correctly
Minkyu Kang [Thu, 26 Jan 2012 10:51:54 +0000 (19:51 +0900)]
TRATS: set gpio of UART correctly

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: HeungJun, Kim <riverful.kim@samsung.com>
Cc: Chander Kashyap <chander.kashyap@linaro.org>
7 years agoTRATS: use the generic watchdog timer
Minkyu Kang [Wed, 18 Jan 2012 06:56:47 +0000 (15:56 +0900)]
TRATS: use the generic watchdog timer

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: HeungJun, Kim <riverful.kim@samsung.com>
7 years agoS5P: support generic watchdog timer
Minkyu Kang [Wed, 18 Jan 2012 06:55:05 +0000 (15:55 +0900)]
S5P: support generic watchdog timer

This patch adds support the generic watchdog timer for s5pc1xx and exynos4

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: HeungJun, Kim <riverful.kim@samsung.com>
7 years agoORIGEN: remove duplicated MACH_TYPE define
Minkyu Kang [Wed, 18 Jan 2012 08:36:35 +0000 (17:36 +0900)]
ORIGEN: remove duplicated MACH_TYPE define

Since MACH_TYPE_ORIGEN is updated on mach-types,
remove the MACH_TYPE_ORIGEN on config file.

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Cc: Chander Kashyap <chander.kashyap@linaro.org>
7 years agoARMV7: Exynos4: Add support for TRATS board
HeungJun, Kim [Mon, 16 Jan 2012 21:13:05 +0000 (21:13 +0000)]
ARMV7: Exynos4: Add support for TRATS board

This patch adds support for Samsung TRATS board

Signed-off-by: HeungJun, Kim <riverful.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>