summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-30warp7: Add workaround to skip suspend SMClinaro-warp7Jun Nie
Add workaround to skip suspend SMC because warp7 does not support suspend yet due to lack of LPDDR3 configuration to DDR controller. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-10-08psci: skip SMP power operation for uniprocessorJun Nie
Skip SMP power operations for uniprocessor because they are not mandotary for uniprocessor. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-10-04Aarch32: fix register usage when setup stackJun Nie
Avoid using clobbered register when setup stack. Otherwise, the SVC mode is not recover and result wrong stack pointer. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-10-04Aarch32: Add data sync for spin lock for ARMv7Jun Nie
Add data sync for spin lock because stl instruction on ARMv8 makes sure that data is sync while str instruction does not on ARMv7. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-10-04warp7: Change TFTF load addressJun Nie
Change TFTF load address because ATF is merged and load address is re-arranged. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-09-12warp7: Add missing timer driver headerJun Nie
Add missing timer driver header Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-09-10warp7: skip tests that are not supported by warp7Jun Nie
suspend, PSCI Affinity info and CPU hotplug are not supported by warp7. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-09-10warp7: fix platform name typo in commentsJun Nie
fix platform name typo in comments Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-09-07psci: Skip check mandatary ARM64 feature for ARMv7Jun Nie
Skip check ARM64 feature for ARMv7 as they are mandatory features actually. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-09-07warp7: add system level standby stateJun Nie
add system level standby state Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-09-06warp7: Fix power level number for warp7Jun Nie
Fix power level number for warp7 because there are only two power levels are defined. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-09-06warp7: Skip PSCI Affinity testJun Nie
Skip PSCI Affinity test as there is only one CPU core in SOC. This test also cause test suite to exit. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-09-05framework: fix a typo for exception vectorJun Nie
Fix a typo for exception vector manipulation. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-09-04Aarch32: adjust pc register after IRQ routineJun Nie
Adjust pc register after IRQ routine because CPU pipeline increase the pc value while the instruction is not excuted yet when IRQ interrupt pipeline. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-28warp7: serial: protect r4 register with fifoJun Nie
protect r4 register with fifo so that the data in r4 is not corrupted after console function call. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-28Align timer register access to cp15Jun Nie
Align timer register access to cp15. Then memory map is not necessary for the test code. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-28warp7: register platform timerJun Nie
register nxp timer as platform timer to provide timeout interrupt service. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-28warp7: Add nxp timer driverJun Nie
Add nxp timer driver. This driver use compare channel 2 to set timeout as one shot timer. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-24Aarch32: add arch version flag in makefileJun Nie
add arch version flag in makefile so that this build flag can be detected when building code. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-24warp7: Fix unprotected reg in serial driverJun Nie
warp7: Fix unprotected reg in serial driver. R7 is used without protection in current code and result various peculiar bugs. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-24warp7: correct system counter register addressJun Nie
Correct system counter register address. So that framework can call it directly to get latest counter value. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-24warp7: adjust mpid valueJun Nie
The mpid value get from tftf_plat_get_mpidr() should be aligned with read_mpidr_el1(), so that below test is true for lead core. (read_mpidr_el1() & MPID_MASK) == mpid Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-24warp7: change tftf load address to ease testJun Nie
change tftf load address to ease test. The original address is for optee. TFTF should play u-boot's role for test actually. But for ease of test, we use u-boot to load it, as below boot sequence of ATF -> optee -> u-boot -> tftf. The command in u-boot console to boot tftf: fatload mmc 0:1 0x9e000000 tftf.bin; go 0x9e000000 Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-24warp7: add irq stack size definitionJun Nie
add irq stack size definition so that Aarch32 framework can use it to define the stack in IRQ mode. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-24Aarch32: Add IRQ stack for ARMv7Jun Nie
Add stack for IRQ mode for ARMv7. Otherwise, stack operation in IRQ mode result data abort due to data access to random address. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-21Aarch32: Support non-HYP suspendJun Nie
Skip hypervisor related system control registers manipulation and operate on non-HYP version registers to support CPU suspend that does not support hypervisor feature. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07Aarch32: workaround missing udiv instructionJun Nie
workaround missing udiv instruction because it is optional instruction. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07warp7: Add tests list to skipJun Nie
Add tests list to skip for warp7. More will be added later Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07warp7: build: Add make config fileJun Nie
Add build config file to specify source code for compiling Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07warp7: Add power state and domain topologyJun Nie
Add power state and domain topology for warp7 Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07warp7: register timer for warp7Jun Nie
register timer for warp7 to provide timer callback for framework. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07warp7: Add basic platform setupJun Nie
Add basic platform setup code, include console and GIC initilization. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07warp7: Add plat helpers functionJun Nie
Add plat helpers function, platform_get_core_pos(). This function is called in framework so we need implement it though warp7 only have one CPU core. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07warp7: Add platform configuration headerJun Nie
Add platform definition header, which defines all warp7 related configurations. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07imx7: add serial console outputJun Nie
add serial console output. Input function will be added later Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07Aarch32: Adding ".arch_extension sec"Jun Nie
Adding ".arch_extension sec" to avoid failure for "smc #0" Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07Aarch32: Print correct message for non-HYP modeJun Nie
Print correct message for non-HYP mode as we are support non-HYP mode now. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07Aarch32: replace ARMv8 only assembly codeJun Nie
Some ARMv8 only assembly is used in aarch32 case, add ARMv7 version assembly code Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07Aarch32: handle non-hyp mode in entry pointJun Nie
Add vector base address handling in non-hyp mode in entry point Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07Aarch32: does not trigger panic for non-hyp caseJun Nie
some ARMv7 SoC does not support hypervisor mode. Just skip hypervisor related operation instead of trigger panic. Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-08-07Build: introduce cflags for ARMv7Jun Nie
introduce cflags for ARMv7 for compiler Signed-off-by: Jun Nie <jun.nie@linaro.org>
2018-05-10readme typodanh-arm
2018-05-10Create README.mddanh-arm
2018-05-08pl011: Reorganize getc implementationAntonio Nino Diaz
Split the function console_getc into console_getc and console_core_getc like the rest of the console driver interfaces. Change-Id: If1defe6ab99c3f72245a1e02b57d886fe92c2b2c Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2018-04-27Build: Fix display in autogen ruleSandrine Bailleux
The autogen rule is not inside an 'eval' so it does not need a double dollar for variable expansion. This made it print an empty string like that: AUTOGEN Change-Id: I953fe72110d5edefbfd3bd2d4145af1d808b89d1 Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2018-04-27Build: Introduce defaults.mkSandrine Bailleux
Move default values of build options in defaults.mk and include the latter from the top Makefile. Change-Id: I533d9f28649dbfe5b61a12975c3198e216b60d64 Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2018-04-27Build: Refactor build optionsSandrine Bailleux
No functional change, just making the Makefile more concise and aligned with the TF one. Change-Id: I03385e4957ea992bbcb55a8e21b70d6297f0c00d Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2018-04-27Build: Move TESTS_FILE definition in tests.mkSandrine Bailleux
It seems more logical to choose the tests manifest inside the tests makefile rather than in the top Makefile. Change-Id: I25993550cc5c10b9e3e7b1ef841b616712a234fb Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2018-04-27Build: generate .d file at the same time as .oSandrine Bailleux
Note: This patch is based on TF commit 710ea1d01a10 ("Build: generate .d file at the same time as object is created"). Currently, .d files are generated before any objects are built. IS_ANYTHING_TO_BUILD flag is needed to avoid such processing for non-build targets. Instead just create a .d file simultaneously when the corresponding object is created. No need to have separate rules for .d files. This commit will also fix a bug; -D$(IMAGE) is defined for $(OBJ), but not for $(PREREQUISITES). So, .d files are generated with different macro sets from those for .o files, then wrong .d files are generated. For example, with the following code: #if IMAGE_TFTF #include <some_file.h> #endif <some_file.h> is included when building TFTF but the .d file does not pick up that dependency. With this commit, the compiler will generate .o and .d at the same time, guaranteeing they are generated under the same circumstances. Change-Id: I7d4aa4bbd65a828e2c1860a099231ca70d3a0886 Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2018-04-23Disable mem_protect testsRoberto Vargas
The new implementation of mem_protect generates a chicken-egg problem, and the only way to push the TF and CI changes is to disable first the TF change. Change-Id: If5c65d83413f95d17f9b325c1d3c46e8a9575668