~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-nspire/nspire.c

Version: ~ [ linux-5.7 ] ~ [ linux-5.6.15 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.43 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.125 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.182 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.225 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.225 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.84 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  *      linux/arch/arm/mach-nspire/nspire.c
  3  *
  4  *      Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au>
  5  *
  6  * This program is free software; you can redistribute it and/or modify
  7  * it under the terms of the GNU General Public License version 2, as
  8  * published by the Free Software Foundation.
  9  *
 10  */
 11 #include <linux/init.h>
 12 #include <linux/of_irq.h>
 13 #include <linux/of_address.h>
 14 #include <linux/of_platform.h>
 15 #include <linux/irqchip.h>
 16 #include <linux/irqchip/arm-vic.h>
 17 #include <linux/clkdev.h>
 18 #include <linux/amba/bus.h>
 19 #include <linux/amba/clcd.h>
 20 
 21 #include <asm/mach/arch.h>
 22 #include <asm/mach-types.h>
 23 #include <asm/mach/map.h>
 24 
 25 #include "mmio.h"
 26 #include "clcd.h"
 27 
 28 static const char *const nspire_dt_match[] __initconst = {
 29         "ti,nspire",
 30         "ti,nspire-cx",
 31         "ti,nspire-tp",
 32         "ti,nspire-clp",
 33         NULL,
 34 };
 35 
 36 static struct clcd_board nspire_clcd_data = {
 37         .name           = "LCD",
 38         .caps           = CLCD_CAP_5551 | CLCD_CAP_565,
 39         .check          = clcdfb_check,
 40         .decode         = clcdfb_decode,
 41         .setup          = nspire_clcd_setup,
 42         .mmap           = nspire_clcd_mmap,
 43         .remove         = nspire_clcd_remove,
 44 };
 45 
 46 
 47 static struct of_dev_auxdata nspire_auxdata[] __initdata = {
 48         OF_DEV_AUXDATA("arm,pl111", NSPIRE_LCD_PHYS_BASE,
 49                         NULL, &nspire_clcd_data),
 50         { }
 51 };
 52 
 53 static void __init nspire_init(void)
 54 {
 55         of_platform_default_populate(NULL, nspire_auxdata, NULL);
 56 }
 57 
 58 static void nspire_restart(enum reboot_mode mode, const char *cmd)
 59 {
 60         void __iomem *base = ioremap(NSPIRE_MISC_PHYS_BASE, SZ_4K);
 61         if (!base)
 62                 return;
 63 
 64         writel(2, base + NSPIRE_MISC_HWRESET);
 65 }
 66 
 67 DT_MACHINE_START(NSPIRE, "TI-NSPIRE")
 68         .dt_compat      = nspire_dt_match,
 69         .init_machine   = nspire_init,
 70         .restart        = nspire_restart,
 71 MACHINE_END
 72 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp