mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 00:39:46 +07:00
a30eceb7a5
Ask firmware to put RAM in self-refresh mode and power system down. echo mem > /sys/power/state See Documentation/power/states.txt Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
9 lines
394 B
C
9 lines
394 B
C
extern int tango_smc(unsigned int val, unsigned int service);
|
|
|
|
#define tango_set_l2_control(val) tango_smc(val, 0x102)
|
|
#define tango_start_aux_core(val) tango_smc(val, 0x104)
|
|
#define tango_set_aux_boot_addr(val) tango_smc(val, 0x105)
|
|
#define tango_suspend(val) tango_smc(val, 0x120)
|
|
#define tango_aux_core_die(val) tango_smc(val, 0x121)
|
|
#define tango_aux_core_kill(val) tango_smc(val, 0x122)
|