]> git.kernelconcepts.de Git - karo-tx-uboot.git/log
karo-tx-uboot.git
12 years agoadd some more pins to the 'unused' section to get pullups configured v1.2.3
Lothar Waßmann [Wed, 21 Mar 2012 16:42:41 +0000 (17:42 +0100)]
add some more pins to the 'unused' section to get pullups configured

12 years agoclear POWER_VDDMEMCTRL_ENABLE_ILIMIT which was accidentally left enabled after debugging
Lothar Waßmann [Wed, 21 Mar 2012 15:09:36 +0000 (16:09 +0100)]
clear POWER_VDDMEMCTRL_ENABLE_ILIMIT which was accidentally left enabled after debugging

12 years agoremove spl_power_init-fixed v1.2.2
Lothar Waßmann [Tue, 20 Mar 2012 11:38:26 +0000 (12:38 +0100)]
remove spl_power_init-fixed

12 years ago- add CONFIG_SYS_SPL_VDDD_VAL and CONFIG_SYS_SPL_BATT_BO_LEVEL
Lothar Waßmann [Tue, 20 Mar 2012 11:13:49 +0000 (12:13 +0100)]
- add CONFIG_SYS_SPL_VDDD_VAL and CONFIG_SYS_SPL_BATT_BO_LEVEL
- rename CONFIG_SPL_FIXED_BATT_SUPPLY to CONFIG_SYS_SPL_FIXED_BATT_SUPPLY
- add video_mode=VGA to default environment

12 years agoadd MUX_CONFIG_GPIO to GPIO pad settings
Lothar Waßmann [Tue, 20 Mar 2012 11:12:33 +0000 (12:12 +0100)]
add MUX_CONFIG_GPIO to GPIO pad settings

12 years agouse calloc() instead of malloc() to get memory initialized to zero
Lothar Waßmann [Tue, 20 Mar 2012 11:11:22 +0000 (12:11 +0100)]
use calloc() instead of malloc() to get memory initialized to zero

12 years agoimplement an option for fixed supply on battery input
Lothar Waßmann [Tue, 20 Mar 2012 11:09:52 +0000 (12:09 +0100)]
implement an option for fixed supply on battery input

12 years agounify implementation of mx28_power_set_vddd() and mx28_power_set_vddio() and introduce
Lothar Waßmann [Tue, 20 Mar 2012 11:07:41 +0000 (12:07 +0100)]
unify implementation of mx28_power_set_vddd() and mx28_power_set_vddio() and introduce
mx28_power_set_vdda() and mx28_power_set_vddmem()

12 years agomake voltages and brownout levels configurable
Lothar Waßmann [Tue, 20 Mar 2012 11:07:10 +0000 (12:07 +0100)]
make voltages and brownout levels configurable

12 years agomake power_regs global
Lothar Waßmann [Tue, 20 Mar 2012 11:06:32 +0000 (12:06 +0100)]
make power_regs global

12 years agomake functions static
Lothar Waßmann [Tue, 20 Mar 2012 11:04:28 +0000 (12:04 +0100)]
make functions static

12 years agocleanup spl_power_init.c:
Lothar Waßmann [Tue, 20 Mar 2012 11:01:45 +0000 (12:01 +0100)]
cleanup spl_power_init.c:
- use function mx28_get_batt_volt() instead of copying its code
- remove redundant ()
- remove empty lines
- remove bogus delay

12 years agoremove bogus delays and replace with polling busy bits where appropriate
Lothar Waßmann [Tue, 20 Mar 2012 09:32:04 +0000 (10:32 +0100)]
remove bogus delays and replace with polling busy bits where appropriate

12 years agouse clrsetbits_le32() for setting dividers
Lothar Waßmann [Tue, 20 Mar 2012 09:31:10 +0000 (10:31 +0100)]
use clrsetbits_le32() for setting dividers

12 years agodefine dbg() macro also in non-DEBUG case
Lothar Waßmann [Thu, 15 Mar 2012 13:29:25 +0000 (14:29 +0100)]
define dbg() macro also in non-DEBUG case

12 years agoSplit power_init for fixed batt supply in separate file
Lothar Waßmann [Thu, 15 Mar 2012 13:28:43 +0000 (14:28 +0100)]
Split power_init for fixed batt supply in separate file

12 years agoAdded dbg() macro and converted dprintf()
Lothar Waßmann [Thu, 15 Mar 2012 09:44:24 +0000 (10:44 +0100)]
Added dbg() macro and converted dprintf()

12 years agocleanup code and make 'power_regs' global
Lothar Waßmann [Thu, 15 Mar 2012 07:06:38 +0000 (08:06 +0100)]
cleanup code and make 'power_regs' global

12 years agoFIXED_BATT_SUPPLY working mostly
Lothar Waßmann [Wed, 14 Mar 2012 20:53:39 +0000 (21:53 +0100)]
FIXED_BATT_SUPPLY working mostly

12 years agodefine dummy macros or extern decls depending on DEBUG
Lothar Waßmann [Wed, 14 Mar 2012 20:53:15 +0000 (21:53 +0100)]
define dummy macros or extern decls depending on DEBUG

12 years agomake printhex lowercase
Lothar Waßmann [Wed, 14 Mar 2012 20:52:35 +0000 (21:52 +0100)]
make printhex lowercase

12 years agoFIXED_BATT_SUPPLY working!?
Lothar Waßmann [Wed, 14 Mar 2012 18:27:47 +0000 (19:27 +0100)]
FIXED_BATT_SUPPLY working!?

12 years agoupdated default environment
Lothar Waßmann [Thu, 15 Mar 2012 09:00:33 +0000 (10:00 +0100)]
updated default environment

12 years agoEnable the SSP base clock and set the divider
Lothar Waßmann [Thu, 15 Mar 2012 08:50:14 +0000 (09:50 +0100)]
Enable the SSP base clock and set the divider

12 years agoAdd missing mmc write protect callback
Lothar Waßmann [Thu, 15 Mar 2012 08:49:26 +0000 (09:49 +0100)]
Add missing mmc write protect callback

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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.

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

12 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()

12 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

12 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

12 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

12 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

12 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

12 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

12 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.

12 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

12 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()

12 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

12 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

12 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

12 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.

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

12 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

12 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()

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

12 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 ()

12 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

12 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

12 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

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

12 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

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

12 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

12 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

12 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

12 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

12 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

12 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

12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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

12 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

12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>