sunxi: board: Add PinePhone DT selection logic
authorSamuel Holland <samuel@sholland.org>
Sat, 24 Oct 2020 15:21:52 +0000 (10:21 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 17 Nov 2020 00:42:20 +0000 (00:42 +0000)
commit8a8b73b6d714c740c1e2387c3474cc65cafd47aa
treecb1667a67dd8519294d02331474b9a5cb897b12e
parent54ac5aa17461b404ff514c0276c05693069937b6
sunxi: board: Add PinePhone DT selection logic

There are two different publicly-released revisions of the PinePhone
hardware, versions 1.1 and 1.2; and they need different device trees.
Since some GPIO pins were rerouted, we can use that to distinguish
between them.

Acked-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
arch/arm/mach-sunxi/Kconfig
board/sunxi/board.c