aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-08-11 21:28:02 +0200
committerLubomir Rintel <lkundrak@v3.sk>2021-01-10 00:00:51 +0100
commit6116502bd1628856e1d74f695fd49a9d02b6bf27 (patch)
treedf1281025ea030d3e49c6b9b6b04baea6e403801
parentb0944d08976827a1845d303b83c82242ecd2e981 (diff)
downloadopenfirmware-6116502bd1628856e1d74f695fd49a9d02b6bf27.tar.gz
olpc: split the mmp2 l2cache into a separate file
It actually is not correct for mmp3. Move it aside, then we can conditionalize it.
-rw-r--r--cpu/arm/mmp2/l2cache.fth34
-rw-r--r--cpu/arm/olpc/build-fw.fth6
2 files changed, 35 insertions, 5 deletions
diff --git a/cpu/arm/mmp2/l2cache.fth b/cpu/arm/mmp2/l2cache.fth
new file mode 100644
index 00000000..b75f6d51
--- /dev/null
+++ b/cpu/arm/mmp2/l2cache.fth
@@ -0,0 +1,34 @@
+purpose: L2 cache controller node
+\ See license at end of file
+
+decimal
+
+0 0 " " " /" begin-package
+ " l2-cache" device-name
+ " marvell,tauros2-cache" +compatible
+ 3 " marvell,tauros2-cache-features" integer-property
+end-package
+
+\ LICENSE_BEGIN
+\ Copyright (c) 2019 Lubomir Rintel <lkundrak@v3.sk>
+\
+\ Permission is hereby granted, free of charge, to any person obtaining
+\ a copy of this software and associated documentation files (the
+\ "Software"), to deal in the Software without restriction, including
+\ without limitation the rights to use, copy, modify, merge, publish,
+\ distribute, sublicense, and/or sell copies of the Software, and to
+\ permit persons to whom the Software is furnished to do so, subject to
+\ the following conditions:
+\
+\ The above copyright notice and this permission notice shall be
+\ included in all copies or substantial portions of the Software.
+\
+\ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+\ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+\ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+\ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+\ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+\ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+\ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+\
+\ LICENSE_END
diff --git a/cpu/arm/olpc/build-fw.fth b/cpu/arm/olpc/build-fw.fth
index 66466dbe..6d3e15bf 100644
--- a/cpu/arm/olpc/build-fw.fth
+++ b/cpu/arm/olpc/build-fw.fth
@@ -93,11 +93,7 @@ devalias rom /dropin-fs
fload ${BP}/cpu/x86/pc/cpunode.fth \ The PC CPU node is actually fairly generic
-0 0 " " " /" begin-package
- " l2-cache" device-name
- " marvell,tauros2-cache" +compatible
- 3 " marvell,tauros2-cache-features" integer-property
-end-package
+fload ${BP}/cpu/arm/mmp2/l2cache.fth
: cpu-mhz ( -- n )
" /cpu@0" find-package drop ( phandle )