Sascha Hauer
3d76ff9aea
ARM: no need to call cache functions when MMU is disabled
...
Without MMU enabled we do not need to call __mmu_cache_* as the
caches are not enabled. Calling flush_icache() before jumping
to new code is enough.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-12 17:00:08 +02:00
Sascha Hauer
9243875971
ARM exceptions: Do not use hardcoded STACK_BASE
...
The exception handlers need some space to write to. Traditionally
this has been some stack space. This is not necessary at all, so
just use some variable and get rid of the compile time fixed stack
address.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-12 17:00:08 +02:00
Sascha Hauer
01525288b0
ARM: Add cpu_architecture() function
...
Once we run on multiple SoCs we must know which arm architecture we
are on. Add cpu_architecture() from the kernel to detect it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-10 09:10:28 +02:00
Teresa Gámez
7764b1faca
ARM OMAP: change region size for gpio banks
...
- increased the region size for OMAP3, as it was not correct
- decrease region size for OMAP4 to prevent overlapping.
Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-09 20:36:21 +02:00
Teresa Gámez
f4226a9ed4
ARM OMAP: Remove usage of gpio lib calls in lowlevel code
...
As the gpio functions are not available at this point, set the gpio manually.
Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-09 20:36:21 +02:00
Teresa Gámez
6bb2ad1323
ARM OMAP: gpiolib fix chip.base
...
Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-09 20:36:21 +02:00
Sascha Hauer
bad4d7cd75
ARM i.MX gpio: fix of gpio base
...
of_alias_get_id() returns the number of the gpio bank, so we have
to multiply with 32 to get the gpio base.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-07 18:46:42 +02:00
Sascha Hauer
52df7b6184
Merge branch 'pu/misc-fixes'
2012-10-07 18:45:56 +02:00
vicencb@gmail.com
9cb32d1d58
regression: reset can not return
...
Signed-off-by: vj <vicencb@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-07 11:40:07 +02:00
Alexander Shiyan
3c272204e6
ARM: Fix Kconfig link for Cirrus Logic EP9312 CPU.
...
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-05 13:47:52 +02:00
Sascha Hauer
6bb06524d6
ARM pbl: actually create cached mappings in the decompressor
...
We called create_sections with 4096MB as size argument, but create_sections
expected the argument in bytes, so create sections was completely optimized
away due to the size >>= 20. This patch changes the size argument to be in
megabytes and adjusts map_cachable to pass the argument in megabytes.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 18:30:58 +02:00
Sascha Hauer
a86824b5ac
ARM pbl: Provide a dummy error function for the decompressor
...
We can't do anything useful in the error function, so we just hang.
This has the advantage that at least when a JTAG debugger is connected
we can see what happens. Otherwise the code just jumps to NULL in case
of an error.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 18:30:58 +02:00
Jean-Christophe PLAGNIOL-VILLARD
269ca0edeb
calao: at91 qil/tny/usb auto detect the phy addr
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 17:24:09 +02:00
Sascha Hauer
7cb6f34fcd
nios2: Fix stray comment start in longlong.h
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:34:25 +02:00
Sascha Hauer
47d237e58a
Merge branch 'for-next/fixes'
2012-10-04 15:25:12 +02:00
Sascha Hauer
94de405d8f
Merge branch 'for-next/imx-clk'
2012-10-04 15:24:57 +02:00
Sascha Hauer
5d62bd0e67
ARM i.MX51 babbage: Add delay after phy reset
...
Since we have phylib the phy won't be detected after poweron. It seems
the phy needs some time after reset.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:21:04 +02:00
Sascha Hauer
e3e2ebb3ad
ARM i.MX clocksource: fix timer source selection
...
- The i.MX1 timer does not have IPG clock as source, so rename
the define accordingly
- for the i.MX31 timer we want to use the per clock, not the ipg
clock.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:21:04 +02:00
Sascha Hauer
d4edd480b2
ARM i.MX: Remove old clock support
...
The old clock support is now unused. Remove it. The former i.MX clko
command is superseeded by generic clock manipulation commands.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:57 +02:00
Sascha Hauer
d510df23a0
ARM i.MX: Switch clocksource to clk_get
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:56 +02:00
Sascha Hauer
b01f7e13b7
ARM i.MX35: Switch to common clk
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:56 +02:00
Sascha Hauer
018a986393
ARM i.MX21: Switch to common clk
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:56 +02:00
Sascha Hauer
555a1ff0c3
ARM i.MX6: Switch to common clk
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:56 +02:00
Sascha Hauer
44947a3bcd
ARM i.MX31: Switch to common clk
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:56 +02:00
Sascha Hauer
13ccfddded
ARM i.MX1: Switch to common clk support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:56 +02:00
Sascha Hauer
ef38819eaa
ARM i.MX5: Switch to common clk support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:56 +02:00
Sascha Hauer
3e40a76cba
ARM i.MX25: Switch to common clk support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:55 +02:00
Sascha Hauer
c422abc4e5
ARM i.MX27: implement clk support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:55 +02:00
Sascha Hauer
809549b1bf
ARM i.MX: initial clk support
...
This adds the basic i.MX common clk support and some pll and pfd
drivers.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:55 +02:00
Sascha Hauer
83b0ed7fbf
ARM i.MX25: Add function to setup chipselect
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:54 +02:00
Sascha Hauer
aea42202d5
ARM i.MX35: Add function to setup chipselect
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:54 +02:00
Sascha Hauer
5552a1f51d
ARM i.MX31: Add function to setup chipselect
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:54 +02:00
Sascha Hauer
9f5d274099
ARM i.MX21: Add function to setup chipselect
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:54 +02:00
Sascha Hauer
a36a8f5d1b
ARM i.MX1: Add function to setup chipselect
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:53 +02:00
Sascha Hauer
8b88e6dadb
ARM i.MX: Add header file for WEIM cs setup
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:53 +02:00
Sascha Hauer
fcd2ece1c2
ARM i.MX51: Use defines rather than hardcoded addresses
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:53 +02:00
Sascha Hauer
02480b3a74
ARM i.MX/MXS: Allow to include imx*-regs.h directly
...
In fact we can be happy about everyone including the files directly.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:53 +02:00
Sascha Hauer
ed07306aa8
ARM i.MX25: give register base addresses a proper MX25_ prefix
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:53 +02:00
Sascha Hauer
1d609aceae
ARM i.MX27: give register base addresses a proper MX27_ prefix
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:53 +02:00
Sascha Hauer
5455ecea55
ARM i.MX1: give register base addresses a proper MX1_ prefix
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:53 +02:00
Sascha Hauer
1abd9ab08f
ARM i.MX21: give register base addresses a proper MX21_ prefix
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:53 +02:00
Sascha Hauer
862a868069
ARM i.MX35: give register base addresses a proper MX35_ prefix
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:52 +02:00
Sascha Hauer
ad09b59f8b
ARM i.MX31: give register base addresses a proper MX31_ prefix
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:52 +02:00
Jean-Christophe PLAGNIOL-VILLARD
3c5327e660
switch all platform_bus device/driver registering to platform_driver/device_register
...
now register_driver and register_device are for bus only usage.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-10-04 15:19:12 +02:00
Sascha Hauer
638e059aba
Merge branch 'for-next/arm-board-reset'
...
Conflicts:
arch/arm/cpu/start-reset.c
arch/arm/include/asm/barebox-arm.h
arch/arm/mach-omap/Kconfig
arch/arm/mach-omap/omap3_core.S
2012-10-03 21:19:30 +02:00
Sascha Hauer
edf068e9cf
Merge branch 'for-next/tftp'
2012-10-03 21:17:39 +02:00
Sascha Hauer
6021818e3d
Merge branch 'for-next/arm-remove-arch-init-ll'
...
Conflicts:
arch/arm/include/asm/barebox-arm.h
2012-10-03 21:13:31 +02:00
Sascha Hauer
0ed19adde8
Merge branch 'for-next/spi'
2012-10-03 21:13:05 +02:00
Sascha Hauer
d7609640e7
Merge branch 'for-next/sandbox'
...
Conflicts:
arch/sandbox/mach-sandbox/include/mach/linux.h
2012-10-03 21:13:00 +02:00
Sascha Hauer
d1e65d2a7b
Merge branch 'for-next/remove-fsf-address'
...
Conflicts:
drivers/net/miidev.c
include/miidev.h
2012-10-03 21:12:48 +02:00