diff options
author | Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> | 2020-07-06 16:15:23 +0100 |
---|---|---|
committer | Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> | 2020-07-06 16:55:43 +0100 |
commit | ef93cfa3a2591084307a41e64f1cbba327310749 (patch) | |
tree | 0b7e30eab374a6131e6ce9bac7bf1fea3f635dce /fdts | |
parent | 11af40b6308ac75c83e874129bb79bc3a58060bf (diff) | |
download | arm-trusted-firmware-ef93cfa3a2591084307a41e64f1cbba327310749.tar.gz |
corstone700: splitting the platform support into FVP and FPGA
This patch performs the following:
- Creating two corstone700 platforms under corstone700 board:
fvp and fpga
- Since the FVP and FPGA have IP differences, this commit provides a specific DTS for each platform
- The platform can be specified using the TARGET_PLATFORM Makefile variable
(possible values are: fvp or fpga)
- Allowing to use u-boot by:
- Enabling NEED_BL33 option
- Fixing non-secure image base: For no preloaded bl33 we want to
have the NS base set on shared ram. Setup a memory map region
for NS in shared map and set the bl33 address in the area.
- Setting the SYS_COUNTER_FREQ_IN_TICKS based on the selected
platform
- Setting ARM_MAP_SHARED_RAM and ARM_MAP_NS_SHARED_RAM to use MT_MEMORY
Change-Id: I4c8ac3387acb1693ab617bcccab00d80e340c163
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Diffstat (limited to 'fdts')
-rw-r--r-- | fdts/corstone700.dtsi (renamed from fdts/corstone700.dts) | 26 | ||||
-rw-r--r-- | fdts/corstone700_fpga.dts | 27 | ||||
-rw-r--r-- | fdts/corstone700_fvp.dts | 40 |
3 files changed, 84 insertions, 9 deletions
diff --git a/fdts/corstone700.dts b/fdts/corstone700.dtsi index 851f5e625..2372207c6 100644 --- a/fdts/corstone700.dts +++ b/fdts/corstone700.dtsi @@ -1,22 +1,18 @@ /* - * Copyright (c) 2019-2020, Arm Limited and Contributors. All rights reserved. + * Copyright (c) 2020, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ -/dts-v1/; +#include <dt-bindings/interrupt-controller/arm-gic.h> / { - model = "corstone700"; compatible = "arm,Corstone-700"; interrupt-parent = <&gic>; #address-cells = <1>; #size-cells = <1>; - chosen { - bootargs = "console=ttyAMA0 \ - loglevel=9"; - }; + chosen { }; cpus { #address-cells = <1>; @@ -28,7 +24,6 @@ reg = <0>; next-level-cache = <&L2_0>; }; - }; memory@80000000 { @@ -99,7 +94,21 @@ <1 14 0xf08>, <1 11 0xf08>, <1 10 0xf08>; + }; + + refclk: refclk@1a220000 { + compatible = "arm,armv7-timer-mem"; + reg = <0x1a220000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + frame@1a230000 { + frame-number = <0>; + interrupts = <0 2 0xf04>; + reg = <0x1a230000 0x1000>; }; + }; mbox_es0mhu0: mhu@1b000000 { compatible = "arm,mhuv2","arm,primecell"; @@ -149,5 +158,4 @@ <0x1A010314 0x4>; reg-names = "rstreg", "streg"; }; - }; diff --git a/fdts/corstone700_fpga.dts b/fdts/corstone700_fpga.dts new file mode 100644 index 000000000..814d6a862 --- /dev/null +++ b/fdts/corstone700_fpga.dts @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2020, Arm Limited. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/dts-v1/; + +#include "corstone700.dtsi" + +/ { + model = "corstone700-fpga"; + + ethernet: eth@40100000 { + compatible = "smsc,lan9115"; + reg = <0x40100000 0x10000>; + phy-mode = "mii"; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>; + reg-io-width = <2>; + smsc,irq-push-pull; + }; +}; + +&refclk { + clock-frequency = <32000000>; +}; diff --git a/fdts/corstone700_fvp.dts b/fdts/corstone700_fvp.dts new file mode 100644 index 000000000..3b1202d01 --- /dev/null +++ b/fdts/corstone700_fvp.dts @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2020, Arm Limited. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/dts-v1/; + +#include "corstone700.dtsi" + +/ { + model = "corstone700-fvp"; + + /* + * Intel StrataFlash J3 NOR flash: 2 x 16-bit interleaved components + * Flash total size: 32 MB + * Allocated flash space: 8 MB + */ + + flash@8500000 { + compatible = "cfi-flash"; + reg = <0x8500000 0x800000>; + bank-width = <4>; + device-width= <2>; + }; + + ethernet: eth@4010000 { + compatible = "smsc,lan91c111"; + reg = <0x40100000 0x10000>; + phy-mode = "mii"; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 116 0xf04>; + reg-io-width = <2>; + smsc,irq-push-pull; + }; +}; + +&refclk { + clock-frequency = <50000000>; +}; |