Commit a28d618e authored by Heiko Stuebner's avatar Heiko Stuebner Committed by Kukjin Kim

ARM: S3C24XX: convert s3c2440 and s3c2442 to common clock framework

Convert all machines using these cpus to use the ccf clock driver
instead of the legacy Samsung clock implementation.

Some of the more esotheric machines will probably need a fixup, as they
do strange things to the clkout outputs, that I did not really understand
nor have the hardware to check.
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Reviewed-by: default avatarTomasz Figa <t.figa@samsung.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 4659c534
...@@ -73,10 +73,10 @@ config CPU_S3C2416 ...@@ -73,10 +73,10 @@ config CPU_S3C2416
config CPU_S3C2440 config CPU_S3C2440
bool "SAMSUNG S3C2440" bool "SAMSUNG S3C2440"
depends on SAMSUNG_CLOCK select COMMON_CLK
select CPU_ARM920T select CPU_ARM920T
select CPU_LLSERIAL_S3C2440 select CPU_LLSERIAL_S3C2440
select S3C2410_CLOCK select S3C2410_COMMON_CLK
select S3C2410_PM if PM select S3C2410_PM if PM
select S3C2440_DMA if S3C24XX_DMA select S3C2440_DMA if S3C24XX_DMA
help help
...@@ -84,10 +84,10 @@ config CPU_S3C2440 ...@@ -84,10 +84,10 @@ config CPU_S3C2440
config CPU_S3C2442 config CPU_S3C2442
bool "SAMSUNG S3C2442" bool "SAMSUNG S3C2442"
depends on SAMSUNG_CLOCK select COMMON_CLK
select CPU_ARM920T select CPU_ARM920T
select CPU_LLSERIAL_S3C2440 select CPU_LLSERIAL_S3C2440
select S3C2410_CLOCK select S3C2410_COMMON_CLK
select S3C2410_DMA if S3C24XX_DMA select S3C2410_DMA if S3C24XX_DMA
select S3C2410_PM if PM select S3C2410_PM if PM
help help
......
...@@ -29,9 +29,9 @@ obj-$(CONFIG_S3C2412_PM_SLEEP) += sleep-s3c2412.o ...@@ -29,9 +29,9 @@ obj-$(CONFIG_S3C2412_PM_SLEEP) += sleep-s3c2412.o
obj-$(CONFIG_CPU_S3C2416) += s3c2416.o obj-$(CONFIG_CPU_S3C2416) += s3c2416.o
obj-$(CONFIG_S3C2416_PM) += pm-s3c2416.o obj-$(CONFIG_S3C2416_PM) += pm-s3c2416.o
obj-$(CONFIG_CPU_S3C2440) += s3c2440.o clock-s3c2440.o obj-$(CONFIG_CPU_S3C2440) += s3c2440.o
obj-$(CONFIG_CPU_S3C2442) += s3c2442.o obj-$(CONFIG_CPU_S3C2442) += s3c2442.o
obj-$(CONFIG_CPU_S3C244X) += s3c244x.o clock-s3c244x.o obj-$(CONFIG_CPU_S3C244X) += s3c244x.o
obj-$(CONFIG_S3C2440_DMA) += dma-s3c2440.o obj-$(CONFIG_S3C2440_DMA) += dma-s3c2440.o
obj-$(CONFIG_S3C2440_PLL_12000000) += pll-s3c2440-12000000.o obj-$(CONFIG_S3C2440_PLL_12000000) += pll-s3c2440-12000000.o
obj-$(CONFIG_S3C2440_PLL_16934400) += pll-s3c2440-16934400.o obj-$(CONFIG_S3C2440_PLL_16934400) += pll-s3c2440-16934400.o
......
...@@ -92,7 +92,6 @@ static struct cpu_table cpu_ids[] __initdata = { ...@@ -92,7 +92,6 @@ static struct cpu_table cpu_ids[] __initdata = {
.idcode = 0x32440000, .idcode = 0x32440000,
.idmask = 0xffffffff, .idmask = 0xffffffff,
.map_io = s3c2440_map_io, .map_io = s3c2440_map_io,
.init_clocks = s3c244x_init_clocks,
.init_uarts = s3c244x_init_uarts, .init_uarts = s3c244x_init_uarts,
.init = s3c2440_init, .init = s3c2440_init,
.name = name_s3c2440 .name = name_s3c2440
...@@ -101,7 +100,6 @@ static struct cpu_table cpu_ids[] __initdata = { ...@@ -101,7 +100,6 @@ static struct cpu_table cpu_ids[] __initdata = {
.idcode = 0x32440001, .idcode = 0x32440001,
.idmask = 0xffffffff, .idmask = 0xffffffff,
.map_io = s3c2440_map_io, .map_io = s3c2440_map_io,
.init_clocks = s3c244x_init_clocks,
.init_uarts = s3c244x_init_uarts, .init_uarts = s3c244x_init_uarts,
.init = s3c2440_init, .init = s3c2440_init,
.name = name_s3c2440a .name = name_s3c2440a
...@@ -110,7 +108,6 @@ static struct cpu_table cpu_ids[] __initdata = { ...@@ -110,7 +108,6 @@ static struct cpu_table cpu_ids[] __initdata = {
.idcode = 0x32440aaa, .idcode = 0x32440aaa,
.idmask = 0xffffffff, .idmask = 0xffffffff,
.map_io = s3c2442_map_io, .map_io = s3c2442_map_io,
.init_clocks = s3c244x_init_clocks,
.init_uarts = s3c244x_init_uarts, .init_uarts = s3c244x_init_uarts,
.init = s3c2442_init, .init = s3c2442_init,
.name = name_s3c2442 .name = name_s3c2442
...@@ -119,7 +116,6 @@ static struct cpu_table cpu_ids[] __initdata = { ...@@ -119,7 +116,6 @@ static struct cpu_table cpu_ids[] __initdata = {
.idcode = 0x32440aab, .idcode = 0x32440aab,
.idmask = 0xffffffff, .idmask = 0xffffffff,
.map_io = s3c2442_map_io, .map_io = s3c2442_map_io,
.init_clocks = s3c244x_init_clocks,
.init_uarts = s3c244x_init_uarts, .init_uarts = s3c244x_init_uarts,
.init = s3c2442_init, .init = s3c2442_init,
.name = name_s3c2442b .name = name_s3c2442b
......
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
#include <net/ax88796.h> #include <net/ax88796.h>
#include <plat/clock.h>
#include <plat/devs.h> #include <plat/devs.h>
#include <plat/cpu.h> #include <plat/cpu.h>
#include <linux/platform_data/asoc-s3c24xx_simtec.h> #include <linux/platform_data/asoc-s3c24xx_simtec.h>
...@@ -415,7 +414,6 @@ static void __init anubis_map_io(void) ...@@ -415,7 +414,6 @@ static void __init anubis_map_io(void)
#endif #endif
s3c24xx_init_io(anubis_iodesc, ARRAY_SIZE(anubis_iodesc)); s3c24xx_init_io(anubis_iodesc, ARRAY_SIZE(anubis_iodesc));
s3c24xx_init_clocks(0);
s3c24xx_init_uarts(anubis_uartcfgs, ARRAY_SIZE(anubis_uartcfgs)); s3c24xx_init_uarts(anubis_uartcfgs, ARRAY_SIZE(anubis_uartcfgs));
samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4);
...@@ -433,6 +431,12 @@ static void __init anubis_map_io(void) ...@@ -433,6 +431,12 @@ static void __init anubis_map_io(void)
} }
} }
static void __init anubis_init_time(void)
{
s3c2440_init_clocks(12000000);
samsung_timer_init();
}
static void __init anubis_init(void) static void __init anubis_init(void)
{ {
s3c_i2c0_set_platdata(NULL); s3c_i2c0_set_platdata(NULL);
...@@ -452,6 +456,6 @@ MACHINE_START(ANUBIS, "Simtec-Anubis") ...@@ -452,6 +456,6 @@ MACHINE_START(ANUBIS, "Simtec-Anubis")
.map_io = anubis_map_io, .map_io = anubis_map_io,
.init_machine = anubis_init, .init_machine = anubis_init,
.init_irq = s3c2440_init_irq, .init_irq = s3c2440_init_irq,
.init_time = samsung_timer_init, .init_time = anubis_init_time,
.restart = s3c244x_restart, .restart = s3c244x_restart,
MACHINE_END MACHINE_END
...@@ -45,7 +45,6 @@ ...@@ -45,7 +45,6 @@
#include <linux/mtd/nand_ecc.h> #include <linux/mtd/nand_ecc.h>
#include <linux/mtd/partitions.h> #include <linux/mtd/partitions.h>
#include <plat/clock.h>
#include <plat/devs.h> #include <plat/devs.h>
#include <plat/cpu.h> #include <plat/cpu.h>
#include <linux/platform_data/mmc-s3cmci.h> #include <linux/platform_data/mmc-s3cmci.h>
...@@ -192,11 +191,16 @@ static struct platform_device *at2440evb_devices[] __initdata = { ...@@ -192,11 +191,16 @@ static struct platform_device *at2440evb_devices[] __initdata = {
static void __init at2440evb_map_io(void) static void __init at2440evb_map_io(void)
{ {
s3c24xx_init_io(at2440evb_iodesc, ARRAY_SIZE(at2440evb_iodesc)); s3c24xx_init_io(at2440evb_iodesc, ARRAY_SIZE(at2440evb_iodesc));
s3c24xx_init_clocks(16934400);
s3c24xx_init_uarts(at2440evb_uartcfgs, ARRAY_SIZE(at2440evb_uartcfgs)); s3c24xx_init_uarts(at2440evb_uartcfgs, ARRAY_SIZE(at2440evb_uartcfgs));
samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4);
} }
static void __init at2440evb_init_time(void)
{
s3c2440_init_clocks(16934400);
samsung_timer_init();
}
static void __init at2440evb_init(void) static void __init at2440evb_init(void)
{ {
s3c24xx_fb_set_platdata(&at2440evb_fb_info); s3c24xx_fb_set_platdata(&at2440evb_fb_info);
...@@ -213,6 +217,6 @@ MACHINE_START(AT2440EVB, "AT2440EVB") ...@@ -213,6 +217,6 @@ MACHINE_START(AT2440EVB, "AT2440EVB")
.map_io = at2440evb_map_io, .map_io = at2440evb_map_io,
.init_machine = at2440evb_init, .init_machine = at2440evb_init,
.init_irq = s3c2440_init_irq, .init_irq = s3c2440_init_irq,
.init_time = samsung_timer_init, .init_time = at2440evb_init_time,
.restart = s3c244x_restart, .restart = s3c244x_restart,
MACHINE_END MACHINE_END
...@@ -501,7 +501,6 @@ static struct platform_device gta02_buttons_device = { ...@@ -501,7 +501,6 @@ static struct platform_device gta02_buttons_device = {
static void __init gta02_map_io(void) static void __init gta02_map_io(void)
{ {
s3c24xx_init_io(gta02_iodesc, ARRAY_SIZE(gta02_iodesc)); s3c24xx_init_io(gta02_iodesc, ARRAY_SIZE(gta02_iodesc));
s3c24xx_init_clocks(12000000);
s3c24xx_init_uarts(gta02_uartcfgs, ARRAY_SIZE(gta02_uartcfgs)); s3c24xx_init_uarts(gta02_uartcfgs, ARRAY_SIZE(gta02_uartcfgs));
samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4);
} }
...@@ -585,6 +584,11 @@ static void __init gta02_machine_init(void) ...@@ -585,6 +584,11 @@ static void __init gta02_machine_init(void)
regulator_has_full_constraints(); regulator_has_full_constraints();
} }
static void __init gta02_init_time(void)
{
s3c2442_init_clocks(12000000);
samsung_timer_init();
}
MACHINE_START(NEO1973_GTA02, "GTA02") MACHINE_START(NEO1973_GTA02, "GTA02")
/* Maintainer: Nelson Castillo <arhuaco@freaks-unidos.net> */ /* Maintainer: Nelson Castillo <arhuaco@freaks-unidos.net> */
...@@ -592,6 +596,6 @@ MACHINE_START(NEO1973_GTA02, "GTA02") ...@@ -592,6 +596,6 @@ MACHINE_START(NEO1973_GTA02, "GTA02")
.map_io = gta02_map_io, .map_io = gta02_map_io,
.init_irq = s3c2442_init_irq, .init_irq = s3c2442_init_irq,
.init_machine = gta02_machine_init, .init_machine = gta02_machine_init,
.init_time = samsung_timer_init, .init_time = gta02_init_time,
.restart = s3c244x_restart, .restart = s3c244x_restart,
MACHINE_END MACHINE_END
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
#include <linux/mtd/partitions.h> #include <linux/mtd/partitions.h>
#include <plat/gpio-cfg.h> #include <plat/gpio-cfg.h>
#include <plat/clock.h>
#include <plat/devs.h> #include <plat/devs.h>
#include <plat/cpu.h> #include <plat/cpu.h>
#include <plat/samsung-time.h> #include <plat/samsung-time.h>
...@@ -525,11 +524,16 @@ static struct platform_device *mini2440_devices[] __initdata = { ...@@ -525,11 +524,16 @@ static struct platform_device *mini2440_devices[] __initdata = {
static void __init mini2440_map_io(void) static void __init mini2440_map_io(void)
{ {
s3c24xx_init_io(mini2440_iodesc, ARRAY_SIZE(mini2440_iodesc)); s3c24xx_init_io(mini2440_iodesc, ARRAY_SIZE(mini2440_iodesc));
s3c24xx_init_clocks(12000000);
s3c24xx_init_uarts(mini2440_uartcfgs, ARRAY_SIZE(mini2440_uartcfgs)); s3c24xx_init_uarts(mini2440_uartcfgs, ARRAY_SIZE(mini2440_uartcfgs));
samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4);
} }
static void __init mini2440_init_time(void)
{
s3c2440_init_clocks(12000000);
samsung_timer_init();
}
/* /*
* mini2440_features string * mini2440_features string
* *
...@@ -690,6 +694,6 @@ MACHINE_START(MINI2440, "MINI2440") ...@@ -690,6 +694,6 @@ MACHINE_START(MINI2440, "MINI2440")
.map_io = mini2440_map_io, .map_io = mini2440_map_io,
.init_machine = mini2440_init, .init_machine = mini2440_init,
.init_irq = s3c2440_init_irq, .init_irq = s3c2440_init_irq,
.init_time = samsung_timer_init, .init_time = mini2440_init_time,
.restart = s3c244x_restart, .restart = s3c244x_restart,
MACHINE_END MACHINE_END
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
#include <linux/platform_data/i2c-s3c2410.h> #include <linux/platform_data/i2c-s3c2410.h>
#include <plat/gpio-cfg.h> #include <plat/gpio-cfg.h>
#include <plat/clock.h>
#include <plat/devs.h> #include <plat/devs.h>
#include <plat/cpu.h> #include <plat/cpu.h>
#include <plat/samsung-time.h> #include <plat/samsung-time.h>
...@@ -135,13 +134,23 @@ static void __init nexcoder_sensorboard_init(void) ...@@ -135,13 +134,23 @@ static void __init nexcoder_sensorboard_init(void)
static void __init nexcoder_map_io(void) static void __init nexcoder_map_io(void)
{ {
s3c24xx_init_io(nexcoder_iodesc, ARRAY_SIZE(nexcoder_iodesc)); s3c24xx_init_io(nexcoder_iodesc, ARRAY_SIZE(nexcoder_iodesc));
s3c24xx_init_clocks(0);
s3c24xx_init_uarts(nexcoder_uartcfgs, ARRAY_SIZE(nexcoder_uartcfgs)); s3c24xx_init_uarts(nexcoder_uartcfgs, ARRAY_SIZE(nexcoder_uartcfgs));
samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4);
nexcoder_sensorboard_init(); nexcoder_sensorboard_init();
} }
static void __init nexcoder_init_time(void)
{
/*
* for whatever reason the nexcoder called s3c24xx_init_clocks(0)
* meaning a xti value of 0Hz, so this machine will most likely
* not work out of the box and needs a fixup.
*/
s3c2440_init_clocks(0);
samsung_timer_init();
}
static void __init nexcoder_init(void) static void __init nexcoder_init(void)
{ {
s3c_i2c0_set_platdata(NULL); s3c_i2c0_set_platdata(NULL);
...@@ -154,6 +163,6 @@ MACHINE_START(NEXCODER_2440, "NexVision - Nexcoder 2440") ...@@ -154,6 +163,6 @@ MACHINE_START(NEXCODER_2440, "NexVision - Nexcoder 2440")
.map_io = nexcoder_map_io, .map_io = nexcoder_map_io,
.init_machine = nexcoder_init, .init_machine = nexcoder_init,
.init_irq = s3c2440_init_irq, .init_irq = s3c2440_init_irq,
.init_time = samsung_timer_init, .init_time = nexcoder_init_time,
.restart = s3c244x_restart, .restart = s3c244x_restart,
MACHINE_END MACHINE_END
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
#include <linux/mtd/nand_ecc.h> #include <linux/mtd/nand_ecc.h>
#include <linux/mtd/partitions.h> #include <linux/mtd/partitions.h>
#include <plat/clock.h>
#include <plat/cpu.h> #include <plat/cpu.h>
#include <plat/cpu-freq.h> #include <plat/cpu-freq.h>
#include <plat/devs.h> #include <plat/devs.h>
...@@ -389,7 +388,6 @@ static void __init osiris_map_io(void) ...@@ -389,7 +388,6 @@ static void __init osiris_map_io(void)
#endif #endif
s3c24xx_init_io(osiris_iodesc, ARRAY_SIZE(osiris_iodesc)); s3c24xx_init_io(osiris_iodesc, ARRAY_SIZE(osiris_iodesc));
s3c24xx_init_clocks(0);
s3c24xx_init_uarts(osiris_uartcfgs, ARRAY_SIZE(osiris_uartcfgs)); s3c24xx_init_uarts(osiris_uartcfgs, ARRAY_SIZE(osiris_uartcfgs));
samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4);
...@@ -413,6 +411,12 @@ static void __init osiris_map_io(void) ...@@ -413,6 +411,12 @@ static void __init osiris_map_io(void)
local_irq_restore(flags); local_irq_restore(flags);
} }
static void __init osiris_init_time(void)
{
s3c2440_init_clocks(12000000);
samsung_timer_init();
}
static void __init osiris_init(void) static void __init osiris_init(void)
{ {
register_syscore_ops(&osiris_pm_syscore_ops); register_syscore_ops(&osiris_pm_syscore_ops);
...@@ -434,6 +438,6 @@ MACHINE_START(OSIRIS, "Simtec-OSIRIS") ...@@ -434,6 +438,6 @@ MACHINE_START(OSIRIS, "Simtec-OSIRIS")
.map_io = osiris_map_io, .map_io = osiris_map_io,
.init_irq = s3c2440_init_irq, .init_irq = s3c2440_init_irq,
.init_machine = osiris_init, .init_machine = osiris_init,
.init_time = samsung_timer_init, .init_time = osiris_init_time,
.restart = s3c244x_restart, .restart = s3c244x_restart,
MACHINE_END MACHINE_END
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
#include <mach/regs-lcd.h> #include <mach/regs-lcd.h>
#include <mach/gpio-samsung.h> #include <mach/gpio-samsung.h>
#include <plat/clock.h>
#include <plat/cpu.h> #include <plat/cpu.h>
#include <plat/devs.h> #include <plat/devs.h>
#include <plat/pm.h> #include <plat/pm.h>
...@@ -746,7 +745,6 @@ static void __init rx1950_map_io(void) ...@@ -746,7 +745,6 @@ static void __init rx1950_map_io(void)
#endif #endif
s3c24xx_init_io(rx1950_iodesc, ARRAY_SIZE(rx1950_iodesc)); s3c24xx_init_io(rx1950_iodesc, ARRAY_SIZE(rx1950_iodesc));
s3c24xx_init_clocks(16934000);
s3c24xx_init_uarts(rx1950_uartcfgs, ARRAY_SIZE(rx1950_uartcfgs)); s3c24xx_init_uarts(rx1950_uartcfgs, ARRAY_SIZE(rx1950_uartcfgs));
samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4);
...@@ -759,6 +757,12 @@ static void __init rx1950_map_io(void) ...@@ -759,6 +757,12 @@ static void __init rx1950_map_io(void)
s3c_pm_init(); s3c_pm_init();
} }
static void __init rx1950_init_time(void)
{
s3c2442_init_clocks(16934000);
samsung_timer_init();
}
static void __init rx1950_init_machine(void) static void __init rx1950_init_machine(void)
{ {
int i; int i;
...@@ -821,6 +825,6 @@ MACHINE_START(RX1950, "HP iPAQ RX1950") ...@@ -821,6 +825,6 @@ MACHINE_START(RX1950, "HP iPAQ RX1950")
.reserve = rx1950_reserve, .reserve = rx1950_reserve,
.init_irq = s3c2442_init_irq, .init_irq = s3c2442_init_irq,
.init_machine = rx1950_init_machine, .init_machine = rx1950_init_machine,
.init_time = samsung_timer_init, .init_time = rx1950_init_time,
.restart = s3c244x_restart, .restart = s3c244x_restart,
MACHINE_END MACHINE_END
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
#include <mach/regs-lcd.h> #include <mach/regs-lcd.h>
#include <mach/gpio-samsung.h> #include <mach/gpio-samsung.h>
#include <plat/clock.h>
#include <plat/cpu.h> #include <plat/cpu.h>
#include <plat/devs.h> #include <plat/devs.h>
#include <plat/pm.h> #include <plat/pm.h>
...@@ -179,11 +178,16 @@ static struct platform_device *rx3715_devices[] __initdata = { ...@@ -179,11 +178,16 @@ static struct platform_device *rx3715_devices[] __initdata = {
static void __init rx3715_map_io(void) static void __init rx3715_map_io(void)
{ {
s3c24xx_init_io(rx3715_iodesc, ARRAY_SIZE(rx3715_iodesc)); s3c24xx_init_io(rx3715_iodesc, ARRAY_SIZE(rx3715_iodesc));
s3c24xx_init_clocks(16934000);
s3c24xx_init_uarts(rx3715_uartcfgs, ARRAY_SIZE(rx3715_uartcfgs)); s3c24xx_init_uarts(rx3715_uartcfgs, ARRAY_SIZE(rx3715_uartcfgs));
samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4);
} }
static void __init rx3715_init_time(void)
{
s3c2440_init_clocks(16934000);
samsung_timer_init();
}
/* H1940 and RX3715 need to reserve this for suspend */ /* H1940 and RX3715 need to reserve this for suspend */
static void __init rx3715_reserve(void) static void __init rx3715_reserve(void)
{ {
...@@ -210,6 +214,6 @@ MACHINE_START(RX3715, "IPAQ-RX3715") ...@@ -210,6 +214,6 @@ MACHINE_START(RX3715, "IPAQ-RX3715")
.reserve = rx3715_reserve, .reserve = rx3715_reserve,
.init_irq = s3c2440_init_irq, .init_irq = s3c2440_init_irq,
.init_machine = rx3715_init_machine, .init_machine = rx3715_init_machine,
.init_time = samsung_timer_init, .init_time = rx3715_init_time,
.restart = s3c244x_restart, .restart = s3c244x_restart,
MACHINE_END MACHINE_END
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
#include <mach/fb.h> #include <mach/fb.h>
#include <linux/platform_data/i2c-s3c2410.h> #include <linux/platform_data/i2c-s3c2410.h>
#include <plat/clock.h>
#include <plat/devs.h> #include <plat/devs.h>
#include <plat/cpu.h> #include <plat/cpu.h>
#include <plat/samsung-time.h> #include <plat/samsung-time.h>
...@@ -159,11 +158,16 @@ static struct platform_device *smdk2440_devices[] __initdata = { ...@@ -159,11 +158,16 @@ static struct platform_device *smdk2440_devices[] __initdata = {
static void __init smdk2440_map_io(void) static void __init smdk2440_map_io(void)
{ {
s3c24xx_init_io(smdk2440_iodesc, ARRAY_SIZE(smdk2440_iodesc)); s3c24xx_init_io(smdk2440_iodesc, ARRAY_SIZE(smdk2440_iodesc));
s3c24xx_init_clocks(16934400);
s3c24xx_init_uarts(smdk2440_uartcfgs, ARRAY_SIZE(smdk2440_uartcfgs)); s3c24xx_init_uarts(smdk2440_uartcfgs, ARRAY_SIZE(smdk2440_uartcfgs));
samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4);
} }
static void __init smdk2440_init_time(void)
{
s3c2440_init_clocks(16934400);
samsung_timer_init();
}
static void __init smdk2440_machine_init(void) static void __init smdk2440_machine_init(void)
{ {
s3c24xx_fb_set_platdata(&smdk2440_fb_info); s3c24xx_fb_set_platdata(&smdk2440_fb_info);
...@@ -180,6 +184,6 @@ MACHINE_START(S3C2440, "SMDK2440") ...@@ -180,6 +184,6 @@ MACHINE_START(S3C2440, "SMDK2440")
.init_irq = s3c2440_init_irq, .init_irq = s3c2440_init_irq,
.map_io = smdk2440_map_io, .map_io = smdk2440_map_io,
.init_machine = smdk2440_machine_init, .init_machine = smdk2440_machine_init,
.init_time = samsung_timer_init, .init_time = smdk2440_init_time,
.restart = s3c244x_restart, .restart = s3c244x_restart,
MACHINE_END MACHINE_END
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