mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 17:22:22 +02:00
arm: apple: Add initial Apple M2 support
Apple's M2 SoC very similar to the M1 and can use the same memory map. The keyboard/trackpad on the MacBook Pro (13-inch, M2, 2022) uses "dockchannel" as transport instead of SPI and needs a new driver. USB, NVMe, uart, framebuffer and watchdog are working with the existing drivers. Signed-off-by: Janne Grunau <j@jannau.net> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
/* Apple M1 */
|
/* Apple M1/M2 */
|
||||||
|
|
||||||
static struct mm_region t8103_mem_map[] = {
|
static struct mm_region t8103_mem_map[] = {
|
||||||
{
|
{
|
||||||
@@ -376,7 +376,8 @@ void build_mem_map(void)
|
|||||||
fdt_size_t size;
|
fdt_size_t size;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (of_machine_is_compatible("apple,t8103"))
|
if (of_machine_is_compatible("apple,t8103") ||
|
||||||
|
of_machine_is_compatible("apple,t8112"))
|
||||||
mem_map = t8103_mem_map;
|
mem_map = t8103_mem_map;
|
||||||
else if (of_machine_is_compatible("apple,t6000"))
|
else if (of_machine_is_compatible("apple,t6000"))
|
||||||
mem_map = t6000_mem_map;
|
mem_map = t6000_mem_map;
|
||||||
|
Reference in New Issue
Block a user