summaryrefslogtreecommitdiff
path: root/compiler/arm
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2020-01-23 21:14:49 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2020-01-23 21:14:49 +0000
commitade2ed1d6b3d982583d3f168d1a899ea911c7fed (patch)
treed6c7aee1bea2dd9b2f17ff323b4ebf02065b683f /compiler/arm
parent3fd322fe534a071f8372e8b5f0cd662f9712fcd6 (diff)
downloadfpc-ade2ed1d6b3d982583d3f168d1a899ea911c7fed.tar.gz
* patch by Robert Roland to support the RaspberryPi 2 as a bare metal embedded target, resolves #35236
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@44027 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/arm')
-rw-r--r--compiler/arm/cpuinfo.pas6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/arm/cpuinfo.pas b/compiler/arm/cpuinfo.pas
index 845496b5b7..2c5127b809 100644
--- a/compiler/arm/cpuinfo.pas
+++ b/compiler/arm/cpuinfo.pas
@@ -508,6 +508,9 @@ Type
ct_nrf52832_xxaa,
ct_nrf52840_xxaa,
+ { Raspberry Pi 2 }
+ ct_raspi2,
+
// generic Thumb2 target
ct_thumb2bare
);
@@ -1025,6 +1028,9 @@ Const
(controllertypestr:'NRF52832_XXAA'; controllerunitstr:'NRF52'; cputype:cpu_armv7em; fputype:fpu_soft; flashbase:$00000000; flashsize:$00080000; srambase:$20000000; sramsize:$00010000),
(controllertypestr:'NRF52840_XXAA'; controllerunitstr:'NRF52'; cputype:cpu_armv7em; fputype:fpu_soft; flashbase:$00000000; flashsize:$00080000; srambase:$20000000; sramsize:$00010000),
+ { Raspberry Pi 2 }
+ (controllertypestr:'RASPI2'; controllerunitstr:'RASPI2'; cputype:cpu_armv7a; fputype:fpu_vfpv4; flashbase:$00000000; flashsize:$00000000; srambase:$00008000; sramsize:$10000000),
+
{ Bare bones }
(controllertypestr:'THUMB2_BARE'; controllerunitstr:'THUMB2_BARE'; cputype:cpu_armv7m; fputype:fpu_soft; flashbase:$00000000; flashsize:$00002000; srambase:$20000000; sramsize:$00000400)
);