feat(imx8): add support for debug uart on lpuart1Needed for TQMa8Xx on MBa8Xx. With this changes it ispossible to build:$ make PLAT=imx8qx IMX_DEBUG_UART=1 DEBUG_CONSOLE=1 bl31Signed-off-by: M
feat(imx8): add support for debug uart on lpuart1Needed for TQMa8Xx on MBa8Xx. With this changes it ispossible to build:$ make PLAT=imx8qx IMX_DEBUG_UART=1 DEBUG_CONSOLE=1 bl31Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>Change-Id: If380845b254f30fe919ebb33c86130597c4b8ad3
show more ...
plat: imx: imx8qx: provide debug uart num as build param1. This removes hardcoded iomux/clk/addr configuration for debug uart,provides possibility (as a workaround, till that information isn'tpro
plat: imx: imx8qx: provide debug uart num as build param1. This removes hardcoded iomux/clk/addr configuration for debug uart,provides possibility (as a workaround, till that information isn'tprovided via DT) to set this configuration during compile time viaIMX_DEBUG_UART build flag.Also for Colibri i.MX8QXP different pinmux configuration is appliedfor UART3, FLEXCAN2_RX/TX pads are muxed to ADMA_UART3_RX/TX.2. Having DEBUG_CONSOLE enabled without enabling DEBUG_CONSOLE_A35doesn't make sense (since UART pinmux/clock configuration is appliedfor UART only when DEBUG_CONSOLE_A35 is enabled. Check similar commitfor i.MX8QM 98a69dfd4a("plat: imx: imx8qm: apply clk/pinmuxconfiguration for DEBUG_CONSOLE")).Usage:$ make PLAT=imx8qx IMX_DEBUG_UART=3 DEBUG_CONSOLE=1 bl31Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com>Change-Id: I5d04939b2e8ee1a5f4b2f3c6241977d3c6e91760
imx: Unify Platform specific defines for PSCI modulePLATFORM_CORE_COUNT - Unsigned intPLATFORM_CLUSTER_COUNT - Unsigned intPLATFORM_MAX_CPUS_PER_CLUSTER - Unsigned intPLATFORM_CORE_COUNT_PER_CLU
imx: 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: I8b19e833a4e1067e1cfcc9bfaede7854e0e63004
imx8: Replace PLAT_IMX8* with automatic PLAT_imx8*Platform defines are already provided by the build system so let's notduplicate them.Change-Id: Icf1ea76c3c3213e27b447c95e2b22b961fa7693eSigned
imx8: Replace PLAT_IMX8* with automatic PLAT_imx8*Platform defines are already provided by the build system so let's notduplicate them.Change-Id: Icf1ea76c3c3213e27b447c95e2b22b961fa7693eSigned-off-by: Leonard Crestez <leonard.crestez@nxp.com>
imx: power optimization for i.mx8qxCurrent implementation of i.MX8QX power management relatedfeatures does NOT optimize power number, all system resourceslike CCI, DDR, and A cluster etc. are kep
imx: power optimization for i.mx8qxCurrent implementation of i.MX8QX power management relatedfeatures does NOT optimize power number, all system resourceslike CCI, DDR, and A cluster etc. are kept in STBY mode (poweredON) when system suspend or CPU hotplug.To lower the power number, OFF mode should be adopted for thosesystem resources whenever they can be OFF, A cluster will be OFFif the CPUs in the cluster are all off line, DDR/MU/DB can be OFFif system suspend, IRQ steer can be OFF if the wakeup source isbelonged to system controller partition, so wakeup source runtimecheck is used to determine if IRQ steer can be OFF before systemsuspend.If resources are powered off for suspend, they should be restoredproperly after system resume.Signed-off-by: Anson Huang <Anson.Huang@nxp.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>
PSCI: Fix types of definitionsAlso change header guards to fix defects of MISRA C-2012 Rule 21.1.Change-Id: Ied0d4b0e557ef6119ab669d106d2ac5d99620c57Acked-by: Sumit Garg <sumit.garg@linaro.org>
PSCI: Fix types of definitionsAlso change header guards to fix defects of MISRA C-2012 Rule 21.1.Change-Id: Ied0d4b0e557ef6119ab669d106d2ac5d99620c57Acked-by: Sumit Garg <sumit.garg@linaro.org>Acked-by: Anson Huang <Anson.Huang@nxp.com>Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
imx: imx8qm: add domain off supportAdd domain off support for Linux kernel's cpuhot-plug feature, when there are cpu off requestfrom Linux kernel, TF-A will send command tosystem controller to d
imx: imx8qm: add domain off supportAdd domain off support for Linux kernel's cpuhot-plug feature, when there are cpu off requestfrom Linux kernel, TF-A will send command tosystem controller to do CPU power gate accordingly,tested on i.MX8QM MEK board.Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Support for NXP's i.MX8QX SoCNXP's i.MX8QX is an ARMv8 SoC with 4 Cortex-A35 cores andsystem controller (Cortex-M4) inside, documentation canbe found in below link:https://www.nxp.com/products/
Support for NXP's i.MX8QX SoCNXP's i.MX8QX is an ARMv8 SoC with 4 Cortex-A35 cores andsystem controller (Cortex-M4) inside, documentation canbe found in below link:https://www.nxp.com/products/processors-and-microcontrollers/applications-processors/i.mx-applications-processors/i.mx-8-processors:IMX8-SERIESThis patch adds support for booting up SMP linux kernel (v4.9).Signed-off-by: Anson Huang <Anson.Huang@nxp.com>