9
0
Fork 0
Commit Graph

723 Commits

Author SHA1 Message Date
Sascha Hauer 6ffe2ec8cd Merge remote branch 'origin/omap' into next 2010-07-12 08:22:03 +02:00
Sascha Hauer e0677920d6 barebox ubi changes
This adds the layer between barebox and UBI.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-07-05 15:07:14 +02:00
Sascha Hauer 8dbed40da9 add ubi support from u-boot. Just enough to compile and scan
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-07-05 15:07:14 +02:00
Sascha Hauer 8196b9e2cc cfi_flash: Add mtd partition support for UBI
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-07-05 15:07:09 +02:00
Sascha Hauer b6b76c4ee2 cfi_flash: Do not print debug info while erasing
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-07-05 13:00:02 +02:00
Sascha Hauer 497445d51e cfi_flash: Do not typedef struct flash_info
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-07-05 13:00:02 +02:00
Sascha Hauer acc46ca4f0 add partition mtd support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-07-05 13:00:02 +02:00
Sascha Hauer b332d8565d move drivers/nand to drivers/mtd/nand
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-07-05 13:00:01 +02:00
Sascha Hauer ac234173cc omap nand: cleanup
- Move oob layout to driver
- make hwecc support nonoptional but selectable by the board.
- let the boards decide which buswidth / ecc type to use. They know
  better than the user which gets confused by too many kconfig options.
- Let the boards explicitly register the nand device.

I tried to seperate this further, but failed because of too many dependencies
in the code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-07-05 12:43:03 +02:00
Sascha Hauer 6d1d9e8d8b Merge branch 'next' 2010-07-03 10:26:21 +02:00
Eric Bénard 7f5644fad1 imx-ipu-fb: do not enable framebuffer on startup
The board code or startup script should enable it when
it actually wants to.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-30 09:10:40 +02:00
Eric Bénard c26f09b2c1 imx-ipu-fb: Add board specific hook to enable display
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-30 09:10:35 +02:00
Wolfram Sang a0e68122e6 nor: don't use sector for ERASE_START
Similar to ac2d4d71ba, copy the behaviour
from Linux which does:

cfi_send_gen_cmd(0x80, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL);

Notice the third parameter which is simply chip->start. Needed for some
SST-flashes.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-29 08:28:14 +02:00
Sascha Hauer b99e2c4ac6 cfi flash driver: Use generic progression bar function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-28 10:43:55 +02:00
Sascha Hauer 40aad62d1c Merge remote branch 'origin/assorted-pu' into next 2010-06-28 10:35:58 +02:00
Sascha Hauer 17ef55f6d6 ehci: remove unused code
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:42:25 +02:00
Sascha Hauer 2f64aa66ab ehci: Force a ehci_halt before trying to reset
As observed on OMAP some controllers do not like being
resetted when running.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:42:20 +02:00
Sascha Hauer 0b863c83d0 ehci: use is_timeout for timeout instead of udelay counter
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:42:06 +02:00
Sascha Hauer d99aa6b761 usb: Check return value of host controller init
And do not scan the bus if initialization failed.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:41:36 +02:00
Sascha Hauer c8363b8f60 ehci: Handle hub port reset properly
This has been copied from the U-Boot ehci driver.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:41:31 +02:00
Sascha Hauer 57b56a989f ehci: Make has_tt configurable via platform data
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:41:15 +02:00
Sascha Hauer 112d65d3d2 fb: add a usage counter to prevent double enable/disable
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:37:40 +02:00
Sascha Hauer 1996f64c4d i.MX serial: Use readl/writel instead of pointer deref
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:36:46 +02:00
Sascha Hauer 322bace5fb usbnet: remove unused dev member in struct usbnet
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:36:42 +02:00
Sascha Hauer cd4bc69126 imxfb: do not enable framebuffer on startup
The board code or startup script should enable it when
it actually wants to.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:36:22 +02:00
Sascha Hauer 695a4247aa imxfb: Add board specific hook to enable display
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:36:17 +02:00
Baruch Siach ea5230ce75 i2c: fix adapter_list manipulation
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 14:00:03 +02:00
Sascha Hauer f7c02aea7b Merge branch 'net' into next 2010-06-17 08:29:09 +02:00
Sascha Hauer c3789cd49b rework device parameters
Change device parameters so that the memory management is in generic
code. This also removes the need of storing statically initialized
parameters as they are stored in a struct list_head for each device.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:25 +02:00
Sascha Hauer c70689d727 network drivers: call net_receive directly instead of NetReceive
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:25 +02:00
Baruch Siach 514387711f i2c: add driver for the MC34704 PMIC
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:26 +02:00
Sascha Hauer 624f936032 i2c: implement i2c_get_adapter()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-26 10:34:58 +02:00
Eric Bénard d57a64c28e i2c-imx: change log level for No ACK
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-26 10:34:58 +02:00
Eric Benard 8a3032fde5 i.MX25 : add Framebuffer support
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-17 11:16:27 +02:00
Sascha Hauer ea343ab9e8 fsl_udc: make it work with MMU on
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:02:03 +02:00
Uwe Kleine-König 7a0a29ca36 cfi_flash: use flash_write_word instead of reimplementing it again
While at it remove some unused code and an unbalanced
enable_interrupts().

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:01:28 +02:00
Wolfram Sang ac2d4d71ba nor: Don't use the sector for the unlock sequence
Copy the behaviour from Linux which does:

cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL);
...

(Notice the third parameter which is simply chip->start).

Solves erase problems with SST flashes.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:01:28 +02:00
Sascha Hauer d840493e28 Revert "nand_imx: Speed up sequential read"
This breaks at least on v1 type controllers with 2k pages. Lets
revert it for now and rework it.

This reverts commit d5578b8179.
2010-05-03 14:19:19 +02:00
Jan Weitzel 972d116ada fix miiphy alloc
if fec was allocated using malloc. if fec->miiphy->dev->driver != 0
miiphy_probe is not called

Signed-off-by: Jan Weitzel <J.Weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-14 10:12:51 +02:00
Sascha Hauer eed255609d Merge branch 'next' 2010-04-06 08:44:32 +02:00
Ivo Clarysse 2b7effde81 i.MX21: support framebuffer
This patch allows using the i.MX (LCDC) framebuffer driver on boards
using an i.MX21 SoC.

Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-02 12:07:56 +02:00
Sascha Hauer 0b54f2cdb1 nand_imx: clear INT_MSK to fix i.MX21 nand boot
For some weird reason this fixes nand boot on i.MX21. Since
interrupts are globally disabled it doesn't hurt on other
SoCs.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-31 08:24:20 +02:00
Sascha Hauer e3b2046685 netx eth driver: remove local definition of ARRAY_SIZE
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:04 +02:00
Sascha Hauer 6f5a6b591a pass arguments to dma_* as unsigned long as the kernel does
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer d03831887e imx_nand: use memcpy for copying from/to buffer
We do not need to use memcpy32 in read_buf/write_buf because
in these functions we only access SDRAM and not the internal SRAM
buffer.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:58 +02:00
Sascha Hauer d5578b8179 nand_imx: Speed up sequential read
When reading a page from nand prefetch the next page afterwards to
keep the controller busy. This way we can improve sequential reading
from NAND which is the common case for barebox.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:58 +02:00
Sascha Hauer 9d9be6ba9b nand_imx: use optimized memcpy
The internal SRAM buffer of the i.MX NAND controller does not
allow byte accesses. We use the memcpy32 function to handle this.
If we have assembler optimized string functions we can do better
because they won't do byte accesses when source and target are word
aligned.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:58 +02:00
Juergen Beisert c6f4ea0dcf Make some help comments less confusing
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-18 08:11:06 +01:00
Sascha Hauer 7736782fef Merge branch 'nor' into next 2010-02-18 08:30:45 +01:00
Marc Kleine-Budde 1568957050 drivers/video/Makefile: cleanup proper indention
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-02-16 21:49:25 +01:00