Ryan Harkin | 25cff83 | 2014-01-13 12:37:03 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # Redistribution and use in source and binary forms, with or without |
| 5 | # modification, are permitted provided that the following conditions are met: |
| 6 | # |
| 7 | # Redistributions of source code must retain the above copyright notice, this |
| 8 | # list of conditions and the following disclaimer. |
| 9 | # |
| 10 | # Redistributions in binary form must reproduce the above copyright notice, |
| 11 | # this list of conditions and the following disclaimer in the documentation |
| 12 | # and/or other materials provided with the distribution. |
| 13 | # |
| 14 | # Neither the name of ARM nor the names of its contributors may be used |
| 15 | # to endorse or promote products derived from this software without specific |
| 16 | # prior written permission. |
| 17 | # |
| 18 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 19 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 20 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 21 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
| 22 | # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 23 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 24 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 25 | # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 26 | # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 27 | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 28 | # POSSIBILITY OF SUCH DAMAGE. |
| 29 | # |
| 30 | |
Sandrine Bailleux | e701e30 | 2014-05-20 17:28:25 +0100 | [diff] [blame] | 31 | # On FVP, the TSP can execute either from Trusted SRAM or Trusted DRAM. |
| 32 | # Trusted SRAM is the default. |
| 33 | TSP_RAM_LOCATION := tsram |
| 34 | |
| 35 | ifeq (${TSP_RAM_LOCATION}, tsram) |
| 36 | TSP_RAM_LOCATION_ID := TSP_IN_TZRAM |
| 37 | else ifeq (${TSP_RAM_LOCATION}, tdram) |
| 38 | TSP_RAM_LOCATION_ID := TSP_IN_TZDRAM |
| 39 | else |
| 40 | $(error "Unsupported TSP_RAM_LOCATION value") |
| 41 | endif |
| 42 | |
| 43 | # Process TSP_RAM_LOCATION_ID flag |
| 44 | $(eval $(call add_define,TSP_RAM_LOCATION_ID)) |
| 45 | |
Soby Mathew | 5e5c207 | 2014-04-07 15:28:55 +0100 | [diff] [blame] | 46 | PLAT_INCLUDES := -Iplat/fvp/include/ |
Ryan Harkin | 25cff83 | 2014-01-13 12:37:03 +0000 | [diff] [blame] | 47 | |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 48 | PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/pl011.c \ |
| 49 | drivers/arm/pl011/pl011_console.c \ |
| 50 | drivers/io/io_fip.c \ |
| 51 | drivers/io/io_memmap.c \ |
| 52 | drivers/io/io_semihosting.c \ |
| 53 | lib/mmio.c \ |
| 54 | lib/aarch64/sysreg_helpers.S \ |
| 55 | lib/aarch64/xlat_tables.c \ |
| 56 | lib/semihosting/semihosting.c \ |
| 57 | lib/semihosting/aarch64/semihosting_call.S \ |
| 58 | plat/fvp/plat_io_storage.c |
Ryan Harkin | 25cff83 | 2014-01-13 12:37:03 +0000 | [diff] [blame] | 59 | |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 60 | BL1_SOURCES += drivers/arm/cci400/cci400.c \ |
| 61 | plat/common/aarch64/platform_up_stack.S \ |
| 62 | plat/fvp/bl1_plat_setup.c \ |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 63 | plat/fvp/aarch64/plat_common.c \ |
| 64 | plat/fvp/aarch64/plat_helpers.S |
Ryan Harkin | 25cff83 | 2014-01-13 12:37:03 +0000 | [diff] [blame] | 65 | |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 66 | BL2_SOURCES += drivers/arm/tzc400/tzc400.c \ |
| 67 | plat/common/aarch64/platform_up_stack.S \ |
| 68 | plat/fvp/bl2_plat_setup.c \ |
| 69 | plat/fvp/plat_security.c \ |
| 70 | plat/fvp/aarch64/plat_common.c |
Ryan Harkin | 25cff83 | 2014-01-13 12:37:03 +0000 | [diff] [blame] | 71 | |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 72 | BL31_SOURCES += drivers/arm/gic/gic_v2.c \ |
| 73 | drivers/arm/gic/gic_v3.c \ |
| 74 | drivers/arm/gic/aarch64/gic_v3_sysregs.S \ |
| 75 | drivers/arm/cci400/cci400.c \ |
| 76 | plat/common/aarch64/platform_mp_stack.S \ |
| 77 | plat/fvp/bl31_plat_setup.c \ |
| 78 | plat/fvp/plat_gic.c \ |
| 79 | plat/fvp/plat_pm.c \ |
| 80 | plat/fvp/plat_topology.c \ |
| 81 | plat/fvp/aarch64/plat_helpers.S \ |
| 82 | plat/fvp/aarch64/plat_common.c \ |
| 83 | plat/fvp/drivers/pwrc/fvp_pwrc.c |
Vikram Kanigiri | 9637745 | 2014-04-24 11:02:16 +0100 | [diff] [blame] | 84 | |
| 85 | ifeq (${RESET_TO_BL31}, 1) |
| 86 | BL31_SOURCES += drivers/arm/tzc400/tzc400.c \ |
| 87 | plat/fvp/plat_security.c |
| 88 | endif |
Achin Gupta | 191e86e | 2014-05-09 10:03:15 +0100 | [diff] [blame] | 89 | |
| 90 | # Flag used by the FVP port to determine the version of ARM GIC architecture |
| 91 | # to use for interrupt management in EL3. |
| 92 | FVP_GIC_ARCH := 2 |
| 93 | $(eval $(call add_define,FVP_GIC_ARCH)) |