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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-s3c64xx/mach-smdk6400.c

Version: ~ [ linux-5.10-rc5 ] ~ [ linux-5.9.10 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.79 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.159 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.208 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.245 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.245 ] ~ [ 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 /* linux/arch/arm/mach-s3c64xx/mach-smdk6400.c
  2  *
  3  * Copyright 2008 Simtec Electronics
  4  *      Ben Dooks <ben@simtec.co.uk>
  5  *      http://armlinux.simtec.co.uk/
  6  *
  7  * This program is free software; you can redistribute it and/or modify
  8  * it under the terms of the GNU General Public License version 2 as
  9  * published by the Free Software Foundation.
 10 */
 11 
 12 #include <linux/kernel.h>
 13 #include <linux/types.h>
 14 #include <linux/interrupt.h>
 15 #include <linux/list.h>
 16 #include <linux/timer.h>
 17 #include <linux/init.h>
 18 #include <linux/serial_core.h>
 19 #include <linux/serial_s3c.h>
 20 #include <linux/platform_device.h>
 21 #include <linux/i2c.h>
 22 #include <linux/io.h>
 23 
 24 #include <asm/mach-types.h>
 25 
 26 #include <asm/mach/arch.h>
 27 #include <asm/mach/map.h>
 28 #include <asm/mach/irq.h>
 29 
 30 #include <mach/hardware.h>
 31 #include <mach/map.h>
 32 
 33 #include <plat/clock.h>
 34 #include <plat/devs.h>
 35 #include <plat/cpu.h>
 36 #include <linux/platform_data/i2c-s3c2410.h>
 37 #include <mach/gpio-samsung.h>
 38 #include <plat/samsung-time.h>
 39 
 40 #include "common.h"
 41 
 42 #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
 43 #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
 44 #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE
 45 
 46 static struct s3c2410_uartcfg smdk6400_uartcfgs[] __initdata = {
 47         [0] = {
 48                 .hwport      = 0,
 49                 .flags       = 0,
 50                 .ucon        = 0x3c5,
 51                 .ulcon       = 0x03,
 52                 .ufcon       = 0x51,
 53         },
 54         [1] = {
 55                 .hwport      = 1,
 56                 .flags       = 0,
 57                 .ucon        = 0x3c5,
 58                 .ulcon       = 0x03,
 59                 .ufcon       = 0x51,
 60         },
 61 };
 62 
 63 static struct map_desc smdk6400_iodesc[] = {};
 64 
 65 static void __init smdk6400_map_io(void)
 66 {
 67         s3c64xx_init_io(smdk6400_iodesc, ARRAY_SIZE(smdk6400_iodesc));
 68         s3c64xx_set_xtal_freq(12000000);
 69         s3c24xx_init_uarts(smdk6400_uartcfgs, ARRAY_SIZE(smdk6400_uartcfgs));
 70         samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4);
 71 }
 72 
 73 static struct platform_device *smdk6400_devices[] __initdata = {
 74         &s3c_device_hsmmc1,
 75         &s3c_device_i2c0,
 76 };
 77 
 78 static struct i2c_board_info i2c_devs[] __initdata = {
 79         { I2C_BOARD_INFO("wm8753", 0x1A), },
 80         { I2C_BOARD_INFO("24c08", 0x50), },
 81 };
 82 
 83 static void __init smdk6400_machine_init(void)
 84 {
 85         i2c_register_board_info(0, i2c_devs, ARRAY_SIZE(i2c_devs));
 86         platform_add_devices(smdk6400_devices, ARRAY_SIZE(smdk6400_devices));
 87 }
 88 
 89 MACHINE_START(SMDK6400, "SMDK6400")
 90         /* Maintainer: Ben Dooks <ben-linux@fluff.org> */
 91         .atag_offset    = 0x100,
 92 
 93         .init_irq       = s3c6400_init_irq,
 94         .map_io         = smdk6400_map_io,
 95         .init_machine   = smdk6400_machine_init,
 96         .init_late      = s3c64xx_init_late,
 97         .init_time      = samsung_timer_init,
 98         .restart        = s3c64xx_restart,
 99 MACHINE_END
100 

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