diff options
author | Philipp Deppenwiese <zaolin@das-labor.org> | 2018-08-10 16:07:23 -0700 |
---|---|---|
committer | Philipp Deppenwiese <zaolin.daisuki@gmail.com> | 2018-08-24 12:29:28 +0000 |
commit | 31a4700ce9fbd1a4a04e88198e18d50cd9a81897 (patch) | |
tree | eb6f616c3f96a1b9bdc3be782c6cb5d6b920b6b7 /src/soc/cavium/cn81xx/reset.c | |
parent | 70866e9f383f4a2bb895486616136ba46add5bfa (diff) |
soc/cn81xx: Add vboot support
* Add VERSTAGE and VBOOT_WORK to memlayout.
* Add hard and soft reset.
* Add missing makefile and kconfig includes.
Change-Id: I0d7e3c220f5c2c50c4ffe59ac929cb865bfac0ad
Signed-off-by: Philipp Deppenwiese <zaolin@das-labor.org>
Reviewed-on: https://review.coreboot.org/28022
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/soc/cavium/cn81xx/reset.c')
-rw-r--r-- | src/soc/cavium/cn81xx/reset.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/soc/cavium/cn81xx/reset.c b/src/soc/cavium/cn81xx/reset.c new file mode 100644 index 0000000000..d3be7c9b5f --- /dev/null +++ b/src/soc/cavium/cn81xx/reset.c @@ -0,0 +1,23 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2018-present Facebook, Inc. + * + * 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 <arch/io.h> +#include <soc/addressmap.h> +#include <reset.h> + +void do_soft_reset(void) +{ + write64((void *)RST_SOFT_RESET, 1); +} |