-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: 7245/1: S3C64XX: introduce arch/arm/mach-s3c64xx/common.[ch]
This patch introduces common.[ch] which are used only in the arch/arm/mach-s3c64xx/ directory. The common.c file merges the cpu.c, irq.c and irq-eint.c which are used commonly on S3C64XX SoCs and the common.h file replaces with plat/s3c6400.h and plat/s3c6410.h files. Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
- Loading branch information
Kukjin Kim
authored and
Russell King
committed
Dec 23, 2011
1 parent
61b3875
commit b024043
Showing
22 changed files
with
285 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright (c) 2011 Samsung Electronics Co., Ltd. | ||
* http://www.samsung.com | ||
* | ||
* Copyright 2008 Openmoko, Inc. | ||
* Copyright 2008 Simtec Electronics | ||
* Ben Dooks <ben@simtec.co.uk> | ||
* http://armlinux.simtec.co.uk/ | ||
* | ||
* Common Header for S3C64XX machines | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#ifndef __ARCH_ARM_MACH_S3C64XX_COMMON_H | ||
#define __ARCH_ARM_MACH_S3C64XX_COMMON_H | ||
|
||
void s3c64xx_init_irq(u32 vic0, u32 vic1); | ||
void s3c64xx_init_io(struct map_desc *mach_desc, int size); | ||
|
||
void s3c64xx_register_clocks(unsigned long xtal, unsigned armclk_limit); | ||
void s3c64xx_setup_clocks(void); | ||
|
||
extern struct syscore_ops s3c64xx_irq_syscore_ops; | ||
extern struct sysdev_class s3c64xx_sysclass; | ||
|
||
#ifdef CONFIG_CPU_S3C6400 | ||
|
||
extern int s3c6400_init(void); | ||
extern void s3c6400_init_irq(void); | ||
extern void s3c6400_map_io(void); | ||
extern void s3c6400_init_clocks(int xtal); | ||
|
||
#else | ||
#define s3c6400_init_clocks NULL | ||
#define s3c6400_map_io NULL | ||
#define s3c6400_init NULL | ||
#endif | ||
|
||
#ifdef CONFIG_CPU_S3C6410 | ||
|
||
extern int s3c6410_init(void); | ||
extern void s3c6410_init_irq(void); | ||
extern void s3c6410_map_io(void); | ||
extern void s3c6410_init_clocks(int xtal); | ||
|
||
#else | ||
#define s3c6410_init_clocks NULL | ||
#define s3c6410_map_io NULL | ||
#define s3c6410_init NULL | ||
#endif | ||
|
||
#endif /* __ARCH_ARM_MACH_S3C64XX_COMMON_H */ |
Oops, something went wrong.