s3c: mach-real6410: patches for next merge window
Subsystems (3)
cover s3c: mach-real6410: patches for next merge window
Several patches adding support for mach-real6410 and main platform devices. Please see inline patches for detail description and changelogs.
---
Darius Augulis (4):
s3c: add support for mach-real6410
s3c: mach-real6410: add support for dm9000 ethernet
s3c: mach-real6410: add sdhc device support
s3c: mach-real6410: add nand support
arch/arm/mach-s3c64xx/Kconfig | 10 ++ arch/arm/mach-s3c64xx/Makefile | 1 arch/arm/mach-s3c64xx/mach-real6410.c | 193 +++++++++++++++++++++++++++++++++ 3 files changed, 204 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-s3c64xx/mach-real6410.c
Signature · 1 line
Signature
PATCH 1/4 s3c: add support for mach-real6410
Add support for CoreWind Real6410 board,
based on Samsung s3c6410 processor.
Changelog:
* It's renamed patch '[PATCH v2] Support for Real6410'
--- arch/arm/mach-s3c64xx/Kconfig | 6 ++ arch/arm/mach-s3c64xx/Makefile | 1 arch/arm/mach-s3c64xx/mach-real6410.c | 86 +++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-s3c64xx/mach-real6410.c
arch/arm/mach-s3c64xx/Kconfig +6 -0
@@ -88,6 +88,12 @@ config MACH_ANW6410 help Machine support for the A&W6410 +config MACH_REAL6410 + bool "REAL6410" + select CPU_S3C6410 + help + Machine support for the CoreWind REAL6410 + config MACH_SMDK6410 bool "SMDK6410" select CPU_S3C6410
arch/arm/mach-s3c64xx/Makefile +1 -0
@@ -50,6 +50,7 @@ obj-$(CONFIG_PM) += irq-pm.o obj-$(CONFIG_MACH_ANW6410) += mach-anw6410.o obj-$(CONFIG_MACH_SMDK6400) += mach-smdk6400.o obj-$(CONFIG_MACH_SMDK6410) += mach-smdk6410.o +obj-$(CONFIG_MACH_REAL6410) += mach-real6410.o obj-$(CONFIG_MACH_NCP) += mach-ncp.o obj-$(CONFIG_MACH_HMT) += mach-hmt.o obj-$(CONFIG_MACH_SMARTQ) += mach-smartq.o
arch/arm/mach-s3c64xx/mach-real6410.c new file +86 -0
86 lines not on this page · raw message
PATCH 1/4 s3c: add support for mach-real6410
Quoted 36 lines · Darius Augulis
Add support for CoreWind Real6410 board,
based on Samsung s3c6410 processor.Changelog:
* It's renamed patch '[PATCH v2] Support for Real6410'Signed-off-by Darius Augulis<[email protected]>--- arch/arm/mach-s3c64xx/Kconfig | 6 ++ arch/arm/mach-s3c64xx/Makefile | 1 arch/arm/mach-s3c64xx/mach-real6410.c | 86 +++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 0 deletions(-)create mode 100644
arch/arm/mach-s3c64xx/mach-real6410.carch/arm/mach-s3c64xx/Kconfig +6
-0@@ -88,6 +88,12 @@ config MACH_ANW6410 help Machine support for the A&W6410 +config MACH_REAL6410 + bool "REAL6410" + select CPU_S3C6410 + help + Machine support for the CoreWind REAL6410 + config MACH_SMDK6410 bool "SMDK6410" select CPU_S3C6410arch/arm/mach-s3c64xx/Makefile +0
-0
arch/arm/mach-s3c64xx/Makefile obj-$(CONFIG_PM) += irq-pm.o · line 53
Quoted 4 lines
arch/arm/mach-s3c64xx/Makefile +1
-0@@ -50,6 +50,7 @@ obj-$(CONFIG_PM) += irq-pm.o obj-$(CONFIG_MACH_ANW6410) += mach-anw6410.o obj-$(CONFIG_MACH_SMDK6400) += mach-smdk6400.o obj-$(CONFIG_MACH_SMDK6410) += mach-smdk6410.o +obj-$(CONFIG_MACH_REAL6410) += mach-real6410.o
Use TAB instead of spaces here ^^^^^
PATCH 1/4 s3c: add support for mach-real6410
Quoted 38 lines · Paulius Zaleckas
Quoted 37 lines · Darius Augulis
Add support for CoreWind Real6410 board,
based on Samsung s3c6410 processor.Changelog:
* It's renamed patch '[PATCH v2] Support for Real6410'Signed-off-by Darius Augulis<[email protected]>---
arch/arm/mach-s3c64xx/Kconfig| 6 ++arch/arm/mach-s3c64xx/Makefile| 1arch/arm/mach-s3c64xx/mach-real6410.c| 86
+++++++++++++++++++++++++++++++++3 files changed, 93 insertions(+), 0 deletions(-)create mode 100644
arch/arm/mach-s3c64xx/mach-real6410.carch/arm/mach-s3c64xx/Kconfig +0
-0@@ -88,6 +88,12 @@ config MACH_ANW6410help
Machine support for the A&W6410arch/arm/mach-s3c64xx/Kconfig +6
-0+config MACH_REAL6410 + bool "REAL6410" + select CPU_S3C6410 + help + Machine support for the CoreWind REAL6410 +config
MACH_SMDK6410
bool "SMDK6410"
selectCPU_S3C6410arch/arm/mach-s3c64xx/Makefile +0
-1--- a/arch/arm/mach-s3c64xx/Makefile
Quoted 8 lines
Quoted 6 lines
+++ b/arch/arm/mach-s3c64xx/Makefile
arch/arm/mach-s3c64xx/Makefile +0
-0@@ -50,6 +50,7 @@ obj-$(CONFIG_PM) += irq-pm.oobj-$(CONFIG_MACH_ANW6410) += mach-anw6410.o
obj-$(CONFIG_MACH_SMDK6400) += mach-smdk6400.o
obj-$(CONFIG_MACH_SMDK6410) += mach-smdk6410.o
+obj-$(CONFIG_MACH_REAL6410) += mach-real6410.oUse TAB instead of spaces here ^^^^^
ok, I have fixed version.
Kukjin, could you review these patches and merge into your branch for-next? Should I re-send this patch if there is only this minor issue?
PATCH 1/4 s3c: add support for mach-real6410
In reply to Darius AugulisQuoted 4 lines · Darius Augulis
Add support for CoreWind Real6410 board,
based on Samsung s3c6410 processor.
Hi,
Please make sure that your patch has no problem with scripts/checkpatch.pl before submitting. I got the following result on this patch :-(
===
ERROR: Macros with complex values should be enclosed in parenthesis
#82: FILE: arch/arm/mach-s3c64xx/mach-real6410.c:30:
+#define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
ERROR: Macros with complex values should be enclosed in parenthesis #83: FILE: arch/arm/mach-s3c64xx/mach-real6410.c:31:
+#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
ERROR: Macros with complex values should be enclosed in parenthesis #84: FILE: arch/arm/mach-s3c64xx/mach-real6410.c:32:
+#define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE
total: 3 errors, 1 warnings, 105 lines checked
===
Quoted 3 lines
Changelog:
* It's renamed patch '[PATCH v2] Support for Real6410'
This 'Changelog' should being next of "---", because if this is being here, merged into the commit when maintainer apply this in his tree.
Quoted 2 lines
Signed-off-by Darius Augulis <[email protected]>---
If you want to add any comments or notes, please adding here.
Quoted 75 lines
arch/arm/mach-s3c64xx/Kconfig | 6 ++ arch/arm/mach-s3c64xx/Makefile | 1 arch/arm/mach-s3c64xx/mach-real6410.c | 86 +++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-s3c64xx/mach-real6410.carch/arm/mach-s3c64xx/Kconfig +6
-0@@ -88,6 +88,12 @@ config MACH_ANW6410 help Machine support for the A&W6410 +config MACH_REAL6410 + bool "REAL6410" + select CPU_S3C6410 + help + Machine support for the CoreWind REAL6410 + config MACH_SMDK6410 bool "SMDK6410" select CPU_S3C6410arch/arm/mach-s3c64xx/Makefile +1
-0@@ -50,6 +50,7 @@ obj-$(CONFIG_PM) += irq-pm.o obj-$(CONFIG_MACH_ANW6410) += mach-anw6410.o obj-$(CONFIG_MACH_SMDK6400) += mach-smdk6400.o obj-$(CONFIG_MACH_SMDK6410) += mach-smdk6410.o +obj-$(CONFIG_MACH_REAL6410) += mach-real6410.o obj-$(CONFIG_MACH_NCP) += mach-ncp.o obj-$(CONFIG_MACH_HMT) += mach-hmt.o obj-$(CONFIG_MACH_SMARTQ) += mach-smartq.oarch/arm/mach- renamed from arch/arm/mach-s3c64xx/mach-real6410.c +0
-0
s3c64xx/mach-real6410.c
new file mode 100644
index 0000000..04a472aarch/arm/mach-s3c64xx/mach-real6410.c new file +31
-0@@ -0,0 +1,86 @@ +/* linux/arch/arm/mach-s3c64xx/mach-real6410.c +* +* Copyright 2010 Darius Augulis <[email protected]> +* Copyright 2008 Openmoko, Inc. +* Copyright 2008 Simtec Electronics +* Ben Dooks <[email protected]> +* http://armlinux.simtec.co.uk/ +* +* 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/kernel.h> +#include <linux/types.h> +#include <linux/interrupt.h> +#include <linux/list.h> +#include <linux/init.h> +#include <linux/serial_core.h> +#include <linux/platform_device.h> +#include <asm/mach-types.h> +#include <asm/mach/arch.h> +#include <asm/mach/map.h> +#include <mach/map.h> +#include <mach/s3c6410.h> +#include <plat/cpu.h> +#include <plat/regs-serial.h> + +#define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK +#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE |
S3C2410_LCON_STOPB
arch/arm/mach-s3c64xx/mach-real6410.c line 36
Quoted 5 lines
arch/arm/mach-s3c64xx/mach-real6410.c new file +5
-0+#define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE + +static struct s3c2410_uartcfg real6410_uartcfgs[]__initdata = { + [0 ] = { + .hwport =0 ,
^^^^^
Please use tab here
Quoted 15 lines
arch/arm/mach-s3c64xx/mach-real6410.c new file +15
-0+ .flags = 0, + .ucon = UCON, + .ulcon = ULCON, + .ufcon = UFCON, + }, + [1] = { + .hwport = 1, + .flags = 0, + .ucon = UCON, + .ulcon = ULCON, + .ufcon = UFCON, + }, + [2] = { + .hwport = 2, + .flags = 0,
arch/arm/mach-s3c64xx/mach-real6410.c line 61
Quoted 10 lines
arch/arm/mach-s3c64xx/mach-real6410.c new file +10
-0+ .ucon = UCON, + .ulcon = ULCON, + .ufcon = UFCON, + }, + [3] = { + .hwport = 3, + .flags = 0, + .ucon = UCON, + .ulcon = ULCON, + .ufcon = UFCON,
Same...please use tab above between hwport, flags, ucon, ulcon, ufcon and '='.
Quoted 15 lines
arch/arm/mach-s3c64xx/mach-real6410.c new file +15
-0+ }, +}; + +static void __init real6410_map_io (void ) +{ +s3c64xx_init_io (NULL ,0 ); +s3c24xx_init_clocks (12000000 ); +s3c24xx_init_uarts (real6410_uartcfgs,ARRAY_SIZE (real6410_uartcfgs)); +} + +static void __init real6410_machine_init (void ) +{ +} + +MACHINE_START (REAL6410 ,"REAL6410" )
arch/arm/mach-s3c64xx/mach-real6410.c line 86
Quoted 10 lines
arch/arm/mach-s3c64xx/mach-real6410.c new file +10
-0+/* Maintainer: Darius Augulis <[email protected]> */ + .phys_io = S3C_PA_UART & 0xfff00000, + .io_pg_offst = (((u32)S3C_VA_UART) >> 18) & 0xfffc, + .boot_params = S3C64XX_PA_SDRAM + 0x100, + + .init_irq = s3c6410_init_irq, + .map_io = real6410_map_io, + .init_machine = real6410_machine_init, + .timer = &s3c24xx_timer, +MACHINE_END
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH 1/4 s3c: add support for mach-real6410
Quoted 9 lines · Kukjin Kim
Quoted 4 lines · Darius Augulis
Add support for CoreWind Real6410 board,
based on Samsung s3c6410 processor.Hi,
Please make sure that your patch has no problem with
scripts/checkpatch.plbefore submitting. I got the following result on this patch :-(
thanks for review and remind about checkpatch script. Will send updated patches today evening.
Quoted 171 lines
===
ERROR: Macros with complex values should be enclosed in parenthesis #82: FILE:arch/arm/mach-s3c64xx/mach-real6410.c:30:
+#define UCONS3C2410_UCON_DEFAULT|S3C2410_UCON_UCLKERROR: Macros with complex values should be enclosed in parenthesis #83: FILE:
arch/arm/mach-s3c64xx/mach-real6410.c:31:
+#define ULCONS3C2410_LCON_CS8|S3C2410_LCON_PNONE|S3C2410_LCON_STOPBERROR: Macros with complex values should be enclosed in parenthesis #84: FILE:
arch/arm/mach-s3c64xx/mach-real6410.c:32:
+#define UFCONS3C2410_UFCON_RXTRIG8|S3C2410_UFCON_FIFOMODEtotal: 3 errors, 1 warnings, 105 lines checked
===Quoted 3 lines
Changelog:
* It's renamed patch '[PATCH v2] Support for Real6410'This 'Changelog' should being next of "---", because if this is being here, merged into the commit when maintainer apply this in his tree.
Quoted 2 lines
Signed-off-by Darius Augulis<[email protected]>---
If you want to add any comments or notes, please adding here.
Quoted 75 lines
arch/arm/mach-s3c64xx/Kconfig | 6 ++ arch/arm/mach-s3c64xx/Makefile | 1 arch/arm/mach-s3c64xx/mach-real6410.c | 86 +++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 0 deletions(-)create mode 100644
arch/arm/mach-s3c64xx/mach-real6410.carch/arm/mach-s3c64xx/Kconfig +6
-0@@ -88,6 +88,12 @@ config MACH_ANW6410 help Machine support for the A&W6410 +config MACH_REAL6410 + bool "REAL6410" + select CPU_S3C6410 + help + Machine support for the CoreWind REAL6410 + config MACH_SMDK6410 bool "SMDK6410" select CPU_S3C6410arch/arm/mach-s3c64xx/Makefile +1
-0@@ -50,6 +50,7 @@ obj-$(CONFIG_PM) += irq-pm.o obj-$(CONFIG_MACH_ANW6410) += mach-anw6410.o obj-$(CONFIG_MACH_SMDK6400) += mach-smdk6400.o obj-$(CONFIG_MACH_SMDK6410) += mach-smdk6410.o +obj-$(CONFIG_MACH_REAL6410) += mach-real6410.o obj-$(CONFIG_MACH_NCP) += mach-ncp.o obj-$(CONFIG_MACH_HMT) += mach-hmt.o obj-$(CONFIG_MACH_SMARTQ) += mach-smartq.oarch/arm/mach- renamed from arch/arm/mach-s3c64xx/mach-real6410.c +0
-0
s3c64xx/mach-real6410.c
new file mode 100644
index 0000000..04a472aarch/arm/mach-s3c64xx/mach-real6410.c new file +31
-0@@ -0,0 +1,86 @@ +/* linux/arch/arm/mach-s3c64xx/mach-real6410.c +* +* Copyright 2010 Darius Augulis<[email protected]> +* Copyright 2008 Openmoko, Inc. +* Copyright 2008 Simtec Electronics +* Ben Dooks<[email protected]> +* http://armlinux.simtec.co.uk/ +* +* 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/kernel.h> +#include <linux/types.h> +#include <linux/interrupt.h> +#include <linux/list.h> +#include <linux/init.h> +#include <linux/serial_core.h> +#include <linux/platform_device.h> +#include <asm/mach-types.h> +#include <asm/mach/arch.h> +#include <asm/mach/map.h> +#include <mach/map.h> +#include <mach/s3c6410.h> +#include <plat/cpu.h> +#include <plat/regs-serial.h> + +#define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK +#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE |
S3C2410_LCON_STOPBarch/arm/mach-s3c64xx/mach-real6410.c line 36
Quoted 5 lines
arch/arm/mach-s3c64xx/mach-real6410.c new file +5
-0+#define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE + +static struct s3c2410_uartcfg real6410_uartcfgs[]__initdata = { + [0 ] = { + .hwport =0 ,^^^^^Please use tab here
Quoted 15 lines
arch/arm/mach-s3c64xx/mach-real6410.c new file +15
-0+ .flags = 0, + .ucon = UCON, + .ulcon = ULCON, + .ufcon = UFCON, + }, + [1] = { + .hwport = 1, + .flags = 0, + .ucon = UCON, + .ulcon = ULCON, + .ufcon = UFCON, + }, + [2] = { + .hwport = 2, + .flags = 0,arch/arm/mach-s3c64xx/mach-real6410.c line 61
Quoted 10 lines
arch/arm/mach-s3c64xx/mach-real6410.c new file +10
-0+ .ucon = UCON, + .ulcon = ULCON, + .ufcon = UFCON, + }, + [3] = { + .hwport = 3, + .flags = 0, + .ucon = UCON, + .ulcon = ULCON, + .ufcon = UFCON,Same...please use tab above between hwport, flags, ucon, ulcon, ufcon and '='.
Quoted 15 lines
arch/arm/mach-s3c64xx/mach-real6410.c new file +15
-0+ }, +}; + +static void __init real6410_map_io (void ) +{ +s3c64xx_init_io (NULL ,0 ); +s3c24xx_init_clocks (12000000 ); +s3c24xx_init_uarts (real6410_uartcfgs,ARRAY_SIZE (real6410_uartcfgs)); +} + +static void __init real6410_machine_init (void ) +{ +} + +MACHINE_START (REAL6410 ,"REAL6410" )arch/arm/mach-s3c64xx/mach-real6410.c line 86
Quoted 10 lines
arch/arm/mach-s3c64xx/mach-real6410.c new file +10
-0+/* Maintainer: Darius Augulis<[email protected]> */ + .phys_io = S3C_PA_UART& 0xfff00000, + .io_pg_offst = (((u32)S3C_VA_UART)>> 18)& 0xfffc, + .boot_params = S3C64XX_PA_SDRAM + 0x100, + + .init_irq = s3c6410_init_irq, + .map_io = real6410_map_io, + .init_machine = real6410_machine_init, + .timer =&s3c24xx_timer, +MACHINE_END Thanks.
Best regards,
Kgene.
--
Kukjin Kim<[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH 2/4 s3c: mach-real6410: add support for dm9000 ethernet
In reply to Darius AugulisChangelog:
* Renamed from 's3c: add dm9000 ethernet support for mach-real6410'
* Added IORESOURCE_IRQ_HIGHLEVEL to irq resource flags
--- arch/arm/mach-s3c64xx/mach-real6410.c | 63 +++++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-)
arch/arm/mach-s3c64xx/mach-real6410.c +63 -0
@@ -17,6 +17,7 @@#include <linux/interrupt.h> #include <linux/list.h> #include <linux/init.h> +#include <linux/dm9000.h> #include <linux/serial_core.h> #include <linux/platform_device.h> #include <asm/mach-types.h>
@@ -24,6 +25,7 @@#include <asm/mach/map.h> #include <mach/map.h> #include <mach/s3c6410.h> +#include <mach/regs-srom.h> #include <plat/cpu.h> #include <plat/regs-serial.h>
@@ -62,6 +64,44 @@ static struct s3c2410_uartcfg real6410_uartcfgs[] __initdata = { }, }; +/* DM9000AEP 10/100 ethernet controller */ + +static struct resource real6410_dm9k_resource[] = { + [0 ] = { + .start =S3C64XX_PA_XM0CSN1 , + .end =S3C64XX_PA_XM0CSN1 +1 , + .flags =IORESOURCE_MEM + }, + [1 ] = { + .start =S3C64XX_PA_XM0CSN1 +4 , + .end =S3C64XX_PA_XM0CSN1 +5 , + .flags =IORESOURCE_MEM + }, + [2 ] = { + .start =S3C_EINT (7 ), + .end =S3C_EINT (7 ), + .flags =IORESOURCE_IRQ |IORESOURCE_IRQ_HIGHLEVEL , + } +}; + +static struct dm9000_plat_data real6410_dm9k_pdata = { + .flags = (DM9000_PLATF_16BITONLY |DM9000_PLATF_NO_EEPROM ), +}; + +static struct platform_device real6410_device_eth = { + .name ="dm9000" , + .id =-1 , + .num_resources =ARRAY_SIZE (real6410_dm9k_resource), + .resource = real6410_dm9k_resource, + .dev = { + .platform_data = &real6410_dm9k_pdata, + }, +}; + +static struct platform_device *real6410_devices[]__initdata = { + &real6410_device_eth, +}; +static void __init real6410_map_io (void ) {s3c64xx_init_io (NULL ,0 );
@@ -71,6 +111,29 @@ static void __init real6410_map_io(void)static void __init real6410_machine_init (void ) { +u32 cs1; + +/* configure nCS1 width to 16 bits */ + + cs1 =__raw_readl (S3C64XX_SROM_BW ) & + ~(S3C64XX_SROM_BW__CS_MASK <<S3C64XX_SROM_BW__NCS1__SHIFT ); + cs1 |= ((1 <<S3C64XX_SROM_BW__DATAWIDTH__SHIFT ) | + (1 <<S3C64XX_SROM_BW__WAITENABLE__SHIFT ) | + (1 <<S3C64XX_SROM_BW__BYTEENABLE__SHIFT )) << +S3C64XX_SROM_BW__NCS1__SHIFT ; +__raw_writel (cs1,S3C64XX_SROM_BW ); + +/* set timing for nCS1 suitable for ethernet chip */ + +__raw_writel ((0 <<S3C64XX_SROM_BCX__PMC__SHIFT ) | + (6 <<S3C64XX_SROM_BCX__TACP__SHIFT ) | + (4 <<S3C64XX_SROM_BCX__TCAH__SHIFT ) | + (1 <<S3C64XX_SROM_BCX__TCOH__SHIFT ) | + (13 <<S3C64XX_SROM_BCX__TACC__SHIFT ) | + (4 <<S3C64XX_SROM_BCX__TCOS__SHIFT ) | + (0 <<S3C64XX_SROM_BCX__TACS__SHIFT ),S3C64XX_SROM_BC1 ); + +platform_add_devices (real6410_devices,ARRAY_SIZE (real6410_devices)); }MACHINE_START (REAL6410 ,"REAL6410" )
PATCH 2/4 s3c: mach-real6410: add support for dm9000 ethernet
Quoted 1 line · Darius Augulis
Hi,
Where is your description/commit message?
Quoted 3 lines
Changelog:
* Renamed from 's3c: add dm9000 ethernet support for mach-real6410'
* AddedIORESOURCE_IRQ_HIGHLEVELto irq resource flags
As I said, should be moved next of "---" line.
Quoted 1 line
Same...please checking with script/checkpatch.pl... Following is result...
==
ERROR: code indent should use tabs where possible #40: FILE: arch/arm/mach-s3c64xx/mach-real6410.c:70:
+ [0] = {$
(snip)
ERROR: code indent should use tabs where possible #68: FILE: arch/arm/mach-s3c64xx/mach-real6410.c:98:
+ },$
total: 23 errors, 0 warnings, 87 lines checked
==
Quoted 105 lines
Signed-off-by Darius Augulis <[email protected]>--- arch/arm/mach-s3c64xx/mach-real6410.c | 63 +++++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-)arch/arm/mach- renamed from arch/arm/mach-s3c64xx/mach-real6410.c +0
-0
s3c64xx/mach-real6410.c
index 04a472a..4aaee3f 100644arch/arm/mach-s3c64xx/mach-real6410.c +40
-0@@ -17,6 +17,7 @@#include <linux/interrupt.h> #include <linux/list.h> #include <linux/init.h> +#include <linux/dm9000.h> #include <linux/serial_core.h> #include <linux/platform_device.h> #include <asm/mach-types.h> @@ -24,6 +25,7 @@#include <asm/mach/map.h> #include <mach/map.h> #include <mach/s3c6410.h> +#include <mach/regs-srom.h> #include <plat/cpu.h> #include <plat/regs-serial.h> @@ -62,6 +64,44 @@ static struct s3c2410_uartcfg real6410_uartcfgs[] __initdata = { }, }; +/* DM9000AEP 10/100 ethernet controller */ + +static struct resource real6410_dm9k_resource[] = { + [0 ] = { + .start =S3C64XX_PA_XM0CSN1 , + .end =S3C64XX_PA_XM0CSN1 +1 , + .flags =IORESOURCE_MEM + }, + [1 ] = { + .start =S3C64XX_PA_XM0CSN1 +4 , + .end =S3C64XX_PA_XM0CSN1 +5 , + .flags =IORESOURCE_MEM + }, + [2 ] = { + .start =S3C_EINT (7 ), + .end =S3C_EINT (7 ), + .flags =IORESOURCE_IRQ |IORESOURCE_IRQ_HIGHLEVEL , + } +}; + +static struct dm9000_plat_data real6410_dm9k_pdata = { + .flags = (DM9000_PLATF_16BITONLY |DM9000_PLATF_NO_EEPROM ), +}; + +static struct platform_device real6410_device_eth = { + .name ="dm9000" , + .id =-1 , + .num_resources =ARRAY_SIZE (real6410_dm9k_resource), + .resource = real6410_dm9k_resource, + .dev = { + .platform_data = &real6410_dm9k_pdata, + }, +}; + +static struct platform_device *real6410_devices[]__initdata = { + &real6410_device_eth, +}; +static void __init real6410_map_io (void ){
arch/arm/mach-s3c64xx/mach-real6410.c +23
-0s3c64xx_init_io (NULL ,0 );@@ -71,6 +111,29 @@ static void __init real6410_map_io(void)static void __init real6410_machine_init (void ) { +u32 cs1; + +/* configure nCS1 width to 16 bits */ + + cs1 =__raw_readl (S3C64XX_SROM_BW ) & + ~(S3C64XX_SROM_BW__CS_MASK <<S3C64XX_SROM_BW__NCS1__SHIFT ); + cs1 |= ((1 <<S3C64XX_SROM_BW__DATAWIDTH__SHIFT ) | + (1 <<S3C64XX_SROM_BW__WAITENABLE__SHIFT ) | + (1 <<S3C64XX_SROM_BW__BYTEENABLE__SHIFT )) << +S3C64XX_SROM_BW__NCS1__SHIFT ; +__raw_writel (cs1,S3C64XX_SROM_BW ); + +/* set timing for nCS1 suitable for ethernet chip */ + +__raw_writel ((0 <<S3C64XX_SROM_BCX__PMC__SHIFT ) | + (6 <<S3C64XX_SROM_BCX__TACP__SHIFT ) | + (4 <<S3C64XX_SROM_BCX__TCAH__SHIFT ) | + (1 <<S3C64XX_SROM_BCX__TCOH__SHIFT ) | + (13 <<S3C64XX_SROM_BCX__TACC__SHIFT ) | + (4 <<S3C64XX_SROM_BCX__TCOS__SHIFT ) | + (0 <<S3C64XX_SROM_BCX__TACS__SHIFT ),S3C64XX_SROM_BC1 ); + +platform_add_devices (real6410_devices,ARRAY_SIZE (real6410_devices)); }
Quoted 1 line
MACHINE_START(REAL6410, "REAL6410")
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH RESEND 3/4 s3c: mach-real6410: add sdhc device support
In reply to Darius Augulis--- arch/arm/mach-s3c64xx/Kconfig | 3 +++ arch/arm/mach-s3c64xx/mach-real6410.c | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-)
arch/arm/mach-s3c64xx/Kconfig +3 -0
@@ -91,6 +91,9 @@ config MACH_ANW6410 config MACH_REAL6410 bool "REAL6410" select CPU_S3C6410 + select S3C_DEV_HSMMC + select S3C_DEV_HSMMC1 + select S3C64XX_SETUP_SDHCI help Machine support for the CoreWind REAL6410
arch/arm/mach-s3c64xx/mach-real6410.c +3 -0
@@ -27,6 +27,7 @@#include <mach/s3c6410.h> #include <mach/regs-srom.h> #include <plat/cpu.h> +#include <plat/devs.h> #include <plat/regs-serial.h> #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
@@ -100,6 +101,8 @@ static struct platform_device real6410_device_eth = {static struct platform_device *real6410_devices[]__initdata = { &real6410_device_eth, + &s3c_device_hsmmc0, + &s3c_device_hsmmc1, };static void __init real6410_map_io (void )
PATCH 4/4 s3c: mach-real6410: add nand support
In reply to Darius AugulisAdd nand device support and mtd partition table
for mach-real6410
--- arch/arm/mach-s3c64xx/Kconfig | 1 + arch/arm/mach-s3c64xx/mach-real6410.c | 41 +++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 0 deletions(-)
arch/arm/mach-s3c64xx/Kconfig +1 -0
@@ -93,6 +93,7 @@ config MACH_REAL6410 select CPU_S3C6410 select S3C_DEV_HSMMC select S3C_DEV_HSMMC1 + select S3C_DEV_NAND select S3C64XX_SETUP_SDHCI help Machine support for the CoreWind REAL6410
arch/arm/mach-s3c64xx/mach-real6410.c +41 -0
69 lines not on this page · raw message
cover s3c: mach-real6410: patches for next merge window
In reply to Darius AugulisQuoted 3 lines · Darius Augulis
Several patches adding support for mach-real6410 and main platform devices. Please see inline patches for detail description and changelogs.
All these are tested by myself on board REAL6410 v3.2
Quoted 16 lines
---
Darius Augulis (4):
s3c: add support for mach-real6410
s3c: mach-real6410: add support for dm9000 ethernet
s3c: mach-real6410: add sdhc device support
s3c: mach-real6410: add nand supportarch/arm/mach-s3c64xx/Kconfig | 10 ++ arch/arm/mach-s3c64xx/Makefile | 1 arch/arm/mach-s3c64xx/mach-real6410.c | 193 +++++++++++++++++++++++++++++++++ 3 files changed, 204 insertions(+), 0 deletions(-)create mode 100644
arch/arm/mach-s3c64xx/mach-real6410.c