forked from torvalds/linux
-
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.
Merge branch 'unicore32' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/epip/linux-2.6-unicore32 * 'unicore32' of git://git.kernel.org/pub/scm/linux/kernel/git/epip/linux-2.6-unicore32: unicore32: using generic-y format for one line asm-generic files unicore32: change PERCPU to PERCPU_SECTION unicore32: add KBUILD_DEFCONFIG with unicore32_defconfig (old debug_defconfig) unicore32: change zImage physical address, though it's PIC codes unicore32: move rtc-puv3.c to drivers/rtc directory
- Loading branch information
Showing
11 changed files
with
79 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4945,6 +4945,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/epip/linux-2.6-unicore32.gi | |
F: drivers/input/serio/i8042-unicore32io.h | ||
F: drivers/i2c/busses/i2c-puv3.c | ||
F: drivers/video/fb-puv3.c | ||
F: drivers/rtc/rtc-puv3.c | ||
|
||
PMC SIERRA MaxRAID DRIVER | ||
M: Anil Ravindranath <[email protected]> | ||
|
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
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 |
---|---|---|
@@ -1,2 +1,61 @@ | ||
include include/asm-generic/Kbuild.asm | ||
|
||
generic-y += atomic.h | ||
generic-y += auxvec.h | ||
generic-y += bitsperlong.h | ||
generic-y += bug.h | ||
generic-y += bugs.h | ||
generic-y += cputime.h | ||
generic-y += current.h | ||
generic-y += device.h | ||
generic-y += div64.h | ||
generic-y += emergency-restart.h | ||
generic-y += errno.h | ||
generic-y += fb.h | ||
generic-y += fcntl.h | ||
generic-y += ftrace.h | ||
generic-y += futex.h | ||
generic-y += hardirq.h | ||
generic-y += hw_irq.h | ||
generic-y += ioctl.h | ||
generic-y += ioctls.h | ||
generic-y += ipcbuf.h | ||
generic-y += irq_regs.h | ||
generic-y += kdebug.h | ||
generic-y += kmap_types.h | ||
generic-y += local.h | ||
generic-y += mman.h | ||
generic-y += module.h | ||
generic-y += msgbuf.h | ||
generic-y += param.h | ||
generic-y += parport.h | ||
generic-y += percpu.h | ||
generic-y += poll.h | ||
generic-y += posix_types.h | ||
generic-y += resource.h | ||
generic-y += scatterlist.h | ||
generic-y += sections.h | ||
generic-y += segment.h | ||
generic-y += sembuf.h | ||
generic-y += serial.h | ||
generic-y += setup.h | ||
generic-y += shmbuf.h | ||
generic-y += shmparam.h | ||
generic-y += siginfo.h | ||
generic-y += signal.h | ||
generic-y += sizes.h | ||
generic-y += socket.h | ||
generic-y += sockios.h | ||
generic-y += stat.h | ||
generic-y += statfs.h | ||
generic-y += swab.h | ||
generic-y += syscalls.h | ||
generic-y += termbits.h | ||
generic-y += termios.h | ||
generic-y += topology.h | ||
generic-y += types.h | ||
generic-y += ucontext.h | ||
generic-y += unaligned.h | ||
generic-y += user.h | ||
generic-y += vga.h | ||
generic-y += xor.h |
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
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
/* | ||
* linux/arch/unicore32/kernel/rtc.c | ||
* | ||
* Code specific to PKUnity SoC and UniCore ISA | ||
* RTC driver code specific to PKUnity SoC and UniCore ISA | ||
* | ||
* Maintained by GUAN Xue-tao <[email protected]> | ||
* Copyright (C) 2001-2010 Guan Xuetao | ||
|
@@ -36,7 +34,6 @@ static int puv3_rtc_tickno = IRQ_RTC; | |
static DEFINE_SPINLOCK(puv3_rtc_pie_lock); | ||
|
||
/* IRQ Handlers */ | ||
|
||
static irqreturn_t puv3_rtc_alarmirq(int irq, void *id) | ||
{ | ||
struct rtc_device *rdev = id; | ||
|
@@ -89,7 +86,6 @@ static int puv3_rtc_setpie(struct device *dev, int enabled) | |
} | ||
|
||
/* Time read/write */ | ||
|
||
static int puv3_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm) | ||
{ | ||
rtc_time_to_tm(readl(RTC_RCNR), rtc_tm); | ||
|
@@ -196,7 +192,6 @@ static void puv3_rtc_release(struct device *dev) | |
struct rtc_device *rtc_dev = platform_get_drvdata(pdev); | ||
|
||
/* do not clear AIE here, it may be needed for wake */ | ||
|
||
puv3_rtc_setpie(dev, 0); | ||
free_irq(puv3_rtc_alarmno, rtc_dev); | ||
free_irq(puv3_rtc_tickno, rtc_dev); | ||
|
@@ -218,7 +213,6 @@ static void puv3_rtc_enable(struct platform_device *pdev, int en) | |
writel(readl(RTC_RTSR) & ~RTC_RTSR_HZE, RTC_RTSR); | ||
} else { | ||
/* re-enable the device, and check it is ok */ | ||
|
||
if ((readl(RTC_RTSR) & RTC_RTSR_HZE) == 0) { | ||
dev_info(&pdev->dev, "rtc disabled, re-enabling\n"); | ||
writel(readl(RTC_RTSR) | RTC_RTSR_HZE, RTC_RTSR); | ||
|
@@ -251,7 +245,6 @@ static int puv3_rtc_probe(struct platform_device *pdev) | |
pr_debug("%s: probe=%p\n", __func__, pdev); | ||
|
||
/* find the IRQs */ | ||
|
||
puv3_rtc_tickno = platform_get_irq(pdev, 1); | ||
if (puv3_rtc_tickno < 0) { | ||
dev_err(&pdev->dev, "no irq for rtc tick\n"); | ||
|
@@ -268,7 +261,6 @@ static int puv3_rtc_probe(struct platform_device *pdev) | |
puv3_rtc_tickno, puv3_rtc_alarmno); | ||
|
||
/* get the memory region */ | ||
|
||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | ||
if (res == NULL) { | ||
dev_err(&pdev->dev, "failed to get memory region resource\n"); | ||
|
@@ -288,7 +280,6 @@ static int puv3_rtc_probe(struct platform_device *pdev) | |
puv3_rtc_enable(pdev, 1); | ||
|
||
/* register RTC and exit */ | ||
|
||
rtc = rtc_device_register("pkunity", &pdev->dev, &puv3_rtcops, | ||
THIS_MODULE); | ||
|
||
|
@@ -315,8 +306,6 @@ static int puv3_rtc_probe(struct platform_device *pdev) | |
|
||
#ifdef CONFIG_PM | ||
|
||
/* RTC Power management control */ | ||
|
||
static int ticnt_save; | ||
|
||
static int puv3_rtc_suspend(struct platform_device *pdev, pm_message_t state) | ||
|
@@ -368,4 +357,3 @@ module_exit(puv3_rtc_exit); | |
MODULE_DESCRIPTION("RTC Driver for the PKUnity v3 chip"); | ||
MODULE_AUTHOR("Hu Dongliang"); | ||
MODULE_LICENSE("GPL v2"); | ||
|