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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-s3c/cpu.h

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 */
  2 /*
  3  * Copyright (c) 2011 Samsung Electronics Co., Ltd.
  4  *              http://www.samsung.com/
  5  *
  6  * Copyright (c) 2004-2005 Simtec Electronics
  7  *      Ben Dooks <ben@simtec.co.uk>
  8  *
  9  * Header file for Samsung CPU support
 10  */
 11 
 12 /* todo - fix when rmk changes iodescs to use `void __iomem *` */
 13 
 14 #ifndef __SAMSUNG_PLAT_CPU_H
 15 #define __SAMSUNG_PLAT_CPU_H
 16 
 17 extern unsigned long samsung_cpu_id;
 18 
 19 #define S3C6400_CPU_ID          0x36400000
 20 #define S3C6410_CPU_ID          0x36410000
 21 #define S3C64XX_CPU_MASK        0xFFFFF000
 22 
 23 #define S5PV210_CPU_ID          0x43110000
 24 #define S5PV210_CPU_MASK        0xFFFFF000
 25 
 26 #define IS_SAMSUNG_CPU(name, id, mask)          \
 27 static inline int is_samsung_##name(void)       \
 28 {                                               \
 29         return ((samsung_cpu_id & mask) == (id & mask));        \
 30 }
 31 
 32 IS_SAMSUNG_CPU(s3c6400, S3C6400_CPU_ID, S3C64XX_CPU_MASK)
 33 IS_SAMSUNG_CPU(s3c6410, S3C6410_CPU_ID, S3C64XX_CPU_MASK)
 34 
 35 #if defined(CONFIG_CPU_S3C6400) || defined(CONFIG_CPU_S3C6410)
 36 # define soc_is_s3c6400()       is_samsung_s3c6400()
 37 # define soc_is_s3c6410()       is_samsung_s3c6410()
 38 # define soc_is_s3c64xx()       (is_samsung_s3c6400() || is_samsung_s3c6410())
 39 #else
 40 # define soc_is_s3c6400()       0
 41 # define soc_is_s3c6410()       0
 42 # define soc_is_s3c64xx()       0
 43 #endif
 44 
 45 #ifndef MHZ
 46 #define MHZ (1000*1000)
 47 #endif
 48 
 49 #define print_mhz(m) ((m) / MHZ), (((m) / 1000) % 1000)
 50 
 51 /* forward declaration */
 52 struct s3c24xx_uart_resources;
 53 struct platform_device;
 54 struct s3c2410_uartcfg;
 55 struct map_desc;
 56 
 57 /* per-cpu initialisation function table. */
 58 
 59 struct cpu_table {
 60         unsigned long   idcode;
 61         unsigned long   idmask;
 62         void            (*map_io)(void);
 63         void            (*init_uarts)(struct s3c2410_uartcfg *cfg, int no);
 64         int             (*init)(void);
 65         const char      *name;
 66 };
 67 
 68 extern void s3c_init_cpu(unsigned long idcode,
 69                          struct cpu_table *cpus, unsigned int cputab_size);
 70 
 71 /* core initialisation functions */
 72 extern void s3c64xx_init_cpu(void);
 73 
 74 extern void s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no);
 75 extern void s3c24xx_init_uartdevs(char *name,
 76                                   struct s3c24xx_uart_resources *res,
 77                                   struct s3c2410_uartcfg *cfg, int no);
 78 
 79 extern const struct bus_type s3c6410_subsys;
 80 
 81 #endif
 82 

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