Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296035
b: refs/heads/master
c: b2994d3
h: refs/heads/master
i:
  296033: 7cb866f
  296031: f3cbdc0
v: v3
  • Loading branch information
Heiko Stuebner authored and Kukjin Kim committed Feb 6, 2012
1 parent e22b1f7 commit f012bc8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 25c1a2466008a75955e80df3cc0698410a0cec72
refs/heads/master: b2994d318dc78c9a4a43605629f00217335ada28
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-s3c2416/s3c2416.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
#include <plat/fb-core.h>
#include <plat/nand-core.h>
#include <plat/adc-core.h>
#include <plat/rtc-core.h>

static struct map_desc s3c2416_iodesc[] __initdata = {
IODESC_ENT(WATCHDOG),
Expand Down Expand Up @@ -101,6 +102,7 @@ int __init s3c2416_init(void)
s3c_fb_setname("s3c2443-fb");

s3c_adc_setname("s3c2416-adc");
s3c_rtc_setname("s3c2416-rtc");

#ifdef CONFIG_PM
register_syscore_ops(&s3c2416_pm_syscore_ops);
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-s3c2443/s3c2443.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <plat/fb-core.h>
#include <plat/nand-core.h>
#include <plat/adc-core.h>
#include <plat/rtc-core.h>

static struct map_desc s3c2443_iodesc[] __initdata = {
IODESC_ENT(WATCHDOG),
Expand Down Expand Up @@ -73,6 +74,7 @@ int __init s3c2443_init(void)
s3c_fb_setname("s3c2443-fb");

s3c_adc_setname("s3c2443-adc");
s3c_rtc_setname("s3c2443-rtc");

/* change WDT IRQ number */
s3c_device_wdt.resource[1].start = IRQ_S3C2443_WDT;
Expand Down
27 changes: 27 additions & 0 deletions trunk/arch/arm/plat-samsung/include/plat/rtc-core.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/* linux/arch/arm/plat-samsung/include/plat/rtc-core.h
*
* Copyright (c) 2011 Heiko Stuebner <heiko@sntech.de>
*
* Samsung RTC Controller core functions
*
* 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 __ASM_PLAT_RTC_CORE_H
#define __ASM_PLAT_RTC_CORE_H __FILE__

/* These functions are only for use with the core support code, such as
* the cpu specific initialisation code
*/

/* re-define device name depending on support. */
static inline void s3c_rtc_setname(char *name)
{
#if defined(CONFIG_SAMSUNG_DEV_RTC) || defined(CONFIG_PLAT_S3C24XX)
s3c_device_rtc.name = name;
#endif
}

#endif /* __ASM_PLAT_RTC_CORE_H */

0 comments on commit f012bc8

Please sign in to comment.