]> git.dujemihanovic.xyz Git - u-boot.git/log
u-boot.git
15 years agoixp: move serial to drivers/serial
Jean-Christophe PLAGNIOL-VILLARD [Sat, 31 Jan 2009 08:10:48 +0000 (09:10 +0100)]
ixp: move serial to drivers/serial

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agoixp: move pci init in arm/board instead of cpu
Jean-Christophe PLAGNIOL-VILLARD [Sat, 31 Jan 2009 08:04:58 +0000 (09:04 +0100)]
ixp: move pci init in arm/board instead of cpu

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agoixp: move pci drivers to drivers/pci
Jean-Christophe PLAGNIOL-VILLARD [Sat, 31 Jan 2009 07:56:49 +0000 (08:56 +0100)]
ixp: move pci drivers to drivers/pci

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agoixp: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Sat, 31 Jan 2009 07:53:44 +0000 (08:53 +0100)]
ixp: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agoixp: add missing os define
Jean-Christophe PLAGNIOL-VILLARD [Sat, 31 Jan 2009 07:53:44 +0000 (08:53 +0100)]
ixp: add missing os define

need by arm-elf toolchains and no impact on the arm-linux one

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agoixp: remove the option to include the Microcode
Jean-Christophe PLAGNIOL-VILLARD [Sat, 31 Jan 2009 08:53:39 +0000 (09:53 +0100)]
ixp: remove the option to include the Microcode

instead the board will have to load it from flash or ram
which will be specified by npe_ucode env var

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agoixp/npe: Move conditional compilation to Makefile
Jean-Christophe PLAGNIOL-VILLARD [Fri, 30 Jan 2009 08:45:23 +0000 (09:45 +0100)]
ixp/npe: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agoMerge branch 'master' of git://git.denx.de/u-boot-nand-flash
Wolfgang Denk [Wed, 28 Jan 2009 22:14:22 +0000 (23:14 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash

15 years ago85xx: Fix compile breakage with sbc8540 and sbc8560
Wolfgang Denk [Wed, 28 Jan 2009 22:06:42 +0000 (23:06 +0100)]
85xx: Fix compile breakage with sbc8540 and sbc8560

This fixes an error which raises just a warning:
sbc8560.c:250: warning: passing argument 2 of 'strmhz' makes integer from pointer without a cast

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoSPD823TS: do not define CONFIG_CMD_ENV
Mike Frysinger [Wed, 28 Jan 2009 18:48:55 +0000 (13:48 -0500)]
SPD823TS: do not define CONFIG_CMD_ENV

Since the SPD823TS board does not actually have any writable flash to save
its environment, undefine CONFIG_CMD_ENV so the "saveenv" command is
disabled.

This fixes the build error:
common/libcommon.a(cmd_nvedit.o): In function `do_saveenv':
common/cmd_nvedit.c:557: undefined reference to `saveenv'
make: *** [u-boot] Error 1

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoMerge branch 'master' of git://git.denx.de/u-boot-usb
Wolfgang Denk [Wed, 28 Jan 2009 20:09:46 +0000 (21:09 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-usb

15 years agoMerge branch 'master' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Wed, 28 Jan 2009 20:09:32 +0000 (21:09 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-blackfin

15 years ago85xx: Fix compile breakage with MPC8540EVAL
Kumar Gala [Wed, 28 Jan 2009 14:31:10 +0000 (08:31 -0600)]
85xx: Fix compile breakage with MPC8540EVAL

Configuring for MPC8540EVAL board...
mpc8540eval.c: In function 'checkboard':
mpc8540eval.c:53: error: invalid operands to binary /
make[1]: *** [mpc8540eval.o] Error 1

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
15 years agousb_scan_devices: fix output with no devices
Bryan Wu [Mon, 19 Jan 2009 04:04:27 +0000 (23:04 -0500)]
usb_scan_devices: fix output with no devices

We should check the return of usb_new_device() so that if no USB device is
found, we print out the right message rather than always saying "new usb
device found".

Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agoUSB: Add high-speed (480Mb/s) to all USB related outputs
Stefan Roese [Thu, 22 Jan 2009 09:11:21 +0000 (10:11 +0100)]
USB: Add high-speed (480Mb/s) to all USB related outputs

With this patch the USB related connection speed output ("usb tree" command and
debug output) is now high-speed enabled.

This patch also fixes a compilation warning when debugging is enabled.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agoUSB: Add dcache support to the EHCI driver
Stefan Roese [Wed, 21 Jan 2009 16:12:19 +0000 (17:12 +0100)]
USB: Add dcache support to the EHCI driver

This patch adds routines to handle (flush/invalidate) the dcache for the
QH and qTD structures and data buffers. This is needed on platforms using
this EHCI support with dcache enabled (like the MIPS VCT board port).

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agoUSB: Add EHCI support for VCT EHCI controller
Stefan Roese [Wed, 21 Jan 2009 16:12:28 +0000 (17:12 +0100)]
USB: Add EHCI support for VCT EHCI controller

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agoUSB: Add config option to call ehci_hcd_init() again after EHCI reset
Stefan Roese [Wed, 21 Jan 2009 16:12:10 +0000 (17:12 +0100)]
USB: Add config option to call ehci_hcd_init() again after EHCI reset

This patch adds the config option CONFIG_EHCI_HCD_INIT_AFTER_RESET
to call ehci_hcd_init() again after ehci_reset() is executed. This
is needed for the upcoming VCT EHCI support which needs to re-init
the hcd part again after the EHCI CMD_RESET is executed.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agoUSB: Fix speed detection on EHCI cntr with root hub transaction translators
Stefan Roese [Wed, 21 Jan 2009 16:12:01 +0000 (17:12 +0100)]
USB: Fix speed detection on EHCI cntr with root hub transaction translators

This patch fixes an issue that the speed of USB devices was not detected
correctly on some EHCI controllers. This will be used on the upcoming VCT
EHCI support.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agousb : musb : Enabling USB MSC support for DM6446 (TI DaVinci) platform
Thomas Abraham [Sun, 4 Jan 2009 04:11:20 +0000 (09:41 +0530)]
usb : musb : Enabling USB MSC support for DM6446 (TI DaVinci) platform

Enabling USB MSC support for DM6446 (TI DaVinci) platform in the
configuration file.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Signed-off-by: Swaminathan S <swami.iyer@ti.com>
Signed-off-by: Thomas Abraham <t-abraham@ti.com>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agousb : musb : Enabling DM6446 (TI DaVinci) USB module power
Thomas Abraham [Sun, 4 Jan 2009 04:11:16 +0000 (09:41 +0530)]
usb : musb : Enabling DM6446 (TI DaVinci) USB module power

Enabling DM6446 (TI DaVinci) USB module power and MUSB low-level
controller hook up to USB core layer.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Signed-off-by: Swaminathan S <swami.iyer@ti.com>
Signed-off-by: Thomas Abraham <t-abraham@ti.com>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agousb : musb : Adding DM6446 (TI DaVinci) platform specific USB support
Thomas Abraham [Sun, 4 Jan 2009 04:11:13 +0000 (09:41 +0530)]
usb : musb : Adding DM6446 (TI DaVinci) platform specific USB support

Adding DM6446 (TI DaVinci) platform specific USB functionality for
USB Phy and VBUS initialization.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Signed-off-by: Swaminathan S <swami.iyer@ti.com>
Signed-off-by: Thomas Abraham <t-abraham@ti.com>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agousb : musb : Adding USB VBUS enable functionality for DM644x DVEVM
Thomas Abraham [Sun, 4 Jan 2009 04:11:09 +0000 (09:41 +0530)]
usb : musb : Adding USB VBUS enable functionality for DM644x DVEVM

Adding USB VBUS enable functionality for DM644x DVEVM (TI DaVinci)
platform.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Signed-off-by: Swaminathan S <swami.iyer@ti.com>
Signed-off-by: Thomas Abraham <t-abraham@ti.com>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agousb : musb : Adding host controller driver for Mentor USB controller
Thomas Abraham [Sun, 4 Jan 2009 04:11:03 +0000 (09:41 +0530)]
usb : musb : Adding host controller driver for Mentor USB controller

Adding Mentor USB core functionality and Mentor USB Host controller
functionality for Mentor USB OTG controller (musbhdrc).

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Signed-off-by: Swaminathan S <swami.iyer@ti.com>
Signed-off-by: Thomas Abraham <t-abraham@ti.com>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agousb.h: use standard __LITTLE_ENDIAN from Linux headers
Mike Frysinger [Thu, 1 Jan 2009 23:27:27 +0000 (18:27 -0500)]
usb.h: use standard __LITTLE_ENDIAN from Linux headers

Rather than forcing people to define a custom "LITTLEENDIAN", just use the
__LITTLE_ENDIAN one from the Linux byteorder headers that every arch is
already setting up.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agoUSB ehci ixp4xx support
Michael Trimarchi [Wed, 31 Dec 2008 09:33:56 +0000 (10:33 +0100)]
USB ehci ixp4xx support

Add USB ehci ixp4xx host controller. Test on ixdp465 board.

Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agoUSB ehci remove infinite loop and use handshake function
Michael Trimarchi [Wed, 31 Dec 2008 09:33:22 +0000 (10:33 +0100)]
USB ehci remove infinite loop and use handshake function

USB ehci code cleanup. Use handshake instead of infinite while loop
to check the STD_ASS status

Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agoAdd initial support for USB ehci pci
Michael Trimarchi [Wed, 31 Dec 2008 09:32:41 +0000 (10:32 +0100)]
Add initial support for USB ehci pci

Add USB ehci pci support. This patch doesn't include any
pci_ids and it is not tested on real hardware.

Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agousb_storage: do not reset SanDisk Corporation U3 Cruzer Micro USB thumb drive
Bryan Wu [Fri, 2 Jan 2009 00:48:07 +0000 (19:48 -0500)]
usb_storage: do not reset SanDisk Corporation U3 Cruzer Micro USB thumb drive

The SanDisk Corporation U3 Cruzer Micro 1/4GB Flash Drive 000016244373FFB4
does not like to be reset, so check for it.

Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agousb : usb_kbd : Populating 'priv' member of USB keyboard device_t structure
Thomas Abraham [Sun, 4 Jan 2009 06:45:35 +0000 (12:15 +0530)]
usb : usb_kbd : Populating 'priv' member of USB keyboard device_t structure

This patch populates the 'priv' field of the USB keyboard device_t
structure. The 'priv' field is populated with the address of the
'struct usb_device' structure that represents the USB device.

The 'priv' field can then be used in the 'usb_event_poll' function to
determine the USB device that requires to be polled. An
example of its usage in 'usb_event_poll' function is as below.

device_t *dev;
struct usb_device *usb_kbd_dev;

<snip>

dev = device_get_by_name("usbkbd");
usb_kbd_dev = (struct usb_device *)dev->priv;
iface = &usb_kbd_dev->config.if_desc[0];

Signed-off-by: Thomas Abraham <t-abraham@ti.com>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agoUSB change speed
Michael Trimarchi [Thu, 18 Dec 2008 09:05:37 +0000 (10:05 +0100)]
USB change speed

USB changes the speed according to the port status

Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agoEHCI fix code and ixp4xx test.
Remy Böhmer [Sat, 13 Dec 2008 21:51:58 +0000 (22:51 +0100)]
EHCI fix code and ixp4xx test.
USB ehci configuration parameter:

#define CONFIG_CMD_USB          1
#define CONFIG_USB_STORAGE      1
#define CONFIG_USB_EHCI
#define CONFIG_USB_EHCI_IXP4XX 1
#define CONFIG_EHCI_IS_TDI 1
#define CONFIG_EHCI_DESC_BIG_ENDIAN     1
#define CONFIG_EHCI_MMIO_BIG_ENDIAN     1
#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 2
#define CONFIG_LEGACY_USB_INIT_SEQ      1

2 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
=> usb tree

Device Tree:
  1  Hub (1.5MBit/s, 0mA)
  |  u-boot EHCI Host Controller
  |
  |+-2  Mass Storage (12MBit/s, 100mA)
       Sony Storage Media 0C07040930296

=>

Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it>
Signed-off-by: Remy Böhmer <linux@bohmer.net>
15 years ago[PATCH] This patch add varius fix to the ehci.
michael [Thu, 11 Dec 2008 12:43:55 +0000 (13:43 +0100)]
[PATCH] This patch add varius fix to the ehci.
- fix ehci_readl, ehci_writel
- introduce new define in ehci.h
- introduce the handshake function for waiting on a register
- fix usb_ehci_fsl with the new HC_LENGTH macro

Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it>
Signed-off-by: Remy Böhmer <linux@bohmer.net>
15 years ago[PATCH] Fix EHCI usb. I start to test on a
michael [Wed, 10 Dec 2008 16:55:19 +0000 (17:55 +0100)]
[PATCH] Fix EHCI usb. I start to test on a
IXP465 board and I find some errors in the code. This
patch fix:
- descriptor initizialization (config, interface and endpoint
  must be one next-to the other when the USB_DT_CONFIG message
  is send.
- FIX little/endian bigendian (introduce the CONFIG_EHCI_DESC_BIG_ENDIAN
  and the CONFIG_EHCI_MMIO_BIG_ENDIAN)
- Introduce the linux version of the usb_config_descriptor and
  usb_interface descriptor. This descriptor does't contains
  u-boot extension.

Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it>
Signed-off-by: Remy Böhmer <linux@bohmer.net>
15 years agoUSB ehci freescale support
Michael Trimarchi [Fri, 28 Nov 2008 12:22:09 +0000 (13:22 +0100)]
USB ehci freescale support

Add USB ehci freescale support

Signed-off-by: Michael Trimarchi <trimarchi@gandalf.sssup.it>
Signed-off-by: Remy Böhmer <linux@bohmer.net>
15 years agoUSB ehci core support
Michael Trimarchi [Fri, 28 Nov 2008 12:20:46 +0000 (13:20 +0100)]
USB ehci core support

Add USB ehci core support

Signed-off-by: Michael Trimarchi <trimarchi@gandalf.sssup.it>
Signed-off-by: Remy Böhmer <linux@bohmer.net>
15 years agoPrepare USB layer for ehci
Michael Trimarchi [Fri, 28 Nov 2008 12:19:19 +0000 (13:19 +0100)]
Prepare USB layer for ehci

Prepare USB layer for ehci support

Signed-off-by: Michael Trimarchi <trimarchi@gandalf.sssup.it>
Signed-off-by: Remy Böhmer <linux@bohmer.net>
15 years agoUSB storage cleanup patch
Michael Trimarchi [Wed, 10 Dec 2008 14:52:06 +0000 (15:52 +0100)]
USB storage cleanup patch

Cleanup usb storage

Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agoBlackfin: fixup misc warnings such as printf's and missing casts
Mike Frysinger [Sun, 12 Oct 2008 10:02:55 +0000 (06:02 -0400)]
Blackfin: fixup misc warnings such as printf's and missing casts

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: convert old boards to use COBJS-y Makefile style
Mike Frysinger [Mon, 13 Oct 2008 02:09:26 +0000 (22:09 -0400)]
Blackfin: convert old boards to use COBJS-y Makefile style

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: bf533-stamp: rewrite resource swap logic
Mike Frysinger [Sun, 12 Oct 2008 02:38:37 +0000 (22:38 -0400)]
Blackfin: bf533-stamp: rewrite resource swap logic

The old swap function tended to clobber unrelated pins and screw up masks.
Rewrite the thing from scratch so it only uses the resources it needs.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: bootldr: implement BF53x/BF56x LDR loader
Mike Frysinger [Sun, 12 Oct 2008 02:08:42 +0000 (22:08 -0400)]
Blackfin: bootldr: implement BF53x/BF56x LDR loader

The BF53x/BF56x parts do not have an on-chip ROM to boot LDRs out of
arbitrary memory locations, so implement a basic one in software.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: implement real write support for OTP
Mike Frysinger [Sun, 12 Oct 2008 02:05:42 +0000 (22:05 -0400)]
Blackfin: implement real write support for OTP

Now that real documentation has been released for the OTP interface and
the on-chip ROM wrt writing/timings, implement support for reading/writing
as well as dumping/locking.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: update on-chip ROM API
Mike Frysinger [Sun, 12 Oct 2008 02:04:05 +0000 (22:04 -0400)]
Blackfin: update on-chip ROM API

This brings the API for the on-chip ROM in line with the toolchain and
hardware documentation.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: allow serial console to be disabled
Mike Frysinger [Sun, 12 Oct 2008 01:52:17 +0000 (21:52 -0400)]
Blackfin: allow serial console to be disabled

Some devices have no UART device pulled out, so allow people to disable the
driver completely in favor of other methods (like JTAG-console).

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: support console-over-JTAG
Mike Frysinger [Sun, 12 Oct 2008 01:51:20 +0000 (21:51 -0400)]
Blackfin: support console-over-JTAG

The Blackfin JTAG has the ability to pass data via a back-channel without
halting the processor.  Utilize that channel to emulate a console.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: handle new anomalies with reset
Mike Frysinger [Sun, 12 Oct 2008 01:49:06 +0000 (21:49 -0400)]
Blackfin: handle new anomalies with reset

Workaround fun new anomalies related to software reset of the processor.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: pass RETX to Linux
Mike Frysinger [Sun, 12 Oct 2008 01:44:00 +0000 (21:44 -0400)]
Blackfin: pass RETX to Linux

Make sure we save the value of RETX at power on and then pass it on to the
kernel so that it can nicely debug a "double-fault-caused-a-reset" crash.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: clarify relocation comment during init
Mike Frysinger [Sun, 12 Oct 2008 01:40:26 +0000 (21:40 -0400)]
Blackfin: clarify relocation comment during init

People often ask questions about the init process and when things go
from flash to relocated base, so clarify the comments a bit.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: just set SP register directly during init
Mike Frysinger [Sun, 12 Oct 2008 01:23:41 +0000 (21:23 -0400)]
Blackfin: just set SP register directly during init

No need to set the SP register indirectly to the configured value when it
can be set directly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: add portmuxing for UARTs on the BF51x
Mike Frysinger [Sun, 12 Oct 2008 01:15:53 +0000 (21:15 -0400)]
Blackfin: add portmuxing for UARTs on the BF51x

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: respect CONFIG_CLKIN_HALF
Mike Frysinger [Sun, 1 Jun 2008 05:26:29 +0000 (01:26 -0400)]
Blackfin: respect CONFIG_CLKIN_HALF

As pointed out by Ivan Koryakovskiy, the initialization code was not
actually respecting the CONFIG_CLKIN_HALF option when configuring the
PLL_CTL register.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: use common memcpy routine during init
Mike Frysinger [Sun, 1 Jun 2008 05:21:34 +0000 (01:21 -0400)]
Blackfin: use common memcpy routine during init

Rather than using a local custom memcpy function, just call the existing
optimized Blackfin version.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: set default boot SPI CS for BF538/BF539
Mike Frysinger [Wed, 9 Apr 2008 06:27:06 +0000 (02:27 -0400)]
Blackfin: set default boot SPI CS for BF538/BF539

The BF538/BF539 use CS2 for booting off of rather than CS1 like newer
Blackfin parts.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: punt unused BF533-STAMP definitions
Mike Frysinger [Wed, 9 Apr 2008 06:20:59 +0000 (02:20 -0400)]
Blackfin: punt unused BF533-STAMP definitions

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: resurrect BF533-STAMP video splash driver
Mike Frysinger [Sat, 19 Apr 2008 00:44:11 +0000 (20:44 -0400)]
Blackfin: resurrect BF533-STAMP video splash driver

This video driver used to live in the Blackfin cpu directory, but it was
lost during the unification process.  This brings it back.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: tighten up post memory coding style
Mike Frysinger [Wed, 9 Apr 2008 06:31:29 +0000 (02:31 -0400)]
Blackfin: tighten up post memory coding style

No functional changes here; just cleanup code style a bit.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: bf537-stamp nand: fix more style errors in previous commit
Mike Frysinger [Wed, 9 Apr 2008 06:29:18 +0000 (02:29 -0400)]
Blackfin: bf537-stamp nand: fix more style errors in previous commit

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: drop dead/wrong debug code in initdram()
Mike Frysinger [Sun, 12 Oct 2008 00:31:17 +0000 (20:31 -0400)]
Blackfin: drop dead/wrong debug code in initdram()

The DEBUG code in initdram() is quite old and was never really useful, so
just drop it altogether.  Common Blackfin debug code does a better job.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: bf533-ezkit: shuffle flash defines a little
Mike Frysinger [Sun, 12 Oct 2008 00:30:28 +0000 (20:30 -0400)]
Blackfin: bf533-ezkit: shuffle flash defines a little

Some of the flash defines weren't in the correct location and caused build
problems in some configurations, so let's move types and defines to better
local locations.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: overhaul i2c driver
Mike Frysinger [Mon, 6 Oct 2008 08:16:47 +0000 (04:16 -0400)]
Blackfin: overhaul i2c driver

The current Blackfin i2c driver does not work properly with certain devices
due to it breaking up transfers incorrectly.  This is a rewrite of the
driver and relocates it to the newer place in the source tree.

Also remove duplicated I2C speed defines in Blackfin board configs and
disable I2C slave address usage since it isn't implemented.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: respect CONFIG_SYS_MONITOR_LEN for default flash protection
Mike Frysinger [Mon, 6 Oct 2008 08:00:07 +0000 (04:00 -0400)]
Blackfin: respect CONFIG_SYS_MONITOR_LEN for default flash protection

Respect the CONFIG_SYS_MONITOR_LEN define rather than assuming a size of
128kB when setting up the default flash protection region for U-Boot
itself.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: respect/check CONFIG_SYS_GBL_DATA_SIZE
Mike Frysinger [Mon, 6 Oct 2008 07:57:39 +0000 (03:57 -0400)]
Blackfin: respect/check CONFIG_SYS_GBL_DATA_SIZE

When setting up the global data, rather than relying on sizeof(), use the
common CONFIG_SYS_GBL_DATA_SIZE define.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: implement general support for CONFIG_STATUS_LED
Mike Frysinger [Mon, 6 Oct 2008 07:52:24 +0000 (03:52 -0400)]
Blackfin: implement general support for CONFIG_STATUS_LED

Here are the Blackfin-specific and board-independent pieces for status leds.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: do not init i2c in Blackfin board init
Mike Frysinger [Mon, 6 Oct 2008 07:49:32 +0000 (03:49 -0400)]
Blackfin: do not init i2c in Blackfin board init

The common code takes care of calling i2c_init() when needed, so no point
in us doing it as well.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: bfin_mac: update port muxing
Mike Frysinger [Mon, 6 Oct 2008 07:42:20 +0000 (03:42 -0400)]
Blackfin: bfin_mac: update port muxing

Adds support more Blackfin parts and fixes broken muxing for older ones.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: fix dcache handling when doing dma memcpy's
Mike Frysinger [Mon, 6 Oct 2008 07:35:44 +0000 (03:35 -0400)]
Blackfin: fix dcache handling when doing dma memcpy's

Our dcache invalidate function doesn't just invalidate, it also flushes.
So rename the function accordingly and fix the dma_memcpy() function so it
doesn't inadvertently corrupt the data destination.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: dont generate ldrs with --force
Mike Frysinger [Thu, 7 Aug 2008 22:56:56 +0000 (18:56 -0400)]
Blackfin: dont generate ldrs with --force

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: pass --bmode/--initcode when creating ldr
Mike Frysinger [Thu, 7 Aug 2008 22:55:30 +0000 (18:55 -0400)]
Blackfin: pass --bmode/--initcode when creating ldr

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: minimize time cache is turned off when replacing cplb entries
Mike Frysinger [Thu, 7 Aug 2008 22:39:27 +0000 (18:39 -0400)]
Blackfin: minimize time cache is turned off when replacing cplb entries

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: split cache handling out of dma_memcpy()
Mike Frysinger [Thu, 7 Aug 2008 19:31:13 +0000 (15:31 -0400)]
Blackfin: split cache handling out of dma_memcpy()

Creating a new dma_memcpy() function that skips all cache checks allows us
to use the function in very early init where the cache is not yet setup.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: abort dma_memcpy() for L1 scratchpad
Mike Frysinger [Thu, 7 Aug 2008 19:30:49 +0000 (15:30 -0400)]
Blackfin: abort dma_memcpy() for L1 scratchpad

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: rename bootm.c to boot.c
Mike Frysinger [Thu, 7 Aug 2008 19:27:52 +0000 (15:27 -0400)]
Blackfin: rename bootm.c to boot.c

The boot file contains functions for more than just "bootm", so rename it
accordingly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: set more sane default board config values
Mike Frysinger [Thu, 7 Aug 2008 17:22:37 +0000 (13:22 -0400)]
Blackfin: set more sane default board config values

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: convert CMD_LINE_ADDR to CONFIG_LINUX_CMDLINE_{ADDR,SIZE}
Mike Frysinger [Thu, 7 Aug 2008 19:24:59 +0000 (15:24 -0400)]
Blackfin: convert CMD_LINE_ADDR to CONFIG_LINUX_CMDLINE_{ADDR,SIZE}

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: add bit defines for DDR parts
Mike Frysinger [Thu, 7 Aug 2008 17:21:27 +0000 (13:21 -0400)]
Blackfin: add bit defines for DDR parts

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: add defines to describe active bootrom behavior
Mike Frysinger [Thu, 7 Aug 2008 17:21:11 +0000 (13:21 -0400)]
Blackfin: add defines to describe active bootrom behavior

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agompc83xx: fix undefined reference to `flush_cache' error in simpc8313 build
Kim Phillips [Tue, 27 Jan 2009 22:03:53 +0000 (16:03 -0600)]
mpc83xx: fix undefined reference to `flush_cache' error in simpc8313 build

extend commit c70564e6b1bd08f3230182392238907f3531a87e
"NAND: Fix cache and memory inconsistency issue" to add the cache.o dependency
to the simpc8313 build and fix this:

...Large Page NAND...Configuring for SIMPC8313 board...
nand_boot_fsl_elbc.o: In function `nand_boot':
nand_spl/board/sheldon/simpc8313/nand_boot_fsl_elbc.c:150: undefined reference to `flush_cache'
make[1]: *** [/home/r1aaha/git/u-boot-mpc83xx/nand_spl/u-boot-spl] Error 1
make: *** [nand_spl] Error 2

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years agompc8536ds.c: include sata.h to for needed function prototypes
Wolfgang Denk [Wed, 28 Jan 2009 08:25:31 +0000 (09:25 +0100)]
mpc8536ds.c: include sata.h to for needed function prototypes

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoCommand usage cleanup
Peter Tyser [Wed, 28 Jan 2009 00:03:12 +0000 (18:03 -0600)]
Command usage cleanup

Remove command name from all command "usage" fields and update
common/command.c to display "name - usage" instead of
just "usage". Also remove newlines from command usage fields.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
15 years agoamcc: Clean up command usage output
Peter Tyser [Wed, 28 Jan 2009 00:03:11 +0000 (18:03 -0600)]
amcc: Clean up command usage output

Update taihu and taishan commands to use cmd_usage() function
to display usage messages.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
15 years agoStandardize command usage messages with cmd_usage()
Peter Tyser [Wed, 28 Jan 2009 00:03:10 +0000 (18:03 -0600)]
Standardize command usage messages with cmd_usage()

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
15 years agopcs440ep: Clean up led command definition
Peter Tyser [Wed, 28 Jan 2009 00:03:09 +0000 (18:03 -0600)]
pcs440ep: Clean up led command definition

The pcs440ep's led command usage formatting is non-standard.  It
was made standard in preparation for larger command usage updates.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
15 years agoClean up diufb command definitions
Peter Tyser [Wed, 28 Jan 2009 00:03:08 +0000 (18:03 -0600)]
Clean up diufb command definitions

The diufb command usage formatting is non-standard.  It was
made standard in preparation for larger command usage updates.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
15 years agoUpdate CHANGELOG, tiny coding style cleanup.
Wolfgang Denk [Tue, 27 Jan 2009 23:29:26 +0000 (00:29 +0100)]
Update CHANGELOG, tiny coding style cleanup.

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoSATA: do not auto-initialize during boot
Mike Frysinger [Tue, 27 Jan 2009 21:12:21 +0000 (16:12 -0500)]
SATA: do not auto-initialize during boot

Rather than have the board code initialize SATA automatically during boot,
make the user manually run "sata init".  This brings the SATA subsystem in
line with common U-Boot policy.

Rather than having a dedicated weak function "is_sata_supported", people
can override sata_initialize() to do their weird board stuff.  Then they
can call the actual __sata_initialize().

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agopart_efi: Fix partition size calculation due to inclusive ending LBA.
Richard Retanubun [Mon, 26 Jan 2009 13:45:14 +0000 (08:45 -0500)]
part_efi: Fix partition size calculation due to inclusive ending LBA.

The ending LBA is inclusive. Hence, the partition size should be
((ending-LBA + 1) - starting-LBA) to get the proper partition size.

This is confirmed against the results from the parted tool.
(e.g. use parted /dev/sda -s unit S print) and observe the size.

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
15 years agojffs2: Fix zero sector_size when not using CONFIG_JFFS2_CMDLINE
Tomasz Figa [Tue, 30 Dec 2008 17:35:57 +0000 (18:35 +0100)]
jffs2: Fix zero sector_size when not using CONFIG_JFFS2_CMDLINE

This patch fixes a bug (?) introduced after inclusion of the new
JFFS2 code.

When not using CONFIG_JFFS2_CMDLINE, the code in cmd_jffs2.c doesn't
fill in part->sector_size (keeping it as 0), but a correct value is
needed by the code in jffs2_1pass.c. This causes all JFFS2 accesses
to be in the same place of the memory, what obviously means
impossibility to use the JFFS2 partition.

This problem is fixed in this patch by including sector size
calculation in non-CONFIG_JFFS2_CMDLINE mtdparts_init variant.

Signed-off-by: Tomasz Figa <tomasz.figa_at_gmail.com>
15 years agosaveenv: standardize enablement
Mike Frysinger [Tue, 30 Dec 2008 07:59:25 +0000 (02:59 -0500)]
saveenv: standardize enablement

Rather than special casing each environment type for enabling the saveenv
command, have them all behave the same.  This avoids bitrot as new env
sources are added/removed.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agosoft_i2c.c add option for repeated start in i2c_read()
Andrew Dyer [Mon, 29 Dec 2008 23:36:01 +0000 (17:36 -0600)]
soft_i2c.c add option for repeated start in i2c_read()

This patch adds a #define to optionally change the behaviour of
i2c_read() in soft_i2c.c to send an I2C repeated start instead of a
stop-start between sending the device address pointer write and
reading back the data.  The current behaviour is retained as the
default.

While most devices will work either way, I have a smart battery(*)
that requires repeated start, and someone at some point found a
device that required a stop-start.

(*) http://www.inspired-energy.com/Standard_Products/NL2054/NL2054%20Rev1.0%20Data%20Sheet.pdf

Signed-off-by: Andrew Dyer <adyer@righthandtech.com>
15 years ago{delta,zylonite}/lowlevel_init.S: fix typo
Wolfgang Denk [Tue, 27 Jan 2009 21:07:14 +0000 (22:07 +0100)]
{delta,zylonite}/lowlevel_init.S: fix typo

Commit 9d803d8c mistakenly changed some constants
from 0x300 into 300 - this patch fixes it.

Pointed out by Tom Evans <tom@ceos.com.au>, see
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/51992 for
details.

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agodrivers/net/e1000.c: missing terminator for supported devices
Stefan Althoefer [Sat, 20 Dec 2008 18:40:41 +0000 (19:40 +0100)]
drivers/net/e1000.c: missing terminator for supported devices

Signed-off-by: Stefan Althoefer <stefan.althoefer@web.de>
15 years agofat.c: fix warning: array subscript is above array bounds
Wolfgang Denk [Tue, 27 Jan 2009 20:36:28 +0000 (21:36 +0100)]
fat.c: fix warning: array subscript is above array bounds

Fix based on suggestion by David Hawkins <dwh@ovro.caltech.edu>.

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoFix gunzip in case of insufficient output buffer
Matthias Fuchs [Fri, 2 Jan 2009 14:11:41 +0000 (15:11 +0100)]
Fix gunzip in case of insufficient output buffer

U-Boot's gunzip() function does not handle the return code
of zlib's inflate() function correctly. gunzip() is implemented
to uncompress all input data in one run. So the correct return
code for the good case is Z_STREAM_END. In case of insufficient
output buffer memory inflate returns Z_OK. For gunzip() this
is an error.

It also makes sense to me to call inflateEnd() also in case
of an error.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
15 years agoMerge branch 'master' of git://git.denx.de/u-boot-mips
Wolfgang Denk [Tue, 27 Jan 2009 19:55:57 +0000 (20:55 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-mips

15 years agoMerge branch 'master' of git://git.denx.de/u-boot-cfi-flash
Wolfgang Denk [Tue, 27 Jan 2009 19:54:33 +0000 (20:54 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-cfi-flash

15 years agoMIPS: Add VCT board series support (Part 3/3)
Stefan Roese [Wed, 21 Jan 2009 16:25:01 +0000 (17:25 +0100)]
MIPS: Add VCT board series support (Part 3/3)

Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoMIPS: Add VCT board series support (Part 2/3)
Stefan Roese [Wed, 21 Jan 2009 16:24:49 +0000 (17:24 +0100)]
MIPS: Add VCT board series support (Part 2/3)

Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoMIPS: Add VCT board series support (Part 1/3)
Stefan Roese [Wed, 21 Jan 2009 16:24:39 +0000 (17:24 +0100)]
MIPS: Add VCT board series support (Part 1/3)

Signed-off-by: Stefan Roese <sr@denx.de>
15 years agoMIPS: Add flush_dcache_range() and invalidate_dcache_range()
Stefan Roese [Wed, 21 Jan 2009 16:20:20 +0000 (17:20 +0100)]
MIPS: Add flush_dcache_range() and invalidate_dcache_range()

This patch adds flush_/invalidate_dcache_range() to the MIPS architecture.
Those functions are needed for the upcoming dcache support for the USB
EHCI driver. I chose this API because those cache handling functions are
already present in the PPC architecture.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>