[U-Boot] [PATCH 0/8] ARM: sunxi: Support PSCI for sun6i and sun8i

Chen-Yu Tsai wens at csie.org
Fri May 29 05:15:19 CEST 2015


Hi,

On Thu, May 28, 2015 at 11:31 PM, Maxime Ripard
<maxime.ripard at free-electrons.com> wrote:
> Hi Chen-Yu,
>
> On Thu, May 28, 2015 at 09:25:26PM +0800, Chen-Yu Tsai wrote:
>> Hi everyone,
>>
>> I finally got around to rebasing and fixing up my PSCI stuff.
>> This series adds PSCI support for sun6i and sun8i. This is
>> based on sun7i PSCI support by Marc, and the SMP support
>> routines found in both mainline Linux and Allwinner's Android
>> kernel.
>
> This is great, thanks!
>
>> I've tested this on my Hummingbird A31 board and Ippo q8h v5
>> tablet. Given the A23 SMP routines work on the A33 as well,
>> I see no reason it would not work, so A33 support is included
>> as well, but more testing is always welcome.
>
> Yeah, and we can expect it to work on the H3 and R16 as well.
>
>> Patch 1 and 2 address a build failur on sunxi/next I ran into,
>> which is related to the new NAND SPL support.
>>
>> Patch 3 adds some comments to the sunxi PSCI code, for easier
>> reading.
>>
>> Patch 4 moves sun7i PSCI code aside.
>>
>> Patch 5 adds sun6i PSCI code. Differences from sun7i are the
>> separate PRCM block for power gating/clamps, and support for
>> more than 1 secondary CPU core.
>>
>> Patch 6 enables PSCI for sun6i.
>>
>> Patch 7 lets sun8i share PSCI code with sun6i. The routines
>> are the same, except sun8i does not have power clamps.
>>
>> Patch 8 enables PSCI for sun8i (A23/A33).
>>
>> Wonder if we still need the SMP support in the kernel?
>
> Eventually, we can remove it.
>
> However, I think we should wait a bit before doing so. We have a few
> things that will be required before that:
>   - That these patches get merged (obviously)

Let's see what the maintainers say. :)

>   - That we have a way to replace the Allwinner bootloader in NAND on
>     these SoCs. That's especially true on the A31, which will boot on
>     NAND by default. We don't look so far off though.

Hmm... Is this somehow related? AFAIK most people can use mmc0, and
at least my NAND boot0 seems to check mmc0 for a valid signature,
and reboot into that.

>   - That these patches get into enough u-boot releases that we can
>     expect that most of the users to have been moved over (I'd say
>     something like 2-3 releases)

Yeah, that seems like a safe bet.

Thanks!
ChenYu


More information about the U-Boot mailing list