]> git.sur5r.net Git - u-boot/log
u-boot
15 years agosh: Add system memory registration to PCI for SH4
Yoshihiro Shimoda [Wed, 25 Feb 2009 05:26:52 +0000 (14:26 +0900)]
sh: Add system memory registration to PCI for SH4

It is necessary for some pci device driver.

Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
15 years agosh: Add value for PCI system memory registration of sh7785lcr
Yoshihiro Shimoda [Wed, 25 Feb 2009 05:26:55 +0000 (14:26 +0900)]
sh: Add value for PCI system memory registration of sh7785lcr

Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
15 years agosh: Add macros for SH-4A 32-Bit Address Extended Mode
Yoshihiro Shimoda [Tue, 3 Mar 2009 06:11:08 +0000 (15:11 +0900)]
sh: Add macros for SH-4A 32-Bit Address Extended Mode

Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
15 years agosh: use write{8,16,32} in ms7720se lowlevel_init
Nobuhiro Iwamatsu [Tue, 3 Feb 2009 04:35:05 +0000 (13:35 +0900)]
sh: use write{8,16,32} in ms7720se lowlevel_init

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
15 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Wolfgang Denk [Tue, 10 Mar 2009 21:04:04 +0000 (22:04 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx

15 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc83xx
Wolfgang Denk [Tue, 10 Mar 2009 21:01:38 +0000 (22:01 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx

15 years agotsec: report when there is no vendor specific PHY support
Paul Gortmaker [Mon, 9 Mar 2009 23:07:53 +0000 (18:07 -0500)]
tsec: report when there is no vendor specific PHY support

Commit af1c2b84 added a generic phy support, with an ID of zero
and a 32 bit mask; meaning that it will match on any PHY ID.

The problem is that there is a test that checked if a matching
PHY was found, and if not, it printed the non-matching ID.
But since there will always be a match (on the generic PHY,
worst case), this test will never trip.

In the case of a misconfigured PHY address, or of a PHY that
isn't explicitly supported outside of the generic support,
you will never see the ID of 0xffffffff, or the ID of the
real (but unsupported) chip.  It will silently fall through
onto the generic support.

This change makes that test useful again, and ensures that
the selection of generic PHY support doesn't happen without
some sort of notice.  It also makes it explicitly clear that
the generic PHY must be last in the PHY table.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Andy Fleming <afleming@freescale.com>
15 years agoSIMPC8313 board: fix out of tree building.
Wolfgang Denk [Mon, 9 Mar 2009 09:53:05 +0000 (10:53 +0100)]
SIMPC8313 board: fix out of tree building.

Fix typo in makefile which broke out of tree builds.

Also use expolicit "rm" instead of "ln -sf" which is known to be
unreliable.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years agoAdd eTSEC 1/2 IO override control (corrected)
ksi@koi8.net [Mon, 23 Feb 2009 18:53:13 +0000 (10:53 -0800)]
Add eTSEC 1/2 IO override control (corrected)

This adds tsec12ioovcr to include/asm-ppc/immap_85xx.h (was reserved.)

Signed-off-by: Sergey Kubushyn <ksi@koi8.net>
15 years agofsl: Remove unnecessary debug printfs
Andy Fleming [Sat, 7 Mar 2009 01:05:52 +0000 (19:05 -0600)]
fsl: Remove unnecessary debug printfs

These were left in accidentally, and are not really useful unless the
code is as broken as it was when it was being developed.

Signed-off-by: Andy Fleming <afleming@freescale.com>
15 years agoFix mpc85xx ddr-gen3 ddr_sdram_cfg.
Ed Swarthout [Tue, 24 Feb 2009 08:37:59 +0000 (02:37 -0600)]
Fix mpc85xx ddr-gen3 ddr_sdram_cfg.

Commit e1be0d25, "32bit BUg fix for DDR2 on 8572" prevented other
sdram_cfg bits (such as ecc and self_refresh_in_sleep) from being set.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
15 years agoSIMPC8313 board: fix out of tree building.
Wolfgang Denk [Mon, 9 Mar 2009 09:51:39 +0000 (10:51 +0100)]
SIMPC8313 board: fix out of tree building.

Fix typo in makefile which broke out of tree builds.

Also use expolicit "rm" instead of "ln -sf" which is known to be
unreliable.

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc83xx
Wolfgang Denk [Sun, 8 Mar 2009 23:41:48 +0000 (00:41 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx

Conflicts:
lib_ppc/board.c

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years ago8360, kmeter1: added bootcount feature.
Heiko Schocher [Tue, 24 Feb 2009 10:30:51 +0000 (11:30 +0100)]
8360, kmeter1: added bootcount feature.

add CONFIG_BOOTCOUNT_LIMIT feature for 8360 CPU.

The bootcounter uses 8 bytes from the muram,
because no other memory was found on this
CPU for the bootcount feature. So we must
correct the muram size in DTS before booting
Linux.

This feature is actual only implemented for
MPC8360, because not all 83xx CPU have qe,
and therefore no muram, which this feature
uses.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years ago83xx, kmeter: QE_ENET10 errata for Silicon Revision 2.1
Heiko Schocher [Tue, 24 Feb 2009 10:30:48 +0000 (11:30 +0100)]
83xx, kmeter: QE_ENET10 errata for Silicon Revision 2.1

old code implemented the QE_ENET10 errata only for Silicon
Revision 2.0. New code reads now the Silicon Revision
register and sets dependend on the Silicon Revision the
values as advised in the QE_ENET10 errata.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years ago83xx, kmeter1: updates for 2009.03
Heiko Schocher [Tue, 24 Feb 2009 10:30:44 +0000 (11:30 +0100)]
83xx, kmeter1: updates for 2009.03

- HRCW update
  HRCWH_BOOTSEQ_DISABLE not HRCWH_BOOTSEQ_NORMAL
  HRCWH_LALE_EARLY added
- DDR-SDRAM settings modified. This solves sporadically
  problems with this memory.
- CS1 now 128 MB window size
- CS3 now 512 MB window size
- PRAM activated
- MTDPARTS_DEFAULT defined
- CONFIG_HOSTNAME added
- MONITOR_LEN now 384 KB

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years ago83xx, kmeter1: autodetect size of DDR II RAM
Heiko Schocher [Tue, 24 Feb 2009 10:30:40 +0000 (11:30 +0100)]
83xx, kmeter1: autodetect size of DDR II RAM

it is possible that some board variants have different DDR II
RAM sizes. So we autodetect the size of the assembled RAM.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years ago83xx, i2c: add mux support for fsl_i2c
Heiko Schocher [Tue, 24 Feb 2009 10:30:37 +0000 (11:30 +0100)]
83xx, i2c: add mux support for fsl_i2c

This patch adds I2C mux support for the fsl_i2c driver. This
allows you to add "new" i2c busses, which are reached over
i2c muxes. For more infos, please look in the README and
search for CONFIG_I2C_MUX.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years ago83xx, kmeter1: add I2C, dtt, eeprom support
Heiko Schocher [Tue, 24 Feb 2009 10:30:34 +0000 (11:30 +0100)]
83xx, kmeter1: add I2C, dtt, eeprom support

This patch adds I2C support for the Keymile kmeter1 board.
It uses the First I2C Controller from the CPU, for
accessing 4 temperature sensors, an eeprom with IVM data
and the booteeprom over a pca9547 mux.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years agoi2c, dtt: move dtt_init () to board_init_r ()
Heiko Schocher [Tue, 24 Feb 2009 10:30:30 +0000 (11:30 +0100)]
i2c, dtt: move dtt_init () to board_init_r ()

In case where a board not uses CONFIG_POST, it is not
necessary to init the DTTs when running from flash.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years ago83xx: Fix some bugs in spd sdram code
Dave Liu [Wed, 25 Feb 2009 04:31:32 +0000 (12:31 +0800)]
83xx: Fix some bugs in spd sdram code

1. RD_TO_PRE missed to add the AL, and need min 2 clocks for
  tRTP according to DDR2 JEDEC spec.
2. WRTORD - tWTR need min 2 clocks according to DDR2 JEDEC spec.
3. add the support of DDR2-533,667,800 DIMMs
4. cpo
5. make the AL to min to gain better performance.

The Micron MT9HTF6472CHY-667D1 DIMMs test passed on
MPC837xEMDS platform at 266MHz/333MHz/400MHz data rate.

items 1, 2 and 5:
Acked-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Reported-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years agoMPC8349ITX: several config issues fixed
Valeriy Glushkov [Wed, 4 Feb 2009 16:27:49 +0000 (18:27 +0200)]
MPC8349ITX: several config issues fixed

The previous version rebooted forever with DDR bigger than 256MB.
Access the DS1339 RTC chip is on I2C1 bus.
Allow DHCP.

Signed-off-by: Valeriy Glushkov <gvv@lstec.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years agompc83xx: MPC837XEMDS: Initialize SerDes before negating PCIE reset signal
Anton Vorontsov [Thu, 19 Feb 2009 15:20:39 +0000 (18:20 +0300)]
mpc83xx: MPC837XEMDS: Initialize SerDes before negating PCIE reset signal

The SerDes initialization should be finished before negating the reset
signal according to the reference manual. This isn't an issue on real
hardware, but we'd better stick to the specifications anyway.

Suggested-by: Liu Dave <DaveLiu@freescale.com>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years agoi2c, dtt: move dtt_init () to board_init_r ()
Heiko Schocher [Wed, 25 Feb 2009 11:28:32 +0000 (12:28 +0100)]
i2c, dtt: move dtt_init () to board_init_r ()

it is not necessary to init the DTTs so early,
so move this init to board_init_r ().

Signed-off-by: Heiko Schocher <hs@denx.de>
15 years agolcd: Fix compilation warning in common/lcd.c
Anatolij Gustschin [Wed, 25 Feb 2009 19:28:13 +0000 (20:28 +0100)]
lcd: Fix compilation warning in common/lcd.c

Fix following warning while compilation for mcc200 board:

lcd.c: In function 'lcd_display_bitmap':
lcd.c:625: warning: unused variable 'cmap'

Signed-off-by: Anatolij Gustschin <agust@denx.de>
15 years agoMoved SC520 Files (fix commit 407976185e0dda2c90e89027121a1071b9c77bfb)
Graeme Russ [Tue, 24 Feb 2009 10:11:24 +0000 (21:11 +1100)]
Moved SC520 Files (fix commit 407976185e0dda2c90e89027121a1071b9c77bfb)

Fixes commit 407976185e0dda2c90e89027121a1071b9c77bfb

Signed-off-by: Graeme Russ <graeme.russ at gmail.com>
15 years agosmc911x: split out useful defines/functions into local header
Mike Frysinger [Mon, 23 Feb 2009 15:29:47 +0000 (10:29 -0500)]
smc911x: split out useful defines/functions into local header

The smc911x driver has a lot of useful defines/functions which can be used
by pieces of code (such as example eeprom programmers).  Rather than
forcing each place to duplicate these defines/functions, split them out
of the smdc911x driver into a local header.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
CC: Sascha Hauer <s.hauer@pengutronix.de>
CC: Guennadi Liakhovetski <lg@denx.de>
CC: Magnus Lilja <lilja.magnus@gmail.com>
CC: Ben Warren <biggerbadderben@gmail.com>
15 years agoMerge branch 'master' of git://git.denx.de/u-boot-video
Wolfgang Denk [Tue, 24 Feb 2009 21:56:00 +0000 (22:56 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-video

15 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc83xx
Wolfgang Denk [Tue, 24 Feb 2009 21:52:16 +0000 (22:52 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx

15 years agoARM: add an "eet" variant of the imx31_phycore board
Guennadi Liakhovetski [Tue, 24 Feb 2009 09:44:02 +0000 (10:44 +0100)]
ARM: add an "eet" variant of the imx31_phycore board

The "eet" variant of the imx31_phycore board has an OLED display, using a
s6e63d6 display controller on the first SPI interface, using GPIO57 as a
chip-select for it. With this configuration you can display 256 colour BMP
images in 16-bit RGB (RGB565) LCD mode.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agovideo: add an i.MX31 framebuffer driver
Guennadi Liakhovetski [Fri, 6 Feb 2009 09:37:57 +0000 (10:37 +0100)]
video: add an i.MX31 framebuffer driver

Add a driver for the Synchronous Display Controller and the Display
Interface on i.MX31, using IPU for DMA channel setup. So far only
displaying of bitmaps is supported, no text output.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Acked-by: Anatolij Gustschin <agust@denx.de>
15 years agoLCD: support 8bpp BMPs on 16bpp displays
Guennadi Liakhovetski [Fri, 6 Feb 2009 09:37:53 +0000 (10:37 +0100)]
LCD: support 8bpp BMPs on 16bpp displays

This patch also simplifies some ifdefs in lcd.c, introduces a generic
vidinfo_t, which new drivers are encouraged to use and old drivers to switch
over to.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Acked-by: Anatolij Gustschin <agust@denx.de>
15 years agoAdd 16bpp BMP support
Mark Jackson [Fri, 6 Feb 2009 09:37:49 +0000 (10:37 +0100)]
Add 16bpp BMP support

This patch adds 16bpp BMP support to the common lcd code.

Use CONFIG_BMP_16BPP and set LCD_BPP to LCD_COLOR16 to enable the code.

At the moment it's only been tested on the MIMC200 AVR32 board, but extending
this to other platforms should be a simple task !!

Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Acked-by: Anatolij Gustschin <agust@denx.de>
15 years agoA driver for the S6E63D6 SPI display controller from Samsung
Guennadi Liakhovetski [Fri, 6 Feb 2009 09:37:41 +0000 (10:37 +0100)]
A driver for the S6E63D6 SPI display controller from Samsung

This is a driver for the S6E63D6 SPI OLED display controller from Samsung.
It only provides access to controller's registers so the client can freely
configure it.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Acked-by: Anatolij Gustschin <agust@denx.de>
15 years agoi.MX31: support GPIO as a chip-select in the mxc_spi driver
Guennadi Liakhovetski [Fri, 13 Feb 2009 08:26:40 +0000 (09:26 +0100)]
i.MX31: support GPIO as a chip-select in the mxc_spi driver

Some SPI devices have special requirements on chip-select handling.
With this patch we can use a GPIO as a chip-select and strictly follow
the SPI_XFER_BEGIN and SPI_XFER_END flags.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agoi.MX31: add a simple gpio driver
Guennadi Liakhovetski [Sat, 7 Feb 2009 00:18:07 +0000 (01:18 +0100)]
i.MX31: add a simple gpio driver

This is a minimal driver, so far only managing output. It will
be used by the mxc_spi.c driver.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agoi.MX31: fix SPI driver for shorter than 32 bit
Guennadi Liakhovetski [Fri, 6 Feb 2009 23:09:12 +0000 (00:09 +0100)]
i.MX31: fix SPI driver for shorter than 32 bit

Fix setting the SPI Control register, 8 and 16-bit transfers
and a wrong pointer in the free routine in the mxc_spi driver.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agompc83xx: MPC837XERDB: Add PCIe support
Anton Vorontsov [Thu, 19 Feb 2009 15:20:52 +0000 (18:20 +0300)]
mpc83xx: MPC837XERDB: Add PCIe support

On MPC8377E-RDB and MPC8378E-RDB boards we have PCIe and mini-PCIe
slots. Let's support them.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years agompc83xx: PCI: Fix hard-coded first_busno value
Anton Vorontsov [Thu, 19 Feb 2009 15:20:50 +0000 (18:20 +0300)]
mpc83xx: PCI: Fix hard-coded first_busno value

We should use pci_last_busno() in pci_init_bus(), otherwise we'll
erroneously re-use PCI0's first_busno for PCI1 hoses.

NOTE: The patch is untested. All MPC83xx FSL boards I have have
PCI1 in miniPCI form, for which I don't have any cards handy.

But looking in cpu/mpc85xx/pci.c:
...
#ifdef CONFIG_MPC85XX_PCI2
        hose = &pci_hose[1];

        hose->first_busno = pci_hose[0].last_busno + 1;

And considering that we do the same for MPC83xx PCI-E support,
I think this patch is correct.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years agompc83xx: PCI: Fix bus-range fdt fixups for PCI1 controllers
Anton Vorontsov [Thu, 19 Feb 2009 15:20:46 +0000 (18:20 +0300)]
mpc83xx: PCI: Fix bus-range fdt fixups for PCI1 controllers

This patch fixes copy-paste issue: pci_hose[0]'s first and last
busnos were used to fixup pci1's nodes.

We don't see this bug triggering only because Linux reenumerate
buses anyway.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years agompc83xx: PCIe: Fix CONFIG_PCI_SCAN_SHOW reporting bogus values
Anton Vorontsov [Thu, 19 Feb 2009 15:20:44 +0000 (18:20 +0300)]
mpc83xx: PCIe: Fix CONFIG_PCI_SCAN_SHOW reporting bogus values

This patch fixes an issue in config space read accessors: we should
fill-in the value even if we fail (e.g. skipping devices), otherwise
CONFIG_PCI_SCAN_SHOW reports bogus values during boot up.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years agompc83xx: PCIe: Don't start bus enumeration at 0
Anton Vorontsov [Thu, 19 Feb 2009 15:20:42 +0000 (18:20 +0300)]
mpc83xx: PCIe: Don't start bus enumeration at 0

Currently we assign first_busno = 0 for the first PCIe hose, but this
scheme won't work if we have ordinary PCI hose already registered (its
first_busno value is 0 too).

The old code worked fine only because we have PCI disabled on
MPC837XEMDS boards in stand-alone mode (see commit 00f7bbae92e3b13f2b3
"mpc83xx: fix PCI scan hang on the standalone MPC837xE-MDS boards").
But on MPC837XERDB boards we have PCI and PCIe, so the bug actually
triggers.

So, to fix the issue, we should use pci_last_busno() + 1 for the
first_busno (i.e. last available busno).

Reported-by: Huang Changming <Chang-Ming.Huang@freescale.com>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years agoPCI: Add pci_last_busno() helper
Anton Vorontsov [Thu, 19 Feb 2009 15:20:41 +0000 (18:20 +0300)]
PCI: Add pci_last_busno() helper

This is just a handy routine that reports last PCI busno: we walk
down all the hoses and return last hose's last_busno.

Will be used by PCI/PCIe initialization code.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years agoMPC86xx: set CONFIG_MAX_MEM_MAPPED to 2G by default
Becky Bruce [Mon, 23 Feb 2009 19:56:51 +0000 (13:56 -0600)]
MPC86xx: set CONFIG_MAX_MEM_MAPPED to 2G by default

Currently, we get 256MB as the default, but since all the 86xx
board configs define a 2G BAT mapping for RAM, raise default
to 2G.

Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Acked-by: Jon Loeliger <jdl@freescale.com>
15 years agompc8641hpcn: Indicate 36-bit addr map in boot messages
Becky Bruce [Thu, 12 Feb 2009 16:43:32 +0000 (10:43 -0600)]
mpc8641hpcn: Indicate 36-bit addr map in boot messages

If 36-bit addressing is enabled, print a message on the console
when we boot.

Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
15 years agoMerge branch 'master' of git://git.denx.de/u-boot
Kim Phillips [Mon, 23 Feb 2009 21:42:44 +0000 (15:42 -0600)]
Merge branch 'master' of git://git.denx.de/u-boot

15 years agonetloop: speed up NetLoop
Heiko Schocher [Tue, 10 Feb 2009 08:38:52 +0000 (09:38 +0100)]
netloop: speed up NetLoop

NetLoop polls every cycle with getenv some environment variables.
This is horribly slow, especially when the environment is big.

This patch reads only the environment variables in NetLoop,
when they were changed.

Also moved the init part of the NetLoop function in a seperate
function.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agosmc911x_eeprom: new example app for managing newer SMC parts
Mike Frysinger [Mon, 22 Dec 2008 07:56:07 +0000 (02:56 -0500)]
smc911x_eeprom: new example app for managing newer SMC parts

A forward port of the last version to work with the newer smc911x driver.
I only have a board with a LAN9218 part on it, so that is the only one
I've tested.  But there isn't anything in this that would make it terribly
chip specific afaik.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
CC: Sascha Hauer <s.hauer@pengutronix.de>
CC: Guennadi Liakhovetski <lg@denx.de>
CC: Magnus Lilja <lilja.magnus@gmail.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agoAdded Vitesse VSC8211 definitions to TSEC driver
Pieter Henning [Mon, 23 Feb 2009 07:17:15 +0000 (23:17 -0800)]
Added Vitesse VSC8211 definitions to TSEC driver

Added the struct containing PHY settings for the Vitesse VSC8211 phy to
the phy_info list in tsec.c

Signed-off-by: Pieter Henning <phenning@vastech.co.za>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
15 years agoUpdate CHANGELOG; Prepare 2009.03-rc1 v2009.03-rc1
Wolfgang Denk [Sun, 22 Feb 2009 23:22:21 +0000 (00:22 +0100)]
Update CHANGELOG;  Prepare 2009.03-rc1

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoARM: synchronize mach-types.h with linux v2.6.29-rc5-315-g683fdc5
Wolfgang Denk [Sun, 22 Feb 2009 22:45:40 +0000 (23:45 +0100)]
ARM: synchronize mach-types.h with linux v2.6.29-rc5-315-g683fdc5

The file was generated from building versatile_defconfig.

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Sun, 22 Feb 2009 21:51:32 +0000 (22:51 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

15 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Sun, 22 Feb 2009 21:51:25 +0000 (22:51 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

15 years agoMerge branch 'master' of /home/wd/git/u-boot/custodians
Wolfgang Denk [Sun, 22 Feb 2009 21:01:01 +0000 (22:01 +0100)]
Merge branch 'master' of /home/wd/git/u-boot/custodians

15 years agoMerge branch 'master' of git://git.denx.de/u-boot-usb
Wolfgang Denk [Sun, 22 Feb 2009 21:00:58 +0000 (22:00 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-usb

15 years agoMIPS: Fix GCC-4.2 'discards qualifiers from pointer target type' warnings
Shinya Kuribayashi [Sun, 22 Feb 2009 05:24:11 +0000 (14:24 +0900)]
MIPS: Fix GCC-4.2 'discards qualifiers from pointer target type' warnings

Compiling dbau1x00 and gth2 boards with GCC-4.2, you would see new warnings
like this:

skuribay@ubuntu:u-boot.git$ ./MAKEALL dbau1000
Configuring for dbau1x00 board...
au1x00_eth.c: In function 'au1x00_send':
au1x00_eth.c:158: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type
au1x00_eth.c: In function 'au1x00_recv':
au1x00_eth.c:211: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type
au1x00_eth.c: In function 'au1x00_init':
au1x00_eth.c:252: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type
au1x00_eth.c: In function 'au1x00_recv':
au1x00_eth.c:211: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type
au1x00_eth.c: In function 'au1x00_init':
au1x00_eth.c:252: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type
au1x00_eth.c: In function 'au1x00_send':
au1x00_eth.c:158: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type

We're passing a volatile pointer to a function which is expecting a non-
volatile pointer.  That's potentially dangerous, so gcc warns about it.
Confirmed with ELDK 4.2 (GCC 4.2.2) and Sourcey G++ 4.2 (GCC 4.2.3).

To fix this, we add a volatile attribute to the argument in question.
The virt_to_phys function in Linux kernel also does the same thing.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
15 years agoMerge branch 'master' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Sun, 22 Feb 2009 20:13:35 +0000 (21:13 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-blackfin

15 years agoOMAP3: Clean up MMC code
Dirk Behme [Fri, 20 Feb 2009 16:51:28 +0000 (17:51 +0100)]
OMAP3: Clean up MMC code

Clean up OMAP3 MMC code:

* Convert register access to struct & readx/writex style
* Replace hardcode values by macros
* Remove macro defined twice

Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
15 years agoOMAP3: Pandora: Update pin mux
Dirk Behme [Thu, 12 Feb 2009 17:55:43 +0000 (18:55 +0100)]
OMAP3: Pandora: Update pin mux

Clock pin must have input enabled for MMC3 to work.
Also enable pull-ups for cmd/data lines to be consistent
with remaining MMC host pin setup.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
15 years agoOMAP3: Add OMAP3 auto detection
Dirk Behme [Thu, 12 Feb 2009 17:55:42 +0000 (18:55 +0100)]
OMAP3: Add OMAP3 auto detection

This patch adds OMAP3 cpu type auto detection based on OMAP3 register
and removes hardcoded values.

Signed-off-by: Steve Sakoman <sakoman@gmail.com>
Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
15 years agoOMAP3: Beagle: Add board revision detection
Dirk Behme [Thu, 12 Feb 2009 17:55:41 +0000 (18:55 +0100)]
OMAP3: Beagle: Add board revision detection

With BeagleBoard revision C some HW changes are introduced (e.g. PinMUX)
which might need different software handling. For this, GPIO pin 171 (GPIO
module 6, offset 11) can be used to check for board revision. If this pin
is low, we have a rev C board. Else it must be a revision Ax or Bx board.

To handle board differences you can call function beagle_get_revision().
E.g.:

if (beagle_get_revision()) {

/* do special revision C stuff here */

}

Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
15 years agoOMAP3: Overo: Clean up pin mux and GPIO configuration
Dirk Behme [Thu, 12 Feb 2009 17:55:40 +0000 (18:55 +0100)]
OMAP3: Overo: Clean up pin mux and GPIO configuration

* Make Overo GPIO114 an input for touchscreen PENDOWN
* Make Overo GPIO144-147 readable
* Make Overo EHCI pinmux match beagle rev c setup
* Adjust pinmux for SMSC911X network chip support
* Remove unnecessary GPIO setup
* Fix merge error in Makefile

Signed-off-by: Steve Sakoman <sakoman@gmail.com>
Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
15 years agonmdk8815: fix onenand support
Jean-Christophe PLAGNIOL-VILLARD [Sun, 22 Feb 2009 16:08:41 +0000 (17:08 +0100)]
nmdk8815: fix onenand support

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agonomadik/nand: fix 'ecc512' discards qualifiers from pointer target type
Jean-Christophe PLAGNIOL-VILLARD [Sun, 22 Feb 2009 16:56:50 +0000 (17:56 +0100)]
nomadik/nand: fix 'ecc512' discards qualifiers from pointer target type

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agodavinci: fix implicit declaration of function 'davinci_errata_workarounds'
Jean-Christophe PLAGNIOL-VILLARD [Sun, 22 Feb 2009 16:49:43 +0000 (17:49 +0100)]
davinci: fix implicit declaration of function 'davinci_errata_workarounds'

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agoarm: add uart dcc support
Jean-Christophe PLAGNIOL-VILLARD [Sun, 22 Feb 2009 14:49:28 +0000 (15:49 +0100)]
arm: add uart dcc support

Serial driver via the EmbeddedICE macrocell's DCC channel using
co-processor 14.

It does include a timeout to ensure that the system does not
totally freeze when there is nothing connected to read.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agoARM DaVinci: Add common peripherals and modules enable functions.
Hugo Villeneuve [Fri, 21 Nov 2008 19:35:56 +0000 (14:35 -0500)]
ARM DaVinci: Add common peripherals and modules enable functions.

Taken all the duplicated code for enabling common modules and apply
software workarounds from the board specific code into common
functions. Also added comments explaining the workarounds
(from TI errata documents) and replaced some numerical bit numbers
with more meaningful defines.

Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
15 years agoEnable Ethernet for Nomadik 8815 Evaluation Kit
Alessandro Rubini [Mon, 9 Feb 2009 14:53:33 +0000 (15:53 +0100)]
Enable Ethernet for Nomadik 8815 Evaluation Kit

This trivially enables Ethernet support in the debug board
by setting up the proper chip select.

Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stnwireless.com>
15 years agoNand driver for Nomadik SoC
Alessandro Rubini [Mon, 9 Feb 2009 14:53:31 +0000 (15:53 +0100)]
Nand driver for Nomadik SoC

This driver implements the ECC algorithm described in
the CPU data sheet and uses the OOB layout chosen in
already-released development systems (shipped with a custom-made
u-boot 1.3.1).

Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stnwireless.com>
15 years agoAdded nomadik.h header
Alessandro Rubini [Mon, 9 Feb 2009 14:53:31 +0000 (15:53 +0100)]
Added nomadik.h header

Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stnwireless.com>
15 years agor8a66597-hcd: fix cannot use external hub
Yoshihiro Shimoda [Wed, 29 Oct 2008 11:05:18 +0000 (20:05 +0900)]
r8a66597-hcd: fix cannot use external hub

Fix the problem that cannot use external hub, because this driver
did not control correctly a DEVADDx register.

Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
15 years agoBlackfin: disable syscontrol code for now
Mike Frysinger [Thu, 19 Feb 2009 06:20:27 +0000 (01:20 -0500)]
Blackfin: disable syscontrol code for now

Looks like the initcode updates fell out of order during my merges.  The
patch that really fixes up this code is part of power-on overhaul and so
is too large for merging at this point.  Instead, we can disable the code
as no currently in-tree board depends on it.  The next merge window will
fix things up properly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoBlackfin: bf537-stamp: fix I2C board defines
Mike Frysinger [Thu, 19 Feb 2009 06:19:49 +0000 (01:19 -0500)]
Blackfin: bf537-stamp: fix I2C board defines

The previous merge for cleaning up the I2C driver incorrectly reverted the
CFG_xxx rename for some of the I2C defines.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Heiko Schocher <hs@denx.de>
15 years agoCoding Style cleanup; update CHANGELOG
Wolfgang Denk [Sun, 22 Feb 2009 00:19:52 +0000 (01:19 +0100)]
Coding Style cleanup; update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoMakefile: fix cleanup
Wolfgang Denk [Sun, 22 Feb 2009 00:17:47 +0000 (01:17 +0100)]
Makefile: fix cleanup

Commit e4943ec5 moved the ARM boards to a vendor directory but forgot
to adapt the cleanup rules in the Makefile

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoCleanup the comment for m68k linux boot argument passing.
Richard Retanubun [Fri, 20 Feb 2009 18:01:56 +0000 (13:01 -0500)]
Cleanup the comment for m68k linux boot argument passing.

This patch clarifies the way m68k passes linux boot argument.
The one gotcha here is that the assembly instruction that
the compiler uses to jump to the kernel is 'jsr' which pushes the
program counter for the instruction after the jsr into the stack pointer.

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agosh: Fix rsk7203 in tree build
Peter Griffin [Tue, 10 Feb 2009 16:44:45 +0000 (16:44 +0000)]
sh: Fix rsk7203 in tree build

Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk>
15 years agobootm: Reduce the unnecessary memmove
Minkyu Kang [Wed, 18 Feb 2009 00:05:52 +0000 (09:05 +0900)]
bootm: Reduce the unnecessary memmove

Although load address and image start address are same address,
bootm command always does memmove.
That is unnecessary memmove and can be taken few milliseconds
(about 500 msec to 1000 msec).
If skip this memmove, we can reduce the boot time.

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
15 years agofpga: Fix Spartan III FPGA booting
Matthias Fuchs [Sun, 15 Feb 2009 21:29:15 +0000 (22:29 +0100)]
fpga: Fix Spartan III FPGA booting

This patch does some minor fixing of the Xilinx Spartan III
FPGA boot code:

- Fixed call order of post configuration callback and
  success message printing (result of copy-paste?)
- remove obsolete comment
- minor coding style cleanup

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
15 years agofpga: Fix Spartan II FPGA booting
Matthias Fuchs [Sun, 15 Feb 2009 21:28:36 +0000 (22:28 +0100)]
fpga: Fix Spartan II FPGA booting

This patch does some minor fixing of the Xilinx Spartan II
FPGA boot code:

- Fixed call order of post configuration callback and
  success message printing (result of copy-paste?)
- relocate post configuration callback only when it
  is implemented
- remove obsolete comment
- minor coding style cleanup

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
15 years agodrivers/serial/ns16550: move ifdef into Makefile COBJS-$(...)
Mike Frysinger [Thu, 12 Feb 2009 01:26:52 +0000 (20:26 -0500)]
drivers/serial/ns16550: move ifdef into Makefile COBJS-$(...)

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agolcd_putc bug fix for tab.
Derek Ou [Tue, 3 Feb 2009 23:00:07 +0000 (16:00 -0700)]
lcd_putc bug fix for tab.

Signed-off-by: Derek Ou <dou@siconix.com>
15 years agoMIPS: cpu/mips/Makefile: Add a missing START line
Shinya Kuribayashi [Mon, 2 Feb 2009 00:46:21 +0000 (09:46 +0900)]
MIPS: cpu/mips/Makefile: Add a missing START line

In the commit 79b51ff8205f0354d5300570614c1d2db499679c ([MIPS] cpu/mips/
Makefile: Split [CS]OBJS onto separate lines), I wrongly deleted a START
line.  This patch puts it back.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
15 years agoEnable ext2 support for TQM8xxL/M based boards
Wolfgang Denk [Sat, 21 Feb 2009 20:51:21 +0000 (21:51 +0100)]
Enable ext2 support for TQM8xxL/M based boards

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoARM:PXA Use new definitions in mmc.h
Tom Rix [Fri, 20 Feb 2009 02:47:50 +0000 (03:47 +0100)]
ARM:PXA Use new definitions in mmc.h

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agoReduce the scope of PXA's mmc_read/mmc_write/mmc_bread functions
Andy Fleming [Fri, 20 Feb 2009 02:47:50 +0000 (03:47 +0100)]
Reduce the scope of PXA's mmc_read/mmc_write/mmc_bread functions

These names are being taken over by the new MMC framework.  Hopefuly
the PXA can be easily ported, and these functions will go away entirely.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agopxa: move mmc drivers to drivers/mmc
Jean-Christophe PLAGNIOL-VILLARD [Fri, 20 Feb 2009 02:47:50 +0000 (03:47 +0100)]
pxa: move mmc drivers to drivers/mmc

introduce new macro CONFIG_PXA_MMC to activate it

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
15 years agoARM:PXA Remove redefinition of mmc_cid and mmc_csd.
Tom Rix [Fri, 20 Feb 2009 01:27:22 +0000 (19:27 -0600)]
ARM:PXA Remove redefinition of mmc_cid and mmc_csd.

These structures are defined in the common mmc.h

This was compile checked on cerf250.

15 years agopxa: fixing get_timer to return time in miliseconds.
Micha Kalfon [Wed, 11 Feb 2009 17:50:11 +0000 (19:50 +0200)]
pxa: fixing get_timer to return time in miliseconds.

Fixing the get_timer function to return time in miliseconds instead of
ticks. Also fixed PXA boards to use the conventional value of 1000 for
CONFIG_SYS_HZ.

Signed-off-by: Micha Kalfon <smichak.uv@gmail.com>
15 years agoARM:OMAP3 Change mmc_init to mmc_legacy_init
Tom Rix [Thu, 19 Feb 2009 22:45:43 +0000 (16:45 -0600)]
ARM:OMAP3 Change mmc_init to mmc_legacy_init

omap3_mmc.c was changed to define mmc_legacy_init.
Remove unused functions.

Compile tested on all arm
Runtime tested on Zoom1.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
15 years ago82xx, mgcoge: updates for 2009.03
Heiko Schocher [Thu, 19 Feb 2009 16:23:58 +0000 (17:23 +0100)]
82xx, mgcoge: updates for 2009.03

- activate CS4 for accessing the FPGA
- activate Rx buf len > 1 on SMC
- pram activated
- MTDPARTS_DEFAULT defined
- update the size of the flashes in the DTS
  before booting Linux
- MONITOR_LEN updated to 384k
- added CONFIG_HOSTNAME
- added CONFIG_ENV_BUFFER_PRINT
- Environment size reduced to 16k

Signed-off-by: Heiko Schocher <hs@denx.de>
15 years ago8xx, mgsuvd: updates for 2009.03
Heiko Schocher [Thu, 19 Feb 2009 16:24:01 +0000 (17:24 +0100)]
8xx, mgsuvd: updates for 2009.03

- activate Rx buf len > 1 on SMC
- pram activated
- MTDPARTS_DEFAULT defined
- update the size of the flash in the DTS
  before booting Linux
- MONITOR_LEN updated to 384k
- added CONFIG_HOSTNAME
- added CONFIG_ENV_BUFFER_PRINT
- Environment size reduced to 16k

Signed-off-by: Heiko Schocher <hs@denx.de>
15 years agoMMC: Don't use new framework code if not enabled
Dirk Behme [Wed, 18 Feb 2009 18:59:39 +0000 (19:59 +0100)]
MMC: Don't use new framework code if not enabled

Don't use code of new MMC framework in cmd_mmc if CONFIG_GENERIC_MMC
isn't enabled.

Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
15 years agoMerge branch 'master' of git://git.denx.de/u-boot
Kim Phillips [Thu, 19 Feb 2009 17:06:58 +0000 (11:06 -0600)]
Merge branch 'master' of git://git.denx.de/u-boot

15 years agoTQM8xxL: make some room in low memory for future needs
Wolfgang Denk [Thu, 19 Feb 2009 12:53:29 +0000 (13:53 +0100)]
TQM8xxL: make some room in low memory for future needs

THe TQM8xxL use a ahnd-optimized linker script to efficiently use the
small boot sectors in the flash. This patch makes some room in the
first sector to prepare for a size increase of lib_generic/vsprintf.o
by a future patch.

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agoREADME: remove duplicate entry
Kim Phillips [Thu, 19 Feb 2009 00:06:18 +0000 (18:06 -0600)]
README: remove duplicate entry

it's been around since the original commit (2ad6b513) that added two
identical entries.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
15 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Wed, 18 Feb 2009 23:50:08 +0000 (00:50 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

15 years agoMerge branch 'master' of git://git.denx.de/u-boot-arm
Wolfgang Denk [Wed, 18 Feb 2009 23:46:32 +0000 (00:46 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-arm

15 years agoCoding style cleanup, update CHANGELOG
Wolfgang Denk [Wed, 18 Feb 2009 23:41:08 +0000 (00:41 +0100)]
Coding style cleanup, update CHANGELOG

Signed-off-by: Wolfgang Denk <wd@denx.de>
15 years agosata_sil3114: fix compiler warning
Kim Phillips [Wed, 18 Feb 2009 23:43:59 +0000 (17:43 -0600)]
sata_sil3114: fix compiler warning

judging from other printfs in the same file, it seems ata should be
postpended with the interface number, not the address of the global
port variable.  Fixes this for current u-boot-mpc83xx tree:

Configuring for MPC8349ITX board...
sata_sil3114.c: In function 'sata_bus_softreset':
sata_sil3114.c:99: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'struct sata_port *'
sata_sil3114.c:108: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'struct sata_port *'

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>