blob: 64cc1868c24b473d6b25128f287ea231b741b532 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/*
* xen/arch/arm/seattle.c
*
* AMD Seattle specific settings
*
* Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
* Copyright (c) 2014 Advance Micro Devices 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; either version 2 of the License, or
* (at your option) any later version.
*
* 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 <asm/platform.h>
#include <asm/psci.h>
static const char * const seattle_dt_compat[] __initconst =
{
"amd,seattle",
NULL
};
/* Seattle firmware only implements PSCI handler for
* system off and system reset at this point.
* This is temporary until full PSCI-0.2 is supported.
* Then, these function will be removed.
*/
static void seattle_system_reset(void)
{
arm_smccc_smc(PSCI_0_2_FN32_SYSTEM_RESET, NULL);
}
static void seattle_system_off(void)
{
arm_smccc_smc(PSCI_0_2_FN32_SYSTEM_OFF, NULL);
}
PLATFORM_START(seattle, "SEATTLE")
.compatible = seattle_dt_compat,
.reset = seattle_system_reset,
.poweroff = seattle_system_off,
PLATFORM_END
/*
* Local variables:
* mode: C
* c-file-style: "BSD"
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/
|