diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2019-08-11 21:36:30 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2020-03-23 18:53:03 +0100 |
commit | be4759674af558831373dd8cfd4a652340706a97 (patch) | |
tree | 6b4b0b70a1b1629bce00f337a1dde86de6236d68 | |
parent | e4788f5acbb07ba2eb4722a2f07ed741724f6948 (diff) | |
download | openfirmware-be4759674af558831373dd8cfd4a652340706a97.tar.gz |
mmp3: add l2 cache controller
It's Tauros 3 on MMP3. Conditionally use it instead of Tauros 2 on that
platform.
-rw-r--r-- | cpu/arm/mmp3/l2cache.fth | 38 | ||||
-rw-r--r-- | cpu/arm/olpc/build-fw.fth | 4 |
2 files changed, 42 insertions, 0 deletions
diff --git a/cpu/arm/mmp3/l2cache.fth b/cpu/arm/mmp3/l2cache.fth new file mode 100644 index 00000000..52b91578 --- /dev/null +++ b/cpu/arm/mmp3/l2cache.fth @@ -0,0 +1,38 @@ +purpose: L2 cache controller node +\ See license at end of file + +decimal + +0 0 " d0020000" " /" begin-package + " l2-cache-controller" device-name + " arm,pl310-cache" +compatible + " marvell,tauros3-cache" +compatible + my-address my-space h# 1000 reg + + 0 0 " cache-unified" property + 2 " cache-level" 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 6d3e15bf..cd756277 100644 --- a/cpu/arm/olpc/build-fw.fth +++ b/cpu/arm/olpc/build-fw.fth @@ -93,7 +93,11 @@ devalias rom /dropin-fs fload ${BP}/cpu/x86/pc/cpunode.fth \ The PC CPU node is actually fairly generic +[ifdef] mmp3 +fload ${BP}/cpu/arm/mmp3/l2cache.fth +[else] fload ${BP}/cpu/arm/mmp2/l2cache.fth +[then] : cpu-mhz ( -- n ) " /cpu@0" find-package drop ( phandle ) |