mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 05:34:00 +08:00
23019a733b
pxa was missed in the moving of IOMEM to a common definition, so lots of IOMEM redefined warnings were introduced. So remove pxa IOMEM definition and fix all the fallout. Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Rob Herring <rob.herring@calxeda.com> Cc: Eric Miao <eric.y.miao@gmail.com> Cc: Russell King <linux@arm.linux.org.uk> Cc: Haojian Zhuang <haojian.zhuang@marvell.com> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.de> Cc: rtc-linux@googlegroups.com Cc: alsa-devel@alsa-project.org
56 lines
1.1 KiB
C
56 lines
1.1 KiB
C
/*
|
|
* linux/arch/arm/mach-pxa/clock-pxa2xx.c
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/init.h>
|
|
#include <linux/io.h>
|
|
#include <linux/syscore_ops.h>
|
|
|
|
#include <mach/pxa2xx-regs.h>
|
|
|
|
#include "clock.h"
|
|
|
|
void clk_pxa2xx_cken_enable(struct clk *clk)
|
|
{
|
|
CKEN |= 1 << clk->cken;
|
|
}
|
|
|
|
void clk_pxa2xx_cken_disable(struct clk *clk)
|
|
{
|
|
CKEN &= ~(1 << clk->cken);
|
|
}
|
|
|
|
const struct clkops clk_pxa2xx_cken_ops = {
|
|
.enable = clk_pxa2xx_cken_enable,
|
|
.disable = clk_pxa2xx_cken_disable,
|
|
};
|
|
|
|
#ifdef CONFIG_PM
|
|
static uint32_t saved_cken;
|
|
|
|
static int pxa2xx_clock_suspend(void)
|
|
{
|
|
saved_cken = CKEN;
|
|
return 0;
|
|
}
|
|
|
|
static void pxa2xx_clock_resume(void)
|
|
{
|
|
CKEN = saved_cken;
|
|
}
|
|
#else
|
|
#define pxa2xx_clock_suspend NULL
|
|
#define pxa2xx_clock_resume NULL
|
|
#endif
|
|
|
|
struct syscore_ops pxa2xx_clock_syscore_ops = {
|
|
.suspend = pxa2xx_clock_suspend,
|
|
.resume = pxa2xx_clock_resume,
|
|
};
|