I recently came across an ar7 device which has the vlynq hardwired
authorFlorian Fainelli <florian@openwrt.org>
Mon, 25 May 2009 13:13:10 +0000 (13:13 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 25 May 2009 13:13:10 +0000 (13:13 +0000)
commit545a539b2f7796dbb8a0530897a5221c29842a41
tree26fa97e257f3168ed01e0484c676ea35a2e6af1c
parente6eeee0230350afdc39c0e5a36c7a6bb2edc8875
I recently came across an ar7 device which has the vlynq hardwired
so that the clocks are always generated by the remote device
instead of the local one.

Upon initialization the current version of vlynq driver disables
remote clock generation and causes the entire bus to hang on my
device.

This patch adds support for detecting which device (local or remote)
is responsible of clock generation and implements clock
initialization based on detection result.

Signed-off-by: Antti Seppala <a.seppala at gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16049 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar7/files/drivers/vlynq/vlynq.c