refactor(platforms): remove usage of psci_power_down_wfiThe callers in PSCI will now call wfi() after calling thepwr_domain_pwr_down() platform hook (previously they were mutuallyexclusive). As s
refactor(platforms): remove usage of psci_power_down_wfiThe callers in PSCI will now call wfi() after calling thepwr_domain_pwr_down() platform hook (previously they were mutuallyexclusive). As such, there is no need for platforms to do thisthemselves. In fact, it is strongly advisable for platforms not to dothis themselves so that the PSCI can apply any relevant erratamitigations.Change-Id: Ic9702edef7503996be24d984e29dfcc13bc3fcbaSigned-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
show more ...
refactor: panic after calling psci_power_down_wfi()This function doesn't return and its callers that don't return eitherrely on this. Drop the dead attribute and add a panic() after it to makethi
refactor: panic after calling psci_power_down_wfi()This function doesn't return and its callers that don't return eitherrely on this. Drop the dead attribute and add a panic() after it to makethis expectation explicit. Calling `wfi` in the powerdown sequence isterminal so even if the function was made to return, there would be nofunctional change.This is useful for a following patch that makes psci_power_down_wfi()return.Change-Id: I62ca1ee058b1eaeb046966c795081e01bf45a2ebSigned-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
fix(tree): correct some typosfound using codespell (https://github.com/codespell-project/codespell).Signed-off-by: Elyes Haouas <ehaouas@noos.fr>Change-Id: I1bfa797e3460adddeefa916bb68e22beddaf6
fix(tree): correct some typosfound using codespell (https://github.com/codespell-project/codespell).Signed-off-by: Elyes Haouas <ehaouas@noos.fr>Change-Id: I1bfa797e3460adddeefa916bb68e22beddaf6373
Update rockchip platform 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 rockchip platform 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: Ib7fc54e4141cc4f1952a18241bc18671b36e2168Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
rockchip: rk3328: drop double declaration of entry_point storageThe cpuson_entry_point and cpuson_flags are already declared inplat_private.h so there is no need to have it again declared inthe l
rockchip: rk3328: drop double declaration of entry_point storageThe cpuson_entry_point and cpuson_flags are already declared inplat_private.h so there is no need to have it again declared inthe local pmu.h, especially as it may cause conflicts when theother type changes.Signed-off-by: Heiko Stuebner <heiko@sntech.de>Change-Id: I80ae0e23d22f67109ed96f8ac059973b6de2ce87
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>
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>
Ensure the correct execution of TLBI instructionsAfter executing a TLBI a DSB is needed to ensure completion of theTLBI.rk3328: The MMU is allowed to load TLB entries for as long as it isenable
Ensure the correct execution of TLBI instructionsAfter executing a TLBI a DSB is needed to ensure completion of theTLBI.rk3328: The MMU is allowed to load TLB entries for as long as it isenabled. Because of this, the correct place to execute a TLBI is rightafter disabling the MMU.Change-Id: I8280f248d10b49a8c354a4ccbdc8f8345ac4c170Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Fix order of remaining platform #includesThis fix modifies the order of system includes to meet the ARM TF codingstandard. There are some exceptions to this change in order to retainheader groupi
Fix order of remaining platform #includesThis fix modifies the order of system includes to meet the ARM TF codingstandard. There are some exceptions to this change in order to retainheader groupings and where there are headers within #if statements.Change-Id: Ib5b668c992d817cc860e97b29e16ef106d17e404Signed-off-by: Isla Mitchell <isla.mitchell@arm.com>
rockchip: add pmusram sectionthe function pmu_cpuon_entrypoint() need to run in the pmusram,we just copy bin file to pmusram before, now we add pmusram sectionand link pmu_cpuon_entrypoint() to p
rockchip: add pmusram sectionthe function pmu_cpuon_entrypoint() need to run in the pmusram,we just copy bin file to pmusram before, now we add pmusram sectionand link pmu_cpuon_entrypoint() to pmusram directlyChange-Id: Iae31e4c01c480c8e6f565a8f588332b478efdb16Signed-off-by: Lin Huang <hl@rock-chips.com>Signed-off-by: Caesar Wang <wxt@rock-chips.com>
rockchip: rk3328: Add assert check in pmu.cAdd assert() check for cpuson_flags[] and cpuson_entry_point[].Change-Id: I971fe54c2baa3b4514a3979042341220f5e20901Signed-off-by: tony.xie <tony.xie@ro
rockchip: rk3328: Add assert check in pmu.cAdd assert() check for cpuson_flags[] and cpuson_entry_point[].Change-Id: I971fe54c2baa3b4514a3979042341220f5e20901Signed-off-by: tony.xie <tony.xie@rock-chips.com>
Use SPDX license identifiers for remaining filesChange-Id: I7f54f45db65f32481cc05e1bd2c9c683b756e19aSigned-off-by: dp-arm <dimitris.papastamos@arm.com>
rockchip: rk3328: Add a missing paragraph for copyright notice.Change-Id: I78c7e304d3070f66e2ca3bf838c76ee6a2ae3430Signed-off-by: tony.xie <tony.xie@rock-chips.com>
rockchip: rk3328: support rk3328rk3328 is a Quad-core soc and Cortex-a53 inside!This patch supports the following functions:1、power up/off cpus2、suspend/resume cpus3、suspend/resume system4、rese
rockchip: rk3328: support rk3328rk3328 is a Quad-core soc and Cortex-a53 inside!This patch supports the following functions:1、power up/off cpus2、suspend/resume cpus3、suspend/resume system4、reset system5、power off systemChange-Id: I60687058d13912c6929293b06fed9c6bc72bdc84Signed-off-by: tony.xie <tony.xie@rock-chips.com>