forked from Qortal/Brooklyn
84ba5b15ac
* Enhance GPIO addon for Noctua Fans for the Qortector upcoming case. This will put PWM signal to real-time. * Fixed RDP not letting a user login if not logged out on Cinnamon release (reported by Crowetic) * Update i2c sensor db * Fixed DRM broadcast over HDMI 2+ * Ease up DHCP security only to prevent Brooklyn blocking routers. * Add possibility to add extra memory for Cinnamon Desktop Release * Fix error message of Software Render mode on Cinnamon Desktop * Add proper offset for HD screens for pixel array *Fixed HDMI jitter for videocore4 GPU * Enable all radios (including Bluetooth)
43 lines
916 B
C
43 lines
916 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* linux/arch/arm/mach-nspire/nspire.c
|
|
*
|
|
* Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au>
|
|
*/
|
|
#include <linux/init.h>
|
|
#include <linux/of_irq.h>
|
|
#include <linux/of_address.h>
|
|
#include <linux/of_platform.h>
|
|
#include <linux/irqchip.h>
|
|
#include <linux/irqchip/arm-vic.h>
|
|
#include <linux/clkdev.h>
|
|
#include <linux/amba/bus.h>
|
|
|
|
#include <asm/mach/arch.h>
|
|
#include <asm/mach-types.h>
|
|
#include <asm/mach/map.h>
|
|
|
|
#include "mmio.h"
|
|
|
|
static const char *const nspire_dt_match[] __initconst = {
|
|
"ti,nspire",
|
|
"ti,nspire-cx",
|
|
"ti,nspire-tp",
|
|
"ti,nspire-clp",
|
|
NULL,
|
|
};
|
|
|
|
static void nspire_restart(enum reboot_mode mode, const char *cmd)
|
|
{
|
|
void __iomem *base = ioremap(NSPIRE_MISC_PHYS_BASE, SZ_4K);
|
|
if (!base)
|
|
return;
|
|
|
|
writel(2, base + NSPIRE_MISC_HWRESET);
|
|
}
|
|
|
|
DT_MACHINE_START(NSPIRE, "TI-NSPIRE")
|
|
.dt_compat = nspire_dt_match,
|
|
.restart = nspire_restart,
|
|
MACHINE_END
|