Haojian Zhuang | 5f281b3 | 2017-05-24 08:45:05 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | CONSOLE_BASE := PL011_UART3_BASE |
| 8 | CRASH_CONSOLE_BASE := PL011_UART3_BASE |
Haojian Zhuang | 934ae71 | 2017-05-24 08:47:49 +0800 | [diff] [blame] | 9 | PLAT_PARTITION_MAX_ENTRIES := 12 |
Haojian Zhuang | 5f281b3 | 2017-05-24 08:45:05 +0800 | [diff] [blame] | 10 | PLAT_PL061_MAX_GPIOS := 160 |
| 11 | COLD_BOOT_SINGLE_CPU := 1 |
| 12 | PROGRAMMABLE_RESET_ADDRESS := 1 |
| 13 | |
| 14 | # Process flags |
| 15 | $(eval $(call add_define,CONSOLE_BASE)) |
| 16 | $(eval $(call add_define,CRASH_CONSOLE_BASE)) |
| 17 | $(eval $(call add_define,PLAT_PL061_MAX_GPIOS)) |
Haojian Zhuang | 934ae71 | 2017-05-24 08:47:49 +0800 | [diff] [blame] | 18 | $(eval $(call add_define,PLAT_PARTITION_MAX_ENTRIES)) |
Haojian Zhuang | 5f281b3 | 2017-05-24 08:45:05 +0800 | [diff] [blame] | 19 | |
| 20 | ENABLE_PLAT_COMPAT := 0 |
| 21 | |
| 22 | USE_COHERENT_MEM := 1 |
| 23 | |
| 24 | PLAT_INCLUDES := -Iinclude/common/tbbr \ |
| 25 | -Iinclude/drivers/synopsys \ |
| 26 | -Iplat/hisilicon/hikey/include |
| 27 | |
| 28 | PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/pl011_console.S \ |
| 29 | lib/aarch64/xlat_tables.c \ |
| 30 | plat/hisilicon/hikey/aarch64/hikey_common.c |
| 31 | |
| 32 | BL1_SOURCES += bl1/tbbr/tbbr_img_desc.c \ |
| 33 | drivers/arm/pl061/pl061_gpio.c \ |
| 34 | drivers/arm/sp804/sp804_delay_timer.c \ |
| 35 | drivers/delay_timer/delay_timer.c \ |
| 36 | drivers/gpio/gpio.c \ |
| 37 | drivers/io/io_block.c \ |
| 38 | drivers/io/io_fip.c \ |
| 39 | drivers/io/io_storage.c \ |
| 40 | drivers/emmc/emmc.c \ |
| 41 | drivers/synopsys/emmc/dw_mmc.c \ |
| 42 | lib/cpus/aarch64/cortex_a53.S \ |
| 43 | plat/hisilicon/hikey/aarch64/hikey_helpers.S \ |
| 44 | plat/hisilicon/hikey/hikey_bl1_setup.c \ |
| 45 | plat/hisilicon/hikey/hikey_io_storage.c |
Haojian Zhuang | 934ae71 | 2017-05-24 08:47:49 +0800 | [diff] [blame] | 46 | |
| 47 | BL2_SOURCES += drivers/arm/sp804/sp804_delay_timer.c \ |
| 48 | drivers/delay_timer/delay_timer.c \ |
| 49 | drivers/io/io_block.c \ |
| 50 | drivers/io/io_fip.c \ |
| 51 | drivers/io/io_storage.c \ |
| 52 | drivers/emmc/emmc.c \ |
| 53 | drivers/synopsys/emmc/dw_mmc.c \ |
| 54 | plat/hisilicon/hikey/aarch64/hikey_helpers.S \ |
| 55 | plat/hisilicon/hikey/hikey_bl2_setup.c \ |
| 56 | plat/hisilicon/hikey/hikey_ddr.c \ |
| 57 | plat/hisilicon/hikey/hikey_io_storage.c \ |
| 58 | plat/hisilicon/hikey/hisi_dvfs.c \ |
| 59 | plat/hisilicon/hikey/hisi_mcu.c |
Haojian Zhuang | 3846f14 | 2017-05-24 08:49:26 +0800 | [diff] [blame] | 60 | |
| 61 | HIKEY_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \ |
| 62 | drivers/arm/gic/v2/gicv2_main.c \ |
| 63 | drivers/arm/gic/v2/gicv2_helpers.c \ |
| 64 | plat/common/plat_gicv2.c |
| 65 | |
| 66 | BL31_SOURCES += drivers/arm/cci/cci.c \ |
Leo Yan | d5e2d1a | 2017-05-27 13:17:45 +0800 | [diff] [blame] | 67 | drivers/arm/sp804/sp804_delay_timer.c \ |
| 68 | drivers/delay_timer/delay_timer.c \ |
Haojian Zhuang | 3846f14 | 2017-05-24 08:49:26 +0800 | [diff] [blame] | 69 | lib/cpus/aarch64/cortex_a53.S \ |
| 70 | plat/common/aarch64/plat_psci_common.c \ |
| 71 | plat/hisilicon/hikey/aarch64/hikey_helpers.S \ |
| 72 | plat/hisilicon/hikey/hikey_bl31_setup.c \ |
| 73 | plat/hisilicon/hikey/hikey_pm.c \ |
| 74 | plat/hisilicon/hikey/hikey_topology.c \ |
| 75 | plat/hisilicon/hikey/hisi_ipc.c \ |
| 76 | plat/hisilicon/hikey/hisi_pwrc.c \ |
| 77 | plat/hisilicon/hikey/hisi_pwrc_sram.S \ |
| 78 | ${HIKEY_GIC_SOURCES} |
Vincent Guittot | 492acec | 2017-06-07 10:12:05 +0200 | [diff] [blame] | 79 | ifeq (${ENABLE_PMF}, 1) |
| 80 | BL31_SOURCES += plat/hisilicon/hikey/hisi_sip_svc.c \ |
| 81 | lib/pmf/pmf_smc.c |
| 82 | endif |
| 83 | |
Haojian Zhuang | 6643083 | 2017-06-30 16:21:54 +0800 | [diff] [blame] | 84 | # Enable workarounds for selected Cortex-A53 errata. |
| 85 | ERRATA_A53_836870 := 1 |
| 86 | ERRATA_A53_843419 := 1 |
| 87 | ERRATA_A53_855873 := 1 |