| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * arch/xtensa/platform-iss/setup.c |
|---|
| .. | .. |
|---|
| 9 | 10 | * |
|---|
| 10 | 11 | * Copyright 2001 - 2005 Tensilica Inc. |
|---|
| 11 | 12 | * Copyright 2017 Cadence Design Systems Inc. |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 14 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 15 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 16 | | - * option) any later version. |
|---|
| 17 | | - * |
|---|
| 18 | 13 | */ |
|---|
| 19 | | -#include <linux/bootmem.h> |
|---|
| 20 | | -#include <linux/stddef.h> |
|---|
| 21 | | -#include <linux/kernel.h> |
|---|
| 22 | 14 | #include <linux/init.h> |
|---|
| 23 | | -#include <linux/errno.h> |
|---|
| 24 | | -#include <linux/reboot.h> |
|---|
| 25 | | -#include <linux/kdev_t.h> |
|---|
| 26 | | -#include <linux/types.h> |
|---|
| 27 | | -#include <linux/major.h> |
|---|
| 28 | | -#include <linux/blkdev.h> |
|---|
| 29 | | -#include <linux/console.h> |
|---|
| 30 | | -#include <linux/delay.h> |
|---|
| 31 | | -#include <linux/stringify.h> |
|---|
| 15 | +#include <linux/kernel.h> |
|---|
| 32 | 16 | #include <linux/notifier.h> |
|---|
| 17 | +#include <linux/printk.h> |
|---|
| 18 | +#include <linux/string.h> |
|---|
| 33 | 19 | |
|---|
| 34 | 20 | #include <asm/platform.h> |
|---|
| 35 | | -#include <asm/bootparam.h> |
|---|
| 36 | 21 | #include <asm/setup.h> |
|---|
| 37 | 22 | |
|---|
| 38 | 23 | #include <platform/simcall.h> |
|---|
| 39 | 24 | |
|---|
| 40 | | - |
|---|
| 41 | | -void __init platform_init(bp_tag_t* bootparam) |
|---|
| 42 | | -{ |
|---|
| 43 | | -} |
|---|
| 44 | 25 | |
|---|
| 45 | 26 | void platform_halt(void) |
|---|
| 46 | 27 | { |
|---|
| .. | .. |
|---|
| 53 | 34 | pr_info(" ** Called platform_power_off() **\n"); |
|---|
| 54 | 35 | simc_exit(0); |
|---|
| 55 | 36 | } |
|---|
| 37 | + |
|---|
| 56 | 38 | void platform_restart(void) |
|---|
| 57 | 39 | { |
|---|
| 58 | 40 | /* Flush and reset the mmu, simulate a processor reset, and |
|---|
| 59 | 41 | * jump to the reset vector. */ |
|---|
| 60 | 42 | cpu_reset(); |
|---|
| 61 | 43 | /* control never gets here */ |
|---|
| 62 | | -} |
|---|
| 63 | | - |
|---|
| 64 | | -void platform_heartbeat(void) |
|---|
| 65 | | -{ |
|---|
| 66 | 44 | } |
|---|
| 67 | 45 | |
|---|
| 68 | 46 | static int |
|---|