summaryrefslogtreecommitdiff
path: root/plat/sun50iw1p1/sunxi_cpu_ops.c
AgeCommit message (Collapse)Author
2016-10-23sunxi: fix udelay() implementationAndre Przywara
Nah, compilers are way too clever these days to fall for those simple delay loops, in fact the function resulted into a single "ret" to be generated. Use an inline assembly loop instead.
2016-10-23sun50i: CPU ops: disable delay loopsAndre Przywara
The CPU power down/up code has delays in the sequence. It turns out that the udelay() function has been optimized away by the compiler, so there is no delay in between the steps in the sequence. Moreover actually having those delays in the sequence breaks the code (the PSCI handler hangs). Until we know if and what delays are actually needed, lets change the code to be easily able to turn on and off the delays - and turn it off for now to mimic the current behaviour. This allows fixing (and reusing) the udelay() function in a next step. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2016-06-02PSCI: remove Allwinner debug messagesAndre Przywara
Spamming the (shared) console from firmware with debug messages on (PSCI) service calls is really a bad idea, so just remove those to keep the firmware silent. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2016-02-04Merge in files from Allwinners lichee BSP tarballAndre Przywara
The Pine64 Wiki[1] links to a BSP tarball, among other things containing a dump of an ARM Trusted Firmware source tree with Allwinner changes on top. Since the tarball does not contain any version history information about the changes, this commit is just the diff between the ATF 1.0 release and the files from the Allwinner provided tarball. The executable flag from many source has been removed. [1] http://wiki.pine64.org/index.php/Pine_A64_Software_Release#Linux_BSP_Related