greybus: arche-apb-ctrl: Add APB control driver
authorVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Wed, 16 Dec 2015 10:59:19 +0000 (16:29 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 23 Dec 2015 01:40:43 +0000 (17:40 -0800)
commit5a78178718b9e50ee60a1129431758125cfa2f6a
treea247ce756ca93c876e82fb8e6592ddff91d58a7a
parent7fa60654752bd4fbbe1e35e310a4bc96b6a3dec3
greybus: arche-apb-ctrl: Add APB control driver

It was messy to integrate both SVC, APB (and any other arche
platform specific control) into one single driver. Especially
due to cross-dependency.

AP first needs to bringup SVC, as SVC should enable clock to APB.
APB should come up before HUB, as due to some reason HUB wouldn't
enumerate APB's is APB comes up later.
And on top of that we should have clean picture of hardware description
in DT file.

So this patch introduces APB control driver. Mostly copied from original
arche-platform driver + fixed boot sequence.

Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/Makefile
drivers/staging/greybus/arche-apb-ctrl.c [new file with mode: 0644]