hisilicon: Unify Platform specific defines for PSCI modulePLATFORM_CORE_COUNT - Unsigned intPLATFORM_CLUSTER_COUNT - Unsigned intPLATFORM_MAX_CPUS_PER_CLUSTER - Unsigned intPLATFORM_CORE_COUNT_P
hisilicon: Unify Platform specific defines for PSCI modulePLATFORM_CORE_COUNT - Unsigned intPLATFORM_CLUSTER_COUNT - Unsigned intPLATFORM_MAX_CPUS_PER_CLUSTER - Unsigned intPLATFORM_CORE_COUNT_PER_CLUSTER - Unsigned intSigned-off-by: Deepika Bhavnani <deepika.bhavnani@arm.com>Change-Id: I327a8a2ab0f0e49bd62f413296c3b326393422b6
show more ...
hikey960: fix to load FIP by partition tableAvoid to load FIP by hacking address. Load it by partition table instead.Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>Change-Id: Ib476d024
hikey960: fix to load FIP by partition tableAvoid to load FIP by hacking address. Load it by partition table instead.Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>Change-Id: Ib476d024a51e4b9705441a0007d78f9fdf0ca078
Switch AARCH32/AARCH64 to __aarch64__NOTE: AARCH32/AARCH64 macros are now deprecated in favor of __aarch64__.All common C compilers pre-define the same macros to signal whicharchitecture the cod
Switch AARCH32/AARCH64 to __aarch64__NOTE: AARCH32/AARCH64 macros are now deprecated in favor of __aarch64__.All common C compilers pre-define the same macros to signal whicharchitecture the code is being compiled for: __arm__ for AArch32 (orearlier versions) and __aarch64__ for AArch64. There's no need for TF-Ato define its own custom macros for this. In order to unify code withthe export headers (which use __aarch64__ to avoid another dependency),let's deprecate the AARCH32 and AARCH64 macros and switch the code baseover to the pre-defined standard macro. (Since it is somewhatunintuitive that __arm__ only means AArch32, let's standardize on onlyusing __aarch64__.)Change-Id: Ic77de4b052297d77f38fc95f95f65a8ee70cf200Signed-off-by: Julius Werner <jwerner@chromium.org>
Update hisilicon drivers to not rely on undefined overflow behaviourThis consists of ensuring that the left operand of each shift isunsigned when the operation might overflow into the sign bit.C
Update hisilicon drivers to not rely on undefined overflow behaviourThis consists of ensuring that the left operand of each shift isunsigned when the operation might overflow into the sign bit.Change-Id: I67984b6c48c08af61e95a4dbd18047e2c3151f9aSigned-off-by: Justin Chadwell <justin.chadwell@arm.com>
Remove MULTI_CONSOLE_API flag and references to itThe new API becomes the default one.Change-Id: Ic1d602da3dff4f4ebbcc158b885295c902a24fecSigned-off-by: Ambroise Vincent <ambroise.vincent@arm.co
Remove MULTI_CONSOLE_API flag and references to itThe new API becomes the default one.Change-Id: Ic1d602da3dff4f4ebbcc158b885295c902a24fecSigned-off-by: Ambroise Vincent <ambroise.vincent@arm.com>
Merge changes from topic "av/tls-heap" into integration* changes: Mbed TLS: Remove weak heap implementation sgm: Fix bl2 sources
Mbed TLS: Remove weak heap implementationThe implementation of the heap function plat_get_mbedtls_heap() becomesmandatory for platforms supporting TRUSTED_BOARD_BOOT.The shared Mbed TLS heap def
Mbed TLS: Remove weak heap implementationThe implementation of the heap function plat_get_mbedtls_heap() becomesmandatory for platforms supporting TRUSTED_BOARD_BOOT.The shared Mbed TLS heap default weak function implementation isconverted to a helper function get_mbedtls_heap_helper() which can beused by the platforms for their own function implementation.Change-Id: Ic8f2994e25e3d9fcd371a21ac459fdcafe07433eSigned-off-by: Ambroise Vincent <ambroise.vincent@arm.com>
hikey960: Fix race condition between hotplug and idlesFrom the hotplug testing on Hikey960, in some case cores fail to becomeonline in the system. When some cores are hotplugged off, if othercore
hikey960: Fix race condition between hotplug and idlesFrom the hotplug testing on Hikey960, in some case cores fail to becomeonline in the system. When some cores are hotplugged off, if othercores in the same cluster enter into CPU idle states at the meantime,the cluster will be powered off. This introduces the state machinemalfunction in the power controller, thus when hotplug on the coreafterwards, it fails to boot up the core because the power controllerthinks the cluster is powered on.This patch is to avoid race condition between hotplug and idles bypreventing cluster power off when some of cores in the cluster arehotplugged off, if all cores in the same cluster are hotplugged off,the cluster can be powered off.Change-Id: Ib2feeb093357c70409a3536cb4f9da9b504fdcbeSigned-off-by: Wei Yu <yuwei3@hisilicon.com>Signed-off-by: Leo Yan <leo.yan@linaro.org>
hikey960: enable IOMCU DMACThere exists a third DMA controller on the hi3660SoC called the IOMCU DMAC. This controller is used byperipherals like SPI2 and UART3. Initialize channels 4-7as non-se
hikey960: enable IOMCU DMACThere exists a third DMA controller on the hi3660SoC called the IOMCU DMAC. This controller is used byperipherals like SPI2 and UART3. Initialize channels 4-7as non-secure, while 0-3 remain reserved and secure.Signed-off-by: Ryan Grachek <ryan@edited.us>
Merge pull request #1804 from antonio-nino-diaz-arm/an/cleanupMinor cleanup
Remove unneeded include paths in PLAT_INCLUDESAlso, update platform_def.h guidelines about includes in the portingguide.Change-Id: I1ae338c9dd3242b309f6d53687ba2cb755d488c3Signed-off-by: Antoni
Remove unneeded include paths in PLAT_INCLUDESAlso, update platform_def.h guidelines about includes in the portingguide.Change-Id: I1ae338c9dd3242b309f6d53687ba2cb755d488c3Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Remove duplicated definitions of linker symbolsMany parts of the code were duplicating symbols that are defined ininclude/common/bl_common.h. It is better to only use the definitions inthis heade
Remove duplicated definitions of linker symbolsMany parts of the code were duplicating symbols that are defined ininclude/common/bl_common.h. It is better to only use the definitions inthis header.As all the symbols refer to virtual addresses, they have to beuintptr_t, not unsigned long. This has also been fixed in bl_common.h.Change-Id: I204081af78326ced03fb05f69846f229d324c711Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
hikey960: EDMAC: leave channel 0 as secureChannel 0 is used to communicate with LPM3, a coprocessorfor power management. Leave it as secure.Signed-off-by: Ryan Grachek <ryan@edited.us>
Move BL1 and BL2 private defines to bl_common.hThe definitions in bl1/bl1_private.h and bl2/bl2_private.h are useful forplatforms that may need to access them.Change-Id: Ifd1880f855ddafcb3bfcaf1
Move BL1 and BL2 private defines to bl_common.hThe definitions in bl1/bl1_private.h and bl2/bl2_private.h are useful forplatforms that may need to access them.Change-Id: Ifd1880f855ddafcb3bfcaf1ed4a4e0f121eda174Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
hikey960:Corrected erroneous DDR_SIZEChange-Id: I7194a9a5f0e41308eb3242d20c0d3434f72da591Signed-off-by: Joel Hutton <Joel.Hutton@Arm.com>
hikey960: Increase max xlat tablesIt is cleaner to use the same number of tables regardless of whetherOP-TEE is used or not. This doesn't result in a significant memoryusage increase.Change-Id:
hikey960: Increase max xlat tablesIt is cleaner to use the same number of tables regardless of whetherOP-TEE is used or not. This doesn't result in a significant memoryusage increase.Change-Id: I38bcaa3f2f197c0a352153117592749f189a265cSigned-off-by: Joel Hutton <Joel.Hutton@Arm.com>
Sanitise includes across codebaseEnforce full include path for includes. Deprecate old paths.The following folders inside include/lib have been left unchanged:- include/lib/cpus/${ARCH}- inclu
Sanitise includes across codebaseEnforce full include path for includes. Deprecate old paths.The following folders inside include/lib have been left unchanged:- include/lib/cpus/${ARCH}- include/lib/el3_runtime/${ARCH}The reason for this change is that having a global namespace forincludes isn't a good idea. It defeats one of the advantages of havingfolders and it introduces problems that are sometimes subtle (becauseyou may not know the header you are actually including if there are twoof them).For example, this patch had to be created because two headers werecalled the same way: e0ea0928d5b7 ("Fix gpio includes of mt8173 platformto avoid collision."). More recently, this patch has had similarproblems: 46f9b2c3a282 ("drivers: add tzc380 support").This problem was introduced in commit 4ecca33988b9 ("Move include andsource files to logical locations"). At that time, there weren't toomany headers so it wasn't a real issue. However, time has shown thatthis creates problems.Platforms that want to preserve the way they include headers may add theremoved paths to PLAT_INCLUDES, but this is discouraged.Change-Id: I39dc53ed98f9e297a5966e723d1936d6ccf2fc8fSigned-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
io_block: define MAX_IO_BLOCK_DEVICES as unsignedThis is used as a table index, and already compared with an unsigned int:block_dev_count.Signed-off-by: Yann Gautier <yann.gautier@st.com>
hikey960: initialize EDMAC and channelsThis is needed to utilize the DMA controller on the hikey960Signed-off-by: Ryan Grachek <ryan@edited.us>
Merge pull request #1674 from jforissier/hisi-multi-consolehikey, hikey960, poplar: use new console APIs
hikey960: Use new console APIsSwitch to the new console APIs enabled by setting MULTI_CONSOLE_API=1.Enables building with ERROR_DEPRECATED=1.Signed-off-by: Jerome Forissier <jerome.forissier@lin
hikey960: Use new console APIsSwitch to the new console APIs enabled by setting MULTI_CONSOLE_API=1.Enables building with ERROR_DEPRECATED=1.Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Standardise header guards across codebaseAll identifiers, regardless of use, that start with two underscores arereserved. This means they can't be used in header guards.The style that this proje
Standardise header guards across codebaseAll identifiers, regardless of use, that start with two underscores arereserved. This means they can't be used in header guards.The style that this project is now to use the full name of the file incapital letters followed by 'H'. For example, for a file called"uart_example.h", the header guard is UART_EXAMPLE_H.The exceptions are files that are imported from other projects:- CryptoCell driver- dt-bindings folders- zlib headersChange-Id: I50561bf6c88b491ec440d0c8385c74650f3c106eSigned-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
context_mgmt: Fix MISRA defectsThe macro EL_IMPLEMENTED() has been deprecated in favour of the newfunction el_implemented().Change-Id: Ic9b1b81480b5e019b50a050e8c1a199991bf0ca9Signed-off-by: An
context_mgmt: Fix MISRA defectsThe macro EL_IMPLEMENTED() has been deprecated in favour of the newfunction el_implemented().Change-Id: Ic9b1b81480b5e019b50a050e8c1a199991bf0ca9Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Add plat_crash_console_flush to platforms without itEven though at this point plat_crash_console_flush is optional, it willstop being optional in a following patch.The console driver of warp7 do
Add plat_crash_console_flush to platforms without itEven though at this point plat_crash_console_flush is optional, it willstop being optional in a following patch.The console driver of warp7 doesn't support flush, so the implementationis a placeholder.TI had ``plat_crash_console_init`` and ``plat_crash_console_putc``, butthey weren't global so they weren't actually used. Also, they werecalling the wrong functions.imx8_helpers.S only has placeholders for all of the functions.Change-Id: I8d17bbf37c7dad74e134c61ceb92acb9af497718Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Merge pull request #1587 from antonio-nino-diaz-arm/an/deprecatedRemove deprecated interfaces for all platforms
12345