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
85b1bff154
video i.MX IPU: Switch to clock support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:57 +02:00
Sascha Hauer
a0e03bb62f
video i.MX: Switch to clock support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:57 +02:00
Sascha Hauer
8a67a0a035
i2c i.MX: Switch to clock support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:57 +02:00
Sascha Hauer
3591842f8a
mci i.MX: Switch to clock support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:56 +02:00
Sascha Hauer
c7cea55e0a
mci i.MX ESDHC: Switch to clock support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:56 +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
2155161eca
spi i.MX: Switch to clk support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:56 +02:00
Sascha Hauer
e3bc3f751d
serial i.MX: Switch to clk support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:56 +02:00
Sascha Hauer
70253cbbbb
net fec: Switch to clk support
...
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
c797f3c168
commands: Add clk commands
...
This adds some basic commands to manupulate clocks on the command
line. Right now we have:
- clk_set_parent
- clk_set_rate
- clk_enable
- clk_disable
- clk_dump
The commands work based on the clock name, otherwise they behave like
the Linux Kernel C functions. clk_dump will dump the clocktree to the
console.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:55 +02:00
Sascha Hauer
f2e2e596a2
clk: initial common clk support
...
This adds barebox common clk support loosely based on the Kernel common
clk support. differences are:
- barebox does not need prepare/unprepare
- no parent rate propagation for set_rate
- struct clk is not really encapsulated from the drivers
Along with the clk support we have support for some basic clk building
blocks:
- clk-fixed
- clk-fixed-factor
- clk-mux
- clk-divider
clk-fixed and clk-fixed-factor are completely generic, clk-mux and clk-divider
are currently the way i.MX muxes/dividers are implemented.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:55 +02:00
Sascha Hauer
89b710e509
clk clkdev: Add clkdev matching based on physbase
...
Most clock/device associations can be done based on the physical
base address of the corresponding device. So instead of depending
on string matching add an optional possibility to associate a clock
lookups with physical addresses. This also has the advantage that
the lookups for devicetree based devices can be identical to the
platform based devices.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:54 +02:00
Sascha Hauer
6f4dd1b204
err.h: introduce IS_ERR_OR_NULL
...
Copied from Linux.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 15:19:54 +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
ddba7e606b
devinfo: display device bus name
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-10-04 15:19:12 +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
Jean-Christophe PLAGNIOL-VILLARD
c0620a4b50
fb: move add param to bus probe
...
so the param add added only of the device successed to register.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-10-04 15:19:12 +02:00
Jean-Christophe PLAGNIOL-VILLARD
ebf6e1d052
arm: move nomadik timer to drivers/clocksource
...
as this timer is shared with multiple arch
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-10-04 18:54:12 +08:00
Jean-Christophe PLAGNIOL-VILLARD
0228863348
arm: add generic smp twd timer
...
on Cortex A9 and Cortex A5 we have a generic timer which we can use as
clocksource
Limit the timer frequency to < 25Mhz
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-10-04 18:40:46 +08:00
Sascha Hauer
06eebb1619
provide static inline function for export
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 10:57:13 +02:00
Sascha Hauer
50c075ba43
driver: move dev_get_drvdata out of CONFIG_CMD_DEVINFO
...
dev_get_drvdata accidently is inside #ifdef CONFIG_CMD_DEVINFO.
Move it out of there.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-04 10:56:24 +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
90d92b359d
Merge branch 'for-next/defaultenv-deps'
2012-10-03 21:18:10 +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
2385424e30
Merge branch 'for-next/testing-menu'
2012-10-03 21:13:11 +02:00