board and soc: generic: Add support for a generic board

Signed-off-by: Markuss Broks <markuss.broks@gmail.com>
This commit is contained in:
Markuss Broks 2022-06-13 19:35:43 +03:00
parent b295ac57ce
commit f6f373a75c
4 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,13 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, Markuss Broks <markuss.broks@gmail.com>
*/
/* This is a generic board file. This should work on every device
* as long as it's loaded in physical memory with enough space to
* put the kernel image ahead of it on closest 2MiB-aligned address.
*/
void board_init(void) {
}

View File

@ -0,0 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, Markuss Broks <markuss.broks@gmail.com>
*/
#ifndef BOARD_GENERIC_H /* Include guard */
#define BOARD_GENERIC_H
/* Nothing really is here :) */
#endif // BOARD_GENERIC_H

View File

@ -39,6 +39,11 @@ ifeq ($(SOC),t7000)
brand_name=apple
endif
# Generic
ifeq ($(SOC),generic)
brand_name=generic
endif
all: $(brand_name)/$(SOC).o copy-soc
copy-soc:

8
soc/generic/generic.c Normal file
View File

@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2022, Markuss Broks <markuss.broks@gmail.com>
*/
void soc_init(void) {
/* We don't know anything about the SoC so we can't do anything... */
}