Ronald G. Minnich (rminnich@gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17119
-gerrit
commit d05278ca4b12f75149f8906e08f87df526f52b53 Author: Ronald G. Minnich rminnich@gmail.com Date: Mon Oct 24 16:27:19 2016 -0700
riscv: add the lowrisc System On Chip support
Change-Id: I8d81b9cf280e724c935106c8f00692300094ad3f Signed-off-by: Ronald G. Minnich rminnich@gmail.com --- src/soc/lowrisc/lowrisc/Kconfig | 14 ++++++++++++++ src/soc/lowrisc/lowrisc/Makefile.inc | 6 ++++++ src/soc/lowrisc/lowrisc/cbmem.c | 23 +++++++++++++++++++++++ 3 files changed, 43 insertions(+)
diff --git a/src/soc/lowrisc/lowrisc/Kconfig b/src/soc/lowrisc/lowrisc/Kconfig new file mode 100644 index 0000000..528e744 --- /dev/null +++ b/src/soc/lowrisc/lowrisc/Kconfig @@ -0,0 +1,14 @@ +config SOC_LOWRISC_LOWRISC + select ARCH_RISCV + select ARCH_BOOTBLOCK_RISCV + select ARCH_VERSTAGE_RISCV + select ARCH_ROMSTAGE_RISCV + select ARCH_RAMSTAGE_RISCV + select BOOTBLOCK_CONSOLE + select DRIVERS_UART_8250MEM_32 + bool + default n + +if SOC_LOWRISC_LOWRISC + +endif diff --git a/src/soc/lowrisc/lowrisc/Makefile.inc b/src/soc/lowrisc/lowrisc/Makefile.inc new file mode 100644 index 0000000..343c909 --- /dev/null +++ b/src/soc/lowrisc/lowrisc/Makefile.inc @@ -0,0 +1,6 @@ +ifeq ($(CONFIG_SOC_LOWRISC_LOWRISC),y) + +romstage-y += cbmem.c +ramstage-y += cbmem.c + +endif diff --git a/src/soc/lowrisc/lowrisc/cbmem.c b/src/soc/lowrisc/lowrisc/cbmem.c new file mode 100644 index 0000000..ea7ad70 --- /dev/null +++ b/src/soc/lowrisc/lowrisc/cbmem.c @@ -0,0 +1,23 @@ +/* + * This file is part of the coreboot project. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <console/console.h> +#include <cbmem.h> + +void *cbmem_top(void) +{ + // TODO: find out how the lowrisc SOC decides to provide + // this information, when they know. + printk(BIOS_SPEW, "Returning hard-coded 128M; fix me\n"); + return (void *)((uintptr_t)(2ULL*GiB+128*MiB)); +}