Jean-Christophe PLAGNIOL-VILLARD
2222dbc286
init: introduce mem, mmu and postmmu initcall
...
on ARM we need to init all the memory before the mmu and before any drivers
use dma_alloc_coherent
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-08-01 16:31:46 +02:00
Sascha Hauer
8ba794abd4
ARM: pass size to dma_free_coherent
...
We'll need it later once we remap dma memory.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-01 21:49:34 +08:00
Sascha Hauer
d77ef33347
ARM l2x0: make init function static inline if l2 is not available
...
So that the ifdeffery can be moved out of the board code.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-01 21:49:33 +08:00
Sascha Hauer
5f56079cd5
ARM: move armlinux_add_dram to location which is always compiled
...
We want to use the memory banks later in the MMU which is
independent of Linux, so move this to a location which is
always compiled.
Also, make the memory bank list global and add an iterator
for it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-01 21:49:33 +08:00
Sascha Hauer
aab32057b3
ARM cache l2x0: depend on MMU
...
l2x0 cache support does not work without MMU, so depend
on it in Kconfig.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-01 21:49:33 +08:00
Jean-Christophe PLAGNIOL-VILLARD
95067e23ac
arm: introduce arm_add_mem_device to register dram device
...
this will automaticaly register the device to armlinux_add_dram
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-08-01 21:49:33 +08:00
Sascha Hauer
b821d73607
Merge branch 'resource' of git://uboot.jcrosoft.org/barebox into next
2011-08-01 14:10:38 +02:00
Antony Pavlov
1a886dd478
remove unused U-Boot header file include/ioports.h
...
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-01 11:54:11 +02:00
Jean-Christophe PLAGNIOL-VILLARD
ad7590ee64
driver: remove map_base
...
as now all the drivers and board have been switch to resource whe can drop
map_base and size from device_d
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-08-01 16:33:44 +08:00
Jean-Christophe PLAGNIOL-VILLARD
c71a77ab87
ns16550: switch to resource
...
use generic read/write depending on the memory size
if no reg_read/write defined
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-08-01 16:33:09 +08:00
Jean-Christophe PLAGNIOL-VILLARD
3f59bab47c
nios2: remove dead code in generic board
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-08-01 16:31:56 +08:00
Jean-Christophe PLAGNIOL-VILLARD
6e2e7a67f2
mci-core: switch to resource
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD
4b68e2f5d6
imx: switch remaing board to resource
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD
005b35a13b
sandbox: switch to resource
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD
b1be292352
ata: switch to resource
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD
12ed40bb17
fs: switch to resource
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD
805a4a0c7d
netx: switch to resource
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD
535d38b92a
edb93xx: switch to resource
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD
931c1cc5a6
ns16550: if not specific f_caps defined use default stdin, stdout, stderr
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD
0616e182a5
s3c/boards: switch to resources
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD
3d59ba2669
ipe337: switch to resources
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:26 +08:00
Jean-Christophe PLAGNIOL-VILLARD
08cdbd3ae3
pcm030: switch to resources
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:26 +08:00
Jean-Christophe PLAGNIOL-VILLARD
9d53f1193f
fsl_udc: switch to resource
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:26 +08:00
Jean-Christophe PLAGNIOL-VILLARD
13da42d6d7
cfi_flash: convert missing map_base
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:26 +08:00
Jean-Christophe PLAGNIOL-VILLARD
6147b6a6ca
fb: switch to "struct resource"
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:26 +08:00
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