aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2020-05-13 18:47:49 +0200
committerLubomir Rintel <lkundrak@v3.sk>2021-01-10 02:10:56 +0100
commit6538624d5192166d22ce7f1a751a867a79122da2 (patch)
tree14ce8ff571c066738c2bff7f6543d77cff237a57
parent235c1005eee3cebdd15e5f81081659a207858e58 (diff)
downloadopenfirmware-6538624d5192166d22ce7f1a751a867a79122da2.tar.gz
olpc/mmp2camera: add power domain on MMP3
This tells the driver to enable the power island first.
-rw-r--r--cpu/arm/mmp2/clk.fth1
-rw-r--r--dev/olpc/mmp2camera/loadpkg.fth1
2 files changed, 2 insertions, 0 deletions
diff --git a/cpu/arm/mmp2/clk.fth b/cpu/arm/mmp2/clk.fth
index 5481e291..e8d623db 100644
--- a/cpu/arm/mmp2/clk.fth
+++ b/cpu/arm/mmp2/clk.fth
@@ -41,6 +41,7 @@ d# 126 constant mmp3-sdh4-clk#
\ From include/dt-bindings/power/marvell,mmp2.h
d# 0 constant mmp2-gpu-pd#
+d# 2 constant mmp3-camera-pd#
\ FIXME: Not official clock numbers!
d# 10000 constant mmp2-audio-clk#
diff --git a/dev/olpc/mmp2camera/loadpkg.fth b/dev/olpc/mmp2camera/loadpkg.fth
index 5e8a5402..5f8af9c8 100644
--- a/dev/olpc/mmp2camera/loadpkg.fth
+++ b/dev/olpc/mmp2camera/loadpkg.fth
@@ -5,6 +5,7 @@
my-address my-space h# 800 reg
" /clocks" encode-phandle mmp2-ccic0-clk# encode-int encode+ " clocks" property
[ifdef] mmp3
+ " /clocks" encode-phandle mmp3-camera-pd# encode-int encode+ " power-domains" property
\ The CCIC interrupt is shared between CCIC1 and CCIC2 on MMP3
" /interrupt-controller@1cc" encode-phandle " interrupt-parent" property
1 " interrupts" integer-property