Marc Kleine-Budde
5ba0502901
arm: add support for the i.MX53 loco board
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:10:38 +02:00
Marc Kleine-Budde
9eaaf1b1ca
ARM: add support for the i.MX53
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:10:38 +02:00
Marc Kleine-Budde
672b286a7f
mx51: rename clock-imx51.h -> clock-imx51_53.h
...
...and update all users. The header file can be used on mx51 and mx53.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:10:38 +02:00
Sascha Hauer
a6aefdeaee
Merge branches 'pu-ethaddr', 'pu-fec', 'pu-imx-iim', 'pu-resources' and 'pu-resources1' into next
2011-07-29 12:09:58 +02:00
Sascha Hauer
3d9cd14232
ARM i.MX27: Add IIM support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer
9abfd82817
ARM i.MX IIM: switch to resources
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer
1bb8f6b047
ARM i.MX51: Add IIM support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer
b42dca2df0
ARM i.MX31: Add IIM support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer
afa4bff41f
ARM i.MX35: Add IIM support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer
cd8ab7bd54
ARM i.MX25 IIM: switch IIM support to use resources
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:12 +02:00
Sascha Hauer
4e8a62ac61
ARM i.MX IIM: Make explicit sensing the default
...
The register based fuse readout is not available on i.MX27/31
SoCs, so make explicit sensing the default.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:12 +02:00
Sascha Hauer
97c37f4014
ARM i.MX IIM: add support for more SoCs
...
Do not depend on the specific SoCs for the IIM module, but
instead exclude the one that don't have this unit.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:12 +02:00
Sascha Hauer
6b07e264e6
ARM i.MX: IIM rework
...
The IIM module uses two drivers, one for the general IIM
module and one for the individual banks.
This patch turns this into a single driver to ease registration
of the resources. This changes the user visible behaviour in
the way that the explicit_sense_enable and permanent_write_enable
device parameters are no longer bank specific but for the
whole device. Also, the IIM module supports a maximum of
8 fuse banks, with these patch all of them are registered, even
if they are not present in a SoC.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:12 +02:00
Sascha Hauer
00cdd7364c
ARM i.MX25 tx25: Add IIM support for MAC address
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:05:26 +02:00
Sascha Hauer
e7b995d874
ARM i.MX51 babbage: set fec ethernet address from IIM
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:05:26 +02:00
Sascha Hauer
2fd4fa2e99
ARM i.MX: rework IIM MAC address setting
...
Switch to the generic way of setting a MAC address for a
device.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:05:26 +02:00
Sascha Hauer
c46b04542f
net: Add a possibility for boards to give network devices a MAC address
...
MAC addresses are sometimes stored at unusual places. This
patch makes it possible to give a MAC address to a ethernet
device id. This is independent of the device actually being
present.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:05:26 +02:00
Sascha Hauer
fee474a22e
ARM i.MX IIM: Add a iim read function
...
To allow reading the iim from code.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:05:26 +02:00
Sascha Hauer
ffcf536cef
Merge branch 'pu' into next
2011-07-29 12:03:40 +02:00
Sascha Hauer
8f24f965e1
mci: do not use unitialized resource
...
disk_dev->resource is unitialized. Do not use it. This
got broken in:
commit 4c542622cb
Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Date: Mon Jul 18 20:17:04 2011 +0800
mci: switch to "struct resource"
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:03:38 +02:00
Sascha Hauer
02b1926f5a
fix typo
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:03:08 +02:00
Sascha Hauer
5fa7a0e786
ARM i.MX: Add missing cpu_is_mx53()
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:03:08 +02:00
Sascha Hauer
9a4abe67ff
net: remove unused fields from struct eth_device
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:03:07 +02:00
Sascha Hauer
b626a746a0
Fix memory corruption bug in dev_id()
...
The size of the static buffer in dev_id was only 8 bytes
(sizeof(long) * 2). This is completely bogus, so give
the buffer a sane length and also make sure we don't
write beyond the buffer using snprintf.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:02:21 +02:00
Sascha Hauer
90c35f44f1
add a ns16550 registration helper and use it
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:41 +02:00
Sascha Hauer
ddf349e011
ARM i.MX pcm037: use device registration helpers
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:41 +02:00
Sascha Hauer
5714eb6a84
ARM i.MX21ads : use device registration helpers
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:41 +02:00
Sascha Hauer
cff8900fcf
ARM i.MX35 3stack: use device registration helpers
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:41 +02:00
Sascha Hauer
c263809afe
ARM i.MX scb9328: create uart registration helpers and use them
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:40 +02:00
Sascha Hauer
930a787982
ARM i.MX pca100: use device registration helpers
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:40 +02:00
Sascha Hauer
acbd404f6e
ARM i.MX cupid: use device registration helpers
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:40 +02:00
Sascha Hauer
6060de6e88
fec_mpc5200: switch to resources
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:40:16 +02:00
Sascha Hauer
07506a2282
smc91111: switch to resources
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:39:41 +02:00
Sascha Hauer
f59ee4f087
ARM pcm037: Fix wrong sdram base
...
got broken while switching the boards to sdram registration
helper.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:38:04 +02:00
Sascha Hauer
439f6e62a0
smc911x: embed eth_device into priv
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:37:37 +02:00
Sascha Hauer
c0195269e1
smc911x: switch to use resources
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:35:56 +02:00
Sascha Hauer
4fc4bc2c67
smc911x: use dev_* instead of printf
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:31:57 +02:00
Sascha Hauer
784030e136
serial mpc5xxx: get rid of map_base
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:25:04 +02:00
Sascha Hauer
39a7d5ff9c
serial stm: get rid of map_base
...
While at it, dynamically allocate private driver struct.
There might be only a single instance of this driver,
but don't be a bad example for others.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:21:24 +02:00
Sascha Hauer
36a16d6509
serial pl010: get rid of map_base
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:08:41 +02:00
Sascha Hauer
f0c1332780
serial s3c: get rid of map_base
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:05:37 +02:00
Sascha Hauer
801b379c36
serial netx: get rid of map_base
...
While at it, switch to standard readl/writel accessors
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:04:50 +02:00
Andre Naujoks
4cc463f942
barebox compilation with gcc 4.5.2 and ptxdist
...
From 9b3985045da1161a934cba48749fe1759e62dae6 Mon Sep 17 00:00:00 2001
From: Andre Naujoks <nautsch2@googlemail.com>
Date: Wed, 27 Jul 2011 11:29:43 +0200
Subject: [PATCH 2/2] Ported ppc ashrdi3 from linux kernel
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 13:51:10 +02:00
Andre Naujoks
0947b2edd5
barebox compilation with gcc 4.5.2 and ptxdist
...
From c479527616c5fc79c608e21573373a5a324f6e9b Mon Sep 17 00:00:00 2001
From: Andre Naujoks <nautsch2@googlemail.com>
Date: Wed, 27 Jul 2011 11:28:35 +0200
Subject: [PATCH 1/2] Ported crtsavres from linux kernel to barebox
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 13:51:10 +02:00
Sascha Hauer
aaf0cbcd65
ARM i.MX51 babbage: remove dead code
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 13:02:54 +02:00
Sascha Hauer
2b2994a4f9
net i.MX fec: rename driver struct to be generic
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 12:07:39 +02:00
Sascha Hauer
98d9ce9bec
net i.MX fec: embed ethernet device into priv
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 12:07:39 +02:00
Sascha Hauer
0b9bb06a36
net i.MX fec: remove unnecessary alignment
...
dma_alloc_coherent returns sufficiently aligned memory. While
at it, remove some unnecessary casts.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 12:07:39 +02:00
Sascha Hauer
7079d33597
net i.MX fec: make multi instance safe
...
The driver uses a static int once variable to alloc the
rx packets. remove this to make the driver multi instance
safe. While at it, remove the crappy selfmade alignment.
dma_alloc_coherent returns sufficiently aligned memory.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 12:07:39 +02:00
Sascha Hauer
e7ccf3c979
ARM dma_alloc_coherent: Fix alignment for !MMU case
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 12:07:39 +02:00