1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-nspire/nspire.c
5 * Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au>
7 #include <linux/init.h>
8 #include <linux/of_irq.h>
9 #include <linux/of_address.h>
10 #include <linux/of_platform.h>
11 #include <linux/irqchip.h>
12 #include <linux/irqchip/arm-vic.h>
13 #include <linux/clkdev.h>
14 #include <linux/amba/bus.h>
16 #include <asm/mach/arch.h>
17 #include <asm/mach-types.h>
18 #include <asm/mach/map.h>
22 static const char *const nspire_dt_match
[] __initconst
= {
30 static void nspire_restart(enum reboot_mode mode
, const char *cmd
)
32 void __iomem
*base
= ioremap(NSPIRE_MISC_PHYS_BASE
, SZ_4K
);
36 writel(2, base
+ NSPIRE_MISC_HWRESET
);
39 DT_MACHINE_START(NSPIRE
, "TI-NSPIRE")
40 .dt_compat
= nspire_dt_match
,
41 .restart
= nspire_restart
,