aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2410
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2006-03-20 16:02:39 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-03-21 17:06:22 -0500
commitda956fd6b84f61bc98a18a63cdbd8190ec7b8cd0 (patch)
tree9d4728d936017ad37a69aa811f1aa453ac9e7f54 /arch/arm/mach-s3c2410
parentbd20ff5793b4ece4fa3e9e0fcf8e6bbd93526215 (diff)
[ARM] 3375/1: S3C2440 - fix osiris machine build
Patch from Ben Dooks Fix the build of arch/arm/mach-s3c2410/mach-osiris.c and fix the warnings from sparse. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c2410')
-rw-r--r--arch/arm/mach-s3c2410/mach-osiris.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/mach-s3c2410/mach-osiris.c b/arch/arm/mach-s3c2410/mach-osiris.c
index 72083e645e77..ae0787557751 100644
--- a/arch/arm/mach-s3c2410/mach-osiris.c
+++ b/arch/arm/mach-s3c2410/mach-osiris.c
@@ -123,7 +123,7 @@ static int external_map[] = { 2 };
123static int chip0_map[] = { 0 }; 123static int chip0_map[] = { 0 };
124static int chip1_map[] = { 1 }; 124static int chip1_map[] = { 1 };
125 125
126struct mtd_partition osiris_default_nand_part[] = { 126static struct mtd_partition osiris_default_nand_part[] = {
127 [0] = { 127 [0] = {
128 .name = "Boot Agent", 128 .name = "Boot Agent",
129 .size = SZ_16K, 129 .size = SZ_16K,
@@ -249,8 +249,10 @@ static struct s3c24xx_board osiris_board __initdata = {
249 .clocks_count = ARRAY_SIZE(osiris_clocks) 249 .clocks_count = ARRAY_SIZE(osiris_clocks)
250}; 250};
251 251
252void __init osiris_map_io(void) 252static void __init osiris_map_io(void)
253{ 253{
254 unsigned long flags;
255
254 /* initialise the clocks */ 256 /* initialise the clocks */
255 257
256 s3c24xx_dclk0.parent = NULL; 258 s3c24xx_dclk0.parent = NULL;
@@ -272,7 +274,10 @@ void __init osiris_map_io(void)
272 s3c24xx_set_board(&osiris_board); 274 s3c24xx_set_board(&osiris_board);
273 275
274 /* fix bus configuration (nBE settings wrong on ABLE pre v2.20) */ 276 /* fix bus configuration (nBE settings wrong on ABLE pre v2.20) */
277
278 local_irq_save(flags);
275 __raw_writel(__raw_readl(S3C2410_BWSCON) | S3C2410_BWSCON_ST1 | S3C2410_BWSCON_ST2 | S3C2410_BWSCON_ST3 | S3C2410_BWSCON_ST4 | S3C2410_BWSCON_ST5, S3C2410_BWSCON); 279 __raw_writel(__raw_readl(S3C2410_BWSCON) | S3C2410_BWSCON_ST1 | S3C2410_BWSCON_ST2 | S3C2410_BWSCON_ST3 | S3C2410_BWSCON_ST4 | S3C2410_BWSCON_ST5, S3C2410_BWSCON);
280 local_irq_restore(flags);
276 281
277 /* write-protect line to the NAND */ 282 /* write-protect line to the NAND */
278 s3c2410_gpio_setpin(S3C2410_GPA0, 1); 283 s3c2410_gpio_setpin(S3C2410_GPA0, 1);
@@ -280,7 +285,6 @@ void __init osiris_map_io(void)
280 285
281MACHINE_START(OSIRIS, "Simtec-OSIRIS") 286MACHINE_START(OSIRIS, "Simtec-OSIRIS")
282 /* Maintainer: Ben Dooks <ben@simtec.co.uk> */ 287 /* Maintainer: Ben Dooks <ben@simtec.co.uk> */
283 .phys_ram = S3C2410_SDRAM_PA,
284 .phys_io = S3C2410_PA_UART, 288 .phys_io = S3C2410_PA_UART,
285 .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc, 289 .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
286 .boot_params = S3C2410_SDRAM_PA + 0x100, 290 .boot_params = S3C2410_SDRAM_PA + 0x100,