1 /*
2 * xen/arch/arm/seattle.c
3 *
4 * AMD Seattle specific settings
5 *
6 * Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
7 * Copyright (c) 2014 Advance Micro Devices Inc.
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 */
19
20 #include <asm/platform.h>
21 #include <asm/psci.h>
22
23 static const char * const seattle_dt_compat[] __initconst =
24 {
25 "amd,seattle",
26 NULL
27 };
28
29 /* Seattle firmware only implements PSCI handler for
30 * system off and system reset at this point.
31 * This is temporary until full PSCI-0.2 is supported.
32 * Then, these function will be removed.
33 */
seattle_system_reset(void)34 static void seattle_system_reset(void)
35 {
36 arm_smccc_smc(PSCI_0_2_FN32_SYSTEM_RESET, NULL);
37 }
38
seattle_system_off(void)39 static void seattle_system_off(void)
40 {
41 arm_smccc_smc(PSCI_0_2_FN32_SYSTEM_OFF, NULL);
42 }
43
44 PLATFORM_START(seattle, "SEATTLE")
45 .compatible = seattle_dt_compat,
46 .reset = seattle_system_reset,
47 .poweroff = seattle_system_off,
48 PLATFORM_END
49
50 /*
51 * Local variables:
52 * mode: C
53 * c-file-style: "BSD"
54 * c-basic-offset: 4
55 * indent-tabs-mode: nil
56 * End:
57 */
58