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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-spear/spear1310.c

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-only
  2 /*
  3  * arch/arm/mach-spear13xx/spear1310.c
  4  *
  5  * SPEAr1310 machine source file
  6  *
  7  * Copyright (C) 2012 ST Microelectronics
  8  * Viresh Kumar <vireshk@kernel.org>
  9  */
 10 
 11 #define pr_fmt(fmt) "SPEAr1310: " fmt
 12 
 13 #include <linux/amba/pl022.h>
 14 #include <linux/pata_arasan_cf_data.h>
 15 #include <asm/mach/arch.h>
 16 #include <asm/mach/map.h>
 17 #include "generic.h"
 18 #include "spear.h"
 19 
 20 /* Base addresses */
 21 #define SPEAR1310_RAS_GRP1_BASE                 UL(0xD8000000)
 22 #define VA_SPEAR1310_RAS_GRP1_BASE              UL(0xFA000000)
 23 
 24 static void __init spear1310_dt_init(void)
 25 {
 26         platform_device_register_simple("spear-cpufreq", -1, NULL, 0);
 27 }
 28 
 29 static const char * const spear1310_dt_board_compat[] = {
 30         "st,spear1310",
 31         "st,spear1310-evb",
 32         NULL,
 33 };
 34 
 35 /*
 36  * Following will create 16MB static virtual/physical mappings
 37  * PHYSICAL             VIRTUAL
 38  * 0xD8000000           0xFA000000
 39  */
 40 static struct map_desc spear1310_io_desc[] __initdata = {
 41         {
 42                 .virtual        = VA_SPEAR1310_RAS_GRP1_BASE,
 43                 .pfn            = __phys_to_pfn(SPEAR1310_RAS_GRP1_BASE),
 44                 .length         = SZ_16M,
 45                 .type           = MT_DEVICE
 46         },
 47 };
 48 
 49 static void __init spear1310_map_io(void)
 50 {
 51         iotable_init(spear1310_io_desc, ARRAY_SIZE(spear1310_io_desc));
 52         spear13xx_map_io();
 53 }
 54 
 55 DT_MACHINE_START(SPEAR1310_DT, "ST SPEAr1310 SoC with Flattened Device Tree")
 56         .smp            =       smp_ops(spear13xx_smp_ops),
 57         .map_io         =       spear1310_map_io,
 58         .init_time      =       spear13xx_timer_init,
 59         .init_machine   =       spear1310_dt_init,
 60         .restart        =       spear_restart,
 61         .dt_compat      =       spear1310_dt_board_compat,
 62 MACHINE_END
 63 

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

kernel.org | git.kernel.org | LWN.net | Project Home | 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.

sflogo.php