9
0
Fork 0
Commit Graph

5882 Commits

Author SHA1 Message Date
Alexander Shiyan 2afeae741f Add WEIM registers for MX51
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-19 12:04:38 +02:00
Alexander Shiyan 32a42f98a3 Add "imx_get_i2cclk" for MX51
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-19 12:03:47 +02:00
Antony Pavlov ede7b37392 ehci-hcd.c: handle EHCI_HAS_TT in ehci_reset() during startup
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-19 11:23:28 +02:00
Hubert Feurstein 156d751b7e at91sam9g45: add atmel-spi support
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-14 10:40:17 +02:00
Hubert Feurstein bea738f7ba spi: add atmel-spi driver
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-14 10:40:17 +02:00
Wolfram Sang ad68c2f829 include: list: add include because we need NULL
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-14 10:37:27 +02:00
Wolfram Sang 75d9c8abeb mci: mxs: fix 'use resources' conversion
Commit 4c542622 used the wrong variable name and caused a build failure.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-14 10:37:10 +02:00
Antony Pavlov a8af2ad4f1 usb.c: warning on USB_MAXINTERFACES overflow
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-13 09:29:34 +02:00
Antony Pavlov bd348f953a generate barebox.srec
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-13 09:29:23 +02:00
Juergen Kilb 3c68ddb583 Corrected ns16550 access at all omap based boards.
Commit c71a77ab8 (ns16550: switch to resource) has introduced generic
read/write access to 16550 register and a 'shift' parameter to allign
register index to physicall registers.
The correct 'shift' value was missing in all omap based boards.
Corrected this to 2 which has fixed the problem.

Tested on a PCM-049 phyCORE-OMAP4 board.

Signed-off-by: Juergen Kilb <J.Kilb@phytec.de>
Tested-by: Jan Weitzel <J.Weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-12 12:31:20 +02:00
Juergen Kilb 801c667d8c Added helper function to get CS1 base address.
This helper function can be used for automatic
SDDR configuration based on register settings
made by a previously first stage bootloader
i.e. x-loader.

Signed-off-by: Juergen Kilb <J.Kilb@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-12 12:31:08 +02:00
Juergen Kilb b9126db43f Add omap_hsmmc platform data.
Add platform data to specify maximum frequency of hsmmc interface
which can be restricted due to external level shifters.

Signed-off-by: Juergen Kilb <J.Kilb@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-12 12:31:08 +02:00
Juergen Kilb 9c2a525398 Add Reset Support for omap3.
Inspired from reset_cpu in omap4_generic.c.

Signed-off-by: Juergen Kilb <j.kilb@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-12 12:31:08 +02:00
Hubert Feurstein 8cc995ed42 atmel_mci: handle clk_get error correctly
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-12 12:25:05 +02:00
Hubert Feurstein 51a4275c71 macb: handle clk_get error
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-12 12:24:59 +02:00
Hubert Feurstein 2acf27797c macb: whitespace cleanup
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-12 12:24:59 +02:00
Paul Fertser 19284441cc imx_spi: rework transfer according to the API, fix compatibility with spi_write_then_read()
This code was tested barely with m25p80 driver, reading jedec id and some data
from the chip worked fine.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-12 12:19:40 +02:00
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