libnvdimm/dax: Pick the right alignment default when creating dax devices
[linux-2.6-block.git] / arch / arm / mach-omap2 / am33xx-restart.c
CommitLineData
d2912cb1 1// SPDX-License-Identifier: GPL-2.0-only
14e067c1
JSB
2/*
3 * am33xx-restart.c - Code common to all AM33xx machines.
14e067c1
JSB
4 */
5#include <linux/kernel.h>
7b6d864b 6#include <linux/reboot.h>
14e067c1
JSB
7
8#include "common.h"
61c8621e 9#include "prm.h"
14e067c1
JSB
10
11/**
12 * am3xx_restart - trigger a software restart of the SoC
13 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c
14 * @cmd: passed from the userspace program rebooting the system (if provided)
15 *
16 * Resets the SoC. For @cmd, see the 'reboot' syscall in
17 * kernel/sys.c. No return value.
18 */
7b6d864b 19void am33xx_restart(enum reboot_mode mode, const char *cmd)
14e067c1
JSB
20{
21 /* TODO: Handle mode and cmd if necessary */
22
61c8621e 23 omap_prm_reset_system();
14e067c1 24}