]> git.dujemihanovic.xyz Git - u-boot.git/log
u-boot.git
17 years agoMerge branch 'master' of /home/stefan/git/u-boot/u-boot into for-1.3.2-ver2
Stefan Roese [Thu, 27 Dec 2007 18:37:26 +0000 (19:37 +0100)]
Merge branch 'master' of /home/stefan/git/u-boot/u-boot into for-1.3.2-ver2

17 years agoRemove CPCI440 board
Matthias Fuchs [Thu, 27 Dec 2007 16:03:46 +0000 (17:03 +0100)]
Remove CPCI440 board

This board never left prototyping state and it
became a millstone round my neck. So remove it.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
17 years agoAdd support for Korat PPC440EPx board
Larry Johnson [Thu, 27 Dec 2007 16:28:51 +0000 (11:28 -0500)]
Add support for Korat PPC440EPx board

These patches add support for the PPC440EPx-based "Korat" board to
U-Boot.  They are based primarily on support for the Sequoia board.

Signed-off-by: Larry Johnson <lrj@acm.org>
17 years agoAdd configuration file for Korat board
Larry Johnson [Sat, 22 Dec 2007 20:16:25 +0000 (15:16 -0500)]
Add configuration file for Korat board

This patch supplies the configuration file for the Korat PPC440EPx-
processor board.

Signed-off-by: Larry Johnson <lrj@acm.org>
17 years agoAdd denali_data_eye.o and denali_spd_ddr2.o to PPC4xx Makefile
Larry Johnson [Sat, 22 Dec 2007 20:16:11 +0000 (15:16 -0500)]
Add denali_data_eye.o and denali_spd_ddr2.o to PPC4xx Makefile

Signed-off-by: Larry Johnson <lrj@acm.org>
17 years agoAdd 440EPx DDR2 SPD DIMM support
Larry Johnson [Thu, 27 Dec 2007 15:54:48 +0000 (10:54 -0500)]
Add 440EPx DDR2 SPD DIMM support

This patch adds SPD DDR2 support for the 440EPx ("Denali") SDRAM
controller.  It should also work on the 440GRx.  It is based on the DDR2
SPD code for the 440EP/440EPx, but makes no provision for DDR1 support.

This code has been tested on prototype Korat boards with three Kingston
DIMMS: 512 MiB ECC (one rank), 512 MiB non-ECC (one rank) and 1 GiB ECC
(two ranks).  The Korat board has a single DIMM socket, but support has
been provided (though not tested) for boards with two DIMM sockets.

Signed-off-by: Larry Johnson <lrj@acm.org>
17 years agoCopy 440EPx/GRx SDRAM data-eye search to common directory
Larry Johnson [Sat, 22 Dec 2007 20:15:30 +0000 (15:15 -0500)]
Copy 440EPx/GRx SDRAM data-eye search to common directory

This patch creates a non-board-specific file for performing the SDRAM
data-eye search.  It also adds ECC error checking to the test of valid
data on readback when ECC is enabled.

Signed-off-by: Larry Johnson <lrj@acm.org>
17 years agoAdd definitions for 440EPx/GRx SDRAM controller to ppc440.h
Larry Johnson [Sat, 22 Dec 2007 20:15:13 +0000 (15:15 -0500)]
Add definitions for 440EPx/GRx SDRAM controller to ppc440.h

This patch adds the Denali SDRAM controller definitions to "ppc440.h".
It also fixes two typos in the definitions, so the board-specific
"sdram.h" files containing these definitions are also fixed to avoid
compiler warnings.

Signed-off-by: Larry Johnson <lrj@acm.org>
17 years agoAdd Ethernet 1000BASE-X support for PPC4xx
Larry Johnson [Thu, 27 Dec 2007 15:50:55 +0000 (10:50 -0500)]
Add Ethernet 1000BASE-X support for PPC4xx

This patch adds a new switch: "CONFIG_PHY_DYNAMIC_ANEG".  When this symbol
is defined, the PHY will advertise it's capabilities for autonegotiation
based on the capabilities shown in the PHY's status registers, including
1000BASE-X.  When "CONFIG_PHY_DYNAMIC_ANEG" is not defined, the PHY will
advertise hard-coded capabilities, as before.

Signed-off-by: Larry Johnson <lrj@acm.org>
17 years agoAdd driver for National Semiconductor LM73 temperature sensor
Larry Johnson [Thu, 27 Dec 2007 14:52:17 +0000 (09:52 -0500)]
Add driver for National Semiconductor LM73 temperature sensor

This driver is based on the driver for the LM75.

Signed-off-by: Larry Johnson <lrj@acm.org>
17 years agoAdd driver for STMicroelectronics M41T60 RTC
Larry Johnson [Sat, 22 Dec 2007 20:14:00 +0000 (15:14 -0500)]
Add driver for STMicroelectronics M41T60 RTC

This driver is based on the driver for the M41T11.  In the intended
application, the RTC will be powered by a large capacitor, rather than a
battery.  The driver therefore checks to see whether the RTC has lost
power.  The chip's OUT bit is normally reset from its power-up state.  If
the OUT bit is read as set, or if the date and time are not valid, then the
RTC is assumed to have lost power, and its date and time are reset to
1900-01-01 00:00:00.

Support for adjusting the speed of the clock to improve accuracy is
provided through an environment variable.

Signed-off-by: Larry Johnson <lrj@acm.org>
17 years agoUse out_be32() and friends to access memory-mapped registers in sequoia.c
Larry Johnson [Sat, 22 Dec 2007 20:34:39 +0000 (15:34 -0500)]
Use out_be32() and friends to access memory-mapped registers in sequoia.c

Signed-off-by: Larry Johnson <lrj@acm.org>
17 years agoUse definitions from "asm-ppc/mmu.h" in init.S for Sequoia
Larry Johnson [Sat, 22 Dec 2007 20:34:20 +0000 (15:34 -0500)]
Use definitions from "asm-ppc/mmu.h" in init.S for Sequoia

Signed-off-by: Larry Johnson <lrj@acm.org>
17 years agoCosmetic changes to ECC POST for AMCC Denali core
Larry Johnson [Sat, 22 Dec 2007 20:23:50 +0000 (15:23 -0500)]
Cosmetic changes to ECC POST for AMCC Denali core

Signed-off-by: Larry Johnson <lrj@acm.org>
17 years agoppc4xx: Fix compilation problem in 405 cache POST test
Stefan Roese [Wed, 26 Dec 2007 19:20:19 +0000 (20:20 +0100)]
ppc4xx: Fix compilation problem in 405 cache POST test

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoppc4xx: Move virtual address of POST cache test to bigger address
Stefan Roese [Sat, 22 Dec 2007 11:20:09 +0000 (12:20 +0100)]
ppc4xx: Move virtual address of POST cache test to bigger address

On Sequoia & LWMON5 the virtual address of the POST cache test is now
moved to a bigger address. This enables usage of more memory on those
boards.

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoppc4xx: Fix problem in 44x cache POST routine
Stefan Roese [Sat, 22 Dec 2007 11:18:26 +0000 (12:18 +0100)]
ppc4xx: Fix problem in 44x cache POST routine

As repoted by Larry Johnson, running "diag run cache" caused a crash
in U-Boot. This problem was introduced by a patch that removed the
TLB entry for the cache test after the test has completed. Since this
TLB was only setup once, a 2nd attempt to run this cache test
failed with a crash. Now this TLB entry is created every time the
routine is called.

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoppc4xx: Update Makalu fdt support
Stefan Roese [Fri, 21 Dec 2007 06:51:29 +0000 (07:51 +0100)]
ppc4xx: Update Makalu fdt support

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoppc4xx: Add fdt support to AMCC Katmai eval board
Stefan Roese [Wed, 19 Dec 2007 08:05:40 +0000 (09:05 +0100)]
ppc4xx: Add fdt support to AMCC Katmai eval board

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoppc4xx: fdt: Cleanup setup of cpu node setup
Stefan Roese [Tue, 18 Dec 2007 07:44:51 +0000 (08:44 +0100)]
ppc4xx: fdt: Cleanup setup of cpu node setup

Now the cpu node setup ("timebase-frequency" and "clock-frequency") is
without using the absolute path to the cpu node. This makes it possible
to use this U-Boot version with both versions of cpu-node naming
"cpu@0" and the former "PowerPC,440EPx@0".

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoppc4xx: Fix lwmon5 compilation problem
Stefan Roese [Mon, 17 Dec 2007 16:26:21 +0000 (17:26 +0100)]
ppc4xx: Fix lwmon5 compilation problem

Now that the 440EPx ECC test is not board specific anymore
remove this Makefile.

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoFix ppc4xx clear_bss() code
Anatolij Gustschin [Wed, 5 Dec 2007 16:43:20 +0000 (17:43 +0100)]
Fix ppc4xx clear_bss() code

ppc4xx clear_bss() fails if BSS segment size is not
divisible by 4 without remainder. This patch provides
fix for this problem.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
17 years agoPPC4xx: Minimal changes to add vxWorks support
Niklaus Giger [Fri, 30 Nov 2007 17:35:11 +0000 (18:35 +0100)]
PPC4xx: Minimal changes to add vxWorks support

Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
17 years agoppc4xx: Add CONFIG_BOOTP_SUBNETMASK to Sequoia board config
Markus Klotzbücher [Fri, 23 Nov 2007 12:09:18 +0000 (13:09 +0100)]
ppc4xx: Add CONFIG_BOOTP_SUBNETMASK to Sequoia board config

When using dhcp/bootp the "netmask" environment variable is not
set because CONFIG_BOOTP_SUBNETMASK is not defined. But usually this is
desireable, so the following patch adds this this option to the board
config.

Signed-off-by: Markus Klotzbuecher <mk@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoFix/enhance ECC POST for 440EPx/GRx
Larry Johnson [Sat, 27 Oct 2007 16:48:15 +0000 (12:48 -0400)]
Fix/enhance ECC POST for 440EPx/GRx

This patch allows the ECC POST to be used for different boards with the
PPC440 Denali SDRAM controller.  Modifications include skipping the test
if ECC is not enabled (as for non-ECC DIMMs) and adding synchronization
to prevent timing errors.

Signed-off-by: Larry Johnson <lrj@acm.org>
17 years agoPPC4xx: Move/rename ECC POST for 440EPx/GRx
Larry Johnson [Sat, 27 Oct 2007 16:48:05 +0000 (12:48 -0400)]
PPC4xx: Move/rename ECC POST for 440EPx/GRx

Signed-off-by: Larry Johnson <lrj@acm.org>
17 years agoppc4xx: use correct io accessors for 4xx ethernet POST
Matthias Fuchs [Fri, 14 Dec 2007 10:20:33 +0000 (11:20 +0100)]
ppc4xx: use correct io accessors for 4xx ethernet POST

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
17 years agoppc4xx: fix flush + invalidate_dcache_range arguments
Matthias Fuchs [Fri, 14 Dec 2007 10:19:56 +0000 (11:19 +0100)]
ppc4xx: fix flush + invalidate_dcache_range arguments

flush + invalidate_dcache_range() expect the start and stop+1 address.
So the stop address is the first address behind (!) the range.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
17 years agoppc4xx: fdt: use fdt_fixup_ethernet()
Stefan Roese [Fri, 14 Dec 2007 07:41:29 +0000 (08:41 +0100)]
ppc4xx: fdt: use fdt_fixup_ethernet()

By using aliases in the dts file, the ethernet node fixup is
much easier with the recently added functions.

Please note that the dts file needs the aliases for this to work.

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoppc4xx: Bring 4xx fdt support up-to-date
Stefan Roese [Thu, 13 Dec 2007 13:52:53 +0000 (14:52 +0100)]
ppc4xx: Bring 4xx fdt support up-to-date

This patch update the 4xx fdt support. It enabled fdt booting
on the AMCC Kilauea and Sequoia for now. More can follow later
quite easily.

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Thu, 27 Dec 2007 01:01:15 +0000 (02:01 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

17 years agoSome configuration updates for the TQM5200 based TB5200 board:
Martin Krause [Mon, 12 Nov 2007 09:56:17 +0000 (10:56 +0100)]
Some configuration updates for the TQM5200 based TB5200 board:

- enable command line history
- increase malloc space (because of bigger flash sectors)

Signed-off-by: Martin Krause <martin.krause@tqs.de>
17 years agoTQM8xx: use the CFI flash driver on all TQM8xx boards
Martin Krause [Thu, 27 Sep 2007 09:10:08 +0000 (11:10 +0200)]
TQM8xx: use the CFI flash driver on all TQM8xx boards

Signed-off-by: Martin Krause <martin.krause@tqs.de>
17 years agoTQM885D: adjust for doubled flash sector size + some minor fixes
Martin Krause [Wed, 26 Sep 2007 15:55:56 +0000 (17:55 +0200)]
TQM885D: adjust for doubled flash sector size + some minor fixes

Signed-off-by: Martin Krause <martin.krause@tqs.de>
17 years agoTQM885D: Exchanged SDRAM timing by a more relaxed timing.
Jens Gehrlein [Wed, 26 Sep 2007 15:55:54 +0000 (17:55 +0200)]
TQM885D: Exchanged SDRAM timing by a more relaxed timing.

CAS-Latency=2, Write Recovery Time tWR=2
The max. supported bus frequency is 66 MHz. Therefore, changed
threshold to switch from 1:1 mode to 2:1 from 80 MHz to 66 MHz.

Signed-off-by: Martin Krause <martin.krause@tqs.de>
17 years agoTQM885D: use calculated cpuclk instead of measuring it
Martin Krause [Wed, 26 Sep 2007 15:55:56 +0000 (17:55 +0200)]
TQM885D: use calculated cpuclk instead of measuring it

On the TQM885D the measurement of cpuclk with the PIT reference
timer ist not necessary. Since all module variants use the same
external 10 MHz oscillator, the cpuclk only depends on the PLL
configuration - which is readable by software.

Signed-off-by: Martin Krause <martin.krause@tqs.de>
17 years agoTQM885D: fix SDRAM refresh
Jens Gehrlein [Thu, 27 Sep 2007 12:54:46 +0000 (14:54 +0200)]
TQM885D: fix SDRAM refresh

At 133 MHz the current SDRAM refresh rate is too fast
(measured 4 * 1.17 us).
CFG_MAMR_PTA changes from 39 to 128. This result
in a refresh rate of 4 * 7.8 us at the default clock
66 MHz. At 133 MHz the value will be then 4 * 3.8 us.
This is a compromise until a new method is found to
adjust the refresh rate.

Signed-off-by: Martin Krause <martin.krause@tqs.de>
17 years agoTQM860M: Support for 10col SDRAMs, max. 128 MiB
Jens Gehrlein [Thu, 27 Sep 2007 12:54:46 +0000 (14:54 +0200)]
TQM860M: Support for 10col SDRAMs, max. 128 MiB

Signed-off-by: Martin Krause <martin.krause@tqs.de>
17 years agoFix coding style issues; update CHANGELOG.
Wolfgang Denk [Thu, 27 Dec 2007 00:52:50 +0000 (01:52 +0100)]
Fix coding style issues; update CHANGELOG.

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Thu, 27 Dec 2007 00:13:05 +0000 (01:13 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

17 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-sh
Wolfgang Denk [Thu, 27 Dec 2007 00:12:56 +0000 (01:12 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-sh

Conflicts:

MAINTAINERS

Signed-off-by: Wolfgang Denk <wd@denx.de>
17 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Wed, 26 Dec 2007 23:46:17 +0000 (00:46 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

17 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-avr32
Wolfgang Denk [Wed, 26 Dec 2007 23:46:08 +0000 (00:46 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-avr32

17 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mpc85xx
Wolfgang Denk [Wed, 26 Dec 2007 23:35:03 +0000 (00:35 +0100)]
Merge branch 'master' of git://www.denx.de/git/u-boot-mpc85xx

17 years agoMerge branch 'testing' of git://www.denx.de/git/u-boot-fdt
Wolfgang Denk [Wed, 26 Dec 2007 23:22:24 +0000 (00:22 +0100)]
Merge branch 'testing' of git://www.denx.de/git/u-boot-fdt

17 years agocfi_flash: Add manufacturer-specific fixups
Haavard Skinnemoen [Fri, 14 Dec 2007 14:36:18 +0000 (15:36 +0100)]
cfi_flash: Add manufacturer-specific fixups

Run fixups based on the JEDEC manufacturer ID independent of the
command set ID.

This changes current behaviour: Previously, geometry reversal for AMD
chips were done based on the command set ID, while they are now done
based on the JEDEC manufacturer and device ID.

Also add fixup for top-boot Atmel chips. A fixup is needed for
AT49BV6416(T) too, but since u-boot currently only reads the low byte
of the device ID, there's no way to tell it apart from AT49BV642D,
which should not have this fixup. Since AT49BV642D support is
necessary to get ATNGW100 board support into mainline, I've commented
out the fixup for now.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agocfi_flash: Add cmdset-specific init functions
Haavard Skinnemoen [Fri, 14 Dec 2007 14:36:17 +0000 (15:36 +0100)]
cfi_flash: Add cmdset-specific init functions

Move things like reading JEDEC IDs and fixing up geometry reversal
into separate functions. The geometry reversal fixup is now performed
by altering the qry structure directly, which makes the sector init
code slightly cleaner.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agocfi_flash: Read whole QRY structure in one go
Haavard Skinnemoen [Fri, 14 Dec 2007 14:36:16 +0000 (15:36 +0100)]
cfi_flash: Read whole QRY structure in one go

Read out the whole CFI Standard Query structure after successful cfi
identification. This allows subsequent code to access this information
directly without having to go through flash_read_uchar() and friends.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Fix logic inversion in disable_interrupts()
Haavard Skinnemoen [Mon, 17 Dec 2007 10:02:44 +0000 (11:02 +0100)]
AVR32: Fix logic inversion in disable_interrupts()

disable_interrupts() should return nonzero if interrupts were
_enabled_ before, not disabled.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Enable interrupts at bootup
Haavard Skinnemoen [Fri, 14 Dec 2007 15:51:22 +0000 (16:51 +0100)]
AVR32: Enable interrupts at bootup

The timer code depends on the timer interrupt to keep track of the
upper 32 bits of the cycle counter. This obviously doesn't work when
interrupts are disabled the whole time.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Fix wrong pin setup for USART3
Haavard Skinnemoen [Thu, 15 Nov 2007 09:03:45 +0000 (10:03 +0100)]
AVR32: Fix wrong pin setup for USART3

As reported by Gerhard Berghofer:

in "gpio_enable_usart3" the correct pins for USART 3 are PB17 and PB18
instead of PB18 and PB19.

which is obviously correct. There's currently no code that uses
USART3, but custom boards may run into problems.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoREADME: Remove ATSTK1000 daughterboard list
Haavard Skinnemoen [Thu, 1 Nov 2007 11:44:20 +0000 (12:44 +0100)]
README: Remove ATSTK1000 daughterboard list

As noted by Kim Phillips, these lists tend to become out of date.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAdd ATSTK100[234] to MAINTAINERS
Haavard Skinnemoen [Tue, 30 Oct 2007 13:56:36 +0000 (14:56 +0100)]
Add ATSTK100[234] to MAINTAINERS

Add all the ATSTK1000 daughterboards to MAINTAINERS along with their
"mother". Also update the entry for ATSTK1000 to be not only about the
AP7000 CPU; it's intended to handle all CPUs in the AT32AP family.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Add support for the ATSTK1004 board
Haavard Skinnemoen [Mon, 29 Oct 2007 12:02:54 +0000 (13:02 +0100)]
AVR32: Add support for the ATSTK1004 board

ATSTK1004 is a daughterboard for ATSTK1000 with the AT32AP7002 CPU,
which is a derivative of AT32AP7000.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Add support for the ATSTK1003 board
Haavard Skinnemoen [Mon, 29 Oct 2007 12:02:54 +0000 (13:02 +0100)]
AVR32: Add support for the ATSTK1003 board

ATSTK1003 is a daughterboard for ATSTK1000 with the AT32AP7001 CPU,
which is a derivative of AT32AP7000.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Make some AT32AP700x peripherals optional
Haavard Skinnemoen [Mon, 29 Oct 2007 12:23:33 +0000 (13:23 +0100)]
AVR32: Make some AT32AP700x peripherals optional

Add a chip-features file providing definitions of the form

AT32AP700x_CHIP_HAS_<peripheral>

to indicate the availability of the given peripheral on the currently
selected chip.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoAVR32: Rename at32ap7000 -> at32ap700x
Haavard Skinnemoen [Mon, 29 Oct 2007 12:09:56 +0000 (13:09 +0100)]
AVR32: Rename at32ap7000 -> at32ap700x

The SoC-specific code for all the AT32AP700x CPUs is practically
identical; the only difference is that some chips have less features
than others. By doing this rename, we can add support for the AP7000
derivatives simply by making some features conditional.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoatmel_mci: Show SR when block read fails
Haavard Skinnemoen [Fri, 29 Jun 2007 16:22:34 +0000 (18:22 +0200)]
atmel_mci: Show SR when block read fails

Show controller status as well as card status when an error occurs
during block read.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agocfi_flash: Use map_physmem() and unmap_physmem()
Haavard Skinnemoen [Thu, 13 Dec 2007 11:56:34 +0000 (12:56 +0100)]
cfi_flash: Use map_physmem() and unmap_physmem()

Use map_physmem() and unmap_physmem() to convert from physical to
virtual addresses. This gives the arch a chance to provide an uncached
mapping for flash accesses.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoIntroduce map_physmem() and unmap_physmem()
Haavard Skinnemoen [Thu, 13 Dec 2007 11:56:33 +0000 (12:56 +0100)]
Introduce map_physmem() and unmap_physmem()

map_physmem() returns a virtual address which can be used to access a
given physical address without involving the cache. unmap_physmem()
should be called when the virtual address returned by map_physmem() is
no longer needed.

This patch adds a stub implementation which simply returns the
physical address cast to a uchar * for all architectures except AVR32,
which converts the physical address to an uncached virtual mapping.
unmap_physmem() is a no-op on all architectures, but if any
architecture needs to do such mappings through the TLB, this is the
hook where those TLB entries can be invalidated.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agocfi_flash: Introduce read and write accessors
Haavard Skinnemoen [Thu, 13 Dec 2007 11:56:32 +0000 (12:56 +0100)]
cfi_flash: Introduce read and write accessors

Introduce flash_read{8,16,32,64) and flash_write{8,16,32,64} and use
them to access the flash memory. This makes it clearer when the flash
is actually being accessed; merely dereferencing a volatile pointer
looks just like any other kind of access.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoImplement __raw_{read,write}[bwl] on all architectures
Haavard Skinnemoen [Thu, 13 Dec 2007 11:56:31 +0000 (12:56 +0100)]
Implement __raw_{read,write}[bwl] on all architectures

This adds implementations of __raw_read[bwl] and __raw_write[bwl] to
m68k, ppc, nios and nios2. The m68k and ppc implementations were taken
from Linux.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agocfi_flash: Reorder functions and eliminate extra prototypes
Haavard Skinnemoen [Sat, 6 Oct 2007 16:55:36 +0000 (18:55 +0200)]
cfi_flash: Reorder functions and eliminate extra prototypes

Reorder the functions in cfi_flash.c so that each function only uses
functions that have been defined before it. This allows the static
prototype declarations near the top to be eliminated and might allow
gcc to do a better job inlining functions.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agocfi_flash: Make some needlessly global functions static
Haavard Skinnemoen [Thu, 13 Dec 2007 11:56:29 +0000 (12:56 +0100)]
cfi_flash: Make some needlessly global functions static

Make functions not declared in any header file static.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agocfi_flash: Break long lines
Haavard Skinnemoen [Thu, 13 Dec 2007 11:56:28 +0000 (12:56 +0100)]
cfi_flash: Break long lines

This patch tries to keep all lines in the cfi_flash driver below 80
columns. There are a few lines left which don't fit this requirement
because I couldn't find any trivial way to break them (i.e. it would
take some restructuring, which I intend to do in a later patch.)

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
17 years agoCFI: synchronize command offsets with Linux CFI driver
Bartlomiej Sieka [Tue, 11 Dec 2007 12:59:57 +0000 (13:59 +0100)]
CFI: synchronize command offsets with Linux CFI driver

Fixes non-working CFI Flash on the Inka4x0 board.

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
17 years agoHandle MPC85xx PCIe reset errata (PCI-Ex 38)
Kumar Gala [Fri, 7 Dec 2007 18:17:34 +0000 (12:17 -0600)]
Handle MPC85xx PCIe reset errata (PCI-Ex 38)

On the MPC85xx boards that have PCIe enable the PCIe errata fix.
(MPC8544DS, MPC8548CDS, MPC8568MDS).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoUpdate Freescale MPC85xx ADS/CDS/MDS board config
Kumar Gala [Fri, 7 Dec 2007 18:04:30 +0000 (12:04 -0600)]
Update Freescale MPC85xx ADS/CDS/MDS board config

* Enabled CONFIG_CMD_ELF

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoHandle Asynchronous DDR clock on 85xx
Kumar Gala [Fri, 7 Dec 2007 10:59:26 +0000 (04:59 -0600)]
Handle Asynchronous DDR clock on 85xx

The MPC8572 introduces the concept of an asynchronous DDR clock with
regards to the platform clock.

Introduce get_ddr_freq() to report the DDR freq regardless of sync/async
mode.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoUpdate Freescale MPC85xx ADS/CDS/MDS board config
Kumar Gala [Thu, 29 Nov 2007 16:34:28 +0000 (10:34 -0600)]
Update Freescale MPC85xx ADS/CDS/MDS board config

* Removed some misc environment setup
* Enabled CONFIG_CMDLINE_EDITING

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoMove the MPC8541/MPC8555/MPC8548 CDS board under board/freescale.
Kumar Gala [Thu, 29 Nov 2007 16:47:44 +0000 (10:47 -0600)]
Move the MPC8541/MPC8555/MPC8548 CDS board under board/freescale.

Minor path corrections needed to ensure buildability.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoMove the MPC8540 ADS board under board/freescale.
Kumar Gala [Thu, 29 Nov 2007 16:16:18 +0000 (10:16 -0600)]
Move the MPC8540 ADS board under board/freescale.

Minor path corrections needed to ensure buildability.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoMove the MPC8560 ADS board under board/freescale.
Kumar Gala [Thu, 29 Nov 2007 16:14:50 +0000 (10:14 -0600)]
Move the MPC8560 ADS board under board/freescale.

Minor path corrections needed to ensure buildability.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoMove the MPC8568 MDS board under board/freescale.
Kumar Gala [Thu, 29 Nov 2007 16:13:47 +0000 (10:13 -0600)]
Move the MPC8568 MDS board under board/freescale.

Minor path corrections needed to ensure buildability.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoUse standard LAWAR_TRGT_IF_* defines for LAW setup on 85xx
Kumar Gala [Thu, 29 Nov 2007 08:18:59 +0000 (02:18 -0600)]
Use standard LAWAR_TRGT_IF_* defines for LAW setup on 85xx

We already had defines for LAWAR_TRGT_IF_* that we should use
rather than creating new ones.  Also, added some missing defines for
PCIE targets.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoStop using immap_t on 85xx
Kumar Gala [Thu, 29 Nov 2007 08:10:09 +0000 (02:10 -0600)]
Stop using immap_t on 85xx

In the future the offsets to various blocks may not be in same location.
Move to using CFG_MPC85xx_*_ADDR as the base of the registers
instead of getting it via &immap.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoRemove CONFIG_OF_FLAT_TREE related code from mpc85xx since we now use libfdt
Kumar Gala [Thu, 29 Nov 2007 07:23:09 +0000 (01:23 -0600)]
Remove CONFIG_OF_FLAT_TREE related code from mpc85xx since we now use libfdt

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoUpdate MPC8568 MDS to use libfdt
Kumar Gala [Thu, 29 Nov 2007 07:06:19 +0000 (01:06 -0600)]
Update MPC8568 MDS to use libfdt

Updated the MPC8568 MDS config to use libfdt and assume use of aliases for
ethernet, pci, and serial for the various fixups that are done.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoAdd PCI Express support on MPC8568MDS
Haiying Wang [Wed, 14 Nov 2007 20:52:06 +0000 (15:52 -0500)]
Add PCI Express support on MPC8568MDS

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoUpdate MPC85xx CDS to use libfdt
Kumar Gala [Thu, 29 Nov 2007 06:11:44 +0000 (00:11 -0600)]
Update MPC85xx CDS to use libfdt

Updated the MPC85xx CDS config to use libfdt and assume use of aliases for
ethernet, pci, and serial for the various fixups that are done.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoUpdate MPC8540 ADS to use libfdt
Kumar Gala [Thu, 29 Nov 2007 04:54:27 +0000 (22:54 -0600)]
Update MPC8540 ADS to use libfdt

Updated the MPC8540 ADS config to use libfdt and assume use of aliases for
ethernet, pci, and serial for the various fixups that are done.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoUpdate MPC8560 ADS to use libfdt
Kumar Gala [Thu, 29 Nov 2007 04:40:31 +0000 (22:40 -0600)]
Update MPC8560 ADS to use libfdt

Updated the MPC8560 ADS config to use libfdt and assume use of aliases for
ethernet, pci, and serial for the various fixups that are done.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoStop using immap_t for cpm offset on 85xx
Kumar Gala [Wed, 28 Nov 2007 06:36:33 +0000 (00:36 -0600)]
Stop using immap_t for cpm offset on 85xx

In the future the offsets to various blocks may not be in same location.
Move to using CFG_MPC85xx_CPM_ADDR as the base of the CPM registers
instead of getting it via &immap->im_cpm.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoStop using immap_t for guts offset on 85xx
Kumar Gala [Wed, 28 Nov 2007 05:25:02 +0000 (23:25 -0600)]
Stop using immap_t for guts offset on 85xx

In the future the offsets to various blocks may not be in same location.
Move to using CFG_MPC85xx_GUTS_ADDR as the base of the guts registers
instead of getting it via &immap->im_gur.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoUpdate MPC8544 DS config
Kumar Gala [Wed, 28 Nov 2007 04:42:34 +0000 (22:42 -0600)]
Update MPC8544 DS config

* Removed HAS_ETH2/HAS_ETH3 - MPC8544 only has TSEC1/2
* Removed some misc environment setup
* Moved to using fdtfile & fdtaddr as fdt env var names
* Enabled CONFIG_CMDLINE_EDITING

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoUpdate MPC8544DS to use libfdt
Kumar Gala [Mon, 26 Nov 2007 23:12:24 +0000 (17:12 -0600)]
Update MPC8544DS to use libfdt

Updated the MPC8544DS config to use libfdt and assume use of aliases for
ethernet, pci, and serial for the various fixups that are done.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoAdd libfdt based ft_cpu_setup for mpc85xx
Kumar Gala [Thu, 29 Nov 2007 06:15:30 +0000 (00:15 -0600)]
Add libfdt based ft_cpu_setup for mpc85xx

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoppc4xx: Correct GPIO offset in gpio_config()
Stefan Roese [Tue, 11 Dec 2007 12:38:19 +0000 (13:38 +0100)]
ppc4xx: Correct GPIO offset in gpio_config()

Thanks to Gary Jennejohn for pointing this out.

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agortc: Fix merging problem
Stefan Roese [Tue, 11 Dec 2007 10:46:01 +0000 (11:46 +0100)]
rtc: Fix merging problem

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoMerge commit 'u-boot/master' into for-1.3.1
Stefan Roese [Tue, 11 Dec 2007 10:34:54 +0000 (11:34 +0100)]
Merge commit 'u-boot/master' into for-1.3.1

Conflicts:

drivers/rtc/Makefile

17 years agoppc4xx: 405EX: Correctly enable USB pins
Stefan Roese [Sat, 8 Dec 2007 13:47:34 +0000 (14:47 +0100)]
ppc4xx: 405EX: Correctly enable USB pins

This patch selects the USB data pins in the 405EX GPIO and MFC (multi
function control) registers. This is done for the AMCC Kilauea and
Makalu eval boards.

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoCFI: Coding style cleanup
Stefan Roese [Sat, 8 Dec 2007 07:25:09 +0000 (08:25 +0100)]
CFI: Coding style cleanup

Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoCFI: support JEDEC flash roms in CFI-flash framework
Michael Schwingen [Fri, 7 Dec 2007 22:35:02 +0000 (23:35 +0100)]
CFI: support JEDEC flash roms in CFI-flash framework

The following patch adds support for non-CFI flash ROMS, by hooking into the
CFI flash code and using most of its code, as recently discussed here in the
thread "Mixing CFI and non-CFI flashs".

Signed-off-by: Michael Schwingen <michael@schwingen.org>
Signed-off-by: Stefan Roese <sr@denx.de>
17 years agoConditionally compile fdt_fixup_ethernet()
Gerald Van Baren [Thu, 29 Nov 2007 02:24:50 +0000 (21:24 -0500)]
Conditionally compile fdt_fixup_ethernet()

Fix compiler warnings: On boards that don't have ethernets defined,
don't compile fdt_fixup_ethernet().

17 years agoConvert boards that set memory node to use fdt_fixup_memory()
Kumar Gala [Wed, 28 Nov 2007 03:59:46 +0000 (21:59 -0600)]
Convert boards that set memory node to use fdt_fixup_memory()

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoAdded fdt_fixup_stdout that uses aliases to set linux,stdout-path
Kumar Gala [Mon, 26 Nov 2007 23:06:15 +0000 (17:06 -0600)]
Added fdt_fixup_stdout that uses aliases to set linux,stdout-path

We use a combination of the serialN alias and CONFIG_CONS_INDEX to
determine which serial alias we should set linux,stdout-path to.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoAdd common memory fixup function
Kumar Gala [Mon, 26 Nov 2007 20:57:45 +0000 (14:57 -0600)]
Add common memory fixup function

Add the function fdt_fixup_memory() to fixup the /memory node of the fdt

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoConditionally compile fdt_support.c
Kumar Gala [Mon, 26 Nov 2007 17:19:12 +0000 (11:19 -0600)]
Conditionally compile fdt_support.c

Modify common/Makefile to conditionally compile fdt_support.c based
on CONFIG_OF_LIBFDT.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoFix build breakage due to libfdt import
Kumar Gala [Mon, 26 Nov 2007 16:41:40 +0000 (10:41 -0600)]
Fix build breakage due to libfdt import

The IDS8247 got lost in the update and need an API update
do to rename of functions in libfdt.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
17 years agoAdd spaces around the = in the fdt print format.
Gerald Van Baren [Sat, 24 Nov 2007 00:43:20 +0000 (19:43 -0500)]
Add spaces around the = in the fdt print format.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>