oweals/u-boot.git
16 years agoFix out of tree building issue
Anatolij Gustschin [Wed, 26 Mar 2008 20:05:43 +0000 (21:05 +0100)]
Fix out of tree building issue

Currently U-Boot building in some external directory
doesn't work. This patch tries to fix the problem.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agoREADME: update documentation (availability, links, etc.)
Anatolij Gustschin [Wed, 26 Mar 2008 17:13:33 +0000 (18:13 +0100)]
README: update documentation (availability, links, etc.)

Fix typo in README

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agoFix compilation error in cmd_usb.c
Anatolij Gustschin [Wed, 26 Mar 2008 16:47:44 +0000 (17:47 +0100)]
Fix compilation error in cmd_usb.c

This patch fixes compilation error
cmd_usb.c: In function 'do_usb':
cmd_usb.c:552: error: void value not ignored as it ought to be

Signed-off-by: Anatolij Gustschin <agust@denx.de>
16 years agoAdd support for setting the I2C bus speed in fsl_i2c.c
Timur Tabi [Fri, 14 Mar 2008 22:45:29 +0000 (17:45 -0500)]
Add support for setting the I2C bus speed in fsl_i2c.c

Add support to the Freescale I2C driver (fsl_i2c.c) for setting and querying
the I2C bus speed.  Current 8[356]xx boards define the CFG_I2C_SPEED macro,
but fsl_i2c.c ignores it and uses conservative value when programming the
I2C bus speed.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
16 years agoCoding style cleanup, update CHANGELOG
Wolfgang Denk [Wed, 26 Mar 2008 23:03:57 +0000 (00:03 +0100)]
Coding style cleanup, update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agodrivers: add the support for Freescale SATA controller
Dave Liu [Wed, 26 Mar 2008 14:55:32 +0000 (22:55 +0800)]
drivers: add the support for Freescale SATA controller

Add the Freescale on-chip SATA controller driver to u-boot,
The SATA controller is used on the 837x and 8315 targets,
The driver can be used to load kernel, fs and dtb.

The features list:
- 1.5/3 Gbps link speed
- LBA48, LBA28 support
- DMA and FPDMA support
- Two ports support

Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agoata: add the readme for SATA command line
Dave Liu [Wed, 26 Mar 2008 14:54:44 +0000 (22:54 +0800)]
ata: add the readme for SATA command line

Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agoata: enable the sata initialize on boot up
Dave Liu [Wed, 26 Mar 2008 14:53:24 +0000 (22:53 +0800)]
ata: enable the sata initialize on boot up

Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agoata: add the fis struct for SATA
Dave Liu [Wed, 26 Mar 2008 14:52:36 +0000 (22:52 +0800)]
ata: add the fis struct for SATA

Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agoata: add the libata support
Dave Liu [Wed, 26 Mar 2008 14:51:44 +0000 (22:51 +0800)]
ata: add the libata support

add simple libata support in u-boot

Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agoata: make the ata_piix driver using new SATA framework
Dave Liu [Wed, 26 Mar 2008 14:50:45 +0000 (22:50 +0800)]
ata: make the ata_piix driver using new SATA framework

original ata_piix driver is using IDE framework, not real
SATA framework. For now, the ata_piix driver is only used
by x86 sc520_cdp board. This patch makes the ata_piix driver
use the new SATA framework, so

- remove the duplicated command stuff
- remove the CONFIG_CMD_IDE define in the sc520_cdp.h
- add the CONFIG_CMD_SATA define to sc520_cdp.h

Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agoata: add the support for SATA framework
Dave Liu [Wed, 26 Mar 2008 14:49:44 +0000 (22:49 +0800)]
ata: add the support for SATA framework

- add the SATA framework
- add the SATA command line

Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agoata: merge the header of ata_piix driver
Dave Liu [Wed, 26 Mar 2008 14:48:18 +0000 (22:48 +0800)]
ata: merge the header of ata_piix driver

move the sata.h from include/ to drivers/block/ata_piix.h

Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agoata: merge the ata_piix driver
Dave Liu [Wed, 26 Mar 2008 14:47:06 +0000 (22:47 +0800)]
ata: merge the ata_piix driver

move the cmd_sata.c from common/ to drivers/ata_piix.c,
the cmd_sata.c have some part of ata_piix controller drivers.
consolidate the driver to have better framework.

Signed-off-by: Dave Liu <daveliu@freescale.com>
16 years agoCoding style cleanup.
Wolfgang Denk [Wed, 26 Mar 2008 14:38:47 +0000 (15:38 +0100)]
Coding style cleanup.

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoAdd CFG_RTC_DS1337_NOOSC to turn off OSC output
Joakim Tjernlund [Wed, 26 Mar 2008 12:02:13 +0000 (13:02 +0100)]
Add CFG_RTC_DS1337_NOOSC to turn off OSC output

The default settings for RTC DS1337 keeps the OSC
output, 32,768 Hz, on. This add CFG_RTC_DS1337_NOOSC to
turn it off.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
16 years agoCleanup coding style, update CHANGELOG
Wolfgang Denk [Wed, 26 Mar 2008 10:48:46 +0000 (11:48 +0100)]
Cleanup coding style, update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master_merge_new-image' of /home/tur/git/u-boot
Wolfgang Denk [Wed, 26 Mar 2008 09:41:48 +0000 (10:41 +0100)]
Merge branch 'master_merge_new-image' of /home/tur/git/u-boot

16 years agoREADME: update documentation (availability, links, etc.)
Wolfgang Denk [Wed, 26 Mar 2008 09:40:12 +0000 (10:40 +0100)]
README: update documentation (availability, links, etc.)

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'new-image' of git://www.denx.de/git/u-boot-testing
Bartlomiej Sieka [Wed, 26 Mar 2008 08:38:06 +0000 (09:38 +0100)]
Merge branch 'new-image' of git://denx.de/git/u-boot-testing

Conflicts:

common/cmd_bootm.c
cpu/mpc8xx/cpu.c

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years agoUSB Storage, add meaningful return value
Aras Vaichas [Tue, 25 Mar 2008 01:09:07 +0000 (12:09 +1100)]
USB Storage, add meaningful return value

This patch changes the "usb storage" command to return success if it
finds a USB storage device, otherwise it returns error.

Signed-off-by: Markus Klotzbuecher <mk@denx.de>
16 years ago83xx/fdt_support: let user specifiy FSL USB Dual-Role controller role
Anton Vorontsov [Fri, 14 Mar 2008 20:20:18 +0000 (23:20 +0300)]
83xx/fdt_support: let user specifiy FSL USB Dual-Role controller role

Linux understands "host" (default), "peripheral" and "otg" (broken).
Though, U-Boot doesn't restrict dr_mode variable to these values (think
of renames in future).

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agotsec: fix link detection for the RTL8211B PHY
Anton Vorontsov [Fri, 14 Mar 2008 20:20:30 +0000 (23:20 +0300)]
tsec: fix link detection for the RTL8211B PHY

RTL8211B sets link state register after autonegotiation complete,
so with bootdelay=0 RTL8211B will report lack of the link.

To fix this, we should wait for aneg to complete, even if the
link is currently down.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc83xx: add "fsl,soc" and "fsl,immr" compatible fixups
Anton Vorontsov [Mon, 24 Mar 2008 17:47:09 +0000 (20:47 +0300)]
mpc83xx: add "fsl,soc" and "fsl,immr" compatible fixups

device_type = "soc" is being deprecated, newer device trees will use
"fsl,soc" and/or "fsl,immr" for the soc nodes.

This patch also adds clock-frequency property for soc nodes (the same
value as bus-frequency).

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years agoModified the DDR SDRAM clock control register to delay MCK/MCK_B 3/4 clock
Joe D'Abbraccio [Mon, 24 Mar 2008 17:00:59 +0000 (13:00 -0400)]
Modified the DDR SDRAM clock control register to delay MCK/MCK_B 3/4 clock

With the original value of 1/2 clock cycle delay, the system ran relatively
stable except when we run benchmarks that are intensive users of memory.
When I run samba connected disk with a HDBENCH test, the system locks-up
or reboots sporadically.

Signed-off by: Joe D'Abbraccio <Joe.D'abbraccio@freescale.com>

16 years agompc83xx: Set PCI I/O bus-address base to zero.
Scott Wood [Mon, 24 Mar 2008 17:44:13 +0000 (12:44 -0500)]
mpc83xx: Set PCI I/O bus-address base to zero.

The device trees for these boards describe PCI I/O as starting from
address zero from the device's perspective.

Placing I/O elsewhere may cause problems with certain PCI boards, and may
cause problems with Linux.

Signed-off-by: Scott Wood <scottwood@freescale.com>
16 years agompc83xx: MPC8360E-RDK: use 33.3(3)MHz CLKIN/SYS_CLK
Anton Vorontsov [Mon, 24 Mar 2008 17:47:05 +0000 (20:47 +0300)]
mpc83xx: MPC8360E-RDK: use 33.3(3)MHz CLKIN/SYS_CLK

At least on the "33MHz Pilot" board crystal is actually 33.3MHz.
This patch fixes "system time drifting" problem.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years agompc83xx: MPC8360E-RDK: define CONFIG_OF_STDOUT_VIA_ALIAS
Anton Vorontsov [Mon, 24 Mar 2008 17:47:02 +0000 (20:47 +0300)]
mpc83xx: MPC8360E-RDK: define CONFIG_OF_STDOUT_VIA_ALIAS

This is needed to update /choosen/linux,stdout-path properly.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years agompc83xx: MPC8360E-RDK: add dhcp command
Anton Vorontsov [Mon, 24 Mar 2008 17:47:00 +0000 (20:47 +0300)]
mpc83xx: MPC8360E-RDK: add dhcp command

Plus modify environment to use it and remove bootfile env variable,
it is internal and CONFIG_BOOTFILE is used for these purposes.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years agompc83xx: MPC8360E-RDK: rework ddr setup, enable ecc
Anton Vorontsov [Mon, 24 Mar 2008 17:46:57 +0000 (20:46 +0300)]
mpc83xx: MPC8360E-RDK: rework ddr setup, enable ecc

Current DDR setup easily causes memory corruption, this patch fixes it.

Also fix TIMING_CFG0_MRS_CYC definition.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years agompc83xx: MPC8360E-RDK: configure pario pins for AD7843 and FHCI
Anton Vorontsov [Mon, 24 Mar 2008 17:46:53 +0000 (20:46 +0300)]
mpc83xx: MPC8360E-RDK: configure pario pins for AD7843 and FHCI

This patch adds qe pario pins configuration for AD7843 ADC/Touchscreen
controller and FHCI (QE USB).

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years agompc83xx: MPC8360E-RDK: add support for NAND
Anton Vorontsov [Mon, 24 Mar 2008 17:46:51 +0000 (20:46 +0300)]
mpc83xx: MPC8360E-RDK: add support for NAND

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years agompc83xx: MPC8360E-RDK: use RGMII_RXID interface mode
Anton Vorontsov [Mon, 24 Mar 2008 17:46:46 +0000 (20:46 +0300)]
mpc83xx: MPC8360E-RDK: use RGMII_RXID interface mode

This is needed for BCM PHYs to work on this board.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years agouec: add support for Broadcom BCM5481 Gigabit PHY
Anton Vorontsov [Mon, 24 Mar 2008 17:46:34 +0000 (20:46 +0300)]
uec: add support for Broadcom BCM5481 Gigabit PHY

This patch adds basic support for Broadcom BCM5481 PHY.

RXD-RXC delay quirk comes from MPC8360E-RDK BSP source, author is
Peter Barada <peterb@logicpd.com>.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years agouec: add support for RGMII_RXID interface mode
Anton Vorontsov [Mon, 24 Mar 2008 17:46:28 +0000 (20:46 +0300)]
uec: add support for RGMII_RXID interface mode

PHY drivers will use it to setup software delay between RXD and RXC
signals.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years agouec: add support for gbit mii status readings
Anton Vorontsov [Mon, 24 Mar 2008 17:46:24 +0000 (20:46 +0300)]
uec: add support for gbit mii status readings

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years ago83xx: define CONFIG_OF_STDOUT_VIA_ALIAS for the MPC837XERDB boards
Anton Vorontsov [Mon, 24 Mar 2008 14:40:47 +0000 (17:40 +0300)]
83xx: define CONFIG_OF_STDOUT_VIA_ALIAS for the MPC837XERDB boards

This is primarily for the early console support.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years ago83xx: initialize serdes for MPC837XRDB boards
Anton Vorontsov [Mon, 24 Mar 2008 14:40:43 +0000 (17:40 +0300)]
83xx: initialize serdes for MPC837XRDB boards

On the MPC8377ERDB: 2 SATA and 2 PCI-E.
On the MPC8378ERDB: 2 PCI-E
On the MPC8379ERDB: 4 SATA

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years ago83xx: serdes setup routines
Anton Vorontsov [Mon, 24 Mar 2008 14:40:32 +0000 (17:40 +0300)]
83xx: serdes setup routines

This patch adds few routines to configure serdes on 837x targets.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years ago83xx: split COBJS onto separate lines
Anton Vorontsov [Mon, 24 Mar 2008 14:40:27 +0000 (17:40 +0300)]
83xx: split COBJS onto separate lines

..plus get rid of some #ifdefs in the .c files.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years ago83xx: nand support for MPC837XRDB boards
Anton Vorontsov [Mon, 24 Mar 2008 14:40:23 +0000 (17:40 +0300)]
83xx: nand support for MPC837XRDB boards

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
16 years agoEnable CONFIG_FLASH_SHOW_PROGRESS on the MPC8360EMDS.
Jerry Van Baren [Wed, 19 Mar 2008 01:44:41 +0000 (21:44 -0400)]
Enable CONFIG_FLASH_SHOW_PROGRESS on the MPC8360EMDS.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc8323erdb: remove RTC and add EEPROM
Michael Barkowski [Thu, 20 Mar 2008 17:15:39 +0000 (13:15 -0400)]
mpc8323erdb: remove RTC and add EEPROM

There's no on-board RTC on the MPC8323ERDB, but there is an EEPROM.

Signed-off-by: Michael Barkowski <michael.barkowski@freescale.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc8323erdb: Improve the system performance
Michael Barkowski [Thu, 20 Mar 2008 17:15:34 +0000 (13:15 -0400)]
mpc8323erdb: Improve the system performance

The following changes are based on kernel UCC ethernet performance:

1.  Make the CSB bus pipeline depth as 4, and enable the repeat mode
2.  Optimize transactions between QE and CSB.  Added CFG_SPCR_OPT
    switch to enable this setting.

The following changes are based on the App Note AN3369 and
verified to improve memory latency using LMbench:

3.  CS0_CONFIG[AP_n_EN] is changed from 1 to 0
4.  CS0_CONFIG[ODT_WR_CONFIG] set to 1.  Was a reserved setting
    previously.
5.  TIMING_CFG_1[WRREC] is changed from 3clks to 2clks  (based on
    Twr=15ns, and this was already the setting in DDR_MODE)
6.  TIMING_CFG_1[PRETOACT] is changed from 3clks to 2clks. (based on
    Trp=15ns)
7.  TIMING_CFG_1[ACTTOPRE] is changed from 9clks to 6clks. (based on
    Tras=40ns)
8.  TIMING_CFG_1[ACTTORW] is changed from 3clks to 2clks. (based on
    Trcd=15ns)
9.  TIMING_CFG_1[REFREC] changed from 21 clks to 11clks.  (based on
    Trfc=75ns)
10. TIMING_CFG_2[FOUR_ACT] is changed from 10 clks to 7clks.  (based
    on Tfaw=50ns)
11. TIMING_CFG_2[ADD_LAT] and DDR_MODE[AL] changed from 0 to 1 (based
    on CL=3 and WL=2).

Signed-off-by: Michael Barkowski <michael.barkowski@freescale.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
16 years agompc8323erdb: use readable DDR config macros
Michael Barkowski [Thu, 20 Mar 2008 17:15:28 +0000 (13:15 -0400)]
mpc8323erdb: use readable DDR config macros

Use available shift/mask macros to define DDR configuration.

Signed-off-by: Michael Barkowski <michael.barkowski@freescale.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
16 years ago83xx: Add Vitesse VSC7385 firmware uploading
Timur Tabi [Fri, 8 Feb 2008 19:15:55 +0000 (13:15 -0600)]
83xx: Add Vitesse VSC7385 firmware uploading

Update the MPC8349E-mITX, MPC8313E-RDB, and MPC837XE-RDB board files to upload
the Vitesse VSC7385 firmware.  Changed CONFIG_VSC7385 to CONFIG_VSC7385_ENET.
Cleaned up the board header files to make selecting the VSC7385 easier to
control.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
16 years agoNET: Add Vitesse VSC7385 firmware uploading
Timur Tabi [Fri, 8 Feb 2008 19:15:54 +0000 (13:15 -0600)]
NET: Add Vitesse VSC7385 firmware uploading

The Vitesse VSC7385 is a 5-port switch found on the Freescale MPC8349E-mITX
and other boards.  A small firwmare must be uploaded to its on-board memory
before it can be enabled.  This patch adds the code which uploads firmware
(but not the firmware itself).

Previously, this feature was provided by a U-Boot application that was
made available only on Freescale BSPs.  The VSC7385 firmware must still
be obtained separately, but at least there is no longer a need for a separate
application.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
16 years agoCoding Style cleanyp; update CHANGELOG
Wolfgang Denk [Tue, 25 Mar 2008 23:52:10 +0000 (00:52 +0100)]
Coding Style cleanyp; update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mips
Wolfgang Denk [Tue, 25 Mar 2008 23:44:52 +0000 (00:44 +0100)]
Merge branch 'master' of git://denx.de/git/u-boot-mips

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-mpc86xx
Wolfgang Denk [Tue, 25 Mar 2008 23:44:32 +0000 (00:44 +0100)]
Merge branch 'master' of git://denx.de/git/u-boot-mpc86xx

16 years agoRemove deprecated CONFIG_OF_HAS_UBOOT_ENV and CONFIG_OF_HAS_BD_T
Jerry Van Baren [Sat, 22 Mar 2008 18:23:49 +0000 (14:23 -0400)]
Remove deprecated CONFIG_OF_HAS_UBOOT_ENV and CONFIG_OF_HAS_BD_T

These defines embedded the u-boot env variables and/or the bd_t structure
in the fdt blob.  The conclusion of discussion on the u-boot email list
was that embedding these in the fdt blob is not useful: there are better
ways of passing the data (in fact, the fdt blob itself replaces the
bd_t struct).

The only board that enables these is the stxxtc and they don't appear
to be used by linux.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
16 years agortc: Remove 2nd reference to max6900.o in drivers/rtc/Makefile
Stefan Roese [Mon, 17 Mar 2008 09:49:25 +0000 (10:49 +0100)]
rtc: Remove 2nd reference to max6900.o in drivers/rtc/Makefile

Signed-off-by: Stefan Roese <sr@denx.de>
16 years agoAdd Flex-OneNAND booting support
Kyungmin Park [Sun, 16 Mar 2008 23:54:06 +0000 (08:54 +0900)]
Add Flex-OneNAND booting support

Flex-OneNAND is a monolithic integrated circuit with a NAND Flash array
using a NOR Flash interface. This on-chip integration enables system designers
to reduce external system logic and use high-density NAND Flash
in applications that would otherwise have to use more NOR components.

Flex-OneNAND enables users to configure to partition it into SLC and MLC areas
in more flexible way. While MLC area of Flex-OneNAND can be used to store data
that require low reliability and high density, SLC area of Flex-OneNAND
to store data that need high reliability and high performance. Flex-OneNAND
can let users take advantage of storing these two different types of data
into one chip, which is making Flex-OneNAND more cost- and space-effective.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
16 years agoMPC5200: support setup without FEC
André Schwarz [Thu, 13 Mar 2008 12:50:52 +0000 (13:50 +0100)]
MPC5200: support setup without FEC

Include FEC specific nodes in ft_cpu_setup only if CONFIG_MPC5xxx_FEC is
defined. Systems without FEC, i.e. no FEC node in DTB, should be possible.

Signed-off-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
16 years agoFSL: Move board/mpc8266ads under board/freescale
Jon Loeliger [Thu, 6 Mar 2008 00:05:46 +0000 (18:05 -0600)]
FSL: Move board/mpc8266ads under board/freescale

Signed-off-by: Jon Loeliger <jdl@freescale.com>
16 years agoFSL: Move board/mpc7448hpc2 under board/freescale
Jon Loeliger [Thu, 6 Mar 2008 00:05:47 +0000 (18:05 -0600)]
FSL: Move board/mpc7448hpc2 under board/freescale

Signed-off-by: Jon Loeliger <jdl@freescale.com>
16 years agoFSL: Move board/mpc8260ads under board/freescale
Jon Loeliger [Thu, 6 Mar 2008 00:05:45 +0000 (18:05 -0600)]
FSL: Move board/mpc8260ads under board/freescale

Signed-off-by: Jon Loeliger <jdl@freescale.com>
16 years agonet: Add support AX88796L ethernet device
goda.yusuke [Wed, 5 Mar 2008 08:08:33 +0000 (17:08 +0900)]
net: Add support AX88796L ethernet device

AX88796L is device of NE2000 compatible.
This patch support AX88796L ethernet device.

Signed-off-by: Yusuke Goda <goda.yusuke@renesas.com>
Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agone2000 driver: change #ifdef to Makefile conditional compilation
Wolfgang Denk [Tue, 25 Mar 2008 21:50:41 +0000 (22:50 +0100)]
ne2000 driver: change #ifdef to Makefile conditional compilation

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agonet: Divided code of NE2000 ethernet driver
goda.yusuke [Wed, 5 Mar 2008 08:08:20 +0000 (17:08 +0900)]
net: Divided code of NE2000 ethernet driver

There are more devices of the NE2000 base.
A present code is difficult for us to support more devices.
To support more NE2000 clone devices, separated the function.

Signed-off-by: Yusuke Goda <goda.yusuke@renesas.com>
Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
16 years agonet/Blackfin: move on-chip MAC driver into drivers/net/
Mike Frysinger [Mon, 25 Feb 2008 04:58:13 +0000 (23:58 -0500)]
net/Blackfin: move on-chip MAC driver into drivers/net/

The Blackfin on-chip MAC driver was being managed in the BF537-STAMP board
directory, but it is not board specific, so relocate it to the drivers dir
so that other Blackfin ports can utilize it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
16 years agosmc91111: use SSYNC() rather than asm(ssync) for Blackfin
Mike Frysinger [Mon, 25 Feb 2008 04:52:35 +0000 (23:52 -0500)]
smc91111: use SSYNC() rather than asm(ssync) for Blackfin

Since the "ssync" instruction may have hardware anomalies associated with
it, have the smc91111 driver use the SSYNC macro rather than invoking it
directly.  We workaround all the anomalies via this macro.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
16 years ago8xx: Update OF support on 8xx
Bryan O'Donoghue [Sun, 17 Feb 2008 22:57:47 +0000 (22:57 +0000)]
8xx: Update OF support on 8xx

This patch does some shifting around of OF support on 8xx.

Signed-off-by: Bryan O'Donoghue <bodonoghue@codehermit.ie>
16 years agoppc: Allow boards to specify how much memory they can map
Kumar Gala [Fri, 15 Feb 2008 21:16:18 +0000 (15:16 -0600)]
ppc: Allow boards to specify how much memory they can map

For historical reasons we limited the stack to 256M because some boards
could only map that much via BATS.  However newer boards are capable of
mapping more memory (for example 85xx is capble of doing up to 2G).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years ago8xx : Add OF support to Adder875 board port - resubmit
Bryan O'Donoghue [Fri, 15 Feb 2008 01:05:58 +0000 (01:05 +0000)]
8xx : Add OF support to Adder875 board port - resubmit

Signed-off-by: Bryan O'Donoghue <bodonoghue@codehermit.ie>
16 years agoAdd setexpr command
Kumar Gala [Fri, 15 Feb 2008 02:44:42 +0000 (20:44 -0600)]
Add setexpr command

Add a simple expr style command that will set an env variable as the result
of the command.  This allows us to do simple math in shell.  The following
operations are supported: &, |, ^, +, -, *, /.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
16 years agoFSL: Move board/mpc7448hpc2 under board/freescale
Jon Loeliger [Wed, 5 Mar 2008 23:27:48 +0000 (17:27 -0600)]
FSL: Move board/mpc7448hpc2 under board/freescale

Signed-off-by: Jon Loeliger <jdl@freescale.com>
16 years agoFSL: Move board/mpc8266ads under board/freescale
Jon Loeliger [Wed, 5 Mar 2008 23:21:43 +0000 (17:21 -0600)]
FSL: Move board/mpc8266ads under board/freescale

Signed-off-by: Jon Loeliger <jdl@freescale.com>
16 years agoFSL: Move board/mpc8260ads under board/freescale
Jon Loeliger [Wed, 5 Mar 2008 22:41:41 +0000 (16:41 -0600)]
FSL: Move board/mpc8260ads under board/freescale

Signed-off-by: Jon Loeliger <jdl@freescale.com>
16 years ago[MIPS] Move gth2_config from ARM section to MIPS
Shinya Kuribayashi [Tue, 25 Mar 2008 12:30:08 +0000 (21:30 +0900)]
[MIPS] Move gth2_config from ARM section to MIPS

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] Extend MIPS_MAX_CACHE_SIZE upto 64kB
Shinya Kuribayashi [Tue, 25 Mar 2008 12:30:07 +0000 (21:30 +0900)]
[MIPS] Extend MIPS_MAX_CACHE_SIZE upto 64kB

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] Fix dcache_status()
Shinya Kuribayashi [Tue, 25 Mar 2008 12:30:07 +0000 (21:30 +0900)]
[MIPS] Fix dcache_status()

You can't judge UNCACHED by Config.K0 LSB.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] Introduce _machine_restart
Shinya Kuribayashi [Tue, 25 Mar 2008 12:30:07 +0000 (21:30 +0900)]
[MIPS] Introduce _machine_restart

Handles machine specific functions by using weak functions.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] Cleanup CP0 Status initialization
Shinya Kuribayashi [Tue, 25 Mar 2008 12:30:07 +0000 (21:30 +0900)]
[MIPS] Cleanup CP0 Status initialization

Add setup_c0_status from Linux. For the moment we disable interrupts, set
CU0, mark the kernel mode, and clear ERL and EXL. This is good enough for
reset-time configuration and will work well across most processors.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] Initialize CP0 Cause before setting up CP0 Status register
Shinya Kuribayashi [Tue, 25 Mar 2008 12:30:07 +0000 (21:30 +0900)]
[MIPS] Initialize CP0 Cause before setting up CP0 Status register

Without this change, we'll be suffering from deffered WATCH exception
once Status.EXL is cleared. Make sure Cause.WP is cleared.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] INCA-IP: Move watchdog init code from start.S to lowlevel_init()
Shinya Kuribayashi [Tue, 25 Mar 2008 12:30:07 +0000 (21:30 +0900)]
[MIPS] INCA-IP: Move watchdog init code from start.S to lowlevel_init()

Move things to appropriate place.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] Implement flush_cache()
Shinya Kuribayashi [Tue, 25 Mar 2008 12:30:06 +0000 (21:30 +0900)]
[MIPS] Implement flush_cache()

We do Hit_Writeback_Inv_D and Hit_Invalidate_I. You might think that you
don't need to do Hit_Invalidate_I, but flush_cache() needs it since this
function is used not only in U-Boot specfic programs but also at loading
target binaries.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] Fix I-/D-cache initialization loops
Shinya Kuribayashi [Tue, 25 Mar 2008 12:30:06 +0000 (21:30 +0900)]
[MIPS] Fix I-/D-cache initialization loops

Currently we do 1) Index_Store_Tag_I, 2) Fill and 3) Index_Store_Tag_I
again per a loop for I-cache initialization. But according to 'See MIPS
Run', we're encouraged to use three separate loops rather than combining
them *for both I- and D-cache*. This patch tries to fix this.

In accordance with fixing above, mips_init_[id]cache are separated from
mips_cache_reset(), and rewrite cache loops are completely rewritten with
useful macros.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] Replace memory clearance code with f_fill64
Shinya Kuribayashi [Tue, 25 Mar 2008 12:30:06 +0000 (21:30 +0900)]
[MIPS] Replace memory clearance code with f_fill64

This routine fills memory with zero by 64 bytes, and is 64-bit capable.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] cpu/mips/cache.S: Introduce NESTED/LEAF/END macros
Shinya Kuribayashi [Tue, 25 Mar 2008 12:30:06 +0000 (21:30 +0900)]
[MIPS] cpu/mips/cache.S: Introduce NESTED/LEAF/END macros

This patch replaces the current function definitions with NESTED, LEAF
and END macro. They specify some more additional information about the
function; an alignment of symbol, type of symbol, stack frame usage, etc.
These information explicitly tells the assembler and the debugger about
the types of code we want to generate.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] asm headers' updates
Shinya Kuribayashi [Tue, 25 Mar 2008 02:43:17 +0000 (11:43 +0900)]
[MIPS] asm headers' updates

Make some asm headers adjusted to the latest Linux kernel.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
16 years ago[MIPS] Request for the 'mips_cache_lock()' removal
Shinya Kuribayashi [Tue, 25 Mar 2008 02:39:29 +0000 (11:39 +0900)]
[MIPS] Request for the 'mips_cache_lock()' removal

The initial intension of having mips_cache_lock() was to use the cache
as memory for temporary stack use so that a C environment can be set up
as early as possible.

But now mips_cache_lock() follow lowlevel_init(). We've already have the
real memory initilaized at this point, therefore we could/should use it.
No reason to lock at all.

Other problems:

Cache locking is not consistent across MIPS implementaions. Some imple-
mentations don't support locking at all. The style of locking varies -
some support per line locking, others per way, etc. Some parts use bits
in status registers instead of cache ops. Current mips_cache_lock() is
not necessarily general-purpose.

And this is worthy of special mention; once U-Boot/MIPS locks the lines,
they are never get unlocked, so the code relies on whatever gets loaded
after U-Boot to re-initialize the cache and clear the locks. We're sup-
posed to have CFG_INIT_RAM_LOCK and unlock_ram_in_cache() implemented,
but leave the situation as it is for a long time.

For these reasons, I proposed the removal of mips_cache_lock() from the
global start-up code.

This patch adds CFG_INIT_RAM_LOCK_MIPS to make existing users aware that
*things have changed*. If he wants the same behavior as before, he needs
to have CFG_INIT_RAM_LOCK_MIPS in his config file.

If we don't have any regression report through several releases, then
we'll remove codes entirely.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
Acked-by: Andrew Dyer <amdyer@gmail.com>
16 years agolwmon5 SYSMON POST: fix backlight control
Yuri Tikhonov [Mon, 24 Mar 2008 10:30:54 +0000 (11:30 +0100)]
lwmon5 SYSMON POST: fix backlight control

If the LWMON5 config has SYSMON POST among CONFIG_POSTs which may be
run on the board, then the SYSMON POST controls the display backlight
(doesn't switch backlight ON if POST FAILED, and does switch the
backlight ON if PASSED).

If not, then the video driver controls the display backlight (just
switch ON the backlight upon initialization).

Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
16 years agolwmon5 SYSMON POST: fix handling of negative temperatures
Yuri Tikhonov [Mon, 24 Mar 2008 10:29:14 +0000 (11:29 +0100)]
lwmon5 SYSMON POST: fix handling of negative temperatures

Fix errors in the LWMON5 Sysmon POST for negative temperatures.

Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
16 years agoMerge branch 'master' of /home/wd/git/u-boot/master/
Wolfgang Denk [Mon, 24 Mar 2008 23:12:54 +0000 (00:12 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/master/

16 years agopci: Add CONFIG_PCI_SKIP_HOST_BRIDGE config option
Nobuhiro Iwamatsu [Fri, 7 Mar 2008 07:04:25 +0000 (16:04 +0900)]
pci: Add CONFIG_PCI_SKIP_HOST_BRIDGE config option

In current source code, when the device number of PCI is 0, process PCI
bridge without fail. However, when the device number is 0, it is not PCI
always bridge. There are times when device of PCI allocates.

When CONFIG_PCI_SKIP_HOST_BRIDGE is enable, this problem is solved when
use this patch.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Acked-by: Stefan Roese <sr@denx.de>
16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-tq-group
Wolfgang Denk [Sat, 22 Mar 2008 23:57:40 +0000 (00:57 +0100)]
Merge branch 'master' of git://denx.de/git/u-boot-tq-group

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-cfi-flash
Wolfgang Denk [Sat, 22 Mar 2008 23:53:43 +0000 (00:53 +0100)]
Merge branch 'master' of git://denx.de/git/u-boot-cfi-flash

16 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-fdt
Wolfgang Denk [Sat, 22 Mar 2008 23:52:58 +0000 (00:52 +0100)]
Merge branch 'master' of git://denx.de/git/u-boot-fdt

16 years agoMerge branch 'master' of /home/wd/git/u-boot/work
Wolfgang Denk [Sat, 22 Mar 2008 22:27:43 +0000 (23:27 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/work

16 years agoLWMON5: fix dsPIC POST
Yuri Tikhonov [Fri, 21 Mar 2008 08:18:40 +0000 (09:18 +0100)]
LWMON5: fix dsPIC POST

Add test for DPIC_SYS_ERROR_REG to be zero in the LWMON5 dsPIC POST.

Signed-off-by: Yuri Tikhonov <yur@emcraft.com> ---
16 years agoMerge git://www.denx.de/git/u-boot into uboot
Gerald Van Baren [Fri, 21 Mar 2008 15:58:22 +0000 (11:58 -0400)]
Merge git://www.denx.de/git/u-boot into uboot

16 years ago[new uImage] Enable new uImage support for the pcs440ep board.
Bartlomiej Sieka [Thu, 20 Mar 2008 22:23:13 +0000 (23:23 +0100)]
[new uImage] Enable new uImage support for the pcs440ep board.

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years ago[new uImage] Do not compile new uImage format support by default
Bartlomiej Sieka [Thu, 20 Mar 2008 22:23:13 +0000 (23:23 +0100)]
[new uImage] Do not compile new uImage format support by default

Disable default building of new uImage format support in preparation
for merge with the master. Support for new format can be enabled on
a per-board basis, by defining the following in the board's config file:

#define CONFIG_FIT             1
#define CONFIG_OF_LIBFDT       1

This can be optionally defined to give more verbose output:

#define CONFIG_FIT_VERBOSE     1 /* enable fit_format_{error,warning}() */

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years ago[new uImage] Disable debuging output in preparation for merge with master
Bartlomiej Sieka [Thu, 20 Mar 2008 22:20:31 +0000 (23:20 +0100)]
[new uImage] Disable debuging output in preparation for merge with master

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years ago[new uImage] Compilation and new uImage handling fixes for imxtract
Bartlomiej Sieka [Thu, 20 Mar 2008 18:38:45 +0000 (19:38 +0100)]
[new uImage] Compilation and new uImage handling fixes for imxtract

Fix imxtract command not being compiled-in despite CONFIG_CMD_XIMG being in
include/config_cmd_default.h. Fix few warnings and handling of new format
images.

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years ago[new uImage] Fix autoscr command used with new uImage format
Bartlomiej Sieka [Thu, 20 Mar 2008 22:10:19 +0000 (23:10 +0100)]
[new uImage] Fix autoscr command used with new uImage format

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years ago[new uImage] Fix *.its files location in documentation
Bartlomiej Sieka [Thu, 20 Mar 2008 22:10:19 +0000 (23:10 +0100)]
[new uImage] Fix *.its files location in documentation

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
16 years agolwmon5 POST: remove unreachable code
Wolfgang Denk [Thu, 20 Mar 2008 21:01:38 +0000 (22:01 +0100)]
lwmon5 POST: remove unreachable code

plus some coding style cleanup

Signed-off-by: Wolfgang Denk <wd@denx.de>
16 years agoLWMON5: POST RTC fix
Yuri Tikhonov [Thu, 20 Mar 2008 14:56:04 +0000 (17:56 +0300)]
LWMON5: POST RTC fix

Modify the RTC API to provide one a status for the time reported by
the rtc_get() function:
  0 - a reliable time is guaranteed,
< 0 - a reliable time isn't guaranteed (power fault, clock issues,
      and so on).

The RTC chip drivers are responsible for providing this info if the
corresponding chip supports such functionality. If not - always
report that the time is reliable.

The POST RTC test was modified to detect the RTC faults utilizing
this new rtc_get() feature.

Signed-off-by: Yuri Tikhonov <yur@emcraft.com>