diff --git a/board/apple/board-n61ap.c b/board/apple/board-n61ap.c index f0e578f..e0b3347 100644 --- a/board/apple/board-n61ap.c +++ b/board/apple/board-n61ap.c @@ -2,7 +2,48 @@ /* * Copyright (c) 2022, Ivaylo Ivanov */ +#include +#include +#include -void board_init(void) { +void init_board_funcs(void *board) +{ + /* + * Parsing the struct directly without restructing is + * broken as of Sep 29 2024 + */ + struct { + const char *name; + int ops[BOARD_OP_EXIT]; + } *board_restruct = board; + board_restruct->name = "N61AP"; +} + +int board_init(void) +{ + return 0; +} + +int board_late_init(void) +{ + return 0; +} + +int board_driver_setup(void) +{ + struct { + int width; + int height; + int stride; + void *address; + } simplefb_data = { + .width = 752, + .height = 1334, + .stride = 4, + .address = (void *)0x83e900000 + }; + + REGISTER_DRIVER("simplefb", simplefb_probe, &simplefb_data); + return 0; }