|
@@ -42,7 +42,6 @@
|
|
|
#include <linux/platform_data/i2c-s3c2410.h>
|
|
|
|
|
|
#include <plat/gpio-cfg.h>
|
|
|
-#include <plat/clock.h>
|
|
|
#include <plat/devs.h>
|
|
|
#include <plat/cpu.h>
|
|
|
#include <plat/samsung-time.h>
|
|
@@ -135,13 +134,23 @@ static void __init nexcoder_sensorboard_init(void)
|
|
|
static void __init nexcoder_map_io(void)
|
|
|
{
|
|
|
s3c24xx_init_io(nexcoder_iodesc, ARRAY_SIZE(nexcoder_iodesc));
|
|
|
- s3c24xx_init_clocks(0);
|
|
|
s3c24xx_init_uarts(nexcoder_uartcfgs, ARRAY_SIZE(nexcoder_uartcfgs));
|
|
|
samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4);
|
|
|
|
|
|
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)
|
|
|
{
|
|
|
s3c_i2c0_set_platdata(NULL);
|
|
@@ -154,6 +163,6 @@ MACHINE_START(NEXCODER_2440, "NexVision - Nexcoder 2440")
|
|
|
.map_io = nexcoder_map_io,
|
|
|
.init_machine = nexcoder_init,
|
|
|
.init_irq = s3c2440_init_irq,
|
|
|
- .init_time = samsung_timer_init,
|
|
|
+ .init_time = nexcoder_init_time,
|
|
|
.restart = s3c244x_restart,
|
|
|
MACHINE_END
|