Commit 6307e418 authored by Olof Johansson's avatar Olof Johansson

Merge branch 'next/devel-samsung-dma' of...

Merge branch 'next/devel-samsung-dma' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into next/drivers

* 'next/devel-samsung-dma' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
  ARM: EXYNOS: add support DMA for EXYNOS4X12 SoC
  ARM: EXYNOS: Add apb_pclk clkdev entry for mdma1
  ARM: EXYNOS: Enable MDMA driver
  (includes dependent base of samsung/cleanup-exynos-clock)
parents f3d88244 efd9960b
...@@ -41,6 +41,7 @@ config SOC_EXYNOS4212 ...@@ -41,6 +41,7 @@ config SOC_EXYNOS4212
bool "SAMSUNG EXYNOS4212" bool "SAMSUNG EXYNOS4212"
default y default y
depends on ARCH_EXYNOS4 depends on ARCH_EXYNOS4
select SAMSUNG_DMADEV
select S5P_PM if PM select S5P_PM if PM
select S5P_SLEEP if PM select S5P_SLEEP if PM
help help
...@@ -50,6 +51,7 @@ config SOC_EXYNOS4412 ...@@ -50,6 +51,7 @@ config SOC_EXYNOS4412
bool "SAMSUNG EXYNOS4412" bool "SAMSUNG EXYNOS4412"
default y default y
depends on ARCH_EXYNOS4 depends on ARCH_EXYNOS4
select SAMSUNG_DMADEV
help help
Enable EXYNOS4412 SoC support Enable EXYNOS4412 SoC support
...@@ -333,6 +335,7 @@ config MACH_SMDK4212 ...@@ -333,6 +335,7 @@ config MACH_SMDK4212
select SAMSUNG_DEV_BACKLIGHT select SAMSUNG_DEV_BACKLIGHT
select SAMSUNG_DEV_KEYPAD select SAMSUNG_DEV_KEYPAD
select SAMSUNG_DEV_PWM select SAMSUNG_DEV_PWM
select EXYNOS4_DEV_DMA
select EXYNOS4_SETUP_I2C1 select EXYNOS4_SETUP_I2C1
select EXYNOS4_SETUP_I2C3 select EXYNOS4_SETUP_I2C3
select EXYNOS4_SETUP_I2C7 select EXYNOS4_SETUP_I2C7
......
...@@ -12,7 +12,8 @@ obj- := ...@@ -12,7 +12,8 @@ obj- :=
# Core # Core
obj-$(CONFIG_ARCH_EXYNOS4) += common.o clock.o obj-$(CONFIG_ARCH_EXYNOS) += common.o
obj-$(CONFIG_ARCH_EXYNOS4) += clock-exynos4.o
obj-$(CONFIG_CPU_EXYNOS4210) += clock-exynos4210.o obj-$(CONFIG_CPU_EXYNOS4210) += clock-exynos4210.o
obj-$(CONFIG_SOC_EXYNOS4212) += clock-exynos4212.o obj-$(CONFIG_SOC_EXYNOS4212) += clock-exynos4212.o
......
/* /*
* linux/arch/arm/mach-exynos4/include/mach/exynos4-clock.h * Copyright (c) 2011-2012 Samsung Electronics Co., Ltd.
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
* http://www.samsung.com * http://www.samsung.com
* *
* Header file for exynos4 clock support * Header file for exynos4 clock support
...@@ -16,25 +14,14 @@ ...@@ -16,25 +14,14 @@
#include <linux/clk.h> #include <linux/clk.h>
extern struct clk clk_sclk_hdmi27m; extern struct clksrc_clk exynos4_clk_aclk_133;
extern struct clk clk_sclk_usbphy0; extern struct clksrc_clk exynos4_clk_mout_mpll;
extern struct clk clk_sclk_usbphy1;
extern struct clk clk_sclk_hdmiphy;
extern struct clksrc_clk clk_sclk_apll;
extern struct clksrc_clk clk_mout_mpll;
extern struct clksrc_clk clk_aclk_133;
extern struct clksrc_clk clk_mout_epll;
extern struct clksrc_clk clk_sclk_vpll;
extern struct clk *clkset_corebus_list[];
extern struct clksrc_sources clkset_mout_corebus;
extern struct clk *clkset_aclk_top_list[]; extern struct clksrc_sources exynos4_clkset_mout_corebus;
extern struct clksrc_sources clkset_aclk; extern struct clksrc_sources exynos4_clkset_group;
extern struct clk *clkset_group_list[]; extern struct clk *exynos4_clkset_aclk_top_list[];
extern struct clksrc_sources clkset_group; extern struct clk *exynos4_clkset_group_list[];
extern int exynos4_clksrc_mask_fsys_ctrl(struct clk *clk, int enable); extern int exynos4_clksrc_mask_fsys_ctrl(struct clk *clk, int enable);
extern int exynos4_clk_ip_fsys_ctrl(struct clk *clk, int enable); extern int exynos4_clk_ip_fsys_ctrl(struct clk *clk, int enable);
......
/* /*
* linux/arch/arm/mach-exynos4/clock-exynos4210.c * Copyright (c) 2011-2012 Samsung Electronics Co., Ltd.
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
* http://www.samsung.com * http://www.samsung.com
* *
* EXYNOS4210 - Clock support * EXYNOS4210 - Clock support
...@@ -28,20 +26,20 @@ ...@@ -28,20 +26,20 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/map.h> #include <mach/map.h>
#include <mach/regs-clock.h> #include <mach/regs-clock.h>
#include <mach/exynos4-clock.h>
#include "common.h" #include "common.h"
#include "clock-exynos4.h"
#ifdef CONFIG_PM_SLEEP #ifdef CONFIG_PM_SLEEP
static struct sleep_save exynos4210_clock_save[] = { static struct sleep_save exynos4210_clock_save[] = {
SAVE_ITEM(S5P_CLKSRC_IMAGE), SAVE_ITEM(EXYNOS4_CLKSRC_IMAGE),
SAVE_ITEM(S5P_CLKSRC_LCD1), SAVE_ITEM(EXYNOS4_CLKDIV_IMAGE),
SAVE_ITEM(S5P_CLKDIV_IMAGE), SAVE_ITEM(EXYNOS4210_CLKSRC_LCD1),
SAVE_ITEM(S5P_CLKDIV_LCD1), SAVE_ITEM(EXYNOS4210_CLKDIV_LCD1),
SAVE_ITEM(S5P_CLKSRC_MASK_LCD1), SAVE_ITEM(EXYNOS4210_CLKSRC_MASK_LCD1),
SAVE_ITEM(S5P_CLKGATE_IP_IMAGE_4210), SAVE_ITEM(EXYNOS4210_CLKGATE_IP_IMAGE),
SAVE_ITEM(S5P_CLKGATE_IP_LCD1), SAVE_ITEM(EXYNOS4210_CLKGATE_IP_LCD1),
SAVE_ITEM(S5P_CLKGATE_IP_PERIR_4210), SAVE_ITEM(EXYNOS4210_CLKGATE_IP_PERIR),
}; };
#endif #endif
...@@ -51,7 +49,7 @@ static struct clksrc_clk *sysclks[] = { ...@@ -51,7 +49,7 @@ static struct clksrc_clk *sysclks[] = {
static int exynos4_clksrc_mask_lcd1_ctrl(struct clk *clk, int enable) static int exynos4_clksrc_mask_lcd1_ctrl(struct clk *clk, int enable)
{ {
return s5p_gatectrl(S5P_CLKSRC_MASK_LCD1, clk, enable); return s5p_gatectrl(EXYNOS4210_CLKSRC_MASK_LCD1, clk, enable);
} }
static struct clksrc_clk clksrcs[] = { static struct clksrc_clk clksrcs[] = {
...@@ -62,9 +60,9 @@ static struct clksrc_clk clksrcs[] = { ...@@ -62,9 +60,9 @@ static struct clksrc_clk clksrcs[] = {
.enable = exynos4_clksrc_mask_fsys_ctrl, .enable = exynos4_clksrc_mask_fsys_ctrl,
.ctrlbit = (1 << 24), .ctrlbit = (1 << 24),
}, },
.sources = &clkset_mout_corebus, .sources = &exynos4_clkset_mout_corebus,
.reg_src = { .reg = S5P_CLKSRC_FSYS, .shift = 24, .size = 1 }, .reg_src = { .reg = EXYNOS4_CLKSRC_FSYS, .shift = 24, .size = 1 },
.reg_div = { .reg = S5P_CLKDIV_FSYS0, .shift = 20, .size = 4 }, .reg_div = { .reg = EXYNOS4_CLKDIV_FSYS0, .shift = 20, .size = 4 },
}, { }, {
.clk = { .clk = {
.name = "sclk_fimd", .name = "sclk_fimd",
...@@ -72,9 +70,9 @@ static struct clksrc_clk clksrcs[] = { ...@@ -72,9 +70,9 @@ static struct clksrc_clk clksrcs[] = {
.enable = exynos4_clksrc_mask_lcd1_ctrl, .enable = exynos4_clksrc_mask_lcd1_ctrl,
.ctrlbit = (1 << 0), .ctrlbit = (1 << 0),
}, },
.sources = &clkset_group, .sources = &exynos4_clkset_group,
.reg_src = { .reg = S5P_CLKSRC_LCD1, .shift = 0, .size = 4 }, .reg_src = { .reg = EXYNOS4210_CLKSRC_LCD1, .shift = 0, .size = 4 },
.reg_div = { .reg = S5P_CLKDIV_LCD1, .shift = 0, .size = 4 }, .reg_div = { .reg = EXYNOS4210_CLKDIV_LCD1, .shift = 0, .size = 4 },
}, },
}; };
...@@ -82,13 +80,13 @@ static struct clk init_clocks_off[] = { ...@@ -82,13 +80,13 @@ static struct clk init_clocks_off[] = {
{ {
.name = "sataphy", .name = "sataphy",
.id = -1, .id = -1,
.parent = &clk_aclk_133.clk, .parent = &exynos4_clk_aclk_133.clk,
.enable = exynos4_clk_ip_fsys_ctrl, .enable = exynos4_clk_ip_fsys_ctrl,
.ctrlbit = (1 << 3), .ctrlbit = (1 << 3),
}, { }, {
.name = "sata", .name = "sata",
.id = -1, .id = -1,
.parent = &clk_aclk_133.clk, .parent = &exynos4_clk_aclk_133.clk,
.enable = exynos4_clk_ip_fsys_ctrl, .enable = exynos4_clk_ip_fsys_ctrl,
.ctrlbit = (1 << 10), .ctrlbit = (1 << 10),
}, { }, {
...@@ -117,7 +115,7 @@ static void exynos4210_clock_resume(void) ...@@ -117,7 +115,7 @@ static void exynos4210_clock_resume(void)
#define exynos4210_clock_resume NULL #define exynos4210_clock_resume NULL
#endif #endif
struct syscore_ops exynos4210_clock_syscore_ops = { static struct syscore_ops exynos4210_clock_syscore_ops = {
.suspend = exynos4210_clock_suspend, .suspend = exynos4210_clock_suspend,
.resume = exynos4210_clock_resume, .resume = exynos4210_clock_resume,
}; };
...@@ -126,9 +124,9 @@ void __init exynos4210_register_clocks(void) ...@@ -126,9 +124,9 @@ void __init exynos4210_register_clocks(void)
{ {
int ptr; int ptr;
clk_mout_mpll.reg_src.reg = S5P_CLKSRC_CPU; exynos4_clk_mout_mpll.reg_src.reg = EXYNOS4_CLKSRC_CPU;
clk_mout_mpll.reg_src.shift = 8; exynos4_clk_mout_mpll.reg_src.shift = 8;
clk_mout_mpll.reg_src.size = 1; exynos4_clk_mout_mpll.reg_src.size = 1;
for (ptr = 0; ptr < ARRAY_SIZE(sysclks); ptr++) for (ptr = 0; ptr < ARRAY_SIZE(sysclks); ptr++)
s3c_register_clksrc(sysclks[ptr], 1); s3c_register_clksrc(sysclks[ptr], 1);
......
/* /*
* linux/arch/arm/mach-exynos4/clock-exynos4212.c * Copyright (c) 2011-2012 Samsung Electronics Co., Ltd.
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
* http://www.samsung.com * http://www.samsung.com
* *
* EXYNOS4212 - Clock support * EXYNOS4212 - Clock support
...@@ -28,22 +26,22 @@ ...@@ -28,22 +26,22 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/map.h> #include <mach/map.h>
#include <mach/regs-clock.h> #include <mach/regs-clock.h>
#include <mach/exynos4-clock.h>
#include "common.h" #include "common.h"
#include "clock-exynos4.h"
#ifdef CONFIG_PM_SLEEP #ifdef CONFIG_PM_SLEEP
static struct sleep_save exynos4212_clock_save[] = { static struct sleep_save exynos4212_clock_save[] = {
SAVE_ITEM(S5P_CLKSRC_IMAGE), SAVE_ITEM(EXYNOS4_CLKSRC_IMAGE),
SAVE_ITEM(S5P_CLKDIV_IMAGE), SAVE_ITEM(EXYNOS4_CLKDIV_IMAGE),
SAVE_ITEM(S5P_CLKGATE_IP_IMAGE_4212), SAVE_ITEM(EXYNOS4212_CLKGATE_IP_IMAGE),
SAVE_ITEM(S5P_CLKGATE_IP_PERIR_4212), SAVE_ITEM(EXYNOS4212_CLKGATE_IP_PERIR),
}; };
#endif #endif
static struct clk *clk_src_mpll_user_list[] = { static struct clk *clk_src_mpll_user_list[] = {
[0] = &clk_fin_mpll, [0] = &clk_fin_mpll,
[1] = &clk_mout_mpll.clk, [1] = &exynos4_clk_mout_mpll.clk,
}; };
static struct clksrc_sources clk_src_mpll_user = { static struct clksrc_sources clk_src_mpll_user = {
...@@ -56,7 +54,7 @@ static struct clksrc_clk clk_mout_mpll_user = { ...@@ -56,7 +54,7 @@ static struct clksrc_clk clk_mout_mpll_user = {
.name = "mout_mpll_user", .name = "mout_mpll_user",
}, },
.sources = &clk_src_mpll_user, .sources = &clk_src_mpll_user,
.reg_src = { .reg = S5P_CLKSRC_CPU, .shift = 24, .size = 1 }, .reg_src = { .reg = EXYNOS4_CLKSRC_CPU, .shift = 24, .size = 1 },
}; };
static struct clksrc_clk *sysclks[] = { static struct clksrc_clk *sysclks[] = {
...@@ -89,7 +87,7 @@ static void exynos4212_clock_resume(void) ...@@ -89,7 +87,7 @@ static void exynos4212_clock_resume(void)
#define exynos4212_clock_resume NULL #define exynos4212_clock_resume NULL
#endif #endif
struct syscore_ops exynos4212_clock_syscore_ops = { static struct syscore_ops exynos4212_clock_syscore_ops = {
.suspend = exynos4212_clock_suspend, .suspend = exynos4212_clock_suspend,
.resume = exynos4212_clock_resume, .resume = exynos4212_clock_resume,
}; };
...@@ -99,15 +97,15 @@ void __init exynos4212_register_clocks(void) ...@@ -99,15 +97,15 @@ void __init exynos4212_register_clocks(void)
int ptr; int ptr;
/* usbphy1 is removed */ /* usbphy1 is removed */
clkset_group_list[4] = NULL; exynos4_clkset_group_list[4] = NULL;
/* mout_mpll_user is used */ /* mout_mpll_user is used */
clkset_group_list[6] = &clk_mout_mpll_user.clk; exynos4_clkset_group_list[6] = &clk_mout_mpll_user.clk;
clkset_aclk_top_list[0] = &clk_mout_mpll_user.clk; exynos4_clkset_aclk_top_list[0] = &clk_mout_mpll_user.clk;
clk_mout_mpll.reg_src.reg = S5P_CLKSRC_DMC; exynos4_clk_mout_mpll.reg_src.reg = EXYNOS4_CLKSRC_DMC;
clk_mout_mpll.reg_src.shift = 12; exynos4_clk_mout_mpll.reg_src.shift = 12;
clk_mout_mpll.reg_src.size = 1; exynos4_clk_mout_mpll.reg_src.size = 1;
for (ptr = 0; ptr < ARRAY_SIZE(sysclks); ptr++) for (ptr = 0; ptr < ARRAY_SIZE(sysclks); ptr++)
s3c_register_clksrc(sysclks[ptr], 1); s3c_register_clksrc(sysclks[ptr], 1);
......
...@@ -661,7 +661,7 @@ static void exynos4_irq_eint0_15(unsigned int irq, struct irq_desc *desc) ...@@ -661,7 +661,7 @@ static void exynos4_irq_eint0_15(unsigned int irq, struct irq_desc *desc)
chained_irq_exit(chip, desc); chained_irq_exit(chip, desc);
} }
int __init exynos4_init_irq_eint(void) static int __init exynos4_init_irq_eint(void)
{ {
int irq; int irq;
......
...@@ -15,12 +15,21 @@ ...@@ -15,12 +15,21 @@
void exynos_init_io(struct map_desc *mach_desc, int size); void exynos_init_io(struct map_desc *mach_desc, int size);
void exynos4_init_irq(void); void exynos4_init_irq(void);
#ifdef CONFIG_ARCH_EXYNOS4
void exynos4_register_clocks(void); void exynos4_register_clocks(void);
void exynos4_setup_clocks(void); void exynos4_setup_clocks(void);
void exynos4210_register_clocks(void); void exynos4210_register_clocks(void);
void exynos4212_register_clocks(void); void exynos4212_register_clocks(void);
#else
#define exynos4_register_clocks()
#define exynos4_setup_clocks()
#define exynos4210_register_clocks()
#define exynos4212_register_clocks()
#endif
void exynos4_restart(char mode, const char *cmd); void exynos4_restart(char mode, const char *cmd);
extern struct sys_timer exynos4_timer; extern struct sys_timer exynos4_timer;
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <asm/irq.h> #include <asm/irq.h>
#include <plat/devs.h> #include <plat/devs.h>
#include <plat/irqs.h> #include <plat/irqs.h>
#include <plat/cpu.h>
#include <mach/map.h> #include <mach/map.h>
#include <mach/irqs.h> #include <mach/irqs.h>
...@@ -36,7 +37,7 @@ ...@@ -36,7 +37,7 @@
static u64 dma_dmamask = DMA_BIT_MASK(32); static u64 dma_dmamask = DMA_BIT_MASK(32);
u8 pdma0_peri[] = { static u8 exynos4210_pdma0_peri[] = {
DMACH_PCM0_RX, DMACH_PCM0_RX,
DMACH_PCM0_TX, DMACH_PCM0_TX,
DMACH_PCM2_RX, DMACH_PCM2_RX,
...@@ -69,15 +70,47 @@ u8 pdma0_peri[] = { ...@@ -69,15 +70,47 @@ u8 pdma0_peri[] = {
DMACH_AC97_PCMOUT, DMACH_AC97_PCMOUT,
}; };
struct dma_pl330_platdata exynos4_pdma0_pdata = { static u8 exynos4212_pdma0_peri[] = {
.nr_valid_peri = ARRAY_SIZE(pdma0_peri), DMACH_PCM0_RX,
.peri_id = pdma0_peri, DMACH_PCM0_TX,
DMACH_PCM2_RX,
DMACH_PCM2_TX,
DMACH_MIPI_HSI0,
DMACH_MIPI_HSI1,
DMACH_SPI0_RX,
DMACH_SPI0_TX,
DMACH_SPI2_RX,
DMACH_SPI2_TX,
DMACH_I2S0S_TX,
DMACH_I2S0_RX,
DMACH_I2S0_TX,
DMACH_I2S2_RX,
DMACH_I2S2_TX,
DMACH_UART0_RX,
DMACH_UART0_TX,
DMACH_UART2_RX,
DMACH_UART2_TX,
DMACH_UART4_RX,
DMACH_UART4_TX,
DMACH_SLIMBUS0_RX,
DMACH_SLIMBUS0_TX,
DMACH_SLIMBUS2_RX,
DMACH_SLIMBUS2_TX,
DMACH_SLIMBUS4_RX,
DMACH_SLIMBUS4_TX,
DMACH_AC97_MICIN,
DMACH_AC97_PCMIN,
DMACH_AC97_PCMOUT,
DMACH_MIPI_HSI4,
DMACH_MIPI_HSI5,
}; };
AMBA_AHB_DEVICE(exynos4_pdma0, "dma-pl330.0", 0x00041330, EXYNOS4_PA_PDMA0, struct dma_pl330_platdata exynos4_pdma0_pdata;
{IRQ_PDMA0}, &exynos4_pdma0_pdata);
static AMBA_AHB_DEVICE(exynos4_pdma0, "dma-pl330.0", 0x00041330,
EXYNOS4_PA_PDMA0, {IRQ_PDMA0}, &exynos4_pdma0_pdata);
u8 pdma1_peri[] = { static u8 exynos4210_pdma1_peri[] = {
DMACH_PCM0_RX, DMACH_PCM0_RX,
DMACH_PCM0_TX, DMACH_PCM0_TX,
DMACH_PCM1_RX, DMACH_PCM1_RX,
...@@ -105,19 +138,84 @@ u8 pdma1_peri[] = { ...@@ -105,19 +138,84 @@ u8 pdma1_peri[] = {
DMACH_SLIMBUS5_TX, DMACH_SLIMBUS5_TX,
}; };
struct dma_pl330_platdata exynos4_pdma1_pdata = { static u8 exynos4212_pdma1_peri[] = {
.nr_valid_peri = ARRAY_SIZE(pdma1_peri), DMACH_PCM0_RX,
.peri_id = pdma1_peri, DMACH_PCM0_TX,
DMACH_PCM1_RX,
DMACH_PCM1_TX,
DMACH_MIPI_HSI2,
DMACH_MIPI_HSI3,
DMACH_SPI1_RX,
DMACH_SPI1_TX,
DMACH_I2S0S_TX,
DMACH_I2S0_RX,
DMACH_I2S0_TX,
DMACH_I2S1_RX,
DMACH_I2S1_TX,
DMACH_UART0_RX,
DMACH_UART0_TX,
DMACH_UART1_RX,
DMACH_UART1_TX,
DMACH_UART3_RX,
DMACH_UART3_TX,
DMACH_SLIMBUS1_RX,
DMACH_SLIMBUS1_TX,
DMACH_SLIMBUS3_RX,
DMACH_SLIMBUS3_TX,
DMACH_SLIMBUS5_RX,
DMACH_SLIMBUS5_TX,
DMACH_SLIMBUS0AUX_RX,
DMACH_SLIMBUS0AUX_TX,
DMACH_SPDIF,
DMACH_MIPI_HSI6,
DMACH_MIPI_HSI7,
};
static struct dma_pl330_platdata exynos4_pdma1_pdata;
static AMBA_AHB_DEVICE(exynos4_pdma1, "dma-pl330.1", 0x00041330,
EXYNOS4_PA_PDMA1, {IRQ_PDMA1}, &exynos4_pdma1_pdata);
static u8 mdma_peri[] = {
DMACH_MTOM_0,
DMACH_MTOM_1,
DMACH_MTOM_2,
DMACH_MTOM_3,
DMACH_MTOM_4,
DMACH_MTOM_5,
DMACH_MTOM_6,
DMACH_MTOM_7,
}; };
AMBA_AHB_DEVICE(exynos4_pdma1, "dma-pl330.1", 0x00041330, EXYNOS4_PA_PDMA1, static struct dma_pl330_platdata exynos4_mdma1_pdata = {
{IRQ_PDMA1}, &exynos4_pdma1_pdata); .nr_valid_peri = ARRAY_SIZE(mdma_peri),
.peri_id = mdma_peri,
};
static AMBA_AHB_DEVICE(exynos4_mdma1, "dma-pl330.2", 0x00041330,
EXYNOS4_PA_MDMA1, {IRQ_MDMA1}, &exynos4_mdma1_pdata);
static int __init exynos4_dma_init(void) static int __init exynos4_dma_init(void)
{ {
if (of_have_populated_dt()) if (of_have_populated_dt())
return 0; return 0;
if (soc_is_exynos4210()) {
exynos4_pdma0_pdata.nr_valid_peri =
ARRAY_SIZE(exynos4210_pdma0_peri);
exynos4_pdma0_pdata.peri_id = exynos4210_pdma0_peri;
exynos4_pdma1_pdata.nr_valid_peri =
ARRAY_SIZE(exynos4210_pdma1_peri);
exynos4_pdma1_pdata.peri_id = exynos4210_pdma1_peri;
} else if (soc_is_exynos4212() || soc_is_exynos4412()) {
exynos4_pdma0_pdata.nr_valid_peri =
ARRAY_SIZE(exynos4212_pdma0_peri);
exynos4_pdma0_pdata.peri_id = exynos4212_pdma0_peri;
exynos4_pdma1_pdata.nr_valid_peri =
ARRAY_SIZE(exynos4212_pdma1_peri);
exynos4_pdma1_pdata.peri_id = exynos4212_pdma1_peri;
}
dma_cap_set(DMA_SLAVE, exynos4_pdma0_pdata.cap_mask); dma_cap_set(DMA_SLAVE, exynos4_pdma0_pdata.cap_mask);
dma_cap_set(DMA_CYCLIC, exynos4_pdma0_pdata.cap_mask); dma_cap_set(DMA_CYCLIC, exynos4_pdma0_pdata.cap_mask);
amba_device_register(&exynos4_pdma0_device, &iomem_resource); amba_device_register(&exynos4_pdma0_device, &iomem_resource);
...@@ -126,6 +224,9 @@ static int __init exynos4_dma_init(void) ...@@ -126,6 +224,9 @@ static int __init exynos4_dma_init(void)
dma_cap_set(DMA_CYCLIC, exynos4_pdma1_pdata.cap_mask); dma_cap_set(DMA_CYCLIC, exynos4_pdma1_pdata.cap_mask);
amba_device_register(&exynos4_pdma1_device, &iomem_resource); amba_device_register(&exynos4_pdma1_device, &iomem_resource);
dma_cap_set(DMA_MEMCPY, exynos4_mdma1_pdata.cap_mask);
amba_device_register(&exynos4_mdma1_device, &iomem_resource);
return 0; return 0;
} }
arch_initcall(exynos4_dma_init); arch_initcall(exynos4_dma_init);
...@@ -43,6 +43,8 @@ ...@@ -43,6 +43,8 @@
#define IRQ_EINT15 IRQ_SPI(31) #define IRQ_EINT15 IRQ_SPI(31)
#define IRQ_EINT16_31 IRQ_SPI(32) #define IRQ_EINT16_31 IRQ_SPI(32)
#define IRQ_MDMA0 IRQ_SPI(33)
#define IRQ_MDMA1 IRQ_SPI(34)
#define IRQ_PDMA0 IRQ_SPI(35) #define IRQ_PDMA0 IRQ_SPI(35)
#define IRQ_PDMA1 IRQ_SPI(36) #define IRQ_PDMA1 IRQ_SPI(36)
#define IRQ_TIMER0_VIC IRQ_SPI(37) #define IRQ_TIMER0_VIC IRQ_SPI(37)
......
...@@ -67,7 +67,8 @@ ...@@ -67,7 +67,8 @@
#define EXYNOS4_PA_TWD 0x10500600 #define EXYNOS4_PA_TWD 0x10500600
#define EXYNOS4_PA_L2CC 0x10502000 #define EXYNOS4_PA_L2CC 0x10502000
#define EXYNOS4_PA_MDMA 0x10810000 #define EXYNOS4_PA_MDMA0 0x10810000
#define EXYNOS4_PA_MDMA1 0x12840000
#define EXYNOS4_PA_PDMA0 0x12680000 #define EXYNOS4_PA_PDMA0 0x12680000
#define EXYNOS4_PA_PDMA1 0x12690000 #define EXYNOS4_PA_PDMA1 0x12690000
......
...@@ -412,7 +412,7 @@ static struct max8997_regulator_data __initdata origen_max8997_regulators[] = { ...@@ -412,7 +412,7 @@ static struct max8997_regulator_data __initdata origen_max8997_regulators[] = {
{ MAX8997_BUCK7, &max8997_buck7_data }, { MAX8997_BUCK7, &max8997_buck7_data },
}; };
struct max8997_platform_data __initdata origen_max8997_pdata = { static struct max8997_platform_data __initdata origen_max8997_pdata = {
.num_regulators = ARRAY_SIZE(origen_max8997_regulators), .num_regulators = ARRAY_SIZE(origen_max8997_regulators),
.regulators = origen_max8997_regulators, .regulators = origen_max8997_regulators,
......
...@@ -997,7 +997,7 @@ static void __init universal_map_io(void) ...@@ -997,7 +997,7 @@ static void __init universal_map_io(void)
s3c24xx_init_uarts(universal_uartcfgs, ARRAY_SIZE(universal_uartcfgs)); s3c24xx_init_uarts(universal_uartcfgs, ARRAY_SIZE(universal_uartcfgs));
} }
void s5p_tv_setup(void) static void s5p_tv_setup(void)
{ {
/* direct HPD to HDMI chip */ /* direct HPD to HDMI chip */
gpio_request_one(EXYNOS4_GPX3(7), GPIOF_IN, "hpd-plug"); gpio_request_one(EXYNOS4_GPX3(7), GPIOF_IN, "hpd-plug");
......
...@@ -38,29 +38,29 @@ ...@@ -38,29 +38,29 @@
#include <mach/pmu.h> #include <mach/pmu.h>
static struct sleep_save exynos4_set_clksrc[] = { static struct sleep_save exynos4_set_clksrc[] = {
{ .reg = S5P_CLKSRC_MASK_TOP , .val = 0x00000001, }, { .reg = EXYNOS4_CLKSRC_MASK_TOP , .val = 0x00000001, },
{ .reg = S5P_CLKSRC_MASK_CAM , .val = 0x11111111, }, { .reg = EXYNOS4_CLKSRC_MASK_CAM , .val = 0x11111111, },
{ .reg = S5P_CLKSRC_MASK_TV , .val = 0x00000111, }, { .reg = EXYNOS4_CLKSRC_MASK_TV , .val = 0x00000111, },
{ .reg = S5P_CLKSRC_MASK_LCD0 , .val = 0x00001111, }, { .reg = EXYNOS4_CLKSRC_MASK_LCD0 , .val = 0x00001111, },
{ .reg = S5P_CLKSRC_MASK_MAUDIO , .val = 0x00000001, }, { .reg = EXYNOS4_CLKSRC_MASK_MAUDIO , .val = 0x00000001, },
{ .reg = S5P_CLKSRC_MASK_FSYS , .val = 0x01011111, }, { .reg = EXYNOS4_CLKSRC_MASK_FSYS , .val = 0x01011111, },
{ .reg = S5P_CLKSRC_MASK_PERIL0 , .val = 0x01111111, }, { .reg = EXYNOS4_CLKSRC_MASK_PERIL0 , .val = 0x01111111, },
{ .reg = S5P_CLKSRC_MASK_PERIL1 , .val = 0x01110111, }, { .reg = EXYNOS4_CLKSRC_MASK_PERIL1 , .val = 0x01110111, },
{ .reg = S5P_CLKSRC_MASK_DMC , .val = 0x00010000, }, { .reg = EXYNOS4_CLKSRC_MASK_DMC , .val = 0x00010000, },
}; };
static struct sleep_save exynos4210_set_clksrc[] = { static struct sleep_save exynos4210_set_clksrc[] = {
{ .reg = S5P_CLKSRC_MASK_LCD1 , .val = 0x00001111, }, { .reg = EXYNOS4210_CLKSRC_MASK_LCD1 , .val = 0x00001111, },
}; };
static struct sleep_save exynos4_epll_save[] = { static struct sleep_save exynos4_epll_save[] = {
SAVE_ITEM(S5P_EPLL_CON0), SAVE_ITEM(EXYNOS4_EPLL_CON0),
SAVE_ITEM(S5P_EPLL_CON1), SAVE_ITEM(EXYNOS4_EPLL_CON1),
}; };
static struct sleep_save exynos4_vpll_save[] = { static struct sleep_save exynos4_vpll_save[] = {
SAVE_ITEM(S5P_VPLL_CON0), SAVE_ITEM(EXYNOS4_VPLL_CON0),
SAVE_ITEM(S5P_VPLL_CON1), SAVE_ITEM(EXYNOS4_VPLL_CON1),
}; };
static struct sleep_save exynos4_core_save[] = { static struct sleep_save exynos4_core_save[] = {
...@@ -239,7 +239,7 @@ static void exynos4_restore_pll(void) ...@@ -239,7 +239,7 @@ static void exynos4_restore_pll(void)
locktime = (3000 / pll_in_rate) * p_div; locktime = (3000 / pll_in_rate) * p_div;
lockcnt = locktime * 10000 / (10000 / pll_in_rate); lockcnt = locktime * 10000 / (10000 / pll_in_rate);
__raw_writel(lockcnt, S5P_EPLL_LOCK); __raw_writel(lockcnt, EXYNOS4_EPLL_LOCK);
s3c_pm_do_restore_core(exynos4_epll_save, s3c_pm_do_restore_core(exynos4_epll_save,
ARRAY_SIZE(exynos4_epll_save)); ARRAY_SIZE(exynos4_epll_save));
...@@ -257,7 +257,7 @@ static void exynos4_restore_pll(void) ...@@ -257,7 +257,7 @@ static void exynos4_restore_pll(void)
locktime = 750; locktime = 750;
lockcnt = locktime * 10000 / (10000 / pll_in_rate); lockcnt = locktime * 10000 / (10000 / pll_in_rate);
__raw_writel(lockcnt, S5P_VPLL_LOCK); __raw_writel(lockcnt, EXYNOS4_VPLL_LOCK);
s3c_pm_do_restore_core(exynos4_vpll_save, s3c_pm_do_restore_core(exynos4_vpll_save,
ARRAY_SIZE(exynos4_vpll_save)); ARRAY_SIZE(exynos4_vpll_save));
...@@ -268,14 +268,14 @@ static void exynos4_restore_pll(void) ...@@ -268,14 +268,14 @@ static void exynos4_restore_pll(void)
do { do {
if (epll_wait) { if (epll_wait) {
pll_con = __raw_readl(S5P_EPLL_CON0); pll_con = __raw_readl(EXYNOS4_EPLL_CON0);
if (pll_con & (1 << S5P_EPLLCON0_LOCKED_SHIFT)) if (pll_con & (1 << EXYNOS4_EPLLCON0_LOCKED_SHIFT))
epll_wait = 0; epll_wait = 0;
} }
if (vpll_wait) { if (vpll_wait) {
pll_con = __raw_readl(S5P_VPLL_CON0); pll_con = __raw_readl(EXYNOS4_VPLL_CON0);
if (pll_con & (1 << S5P_VPLLCON0_LOCKED_SHIFT)) if (pll_con & (1 << EXYNOS4_VPLLCON0_LOCKED_SHIFT))
vpll_wait = 0; vpll_wait = 0;
} }
} while (epll_wait || vpll_wait); } while (epll_wait || vpll_wait);
......
...@@ -162,7 +162,7 @@ static int h1940_gpiolib_latch_get(struct gpio_chip *chip, ...@@ -162,7 +162,7 @@ static int h1940_gpiolib_latch_get(struct gpio_chip *chip,
return (latch_state >> (offset + 16)) & 1; return (latch_state >> (offset + 16)) & 1;
} }
struct gpio_chip h1940_latch_gpiochip = { static struct gpio_chip h1940_latch_gpiochip = {
.base = H1940_LATCH_GPIO(0), .base = H1940_LATCH_GPIO(0),
.owner = THIS_MODULE, .owner = THIS_MODULE,
.label = "H1940_LATCH", .label = "H1940_LATCH",
...@@ -304,7 +304,7 @@ static const struct s3c_adc_bat_thresh bat_lut_acin[] = { ...@@ -304,7 +304,7 @@ static const struct s3c_adc_bat_thresh bat_lut_acin[] = {
{ .volt = 3841, .cur = 0, .level = 0}, { .volt = 3841, .cur = 0, .level = 0},
}; };
int h1940_bat_init(void) static int h1940_bat_init(void)
{ {
int ret; int ret;
...@@ -317,17 +317,17 @@ int h1940_bat_init(void) ...@@ -317,17 +317,17 @@ int h1940_bat_init(void)
} }
void h1940_bat_exit(void) static void h1940_bat_exit(void)
{ {
gpio_free(H1940_LATCH_SM803_ENABLE); gpio_free(H1940_LATCH_SM803_ENABLE);
} }
void h1940_enable_charger(void) static void h1940_enable_charger(void)
{ {
gpio_set_value(H1940_LATCH_SM803_ENABLE, 1); gpio_set_value(H1940_LATCH_SM803_ENABLE, 1);
} }
void h1940_disable_charger(void) static void h1940_disable_charger(void)
{ {
gpio_set_value(H1940_LATCH_SM803_ENABLE, 0); gpio_set_value(H1940_LATCH_SM803_ENABLE, 0);
} }
...@@ -364,7 +364,7 @@ static struct platform_device h1940_battery = { ...@@ -364,7 +364,7 @@ static struct platform_device h1940_battery = {
}, },
}; };
DEFINE_SPINLOCK(h1940_blink_spin); static DEFINE_SPINLOCK(h1940_blink_spin);
int h1940_led_blink_set(unsigned gpio, int state, int h1940_led_blink_set(unsigned gpio, int state,
unsigned long *delay_on, unsigned long *delay_off) unsigned long *delay_on, unsigned long *delay_off)
......
...@@ -132,12 +132,6 @@ static struct clk hsmmc0_clk = { ...@@ -132,12 +132,6 @@ static struct clk hsmmc0_clk = {
.ctrlbit = S3C2416_HCLKCON_HSMMC0, .ctrlbit = S3C2416_HCLKCON_HSMMC0,
}; };
void __init_or_cpufreq s3c2416_setup_clocks(void)
{
s3c2443_common_setup_clocks(s3c2416_get_pll);
}
static struct clksrc_clk *clksrcs[] __initdata = { static struct clksrc_clk *clksrcs[] __initdata = {
&hsspi_eplldiv, &hsspi_eplldiv,
&hsspi_mux, &hsspi_mux,
......
...@@ -125,7 +125,7 @@ static struct s3c2410_uartcfg smdk2416_uartcfgs[] __initdata = { ...@@ -125,7 +125,7 @@ static struct s3c2410_uartcfg smdk2416_uartcfgs[] __initdata = {
} }
}; };
void smdk2416_hsudc_gpio_init(void) static void smdk2416_hsudc_gpio_init(void)
{ {
s3c_gpio_setpull(S3C2410_GPH(14), S3C_GPIO_PULL_UP); s3c_gpio_setpull(S3C2410_GPH(14), S3C_GPIO_PULL_UP);
s3c_gpio_setpull(S3C2410_GPF(2), S3C_GPIO_PULL_NONE); s3c_gpio_setpull(S3C2410_GPF(2), S3C_GPIO_PULL_NONE);
...@@ -133,20 +133,20 @@ void smdk2416_hsudc_gpio_init(void) ...@@ -133,20 +133,20 @@ void smdk2416_hsudc_gpio_init(void)
s3c2410_modify_misccr(S3C2416_MISCCR_SEL_SUSPND, 0); s3c2410_modify_misccr(S3C2416_MISCCR_SEL_SUSPND, 0);
} }
void smdk2416_hsudc_gpio_uninit(void) static void smdk2416_hsudc_gpio_uninit(void)
{ {
s3c2410_modify_misccr(S3C2416_MISCCR_SEL_SUSPND, 1); s3c2410_modify_misccr(S3C2416_MISCCR_SEL_SUSPND, 1);
s3c_gpio_setpull(S3C2410_GPH(14), S3C_GPIO_PULL_NONE); s3c_gpio_setpull(S3C2410_GPH(14), S3C_GPIO_PULL_NONE);
s3c_gpio_cfgpin(S3C2410_GPH(14), S3C_GPIO_SFN(0)); s3c_gpio_cfgpin(S3C2410_GPH(14), S3C_GPIO_SFN(0));
} }
struct s3c24xx_hsudc_platdata smdk2416_hsudc_platdata = { static struct s3c24xx_hsudc_platdata smdk2416_hsudc_platdata = {
.epnum = 9, .epnum = 9,
.gpio_init = smdk2416_hsudc_gpio_init, .gpio_init = smdk2416_hsudc_gpio_init,
.gpio_uninit = smdk2416_hsudc_gpio_uninit, .gpio_uninit = smdk2416_hsudc_gpio_uninit,
}; };
struct s3c_fb_pd_win smdk2416_fb_win[] = { static struct s3c_fb_pd_win smdk2416_fb_win[] = {
[0] = { [0] = {
/* think this is the same as the smdk6410 */ /* think this is the same as the smdk6410 */
.win_mode = { .win_mode = {
......
...@@ -258,7 +258,7 @@ static struct pcf50633_bl_platform_data gta02_backlight_data = { ...@@ -258,7 +258,7 @@ static struct pcf50633_bl_platform_data gta02_backlight_data = {
.ramp_time = 5, .ramp_time = 5,
}; };
struct pcf50633_platform_data gta02_pcf_pdata = { static struct pcf50633_platform_data gta02_pcf_pdata = {
.resumers = { .resumers = {
[0] = PCF50633_INT1_USBINS | [0] = PCF50633_INT1_USBINS |
PCF50633_INT1_USBREM | PCF50633_INT1_USBREM |
...@@ -404,7 +404,7 @@ static struct platform_device gta02_nor_flash = { ...@@ -404,7 +404,7 @@ static struct platform_device gta02_nor_flash = {
}; };
struct platform_device s3c24xx_pwm_device = { static struct platform_device s3c24xx_pwm_device = {
.name = "s3c24xx_pwm", .name = "s3c24xx_pwm",
.num_resources = 0, .num_resources = 0,
}; };
......
...@@ -217,7 +217,7 @@ static const struct s3c_adc_bat_thresh bat_lut_acin[] = { ...@@ -217,7 +217,7 @@ static const struct s3c_adc_bat_thresh bat_lut_acin[] = {
{ .volt = 3820, .cur = 0, .level = 0}, { .volt = 3820, .cur = 0, .level = 0},
}; };
int rx1950_bat_init(void) static int rx1950_bat_init(void)
{ {
int ret; int ret;
...@@ -236,25 +236,25 @@ int rx1950_bat_init(void) ...@@ -236,25 +236,25 @@ int rx1950_bat_init(void)
return ret; return ret;
} }
void rx1950_bat_exit(void) static void rx1950_bat_exit(void)
{ {
gpio_free(S3C2410_GPJ(2)); gpio_free(S3C2410_GPJ(2));
gpio_free(S3C2410_GPJ(3)); gpio_free(S3C2410_GPJ(3));
} }
void rx1950_enable_charger(void) static void rx1950_enable_charger(void)
{ {
gpio_direction_output(S3C2410_GPJ(2), 1); gpio_direction_output(S3C2410_GPJ(2), 1);
gpio_direction_output(S3C2410_GPJ(3), 1); gpio_direction_output(S3C2410_GPJ(3), 1);
} }
void rx1950_disable_charger(void) static void rx1950_disable_charger(void)
{ {
gpio_direction_output(S3C2410_GPJ(2), 0); gpio_direction_output(S3C2410_GPJ(2), 0);
gpio_direction_output(S3C2410_GPJ(3), 0); gpio_direction_output(S3C2410_GPJ(3), 0);
} }
DEFINE_SPINLOCK(rx1950_blink_spin); static DEFINE_SPINLOCK(rx1950_blink_spin);
static int rx1950_led_blink_set(unsigned gpio, int state, static int rx1950_led_blink_set(unsigned gpio, int state,
unsigned long *delay_on, unsigned long *delay_off) unsigned long *delay_on, unsigned long *delay_off)
...@@ -382,7 +382,7 @@ static struct s3c2410fb_mach_info rx1950_lcd_cfg = { ...@@ -382,7 +382,7 @@ static struct s3c2410fb_mach_info rx1950_lcd_cfg = {
static struct pwm_device *lcd_pwm; static struct pwm_device *lcd_pwm;
void rx1950_lcd_power(int enable) static void rx1950_lcd_power(int enable)
{ {
int i; int i;
static int enabled; static int enabled;
......
...@@ -25,8 +25,6 @@ void s3c64xx_setup_clocks(void); ...@@ -25,8 +25,6 @@ void s3c64xx_setup_clocks(void);
void s3c64xx_restart(char mode, const char *cmd); void s3c64xx_restart(char mode, const char *cmd);
extern struct syscore_ops s3c64xx_irq_syscore_ops;
#ifdef CONFIG_CPU_S3C6400 #ifdef CONFIG_CPU_S3C6400
extern int s3c6400_init(void); extern int s3c6400_init(void);
......
...@@ -96,7 +96,7 @@ static void s3c64xx_irq_pm_resume(void) ...@@ -96,7 +96,7 @@ static void s3c64xx_irq_pm_resume(void)
S3C_PMDBG("%s: IRQ configuration restored\n", __func__); S3C_PMDBG("%s: IRQ configuration restored\n", __func__);
} }
struct syscore_ops s3c64xx_irq_syscore_ops = { static struct syscore_ops s3c64xx_irq_syscore_ops = {
.suspend = s3c64xx_irq_pm_suspend, .suspend = s3c64xx_irq_pm_suspend,
.resume = s3c64xx_irq_pm_resume, .resume = s3c64xx_irq_pm_resume,
}; };
......
...@@ -73,7 +73,7 @@ static const u32 clock_table[][3] = { ...@@ -73,7 +73,7 @@ static const u32 clock_table[][3] = {
{L2 * 1000, (3 << ARM_DIV_RATIO_SHIFT), (0 << S5P64X0_CLKDIV0_HCLK_SHIFT)}, {L2 * 1000, (3 << ARM_DIV_RATIO_SHIFT), (0 << S5P64X0_CLKDIV0_HCLK_SHIFT)},
}; };
unsigned long s5p64x0_armclk_get_rate(struct clk *clk) static unsigned long s5p64x0_armclk_get_rate(struct clk *clk)
{ {
unsigned long rate = clk_get_rate(clk->parent); unsigned long rate = clk_get_rate(clk->parent);
u32 clkdiv; u32 clkdiv;
...@@ -84,7 +84,8 @@ unsigned long s5p64x0_armclk_get_rate(struct clk *clk) ...@@ -84,7 +84,8 @@ unsigned long s5p64x0_armclk_get_rate(struct clk *clk)
return rate / (clkdiv + 1); return rate / (clkdiv + 1);
} }
unsigned long s5p64x0_armclk_round_rate(struct clk *clk, unsigned long rate) static unsigned long s5p64x0_armclk_round_rate(struct clk *clk,
unsigned long rate)
{ {
u32 iter; u32 iter;
...@@ -96,7 +97,7 @@ unsigned long s5p64x0_armclk_round_rate(struct clk *clk, unsigned long rate) ...@@ -96,7 +97,7 @@ unsigned long s5p64x0_armclk_round_rate(struct clk *clk, unsigned long rate)
return clock_table[ARRAY_SIZE(clock_table) - 1][0]; return clock_table[ARRAY_SIZE(clock_table) - 1][0];
} }
int s5p64x0_armclk_set_rate(struct clk *clk, unsigned long rate) static int s5p64x0_armclk_set_rate(struct clk *clk, unsigned long rate)
{ {
u32 round_tmp; u32 round_tmp;
u32 iter; u32 iter;
...@@ -148,7 +149,7 @@ int s5p64x0_armclk_set_rate(struct clk *clk, unsigned long rate) ...@@ -148,7 +149,7 @@ int s5p64x0_armclk_set_rate(struct clk *clk, unsigned long rate)
return 0; return 0;
} }
struct clk_ops s5p64x0_clkarm_ops = { static struct clk_ops s5p64x0_clkarm_ops = {
.get_rate = s5p64x0_armclk_get_rate, .get_rate = s5p64x0_armclk_get_rate,
.set_rate = s5p64x0_armclk_set_rate, .set_rate = s5p64x0_armclk_set_rate,
.round_rate = s5p64x0_armclk_round_rate, .round_rate = s5p64x0_armclk_round_rate,
...@@ -173,7 +174,7 @@ struct clksrc_clk clk_dout_mpll = { ...@@ -173,7 +174,7 @@ struct clksrc_clk clk_dout_mpll = {
.reg_div = { .reg = S5P64X0_CLK_DIV0, .shift = 4, .size = 1 }, .reg_div = { .reg = S5P64X0_CLK_DIV0, .shift = 4, .size = 1 },
}; };
struct clk *clkset_hclk_low_list[] = { static struct clk *clkset_hclk_low_list[] = {
&clk_mout_apll.clk, &clk_mout_apll.clk,
&clk_mout_mpll.clk, &clk_mout_mpll.clk,
}; };
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
static u64 dma_dmamask = DMA_BIT_MASK(32); static u64 dma_dmamask = DMA_BIT_MASK(32);
u8 s5p6440_pdma_peri[] = { static u8 s5p6440_pdma_peri[] = {
DMACH_UART0_RX, DMACH_UART0_RX,
DMACH_UART0_TX, DMACH_UART0_TX,
DMACH_UART1_RX, DMACH_UART1_RX,
...@@ -63,12 +63,12 @@ u8 s5p6440_pdma_peri[] = { ...@@ -63,12 +63,12 @@ u8 s5p6440_pdma_peri[] = {
DMACH_SPI1_RX, DMACH_SPI1_RX,
}; };
struct dma_pl330_platdata s5p6440_pdma_pdata = { static struct dma_pl330_platdata s5p6440_pdma_pdata = {
.nr_valid_peri = ARRAY_SIZE(s5p6440_pdma_peri), .nr_valid_peri = ARRAY_SIZE(s5p6440_pdma_peri),
.peri_id = s5p6440_pdma_peri, .peri_id = s5p6440_pdma_peri,
}; };
u8 s5p6450_pdma_peri[] = { static u8 s5p6450_pdma_peri[] = {
DMACH_UART0_RX, DMACH_UART0_RX,
DMACH_UART0_TX, DMACH_UART0_TX,
DMACH_UART1_RX, DMACH_UART1_RX,
...@@ -103,13 +103,13 @@ u8 s5p6450_pdma_peri[] = { ...@@ -103,13 +103,13 @@ u8 s5p6450_pdma_peri[] = {
DMACH_UART5_TX, DMACH_UART5_TX,
}; };
struct dma_pl330_platdata s5p6450_pdma_pdata = { static struct dma_pl330_platdata s5p6450_pdma_pdata = {
.nr_valid_peri = ARRAY_SIZE(s5p6450_pdma_peri), .nr_valid_peri = ARRAY_SIZE(s5p6450_pdma_peri),
.peri_id = s5p6450_pdma_peri, .peri_id = s5p6450_pdma_peri,
}; };
AMBA_AHB_DEVICE(s5p64x0_pdma, "dma-pl330", 0x00041330, S5P64X0_PA_PDMA, static AMBA_AHB_DEVICE(s5p64x0_pdma, "dma-pl330", 0x00041330,
{IRQ_DMA0}, NULL); S5P64X0_PA_PDMA, {IRQ_DMA0}, NULL);
static int __init s5p64x0_dma_init(void) static int __init s5p64x0_dma_init(void)
{ {
......
...@@ -22,16 +22,9 @@ extern struct clksrc_clk clk_mout_epll; ...@@ -22,16 +22,9 @@ extern struct clksrc_clk clk_mout_epll;
extern int s5p64x0_epll_enable(struct clk *clk, int enable); extern int s5p64x0_epll_enable(struct clk *clk, int enable);
extern unsigned long s5p64x0_epll_get_rate(struct clk *clk); extern unsigned long s5p64x0_epll_get_rate(struct clk *clk);
extern unsigned long s5p64x0_armclk_get_rate(struct clk *clk);
extern unsigned long s5p64x0_armclk_round_rate(struct clk *clk, unsigned long rate);
extern int s5p64x0_armclk_set_rate(struct clk *clk, unsigned long rate);
extern struct clk_ops s5p64x0_clkarm_ops;
extern struct clksrc_clk clk_armclk; extern struct clksrc_clk clk_armclk;
extern struct clksrc_clk clk_dout_mpll; extern struct clksrc_clk clk_dout_mpll;
extern struct clk *clkset_hclk_low_list[];
extern struct clksrc_sources clkset_hclk_low; extern struct clksrc_sources clkset_hclk_low;
extern int s5p64x0_pclk_ctrl(struct clk *clk, int enable); extern int s5p64x0_pclk_ctrl(struct clk *clk, int enable);
......
...@@ -170,7 +170,7 @@ static struct clk *clk_src_mout_am_list[] = { ...@@ -170,7 +170,7 @@ static struct clk *clk_src_mout_am_list[] = {
[1] = &clk_div_apll2.clk, [1] = &clk_div_apll2.clk,
}; };
struct clksrc_sources clk_src_mout_am = { static struct clksrc_sources clk_src_mout_am = {
.sources = clk_src_mout_am_list, .sources = clk_src_mout_am_list,
.nr_sources = ARRAY_SIZE(clk_src_mout_am_list), .nr_sources = ARRAY_SIZE(clk_src_mout_am_list),
}; };
...@@ -212,7 +212,7 @@ static struct clk *clk_src_mout_onenand_list[] = { ...@@ -212,7 +212,7 @@ static struct clk *clk_src_mout_onenand_list[] = {
[1] = &clk_div_d1_bus.clk, [1] = &clk_div_d1_bus.clk,
}; };
struct clksrc_sources clk_src_mout_onenand = { static struct clksrc_sources clk_src_mout_onenand = {
.sources = clk_src_mout_onenand_list, .sources = clk_src_mout_onenand_list,
.nr_sources = ARRAY_SIZE(clk_src_mout_onenand_list), .nr_sources = ARRAY_SIZE(clk_src_mout_onenand_list),
}; };
...@@ -756,7 +756,7 @@ static struct clk *clk_src_group1_list[] = { ...@@ -756,7 +756,7 @@ static struct clk *clk_src_group1_list[] = {
[3] = &clk_mout_hpll.clk, [3] = &clk_mout_hpll.clk,
}; };
struct clksrc_sources clk_src_group1 = { static struct clksrc_sources clk_src_group1 = {
.sources = clk_src_group1_list, .sources = clk_src_group1_list,
.nr_sources = ARRAY_SIZE(clk_src_group1_list), .nr_sources = ARRAY_SIZE(clk_src_group1_list),
}; };
...@@ -766,7 +766,7 @@ static struct clk *clk_src_group2_list[] = { ...@@ -766,7 +766,7 @@ static struct clk *clk_src_group2_list[] = {
[1] = &clk_div_mpll.clk, [1] = &clk_div_mpll.clk,
}; };
struct clksrc_sources clk_src_group2 = { static struct clksrc_sources clk_src_group2 = {
.sources = clk_src_group2_list, .sources = clk_src_group2_list,
.nr_sources = ARRAY_SIZE(clk_src_group2_list), .nr_sources = ARRAY_SIZE(clk_src_group2_list),
}; };
...@@ -780,7 +780,7 @@ static struct clk *clk_src_group3_list[] = { ...@@ -780,7 +780,7 @@ static struct clk *clk_src_group3_list[] = {
[5] = &clk_mout_hpll.clk, [5] = &clk_mout_hpll.clk,
}; };
struct clksrc_sources clk_src_group3 = { static struct clksrc_sources clk_src_group3 = {
.sources = clk_src_group3_list, .sources = clk_src_group3_list,
.nr_sources = ARRAY_SIZE(clk_src_group3_list), .nr_sources = ARRAY_SIZE(clk_src_group3_list),
}; };
...@@ -806,7 +806,7 @@ static struct clk *clk_src_group4_list[] = { ...@@ -806,7 +806,7 @@ static struct clk *clk_src_group4_list[] = {
[5] = &clk_mout_hpll.clk, [5] = &clk_mout_hpll.clk,
}; };
struct clksrc_sources clk_src_group4 = { static struct clksrc_sources clk_src_group4 = {
.sources = clk_src_group4_list, .sources = clk_src_group4_list,
.nr_sources = ARRAY_SIZE(clk_src_group4_list), .nr_sources = ARRAY_SIZE(clk_src_group4_list),
}; };
...@@ -831,7 +831,7 @@ static struct clk *clk_src_group5_list[] = { ...@@ -831,7 +831,7 @@ static struct clk *clk_src_group5_list[] = {
[4] = &clk_mout_hpll.clk, [4] = &clk_mout_hpll.clk,
}; };
struct clksrc_sources clk_src_group5 = { static struct clksrc_sources clk_src_group5 = {
.sources = clk_src_group5_list, .sources = clk_src_group5_list,
.nr_sources = ARRAY_SIZE(clk_src_group5_list), .nr_sources = ARRAY_SIZE(clk_src_group5_list),
}; };
...@@ -854,7 +854,7 @@ static struct clk *clk_src_group6_list[] = { ...@@ -854,7 +854,7 @@ static struct clk *clk_src_group6_list[] = {
[2] = &clk_div_hdmi.clk, [2] = &clk_div_hdmi.clk,
}; };
struct clksrc_sources clk_src_group6 = { static struct clksrc_sources clk_src_group6 = {
.sources = clk_src_group6_list, .sources = clk_src_group6_list,
.nr_sources = ARRAY_SIZE(clk_src_group6_list), .nr_sources = ARRAY_SIZE(clk_src_group6_list),
}; };
...@@ -866,7 +866,7 @@ static struct clk *clk_src_group7_list[] = { ...@@ -866,7 +866,7 @@ static struct clk *clk_src_group7_list[] = {
[3] = &clk_vclk54m, [3] = &clk_vclk54m,
}; };
struct clksrc_sources clk_src_group7 = { static struct clksrc_sources clk_src_group7 = {
.sources = clk_src_group7_list, .sources = clk_src_group7_list,
.nr_sources = ARRAY_SIZE(clk_src_group7_list), .nr_sources = ARRAY_SIZE(clk_src_group7_list),
}; };
...@@ -877,7 +877,7 @@ static struct clk *clk_src_mmc0_list[] = { ...@@ -877,7 +877,7 @@ static struct clk *clk_src_mmc0_list[] = {
[2] = &clk_fin_epll, [2] = &clk_fin_epll,
}; };
struct clksrc_sources clk_src_mmc0 = { static struct clksrc_sources clk_src_mmc0 = {
.sources = clk_src_mmc0_list, .sources = clk_src_mmc0_list,
.nr_sources = ARRAY_SIZE(clk_src_mmc0_list), .nr_sources = ARRAY_SIZE(clk_src_mmc0_list),
}; };
...@@ -889,7 +889,7 @@ static struct clk *clk_src_mmc12_list[] = { ...@@ -889,7 +889,7 @@ static struct clk *clk_src_mmc12_list[] = {
[3] = &clk_mout_hpll.clk, [3] = &clk_mout_hpll.clk,
}; };
struct clksrc_sources clk_src_mmc12 = { static struct clksrc_sources clk_src_mmc12 = {
.sources = clk_src_mmc12_list, .sources = clk_src_mmc12_list,
.nr_sources = ARRAY_SIZE(clk_src_mmc12_list), .nr_sources = ARRAY_SIZE(clk_src_mmc12_list),
}; };
...@@ -901,7 +901,7 @@ static struct clk *clk_src_irda_usb_list[] = { ...@@ -901,7 +901,7 @@ static struct clk *clk_src_irda_usb_list[] = {
[3] = &clk_mout_hpll.clk, [3] = &clk_mout_hpll.clk,
}; };
struct clksrc_sources clk_src_irda_usb = { static struct clksrc_sources clk_src_irda_usb = {
.sources = clk_src_irda_usb_list, .sources = clk_src_irda_usb_list,
.nr_sources = ARRAY_SIZE(clk_src_irda_usb_list), .nr_sources = ARRAY_SIZE(clk_src_irda_usb_list),
}; };
...@@ -912,7 +912,7 @@ static struct clk *clk_src_pwi_list[] = { ...@@ -912,7 +912,7 @@ static struct clk *clk_src_pwi_list[] = {
[2] = &clk_div_mpll.clk, [2] = &clk_div_mpll.clk,
}; };
struct clksrc_sources clk_src_pwi = { static struct clksrc_sources clk_src_pwi = {
.sources = clk_src_pwi_list, .sources = clk_src_pwi_list,
.nr_sources = ARRAY_SIZE(clk_src_pwi_list), .nr_sources = ARRAY_SIZE(clk_src_pwi_list),
}; };
...@@ -923,7 +923,7 @@ static struct clk *clk_sclk_spdif_list[] = { ...@@ -923,7 +923,7 @@ static struct clk *clk_sclk_spdif_list[] = {
[2] = &clk_sclk_audio2.clk, [2] = &clk_sclk_audio2.clk,
}; };
struct clksrc_sources clk_src_sclk_spdif = { static struct clksrc_sources clk_src_sclk_spdif = {
.sources = clk_sclk_spdif_list, .sources = clk_sclk_spdif_list,
.nr_sources = ARRAY_SIZE(clk_sclk_spdif_list), .nr_sources = ARRAY_SIZE(clk_sclk_spdif_list),
}; };
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
static u64 dma_dmamask = DMA_BIT_MASK(32); static u64 dma_dmamask = DMA_BIT_MASK(32);
u8 pdma0_peri[] = { static u8 pdma0_peri[] = {
DMACH_UART0_RX, DMACH_UART0_RX,
DMACH_UART0_TX, DMACH_UART0_TX,
DMACH_UART1_RX, DMACH_UART1_RX,
...@@ -68,15 +68,15 @@ u8 pdma0_peri[] = { ...@@ -68,15 +68,15 @@ u8 pdma0_peri[] = {
DMACH_HSI_TX, DMACH_HSI_TX,
}; };
struct dma_pl330_platdata s5pc100_pdma0_pdata = { static struct dma_pl330_platdata s5pc100_pdma0_pdata = {
.nr_valid_peri = ARRAY_SIZE(pdma0_peri), .nr_valid_peri = ARRAY_SIZE(pdma0_peri),
.peri_id = pdma0_peri, .peri_id = pdma0_peri,
}; };
AMBA_AHB_DEVICE(s5pc100_pdma0, "dma-pl330.0", 0x00041330, S5PC100_PA_PDMA0, static AMBA_AHB_DEVICE(s5pc100_pdma0, "dma-pl330.0", 0x00041330,
{IRQ_PDMA0}, &s5pc100_pdma0_pdata); S5PC100_PA_PDMA0, {IRQ_PDMA0}, &s5pc100_pdma0_pdata);
u8 pdma1_peri[] = { static u8 pdma1_peri[] = {
DMACH_UART0_RX, DMACH_UART0_RX,
DMACH_UART0_TX, DMACH_UART0_TX,
DMACH_UART1_RX, DMACH_UART1_RX,
...@@ -109,13 +109,13 @@ u8 pdma1_peri[] = { ...@@ -109,13 +109,13 @@ u8 pdma1_peri[] = {
DMACH_MSM_REQ3, DMACH_MSM_REQ3,
}; };
struct dma_pl330_platdata s5pc100_pdma1_pdata = { static struct dma_pl330_platdata s5pc100_pdma1_pdata = {
.nr_valid_peri = ARRAY_SIZE(pdma1_peri), .nr_valid_peri = ARRAY_SIZE(pdma1_peri),
.peri_id = pdma1_peri, .peri_id = pdma1_peri,
}; };
AMBA_AHB_DEVICE(s5pc100_pdma1, "dma-pl330.1", 0x00041330, S5PC100_PA_PDMA1, static AMBA_AHB_DEVICE(s5pc100_pdma1, "dma-pl330.1", 0x00041330,
{IRQ_PDMA1}, &s5pc100_pdma1_pdata); S5PC100_PA_PDMA1, {IRQ_PDMA1}, &s5pc100_pdma1_pdata);
static int __init s5pc100_dma_init(void) static int __init s5pc100_dma_init(void)
{ {
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
static u64 dma_dmamask = DMA_BIT_MASK(32); static u64 dma_dmamask = DMA_BIT_MASK(32);
u8 pdma0_peri[] = { static u8 pdma0_peri[] = {
DMACH_UART0_RX, DMACH_UART0_RX,
DMACH_UART0_TX, DMACH_UART0_TX,
DMACH_UART1_RX, DMACH_UART1_RX,
...@@ -66,15 +66,15 @@ u8 pdma0_peri[] = { ...@@ -66,15 +66,15 @@ u8 pdma0_peri[] = {
DMACH_SPDIF, DMACH_SPDIF,
}; };
struct dma_pl330_platdata s5pv210_pdma0_pdata = { static struct dma_pl330_platdata s5pv210_pdma0_pdata = {
.nr_valid_peri = ARRAY_SIZE(pdma0_peri), .nr_valid_peri = ARRAY_SIZE(pdma0_peri),
.peri_id = pdma0_peri, .peri_id = pdma0_peri,
}; };
AMBA_AHB_DEVICE(s5pv210_pdma0, "dma-pl330.0", 0x00041330, S5PV210_PA_PDMA0, static AMBA_AHB_DEVICE(s5pv210_pdma0, "dma-pl330.0", 0x00041330,
{IRQ_PDMA0}, &s5pv210_pdma0_pdata); S5PV210_PA_PDMA0, {IRQ_PDMA0}, &s5pv210_pdma0_pdata);
u8 pdma1_peri[] = { static u8 pdma1_peri[] = {
DMACH_UART0_RX, DMACH_UART0_RX,
DMACH_UART0_TX, DMACH_UART0_TX,
DMACH_UART1_RX, DMACH_UART1_RX,
...@@ -109,13 +109,13 @@ u8 pdma1_peri[] = { ...@@ -109,13 +109,13 @@ u8 pdma1_peri[] = {
DMACH_PCM2_TX, DMACH_PCM2_TX,
}; };
struct dma_pl330_platdata s5pv210_pdma1_pdata = { static struct dma_pl330_platdata s5pv210_pdma1_pdata = {
.nr_valid_peri = ARRAY_SIZE(pdma1_peri), .nr_valid_peri = ARRAY_SIZE(pdma1_peri),
.peri_id = pdma1_peri, .peri_id = pdma1_peri,
}; };
AMBA_AHB_DEVICE(s5pv210_pdma1, "dma-pl330.1", 0x00041330, S5PV210_PA_PDMA1, static AMBA_AHB_DEVICE(s5pv210_pdma1, "dma-pl330.1", 0x00041330,
{IRQ_PDMA1}, &s5pv210_pdma1_pdata); S5PV210_PA_PDMA1, {IRQ_PDMA1}, &s5pv210_pdma1_pdata);
static int __init s5pv210_dma_init(void) static int __init s5pv210_dma_init(void)
{ {
......
...@@ -844,7 +844,7 @@ static struct s5p_fimc_isp_info goni_camera_sensors[] = { ...@@ -844,7 +844,7 @@ static struct s5p_fimc_isp_info goni_camera_sensors[] = {
}, },
}; };
struct s5p_platform_fimc goni_fimc_md_platdata __initdata = { static struct s5p_platform_fimc goni_fimc_md_platdata __initdata = {
.isp_info = goni_camera_sensors, .isp_info = goni_camera_sensors,
.num_clients = ARRAY_SIZE(goni_camera_sensors), .num_clients = ARRAY_SIZE(goni_camera_sensors),
}; };
......
...@@ -140,7 +140,7 @@ static struct dm9000_plat_data smdkv210_dm9000_platdata = { ...@@ -140,7 +140,7 @@ static struct dm9000_plat_data smdkv210_dm9000_platdata = {
.dev_addr = { 0x00, 0x09, 0xc0, 0xff, 0xec, 0x48 }, .dev_addr = { 0x00, 0x09, 0xc0, 0xff, 0xec, 0x48 },
}; };
struct platform_device smdkv210_dm9000 = { static struct platform_device smdkv210_dm9000 = {
.name = "dm9000", .name = "dm9000",
.id = -1, .id = -1,
.num_resources = ARRAY_SIZE(smdkv210_dm9000_resources), .num_resources = ARRAY_SIZE(smdkv210_dm9000_resources),
......
...@@ -53,7 +53,7 @@ int s3c2443_clkcon_enable_s(struct clk *clk, int enable) ...@@ -53,7 +53,7 @@ int s3c2443_clkcon_enable_s(struct clk *clk, int enable)
* elided as the EPLL can be either sourced by the XTAL or EXTCLK and as * elided as the EPLL can be either sourced by the XTAL or EXTCLK and as
* such directly equating the two source clocks is impossible. * such directly equating the two source clocks is impossible.
*/ */
struct clk clk_mpllref = { static struct clk clk_mpllref = {
.name = "mpllref", .name = "mpllref",
.parent = &clk_xtal, .parent = &clk_xtal,
}; };
......
...@@ -200,7 +200,7 @@ static struct irq_chip s5p_irq_vic_eint = { ...@@ -200,7 +200,7 @@ static struct irq_chip s5p_irq_vic_eint = {
#endif #endif
}; };
int __init s5p_init_irq_eint(void) static int __init s5p_init_irq_eint(void)
{ {
int irq; int irq;
......
...@@ -41,7 +41,7 @@ struct s5p_gpioint_bank { ...@@ -41,7 +41,7 @@ struct s5p_gpioint_bank {
void (*handler)(unsigned int, struct irq_desc *); void (*handler)(unsigned int, struct irq_desc *);
}; };
LIST_HEAD(banks); static LIST_HEAD(banks);
static int s5p_gpioint_set_type(struct irq_data *d, unsigned int type) static int s5p_gpioint_set_type(struct irq_data *d, unsigned int type)
{ {
......
...@@ -744,17 +744,6 @@ struct platform_device s3c_device_iis = { ...@@ -744,17 +744,6 @@ struct platform_device s3c_device_iis = {
}; };
#endif /* CONFIG_PLAT_S3C24XX */ #endif /* CONFIG_PLAT_S3C24XX */
#ifdef CONFIG_CPU_S3C2440
struct platform_device s3c2412_device_iis = {
.name = "s3c2412-iis",
.id = -1,
.dev = {
.dma_mask = &samsung_device_dma_mask,
.coherent_dma_mask = DMA_BIT_MASK(32),
}
};
#endif /* CONFIG_CPU_S3C2440 */
/* IDE CFCON */ /* IDE CFCON */
#ifdef CONFIG_SAMSUNG_DEV_IDE #ifdef CONFIG_SAMSUNG_DEV_IDE
...@@ -1078,7 +1067,7 @@ static struct resource s5p_pmu_resource[] = { ...@@ -1078,7 +1067,7 @@ static struct resource s5p_pmu_resource[] = {
DEFINE_RES_IRQ(IRQ_PMU) DEFINE_RES_IRQ(IRQ_PMU)
}; };
struct platform_device s5p_device_pmu = { static struct platform_device s5p_device_pmu = {
.name = "arm-pmu", .name = "arm-pmu",
.id = ARM_PMU_DEVICE_CPU, .id = ARM_PMU_DEVICE_CPU,
.num_resources = ARRAY_SIZE(s5p_pmu_resource), .num_resources = ARRAY_SIZE(s5p_pmu_resource),
......
...@@ -116,7 +116,7 @@ static inline int samsung_dmadev_flush(unsigned ch) ...@@ -116,7 +116,7 @@ static inline int samsung_dmadev_flush(unsigned ch)
return dmaengine_terminate_all((struct dma_chan *)ch); return dmaengine_terminate_all((struct dma_chan *)ch);
} }
struct samsung_dma_ops dmadev_ops = { static struct samsung_dma_ops dmadev_ops = {
.request = samsung_dmadev_request, .request = samsung_dmadev_request,
.release = samsung_dmadev_release, .release = samsung_dmadev_release,
.prepare = samsung_dmadev_prepare, .prepare = samsung_dmadev_prepare,
......
...@@ -82,6 +82,22 @@ enum dma_ch { ...@@ -82,6 +82,22 @@ enum dma_ch {
DMACH_SLIMBUS4_TX, DMACH_SLIMBUS4_TX,
DMACH_SLIMBUS5_RX, DMACH_SLIMBUS5_RX,
DMACH_SLIMBUS5_TX, DMACH_SLIMBUS5_TX,
DMACH_MIPI_HSI0,
DMACH_MIPI_HSI1,
DMACH_MIPI_HSI2,
DMACH_MIPI_HSI3,
DMACH_MIPI_HSI4,
DMACH_MIPI_HSI5,
DMACH_MIPI_HSI6,
DMACH_MIPI_HSI7,
DMACH_MTOM_0,
DMACH_MTOM_1,
DMACH_MTOM_2,
DMACH_MTOM_3,
DMACH_MTOM_4,
DMACH_MTOM_5,
DMACH_MTOM_6,
DMACH_MTOM_7,
/* END Marker, also used to denote a reserved channel */ /* END Marker, also used to denote a reserved channel */
DMACH_MAX, DMACH_MAX,
}; };
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment