Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ARM: nspire: Use syscon-reboot to handle restart

Writing this bit can be handled by the DT syscon-reboot driver.
Enable that driver and remove the machine_desc version.

Signed-off-by: Andrew Davis <afd@ti.com>
Tested-by: Fabian Vogt <fabian@ritter-vogt.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Fabian Vogt <fabian@ritter-vogt.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Andrew Davis and committed by
Arnd Bergmann
47c128c6 d69ba6fe

+2 -13
+2
arch/arm/mach-nspire/Kconfig
··· 9 9 select ARM_VIC 10 10 select ARM_TIMER_SP804 11 11 select NSPIRE_TIMER 12 + select POWER_RESET 13 + select POWER_RESET_SYSCON 12 14 help 13 15 This enables support for systems using the TI-NSPIRE CPU
-3
arch/arm/mach-nspire/mmio.h
··· 5 5 * Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au> 6 6 */ 7 7 8 - #define NSPIRE_MISC_PHYS_BASE 0x900A0000 9 - #define NSPIRE_MISC_HWRESET 0x08 10 - 11 8 #define NSPIRE_PWR_PHYS_BASE 0x900B0000 12 9 #define NSPIRE_PWR_VIRT_BASE 0xFEEB0000 13 10 #define NSPIRE_PWR_BUS_DISABLE1 0x18
-10
arch/arm/mach-nspire/nspire.c
··· 20 20 NULL, 21 21 }; 22 22 23 - static void nspire_restart(enum reboot_mode mode, const char *cmd) 24 - { 25 - void __iomem *base = ioremap(NSPIRE_MISC_PHYS_BASE, SZ_4K); 26 - if (!base) 27 - return; 28 - 29 - writel(2, base + NSPIRE_MISC_HWRESET); 30 - } 31 - 32 23 DT_MACHINE_START(NSPIRE, "TI-NSPIRE") 33 24 .dt_compat = nspire_dt_match, 34 - .restart = nspire_restart, 35 25 MACHINE_END