9
0
Fork 0
Commit Graph

5715 Commits

Author SHA1 Message Date
Sascha Hauer e8d4f5a393 Merge branch 'next' 2011-08-26 16:24:56 +02:00
Sascha Hauer 22d49d5d2b Release v2011.09.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-26 16:23:46 +02:00
Teresa Gámez 943b27107c cfi_flash: support of u32 cmd
Some NOR flash chips have commands with length greater than the maximum
value size of uchar.

Based on an U-Boot Patch by Vasiliy Leoenenko <vasiliy.leonenko@mail.ru>

Only tested with little endian on an intel cfi_flash.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-26 09:33:37 +02:00
Juergen Beisert d61e266d24 phyCORE-i.MX27: Keep frequency multiplier enabled to be able to do a warmstart
commit 7d25a0552dd3a4b65412ae1cbf8f9ca8a88b5d27
Author: Juergen Beisert <jbe@pengutronix.de>
Date:   Thu Nov 25 17:49:11 2010 +0100

    Keep frequency multiplier enabled to be able to do a warmstart

    The wachtdog's reset does only reset the ARM core, not the whole silicon.
    But the PLLs seems to do some strange things: It seems they switch back to
    the low frequency reference when the watchdog barks. But in the case the
    frequency multiplier is off (not used due to 26 MHz reference usage) the
    machine stops, because the PLLs are stopping due to the lack of a reference
    frequency. As the power on reset will set the FPM_EN bit again, a power cycle
    brings the machine back to life.
    By keeping the frequency multiplier enabled, also a warmstart triggered by the
    watchdog can restart the machine now.

    Signed-off-by: Juergen Beisert <jbe@pengutronix.de>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-25 11:59:24 +02:00
Paul Fertser 3f4eb716c4 iomux-mx25: fix MDIO pin configuration
According to the datasheet, PUE is not effective without PKE set.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-25 11:52:47 +02:00
Sascha Hauer aaf2d029fb ARM i.MX51: setup SD1/2 iomux pins
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-24 19:50:36 +02:00
Sascha Hauer a4c4c4ff30 ARM i.MX51: fix SD1/2 iomux pads
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-24 19:48:40 +02:00
Sascha Hauer aa4ff5606b ARM i.MX27: Add spi2 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-24 19:44:06 +02:00
Sascha Hauer 0f7139be32 Merge branch 'pu-env' into next 2011-08-24 19:42:00 +02:00
Sascha Hauer 6402ae229f ARM i.MX51: set barebox_loc according to boot source
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Marc Reilly <marc@cpdesign.com.au>
2011-08-24 19:41:35 +02:00
Sascha Hauer c1f8427805 ARM i.MX25/35: initialize barebox_loc earlier
Now that env_push_context is in a coredevice_initcall
we can initialize barebox_loc earlier so that we can
use it inside later initcalls.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
tested-by: Marc Reilly <marc@cpdesign.com.au>
2011-08-24 19:41:29 +02:00
Sascha Hauer 1e926b80bb put env_push_context into postcore_initcall
env_push_context only needs malloc, so initialize it earlier.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
tested-by: Marc Reilly <marc@cpdesign.com.au>
2011-08-24 19:40:53 +02:00
Franck Jullien e705ccd130 nor: Add SPI flash driver
This patch adds the m25p80 driver. It has been ported from
Linux. MTD code has been removed. It has been tested with
a m25p40 chip and the Altera SPI master driver.

Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-24 18:44:31 +02:00
Franck Jullien d7bb45559c nios2: Add Altera SPI master driver
Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-24 18:44:25 +02:00
Teresa Gámez aa28595770 ARM pcm043: New NOR Flash CS0 values
Set new CS0 values for new NOR-Flashes (28F256P33BF).
These values also work with older flashes (28F256P33B).

Also removed unnecessary setup of CSO in the core_init call.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-24 18:39:14 +02:00
Fabio Estevam 2215e51768 ARM: mx53loco: Fix DD3 initialization
Updated mx53 ddr3 script in order to align with the latest Freescale version from July 8, 2011:

-change ESDREF[REF_SEL]=01 (for 32KHz), from incorrect setting of 00 (64KHz)

-change DDR3 MR0 write to "setmem /32 0x63fd901c = 0x052080b0" from "0x092080b0".

This changes write recovery from 8 clocks to 6 clocks(in line with ESDCFG1[tWR])

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-24 10:35:20 +02:00
Sascha Hauer e064ad3628 ARM linux: support Linux images with CONFIG_AUTO_ZRELADDR
These images have to be located in the first 128MB of SDRAM, so
use the following strategy:

- first try to map the image. If the pointer is within the first
  128MB of sdram everything is fine.
- if we can't map the image, check for SDRAM being smaller than
  128MB we can use malloc for allocating space for the image.
- As a last fallback we simply put the image to 8MB into SDRAM.
  This is not very clean. We try our best by checking that we
  won't overwrite the malloc space.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-24 10:34:44 +02:00
Teresa Gámez 420bd69cda ARM pcm043: New RAM timings
Update RAM timings with extended row cycle delay.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-23 15:05:17 +02:00
Teresa Gámez 140f7dd719 ARM pcm043: Check silicon revision to set up cpu freq correct
Some older pcm043 only work correct when cpu frequency is set up
to 399MHz. All modules with revision >= 1315.4 are equipped
with a i.MX35 TO2.1 and do run with 532MHz.

Check the silicon revision and set up the frequency accordingly.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-23 14:45:19 +02:00
Antony Pavlov f34bb40cd4 commands/loads.c: fix whitespace errors & formatting
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-23 08:33:24 +02:00
Antony Pavlov 4ffd4de494 commands/loads.c: make do_* functions static
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-23 08:33:24 +02:00
Antony Pavlov 251af937c3 commands/loads.c: fix compiler's warning
Fix 'assignment discards qualifiers from pointer target type' warning.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-23 08:33:24 +02:00
Antony Pavlov 7d9ee32f05 commands/loads.c: make it compile again
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-23 08:33:24 +02:00
Antony Pavlov 93db10ec46 remove LOADS_BAUD_CHANGE from broken commands/loads.c
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-23 08:33:24 +02:00
Sascha Hauer 5067d9bcb1 ARM i.MX51: set barebox_loc according to boot source
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-17 09:37:48 +02:00
Sascha Hauer d29842a5e0 ARM i.MX25/35: initialize barebox_loc earlier
Now that env_push_context is in a coredevice_initcall
we can initialize barebox_loc earlier so that we can
use it inside later initcalls.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-17 09:37:48 +02:00
Sascha Hauer 0cdde3782e put env_push_context into postcore_initcall
env_push_context only needs malloc, so initialize it earlier.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-17 09:37:48 +02:00
Sascha Hauer ba13dc4776 Merge branch 'pu' into next 2011-08-17 09:37:02 +02:00
Sascha Hauer 79884012c6 devinfo: beautify output
Files associated to a device showed up in a long list. Instead,
print them in seperate lines and also show offset/size information

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-17 09:36:35 +02:00
Sascha Hauer c574a0d1f1 spi: make the spi devices children of the parent bus
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-17 09:36:35 +02:00
Sascha Hauer c41360cd20 mci: parent fixups
Make the mci host a child of the hardware device and the disk
a child of the mci host.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-17 09:36:30 +02:00
shc@milas.spb.ru ddbbeee822 I2C support to PCM-038 board
Sascha Hauer <s.hauer@pengutronix.de> wrote ..
> On Thu, Aug 11, 2011 at 02:37:05PM +0400, Alexander Shiyan wrote:
> > Hello.
> >
> > Please review and apply this simple patch.
...
> Please remove the #ifdef CONFIG_I2C
OK.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-17 09:34:55 +02:00
Sascha Hauer 8ddfe5911d ARM i.MX51: Fix gpio1 base address
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 10:50:16 +02:00
Sascha Hauer ad140020b8 console: make console device a child of the hardware device
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 09:48:03 +02:00
Sascha Hauer 8fddb2edf6 net mii: add a parent pointer to miidevs and set it to the hardware device
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 09:48:03 +02:00
Sascha Hauer 6d16fbdcd4 net: make the ethernet device a child of the hardware device
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 09:48:03 +02:00
Sascha Hauer 31c88a6929 mci: embed mci_dev into mci_host instead of allocating it seperately
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 09:48:03 +02:00
Sascha Hauer b7a3e55915 Merge branch 'master' into next 2011-08-15 09:47:55 +02:00
Sascha Hauer ad8d12dd66 mci mxs: fix line endings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 09:45:48 +02:00
Sascha Hauer def04cd255 net fec_mpc5200: fix lineendings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 09:45:41 +02:00
Sascha Hauer 35191f24cc drivers/base: initialize active list
Otherwise, when a non active device is unregistered, we call
list_del on an unitialized list which oopses.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 09:45:34 +02:00
Jean-Christophe PLAGNIOL-VILLARD 90c83d13d2 x86/generic_pc: fix missing switch to resource
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 08:57:28 +02:00
Jean-Christophe PLAGNIOL-VILLARD feb4e2c0c5 disk_drive: fix x86 support
switch to resource

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 08:57:28 +02:00
Jean-Christophe PLAGNIOL-VILLARD 4f9ea7ffbd versatile: fix static allocation clkdev
it's DEV_ID not CON_ID

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-12 11:07:41 +02:00
Jean-Christophe PLAGNIOL-VILLARD 927f01250e nomadik: fix static allocation clkdev
it's DEV_ID not CON_ID

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-12 11:07:41 +02:00
Jean-Christophe PLAGNIOL-VILLARD 1c278e4ced clkdev: factorize macro
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-12 11:07:41 +02:00
Jean-Christophe PLAGNIOL-VILLARD c78ef640cd login: add timeout support
If a timeout is specified and expired the command will be executed
by default boot

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-11 09:22:07 +02:00
Jean-Christophe PLAGNIOL-VILLARD 0697c6fcc7 versatilek: switch to static allocation clkdev
as we need to register it before the device

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-10 14:53:07 +02:00
Jean-Christophe PLAGNIOL-VILLARD e18df20c90 nomadik: switch to static allocation clkdev
as we need to register it before the device

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-10 14:53:06 +02:00
Jean-Christophe PLAGNIOL-VILLARD 4145244975 at91sam9261ek: fix missing ecc type
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-10 14:53:06 +02:00