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

TOMOYO Linux Cross Reference
Linux/arch/sh/boards/mach-rsk/devices-rsk7264.c

Version: ~ [ linux-5.11-rc3 ] ~ [ linux-5.10.7 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.89 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.167 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.215 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.251 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.251 ] ~ [ 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.85 ] ~ [ 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  * RSK+SH7264 Support.
  3  *
  4  * Copyright (C) 2012 Renesas Electronics Europe
  5  *
  6  * This file is subject to the terms and conditions of the GNU General Public
  7  * License.  See the file "COPYING" in the main directory of this archive
  8  * for more details.
  9  */
 10 #include <linux/init.h>
 11 #include <linux/types.h>
 12 #include <linux/platform_device.h>
 13 #include <linux/interrupt.h>
 14 #include <linux/input.h>
 15 #include <linux/smsc911x.h>
 16 #include <asm/machvec.h>
 17 #include <asm/io.h>
 18 
 19 static struct smsc911x_platform_config smsc911x_config = {
 20         .phy_interface  = PHY_INTERFACE_MODE_MII,
 21         .irq_polarity   = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
 22         .irq_type       = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
 23         .flags          = SMSC911X_USE_16BIT | SMSC911X_SWAP_FIFO,
 24 };
 25 
 26 static struct resource smsc911x_resources[] = {
 27         [0] = {
 28                 .start          = 0x28000000,
 29                 .end            = 0x280000ff,
 30                 .flags          = IORESOURCE_MEM,
 31         },
 32         [1] = {
 33                 .start          = 65,
 34                 .end            = 65,
 35                 .flags          = IORESOURCE_IRQ,
 36         },
 37 };
 38 
 39 static struct platform_device smsc911x_device = {
 40         .name           = "smsc911x",
 41         .id             = -1,
 42         .num_resources  = ARRAY_SIZE(smsc911x_resources),
 43         .resource       = smsc911x_resources,
 44         .dev            = {
 45                 .platform_data = &smsc911x_config,
 46         },
 47 };
 48 
 49 static struct platform_device *rsk7264_devices[] __initdata = {
 50         &smsc911x_device,
 51 };
 52 
 53 static int __init rsk7264_devices_setup(void)
 54 {
 55         return platform_add_devices(rsk7264_devices,
 56                                     ARRAY_SIZE(rsk7264_devices));
 57 }
 58 device_initcall(rsk7264_devices_setup);
 59 

~ [ 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