9
0
Fork 0
barebox/drivers
Sascha Hauer 798e976bf2 ARM: mxs: make ssp gates parents of ssp dividers
When changing the rates of the ssp clocks we have to poll the
busy bit, but only when they are enabled. The current code can
not check this properly since the gates are registered as children
of the dividers. This has the effect that when the gate is disabled
the busy bit will be set forever resulting in a freezed system.

Fix this by making the gates parents of the dividers which allows
clk_is_enabled to return the correct result.

The Kernel has the same problem, but here the busy polling is
limited to 10ms, so probably noone noticed this.

The datasheet mentions that the ssp dividers shall only be changed
when the clocks are enabled. The kernel and barebox currently ignore
this. I don't know what effect violating this rule has.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-07-15 10:08:54 +02:00
..
amba treewide: Use dev_add_param_int_ro where possible 2013-04-11 11:48:35 +02:00
ata ata: Make 'already initialized' a debug message 2013-06-21 07:40:47 +02:00
base driver: implement device_detect_by_name function 2013-06-26 18:17:12 +02:00
clk ARM: mxs: make ssp gates parents of ssp dividers 2013-07-15 10:08:54 +02:00
clocksource clocksource: fix Marvell timer read-back value 2013-06-29 10:43:02 +02:00
dma Cleanup Kconfig files 2012-12-08 12:22:12 +01:00
eeprom Introduce device_spi_driver() macro and use it for SPI drivers 2013-03-14 07:15:45 +01:00
gpio gpio: i.MX: initialize earlier 2013-06-18 09:02:50 +02:00
i2c Merge branch 'for-next-manual/oftree-linux-sync' 2013-07-02 07:08:46 +02:00
input qt1070: drop non used buf 2013-05-08 07:16:40 +02:00
led led: test for led->set callback before calling it 2013-01-14 13:39:20 +01:00
mci Merge branch 'for-next/mxs' 2013-07-01 10:14:40 +02:00
mfd Merge branch 'for-next-manual/oftree-linux-sync' 2013-07-02 07:08:46 +02:00
misc driver: Attach info callback to device, not to driver 2013-05-30 12:18:27 +02:00
mtd nand_base: add missing newline 2013-07-09 19:49:41 +02:00
net Merge branch 'for-next/ppc' 2013-07-01 10:14:40 +02:00
of OF: base: initalize from node in of_find_node_with_property 2013-07-09 08:55:02 +02:00
pinctrl Merge branch 'for-next-manual/oftree-linux-sync' 2013-07-02 07:08:46 +02:00
pwm pwm: Use dev_add_param_int for pwm parameters 2013-04-11 11:48:35 +02:00
serial serial: stm: Use clk support 2013-06-20 08:49:56 +02:00
spi Merge branch 'for-next-manual/oftree-linux-sync' 2013-07-02 07:08:46 +02:00
usb Merge branch 'for-next-manual/oftree-linux-sync' 2013-07-02 07:08:46 +02:00
video Merge branch 'for-next/omap' 2013-07-01 10:14:40 +02:00
w1 w1: Fix compiler warning 2013-03-06 09:04:26 +01:00
watchdog ARM/MXS: add more ROM code related documentation 2013-04-09 08:44:06 +02:00
Kconfig Add initial pinctrl support 2013-04-23 09:36:13 +02:00
Makefile Add initial pinctrl support 2013-04-23 09:36:13 +02:00