fix(rockchip): use semicolon instead of commaUse semicolon insted of comma at the end of line.Change-Id: I0ec7a70ec659333c98d586f7bebd5d91bd6c6cc1Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
refactor(plat/rockchip/rk3399/drivers/gpio): reduce code duplicationRefactor the GPIO code to use a small lookup table instead of redundant orrepetitive code.Signed-off-by: Jona Stubbe <tf-a@jon
refactor(plat/rockchip/rk3399/drivers/gpio): reduce code duplicationRefactor the GPIO code to use a small lookup table instead of redundant orrepetitive code.Signed-off-by: Jona Stubbe <tf-a@jona-stubbe.de>Change-Id: Icf60385095efc1f506e4215d497b60f90e16edfdSigned-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
show more ...
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>
rockchip/rk3399: save and restore pd_alive registerpd_alive control cru, grf, timer, gpio and wdt, whenturn off logic power rail, these register value willback to reset value, we need to save the
rockchip/rk3399: save and restore pd_alive registerpd_alive control cru, grf, timer, gpio and wdt, whenturn off logic power rail, these register value willback to reset value, we need to save them value in suspendand restore them when resuem, since timer will reinitialin kernel, so it not need to save/restore.Change-Id: I0fc2a011d3cdc04b66ffbf728e769eb28b51ee38Signed-off-by: Lin Huang <hl@rock-chips.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>
Use SPDX license identifiersTo make software license auditing simpler, use SPDX[0] licenseidentifiers instead of duplicating the license text in every file.NOTE: Files that have been imported by
Use SPDX license identifiersTo make software license auditing simpler, use SPDX[0] licenseidentifiers instead of duplicating the license text in every file.NOTE: Files that have been imported by FreeBSD have not been modified.[0]: https://spdx.org/Change-Id: I80a00e1f641b8cc075ca5a95b10607ed9ed8761aSigned-off-by: dp-arm <dimitris.papastamos@arm.com>
rockchip/rk3399: improve gpio driver and support get pull mode functionWe may need gpio pull mode later, so add this function.Besides fix a set pull mode bug, and save gpio clock gate,when operat
rockchip/rk3399: improve gpio driver and support get pull mode functionWe may need gpio pull mode later, so add this function.Besides fix a set pull mode bug, and save gpio clock gate,when operate the gpio, we will enable gpio clock, whenfinish gpio operate, restore gpio clock gate status.Change-Id: Ia1d602804f571a17f5ddc499908663b968b02974
rockchip: support rk3399 gpio driverThere are 5 groups of GPIO (GPIO0~GPIO4), totally have 122 GPIOson rk3399 platform.The pull direction(pullup or pulldown) for all of GPIOs aresoftware-program
rockchip: support rk3399 gpio driverThere are 5 groups of GPIO (GPIO0~GPIO4), totally have 122 GPIOson rk3399 platform.The pull direction(pullup or pulldown) for all of GPIOs aresoftware-programmable.At the moment, we add the gpio basic driver since reset or power offthe devices from gpio configuration for BL31.