oweals/u-boot.git
13 years agopowerpc/mpc8xxx: fix recognition of DIMMs with ECC and Address Parity
York Sun [Thu, 17 Mar 2011 18:18:10 +0000 (11:18 -0700)]
powerpc/mpc8xxx: fix recognition of DIMMs with ECC and Address Parity

To recognize DIMMs with ECC capability by testing ECC bit only. Not to be
confused by Address Parity bit.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agostrmhz: Make hz unsigned to support greater than 2146 MHz clock
Ed Swarthout [Sat, 5 Mar 2011 16:28:17 +0000 (10:28 -0600)]
strmhz: Make hz unsigned to support greater than 2146 MHz clock

For example, an input of 0x80000000 should print:

2147.484 instead of -2147.-483.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agoIntroduce a new linker flag LDFLAGS_FINAL
Haiying Wang [Tue, 22 Feb 2011 21:38:05 +0000 (16:38 -0500)]
Introduce a new linker flag LDFLAGS_FINAL

commit 8aba9dceebb14144e07d19593111ee3a999c37fc
Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS

breaks the usage of --gc-section to build nand_spl. We still need linker option
--gc-section for every uboot image, not only the main one. LDFLAGS_FINAL passes
the --gc-sections to each uboot image.

To get the proper linker flags, we use LDFLAGS and LDFLAGS_FINAL to replace
PLATFORM_LDFLAGS in the Makefile of each nand_spl board.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
13 years agoFix hash table deletion to prevent lost entries
Peter Barada [Mon, 21 Mar 2011 23:05:20 +0000 (19:05 -0400)]
Fix hash table deletion to prevent lost entries

Use negative used value to mark deleted entry.  Search keeps probing
past deleted entries.  Adding an entry uses first deleted entry when
it hits end of probe chain.

Initially found that "ramdiskimage" and "preboot" collide modulus 347,
causing "preboot" to be inserted at idx 190, "ramdiskimage" at idx 191.
Previous to this fix when "preboot" is deleted, "ramdiskimage" is
orphaned.

Signed-off-by: Peter Barada <peter.barada@logicpd.com>
Tested-by: Wolfgang Denk <wd@denx.de>
13 years agoTop config.mk: add include/config.mk
Joakim Tjernlund [Mon, 17 Jan 2011 22:39:26 +0000 (23:39 +0100)]
Top config.mk: add include/config.mk

Seems to me that the top level config.mk should include
the auto generated include/config.mk so that all Makefile's
pickup those definitions.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
13 years agonet: ftmac100: update get_timer() usages
Po-Yu Chuang [Fri, 21 Jan 2011 07:51:25 +0000 (15:51 +0800)]
net: ftmac100: update get_timer() usages

Use get_timer() the same way as drivers/net/ftgmac100.c

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
Reviewed-by: Macpaul Lin <macpaul@gmail.com>
Tested-by: Macpaul Lin <macpaul@gmail.com>
13 years agonet: ftmac100: remove unnecessary volatiles
Po-Yu Chuang [Fri, 21 Jan 2011 07:50:37 +0000 (15:50 +0800)]
net: ftmac100: remove unnecessary volatiles

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
Reviewed-by: Macpaul Lin <macpaul@gmail.com>
Tested-by: Macpaul Lin <macpaul@gmail.com>
13 years agompc52xx, digsy_mtc_rev5: Fix Linux crash, if no Flash in bank 2
Heiko Schocher [Fri, 21 Jan 2011 06:23:35 +0000 (07:23 +0100)]
mpc52xx, digsy_mtc_rev5: Fix Linux crash, if no Flash in bank 2

If no Flash is connected to cs1, Linux crashes, because
reg entries are not correct adapted.

Following fix is needed:
- swap base addresses in CONFIG_SYS_FLASH_BANKS_LIST, as
  flash bank 1 is on chipselect 0 and flash bank 2 on
  chipselect 1
- call fdt_fixup_nor_flash_size() from ft_board_setup()

Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <hs@denx.de>
cc: Werner Pfister <Pfister_Werner@intercontrol.de>
cc: Detlev Zundel <dzu@denx.de>

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-ubi
Wolfgang Denk [Mon, 21 Mar 2011 20:40:15 +0000 (21:40 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-ubi

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-sh
Wolfgang Denk [Mon, 21 Mar 2011 20:38:29 +0000 (21:38 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-sh

13 years agoUBI: Fix error code handling in ubi commands
Stefan Roese [Mon, 14 Mar 2011 13:34:21 +0000 (14:34 +0100)]
UBI: Fix error code handling in ubi commands

Some ubi commands returned negative error codes, resulting in
the following error message on the prompt:

"exit not allowed from main input shell."

Negative error codes are not allowed.

This patch now changes the UBI code to return positive error codes.
Additionally "better" error codes are used, for example "ENOMEM" when
no memory is available for the UBI volume creation any more.

Also the output of some commands is enhanced:

Before:

=> ubi read 100000 testvol 100000
Volume testvol found at volume id 0
read 1048576 bytes from volume 0 to 100000(buf address)
=> ubi write 100000 testvol 1000
Volume testvol found at volume id 0

After:

=> ubi read 100000 testvol 100000
Read 1048576 bytes from volume testvol to 00100000
=> ubi write 100000 testvol 1000
4096 bytes written to volume testvol

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
13 years agosh: Add KEEP order to start.o section
Nobuhiro Iwamatsu [Mon, 7 Mar 2011 07:36:21 +0000 (16:36 +0900)]
sh: Add KEEP order to start.o section

The start.o section is changed by --gc-section option of ld.
Of this using KEEP order, therefore, evade this problem.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agosh: Add handling of CONFIG_SYS_NO_FLASH for board.c
Nobuhiro Iwamatsu [Mon, 7 Mar 2011 02:21:40 +0000 (11:21 +0900)]
sh: Add handling of CONFIG_SYS_NO_FLASH for board.c

Some board of SH does not have flash memoy.
This revises it to initialize Flash when CONFIG_SYS_NO_FLASH is not
defined.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agonet: sh_eth: add support for SH7757's ETHER
Yoshihiro Shimoda [Tue, 18 Jan 2011 08:53:45 +0000 (17:53 +0900)]
net: sh_eth: add support for SH7757's ETHER

SH7757 has ETHER and GETHER. This patch supports EHTER only.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agopowerpc/85xx: Fix synchronization of timebase on MP boot
Kumar Gala [Sun, 13 Mar 2011 15:55:53 +0000 (10:55 -0500)]
powerpc/85xx: Fix synchronization of timebase on MP boot

There is a small ordering issue in the master core in that we need to
make sure the disabling of the timebase in the SoC is visible before we
set the value to 0.  We can simply just read back the value to
synchronizatize the write, before we set TB to 0.

Reported-by: Dan Hettena
Tested-by: Dan Hettena
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agompc8[5/6]xx: Ensure POST word does not get reset
John Schmoller [Thu, 10 Mar 2011 22:09:26 +0000 (16:09 -0600)]
mpc8[5/6]xx: Ensure POST word does not get reset

The POST word is stored in a spare register in the PIC on MPC8[5/6]xx
processors.  When interrupt_init() is called, this register gets reset
which resulted in all POST_RAM POSTs not being ran due to the corrupted
POST word.  To resolve this, store off POST word before the PIC is
reset, and restore it after the PIC has been initialized.

Signed-off-by: John Schmoller <jschmoller@xes-inc.com>
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agofsl_esdhc: Correcting esdhc timeout counter calculation
Priyanka Jain [Thu, 3 Mar 2011 03:48:56 +0000 (09:18 +0530)]
fsl_esdhc: Correcting esdhc timeout counter calculation

- Timeout counter value is set as DTOCV bits in SYSCTL register
  For counter value set as timeout,
  Timeout period = (2^(timeout + 13)) SD Clock cycles

- As per 4.6.2.2 section of SD Card specification v2.00, host should
  cofigure timeout period value to minimum 0.25 sec.

- Number of SD Clock cycles for 0.25sec should be minimum
(SD Clock/sec * 0.25 sec) SD Clock cycles
= (mmc->tran_speed * 1/4) SD Clock cycles

- Calculating timeout based on
(2^(timeout + 13)) >=  mmc->tran_speed * 1/4
Taking log2 both the sides and rounding up to next power of 2
=> timeout + 13 = log2(mmc->tran_speed/4) + 1

Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Acked-by: Mingkai Hu <Mingkai.Hu@freescale.com>
Tested-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Fix pixis_reset altbank mask on MPC8536DS
Matthew McClintock [Fri, 25 Feb 2011 22:20:11 +0000 (16:20 -0600)]
powerpc/85xx: Fix pixis_reset altbank mask on MPC8536DS

Currently, pixis_reset altbank does not work properly. This patch
uses the correct mask to boot into the alternate bank.

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Fix plat_mp_up() disabling of BPTR for CoreNet Platforms
Ed Swarthout [Fri, 4 Mar 2011 00:28:14 +0000 (18:28 -0600)]
powerpc/85xx: Fix plat_mp_up() disabling of BPTR for CoreNet Platforms

Copying directly from ECM/PQ3 is not correct for how CoreNet based
platforms handle boot page translation.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/corenet_ds: revise platform dependent parameters
York Sun [Wed, 2 Mar 2011 22:24:12 +0000 (14:24 -0800)]
powerpc/corenet_ds: revise platform dependent parameters

This patch revised clk_adjust and wrlvl_start timings for corenet_ds, based
on testing on Virtium VL33B5163F-K9S and Kingston KVR1333D3Q8R9S/4G.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agocorenet_ds: pick the middle value for all tested timing parameters
York Sun [Wed, 19 Jan 2011 23:37:33 +0000 (15:37 -0800)]
corenet_ds: pick the middle value for all tested timing parameters

For DDR3 controller, the clk_adjust and wrlvl_start are platform-dependent.
The best values should be picked up from the middle of all working
combinations. This patch updates the table with confirmed values tested on
Hynix dual-rank UDIMMs (HMT125U7BFR8C-H9) at 1300MT/s, 1200MT/s, 1000MT/s,
900MT/s, 800MT/s and Kingston quad-rank RDIMMs (KVR1333D3Q8R9S/4G) at 1300MT/s,
1200MT/s, 1000MT/s.

Signed-off-by: York Sun <yorksun@freescale.com>
13 years agopowerpc/mpc8xxx: Fix DDR3 timing_cfg_1 and sdram_mode registers
York Sun [Wed, 2 Mar 2011 22:24:11 +0000 (14:24 -0800)]
powerpc/mpc8xxx: Fix DDR3 timing_cfg_1 and sdram_mode registers

The write recovery time of both registers should match. Since mode register
doesn't support cycles of 9,11,13,15, we should use next higher number for
both registers.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agofsl_law: Fix LAW printing function
Kumar Gala [Sat, 12 Feb 2011 21:34:08 +0000 (15:34 -0600)]
fsl_law: Fix LAW printing function

We had an extra '0x' in the output of the LAWAR header that would cause
output like:

LAWBAR11: 0x00000000 LAWAR0x11: 0x80f0001d

intead of:

LAWBAR11: 0x00000000 LAWAR11: 0x80f0001d

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agoARM: Update mach-types
Sandeep Paulraj [Wed, 16 Feb 2011 11:15:45 +0000 (11:15 +0000)]
ARM: Update mach-types

This commit updates the mach-types based on the latest
in linus's head

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
13 years agoarm1136 relocation: Fix calculation of board_init_r
Fabio Estevam [Thu, 17 Feb 2011 14:27:41 +0000 (14:27 +0000)]
arm1136 relocation: Fix calculation of board_init_r

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agoarm1136: Fix NAND boot
Fabio Estevam [Wed, 9 Feb 2011 01:17:54 +0000 (01:17 +0000)]
arm1136: Fix NAND boot

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
Tested-by: Magnus Lilja <lilja.magnus@gmail.com>
13 years agoarm: get_sp() should always be compiled
Po-Yu Chuang [Tue, 15 Feb 2011 22:54:35 +0000 (22:54 +0000)]
arm: get_sp() should always be compiled

get_sp() was incorrectly excluded if none of
  CONFIG_SETUP_MEMORY_TAGS
  CONFIG_CMDLINE_TAG
  CONFIG_INITRD_TAG
  CONFIG_SERIAL_TAG
  CONFIG_REVISION_TAG
were defined.

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
13 years agoPantheon: Add Board Support for Marvell dkb board
Lei Wen [Wed, 9 Feb 2011 12:47:47 +0000 (18:17 +0530)]
Pantheon: Add Board Support for Marvell dkb board

DKB is a Development Board for PANTHEON TD/TTC(pxa920/pxa910) with
* Processor upto 806Mhz
* LPDDR1/2
* x8/x16 SLC/MLC NAND
* Footprints for eMMC & MMC x8 card

With Peripherals:
* Parallel LCD I/F
* Audio codecs (88PM8607)
* MIPI CSI-2 camera
* Marvell 88W8787 802.11n/BT module
* Marvell 2G/3G RF
* Dual analog mics & speakers, headset jack, LED, ambient
* USB2.0 HS host, OTG (mini AB)
* GPIO, GPIO expander with DIP switches for easier selection
* UART serial over USB, CIR

This patch adds basic board support with DRAM and UART functionality

Signed-off-by: Lei Wen <leiwen@marvell.com>
Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
13 years agomvmfp: add MFP configuration support for PANTHEON
Lei Wen [Wed, 9 Feb 2011 12:36:58 +0000 (18:06 +0530)]
mvmfp: add MFP configuration support for PANTHEON

This patch adds the Multiple Function Pin configuration support for
Marvell PANTHEON SoCs

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoserial: add pantheon soc support
Lei Wen [Wed, 9 Feb 2011 12:36:58 +0000 (18:06 +0530)]
serial: add pantheon soc support

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoARM: Add Support for Marvell Pantheon Familiy SoCs
Lei Wen [Wed, 9 Feb 2011 12:36:58 +0000 (18:06 +0530)]
ARM: Add Support for Marvell Pantheon Familiy SoCs

Pantheon Family processors are highly integrated SoCs
based on Sheeva_88SV331x-v5 PJ1 cpu core.
Ref:
http://www.marvell.com/products/processors/communications/marvell_pantheon_910_920_pb.pdf

SoC versions Supported:
1) PANTHEON920          (TD)
2) PANTHEON910          (TTC)

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agomv: seperate kirkwood and armada from common setting
Lei Wen [Wed, 9 Feb 2011 12:36:58 +0000 (18:06 +0530)]
mv: seperate kirkwood and armada from common setting

Since there are lots of difference between kirkwood and armada series,
it is better to seperate them but still keep the most common file
shared by all marvell platform in the mv-common configure file.

This patch move the kirkwood only driver definitoin in mv-common to
the <soc_name>/config.h.

This patch is tested with compilation for armada100 and guruplug.

Signed-off-by: Lei Wen <leiwen@marvell.com>
13 years agoARM: fix write*() I/O accessors
Wolfgang Denk [Fri, 11 Feb 2011 12:25:48 +0000 (12:25 +0000)]
ARM: fix write*() I/O accessors

Commit 3c0659b "ARM: Avoid compiler optimization for readb, writeb
and friends." introduced I/O accessors with memory barriers.
Unfortunately the new write*() accessors introduced a bug:

The problem is that the argument "v" gets evaluated twice.  This
breaks code like used here (from "drivers/net/dnet.c"):

for (i = 0; i < wrsz; i++)
writel(*bufp++, &dnet->regs->TX_DATA_FIFO);

Use auxiliary variables to avoid such problems.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert Aribaud <albert.aribaud@free.fr>
Cc: Alexander Holler <holler@ahsoftware.de>
Cc: Dirk Behme <dirk.behme@googlemail.com>
13 years agoarm relocation: Fix calculation of board_init_r
Alexander Stein [Thu, 3 Feb 2011 10:52:29 +0000 (10:52 +0000)]
arm relocation: Fix calculation of board_init_r

Signed-off-by: Alexander Stein <alexander.stein@informatik.tu-chemnitz.de>
13 years agoarm: Tegra2: Add support for NVIDIA Seaboard board
Tom Warren [Thu, 27 Jan 2011 10:58:08 +0000 (10:58 +0000)]
arm: Tegra2: Add support for NVIDIA Seaboard board

Signed-off-by: Tom Warren <twarren@nvidia.com>
13 years agoarm: Tegra2: Add support for NVIDIA Harmony board
Tom Warren [Thu, 27 Jan 2011 10:58:07 +0000 (10:58 +0000)]
arm: Tegra2: Add support for NVIDIA Harmony board

Signed-off-by: Tom Warren <twarren@nvidia.com>
13 years agoserial: Add Tegra2 serial port support
Tom Warren [Thu, 27 Jan 2011 10:58:06 +0000 (10:58 +0000)]
serial: Add Tegra2 serial port support

Signed-off-by: Tom Warren <twarren@nvidia.com>
13 years agoarm: Tegra2: Add basic NVIDIA Tegra2 SoC support
Tom Warren [Thu, 27 Jan 2011 10:58:05 +0000 (10:58 +0000)]
arm: Tegra2: Add basic NVIDIA Tegra2 SoC support

Signed-off-by: Tom Warren <twarren@nvidia.com>
13 years agomx31pdk: Make the full boot log visible
Fabio Estevam [Wed, 9 Feb 2011 01:17:56 +0000 (01:17 +0000)]
mx31pdk: Make the full boot log visible

Use board_early_init_f so that the full boot log output can be displayed.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agomx31pdk: Use the new relocation scheme
Fabio Estevam [Wed, 9 Feb 2011 01:17:55 +0000 (01:17 +0000)]
mx31pdk: Use the new relocation scheme

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
13 years agoEfikaMX: switch to MACH_TYPE_MX51_EFIKAMX
Loïc Minier [Thu, 3 Feb 2011 04:19:09 +0000 (04:19 +0000)]
EfikaMX: switch to MACH_TYPE_MX51_EFIKAMX

Upstream linux moved from MACH_TYPE_MX51_LANGE51 to
MACH_TYPE_MX51_EFIKAMX.

Signed-off-by: Loïc Minier <loic.minier@linaro.org>
13 years agoFix compile warning in net/eth.c
Remy Bohmer [Sat, 19 Feb 2011 19:15:14 +0000 (20:15 +0100)]
Fix compile warning in net/eth.c

Signed-off-by: Remy Bohmer <linux@bohmer.net>
13 years agoFix build warnings in cmd_flash.c
Remy Bohmer [Sat, 19 Feb 2011 18:56:28 +0000 (19:56 +0100)]
Fix build warnings in cmd_flash.c

These variables are only used in case CONFIG_SYS_NO_FLASH is NOT set:
struct mtd_device *dev;
struct part_info *part;
u8 dev_type, dev_num, pnum;

Signed-off-by: Remy Bohmer <linux@bohmer.net>
13 years agoUSB-RNDIS: Send RNDIS state on disconnecting
Vitaly Kuzmichev [Fri, 11 Feb 2011 15:18:35 +0000 (18:18 +0300)]
USB-RNDIS: Send RNDIS state on disconnecting

Add waiting for receiving Ethernet gadget state on the Windows host
side before dropping pullup, but keep it for debug.

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
13 years agoUSB: Add USB RNDIS gadget protocol
Vitaly Kuzmichev [Fri, 11 Feb 2011 15:18:34 +0000 (18:18 +0300)]
USB: Add USB RNDIS gadget protocol

Port USB gadget RNDIS protocol support from linux-2.6.26
(.27 gadget stack actually has composite drivers).

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
13 years agoUSB-CDC: Move struct declaration before its use
Vitaly Kuzmichev [Fri, 11 Feb 2011 15:18:33 +0000 (18:18 +0300)]
USB-CDC: Move struct declaration before its use

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
13 years agoUSB-CDC: Port struct net_device_stats
Vitaly Kuzmichev [Fri, 11 Feb 2011 15:18:32 +0000 (18:18 +0300)]
USB-CDC: Port struct net_device_stats

Port struct net_device_stats and statistics collecting needed for
RNDIS protocol.

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
13 years agoUSB-CDC: handle interrupt after dropped pullup
Vitaly Kuzmichev [Fri, 11 Feb 2011 15:18:31 +0000 (18:18 +0300)]
USB-CDC: handle interrupt after dropped pullup

Disconnecting USB gadget with pending interrupt may cause its wrong
handling in the next time when interface will be started again
(especially actual for RNDIS). This interrupt may force the gadget
to queue unexpected response before setup stage.
Despite the fact that such interrupt handled after dropped pullup
also may add pending response, this will not bring to any issues due to
usb_ep_disable (which clears the queue) called on gadget unregistering.

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
13 years agoAdd support for ASIX AX88772 USB 2.0 10/100Mbit Ethernet Adaptor
Simon Glass [Wed, 16 Feb 2011 19:14:34 +0000 (11:14 -0800)]
Add support for ASIX AX88772 USB 2.0 10/100Mbit Ethernet Adaptor

Driver originally written by NVIDIA Corporation, modified to
handle odd-length packets.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agoAdd USB host ethernet adapter support
Simon Glass [Wed, 16 Feb 2011 19:14:33 +0000 (11:14 -0800)]
Add USB host ethernet adapter support

This adds support for using USB Ethernet dongles in host mode. This is just
the framework - drivers will come later. A new config option called
CONFIG_USB_HOST_ETHER can be defined in board config files to switch this
on.

The was originally written by NVIDIA and was cleaned up for release by the
Chromium authors.

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agoFix EHCI usb submit timeout and unify with OHCI
Simon Glass [Mon, 7 Feb 2011 22:42:16 +0000 (14:42 -0800)]
Fix EHCI usb submit timeout and unify with OHCI

Changed both to use a common timeout for URB submission, since they were using
different values and EHCI's was too short.

Also fixed EHCI to actually check if urb submission succeeded, rather than
silently continuing into the weeds.

Change-Id: I7f71499ffaa05187d8e5618db2419e1606007b82

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agoadd checking the CONFIG_ENV_IS_IN_SPI_FLASH in Enbedded env
Yoshihiro Shimoda [Tue, 25 Jan 2011 00:28:19 +0000 (09:28 +0900)]
add checking the CONFIG_ENV_IS_IN_SPI_FLASH in Enbedded env

Fix the problem which cannot build the U-boot, if we only set
the CONFIG_ENV_IS_IN_SPI_FLASH.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
13 years agonet: ne2000: Add spport RTL-8019AS
Nobuhiro Iwamatsu [Tue, 26 Oct 2010 11:32:00 +0000 (20:32 +0900)]
net: ne2000: Add spport RTL-8019AS

Add infomation of RTL-8016AS to hw_info.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
CC: Ben Warren <biggerbadderben@gmail.com>
13 years agounzip: return uncompressed size in `filesize', and print it.
Wolfgang Denk [Fri, 11 Feb 2011 19:20:51 +0000 (20:20 +0100)]
unzip: return uncompressed size in `filesize', and print it.

The unzip command did not provide a way for the caller to get any
information about the uncompressed size.  To make it better usable in
scripts, we now store the uncompressed size in the `filesize'
variable, like we do when for example loading a file over the network
or when reading it from a file system.  Following that analogy, it is
only consequent to also print the size.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoitest: fix result of string compares
Wolfgang Denk [Tue, 8 Feb 2011 15:56:05 +0000 (16:56 +0100)]
itest: fix result of string compares

The implementation of the string compare function of the "itest"
command was weird, as only the length of the shortest argument was
included in the compare, with the result that something like
"itest.s abd == abddef" would return TRUE.  Fix this.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
13 years agomicroblaze: Fix msr handling in interrupt_handler
Michal Simek [Mon, 7 Feb 2011 09:33:50 +0000 (10:33 +0100)]
microblaze: Fix msr handling in interrupt_handler

Fix ancient code which worked with MSR in a bad way.
Use rtid instruction which enable IRQs and jump.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agomicroblaze: Fix systems with MSR=0
Michal Simek [Mon, 7 Feb 2011 09:30:45 +0000 (10:30 +0100)]
microblaze: Fix systems with MSR=0

u-boot BSP generates XILINX_USE_MSR_INSTR macro
even for system with MSR=0. That's why explicitly
check that MSR=1.

Signed-off-by: Michal Simek <monstr@monstr.eu>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-mips
Wolfgang Denk [Sat, 12 Feb 2011 19:37:47 +0000 (20:37 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-mips

13 years agoeNET: Move initial Global Data into CAR
Graeme Russ [Sat, 12 Feb 2011 04:12:14 +0000 (15:12 +1100)]
eNET: Move initial Global Data into CAR

13 years agosc520: Release CAR and enable caching
Graeme Russ [Sat, 12 Feb 2011 04:12:12 +0000 (15:12 +1100)]
sc520: Release CAR and enable caching

13 years agox86: Convert board_init_f to use an init_sequence
Graeme Russ [Sat, 12 Feb 2011 04:12:10 +0000 (15:12 +1100)]
x86: Convert board_init_f to use an init_sequence

13 years agox86: Rearrange function calls in board_init_f
Graeme Russ [Sat, 12 Feb 2011 04:12:08 +0000 (15:12 +1100)]
x86: Rearrange function calls in board_init_f

13 years agox86: Split board_init_f() into init_fnc_t compatible functions
Graeme Russ [Sat, 12 Feb 2011 04:12:06 +0000 (15:12 +1100)]
x86: Split board_init_f() into init_fnc_t compatible functions

13 years agox86: Fix incorrect usage of relocation offset
Graeme Russ [Sat, 12 Feb 2011 04:12:05 +0000 (15:12 +1100)]
x86: Fix incorrect usage of relocation offset

x86 has always used relocation offset in the opposite sense to the ELF
standard - Fix this

13 years agox86: Move console initialisation into board_init_f
Graeme Russ [Sat, 12 Feb 2011 04:12:03 +0000 (15:12 +1100)]
x86: Move console initialisation into board_init_f

13 years agox86: Move test for cold boot into init functions
Graeme Russ [Sat, 12 Feb 2011 04:12:01 +0000 (15:12 +1100)]
x86: Move test for cold boot into init functions

13 years agox86: Move call to dram_init_f into board_init_f
Graeme Russ [Sat, 12 Feb 2011 04:11:59 +0000 (15:11 +1100)]
x86: Move call to dram_init_f into board_init_f

13 years agox86: Defer setup of final stack
Graeme Russ [Sat, 12 Feb 2011 04:11:58 +0000 (15:11 +1100)]
x86: Defer setup of final stack

13 years agosc520: Move RAM sizing code from asm to C
Graeme Russ [Sat, 12 Feb 2011 04:11:54 +0000 (15:11 +1100)]
sc520: Move RAM sizing code from asm to C

13 years agox86: Use Cache-As-RAM for initial stack
Graeme Russ [Sat, 12 Feb 2011 04:11:52 +0000 (15:11 +1100)]
x86: Use Cache-As-RAM for initial stack

13 years agox86: Move initial gd to fixed location
Graeme Russ [Sat, 12 Feb 2011 04:11:50 +0000 (15:11 +1100)]
x86: Move initial gd to fixed location

13 years agoeNET: General code cleanup
Graeme Russ [Sat, 12 Feb 2011 04:11:48 +0000 (15:11 +1100)]
eNET: General code cleanup

13 years agoeNET: Rearrange PAR assignments
Graeme Russ [Sat, 12 Feb 2011 04:11:47 +0000 (15:11 +1100)]
eNET: Rearrange PAR assignments

13 years agoeNET: Define MMCR values in config.h
Graeme Russ [Sat, 12 Feb 2011 04:11:45 +0000 (15:11 +1100)]
eNET: Define MMCR values in config.h

13 years agoeNET: Add RTC support to eNET
Graeme Russ [Sat, 12 Feb 2011 04:11:43 +0000 (15:11 +1100)]
eNET: Add RTC support to eNET

The SC520 has an inbuilt MC146818 - Enable it for the eNET board

13 years agoeNET: Fix eNET Interrupt Setup for Linux
Graeme Russ [Sat, 12 Feb 2011 04:11:41 +0000 (15:11 +1100)]
eNET: Fix eNET Interrupt Setup for Linux

Fix minor issues with the configuration of the hardware interrupts for
Linux when booting the eNET board

13 years agosc520: Remove printf calls from cpu_init_f
Graeme Russ [Sat, 12 Feb 2011 04:11:40 +0000 (15:11 +1100)]
sc520: Remove printf calls from cpu_init_f

In later patches, cpu_init_f will be called before console has been
initialised and printf will not be legitimately available

13 years agosc520: Move board specific settings to board init function
Graeme Russ [Sat, 12 Feb 2011 04:11:38 +0000 (15:11 +1100)]
sc520: Move board specific settings to board init function

13 years agosc520: Define MMCR address in include file
Graeme Russ [Sat, 12 Feb 2011 04:11:36 +0000 (15:11 +1100)]
sc520: Define MMCR address in include file

13 years agox86: Make cpu init functions weak
Graeme Russ [Sat, 12 Feb 2011 04:11:35 +0000 (15:11 +1100)]
x86: Make cpu init functions weak

13 years agox86: Call early_board_init when warm booting
Graeme Russ [Sat, 12 Feb 2011 04:11:33 +0000 (15:11 +1100)]
x86: Call early_board_init when warm booting

early_board_init has been skipped to avoid SDRAM corruption in the case
that a fully relocatable image has been loaded into SDRAM and is being
executed from SDRAM. x86 is being aligned with other architectures (ARM
and PPC in particlar) and will be using Cache-As-RAM to run a C
environment from Flash (or SRAM if you have some). early_board_init may
be needed to assist in the setup of Cache-As-RAM and the early C
environment

13 years agox86: Add processor flags header from linux
Graeme Russ [Sat, 12 Feb 2011 04:11:32 +0000 (15:11 +1100)]
x86: Add processor flags header from linux

13 years agox86: Move Global Descriptor Table defines to processor.h
Graeme Russ [Sat, 12 Feb 2011 04:11:30 +0000 (15:11 +1100)]
x86: Move Global Descriptor Table defines to processor.h

13 years agox86: Add stack dump to register dump
Graeme Russ [Sat, 12 Feb 2011 04:11:28 +0000 (15:11 +1100)]
x86: Add stack dump to register dump

13 years agox86: Fix mangled umlauts
Graeme Russ [Sat, 12 Feb 2011 04:11:26 +0000 (15:11 +1100)]
x86: Fix mangled umlauts

git mergetool has a nasty habit of mangling umlats - fix ones that have
been missed in previous submissions

13 years agosc520: Sort Makefile
Graeme Russ [Sat, 12 Feb 2011 04:11:25 +0000 (15:11 +1100)]
sc520: Sort Makefile

13 years agox86: Parametize values used in linker script
Graeme Russ [Sat, 12 Feb 2011 04:11:24 +0000 (15:11 +1100)]
x86: Parametize values used in linker script

13 years agoeNET: Create distinct board configurations
Graeme Russ [Sat, 12 Feb 2011 04:11:22 +0000 (15:11 +1100)]
eNET: Create distinct board configurations

Position independant functionality is due for removal from the x86
architecture, so create two distinct configurations - One for Flash and
one for SRAM

13 years agox86: Align config.mk and linker scripts with other arches
Graeme Russ [Sat, 12 Feb 2011 04:11:21 +0000 (15:11 +1100)]
x86: Align config.mk and linker scripts with other arches

13 years agox86: Fix definition of global_data struct for asm-offsets.c
Graeme Russ [Sat, 12 Feb 2011 04:11:21 +0000 (15:11 +1100)]
x86: Fix definition of global_data struct for asm-offsets.c

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Wolfgang Denk [Fri, 11 Feb 2011 20:23:33 +0000 (21:23 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx

13 years agopowerpc/8xxx: Add additional cycle to write-to-read turnaound for DDR3
York Sun [Thu, 10 Feb 2011 18:13:10 +0000 (10:13 -0800)]
powerpc/8xxx: Add additional cycle to write-to-read turnaound for DDR3

When DDR data rate is higher than 1200MT/s or controller interleaving is
enabled, additional cycle for write-to-read turnaround is needed to satisfy
dynamic ODT timing.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: corrected p1_p2_rdb EEPROM address
Priyanka Jain [Tue, 8 Feb 2011 07:47:56 +0000 (13:17 +0530)]
powerpc/85xx: corrected p1_p2_rdb EEPROM address

Board EEPROM is used to read/save Ethernet MAC addresses.

Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agopowerpc/85xx: Fix p1_p2_rdb boards.cfg
Kumar Gala [Thu, 10 Feb 2011 05:36:24 +0000 (23:36 -0600)]
powerpc/85xx: Fix p1_p2_rdb boards.cfg

We should have been defining the actual board name in the options, not
the processor.  Fix this for P1011RDB, P1020RDB, P2010RDB, and P2020RDB.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agofsl: update CRC after setting EEPROM identifier
Timur Tabi [Wed, 9 Feb 2011 19:40:51 +0000 (13:40 -0600)]
fsl: update CRC after setting EEPROM identifier

The "mac id" command is used to initialize the EEPROM data to a specific
format, but it was not updating the CRC.  This didn't cause any real
problems, because writing the data to the EEPROM will always update the
CRC anyway, but it did result in a bogus CRC warning.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agocmd_bmp.c: message about compressed formats is debug info only.
Wolfgang Denk [Wed, 9 Feb 2011 14:11:10 +0000 (15:11 +0100)]
cmd_bmp.c: message about compressed formats is debug info only.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
13 years agoMerge branch 'master' of git://git.denx.de/u-boot-nand-flash
Wolfgang Denk [Wed, 9 Feb 2011 20:22:58 +0000 (21:22 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash

13 years agoMerge branch 'next' of git://git.denx.de/u-boot-nios
Wolfgang Denk [Wed, 9 Feb 2011 19:54:53 +0000 (20:54 +0100)]
Merge branch 'next' of git://git.denx.de/u-boot-nios

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Wed, 9 Feb 2011 19:50:26 +0000 (20:50 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

13 years agoNAND: env: remember the flags used in the previous environment
Scott Wood [Tue, 8 Feb 2011 21:25:02 +0000 (15:25 -0600)]
NAND: env: remember the flags used in the previous environment

Previously, uninitialized stack space was being referenced.

Signed-off-by: Scott Wood <scottwood@freescale.com>