S3C: ide: Add Samsung S3C IDE controller driver
PATCH v3 1/1 S3C: ide: Add Samsung S3C IDE controller driver
This patch adds Samsung S3C IDE controller driver. This driver supports PIO and UDMA modes of data transfer.
Note: This patch includes suggested changes by Jassi and Marc Zyngier. The UDMA support has also been added in this patch.
Please ignore the following patch.
[PATCH v2] S3C: ide: Add Samsung S3C IDE controller driver.
--- drivers/ide/Kconfig | 22 ++- drivers/ide/Makefile | 1 + drivers/ide/ide-proc.c | 1 + drivers/ide/s3c-ide.c | 810 ++++++++++++++++++++++++++++++++++++++++++++++++ include/linux/ide.h | 2 +- 5 files changed, 834 insertions(+), 2 deletions(-) create mode 100644 drivers/ide/s3c-ide.c
drivers/ide/Kconfig +21 -1
@@ -292,6 +292,26 @@ config BLK_DEV_IDEPNP would like the kernel to automatically detect and activate it, say Y here. +config BLK_DEV_IDE_S3C + tristate "Samsung S3C IDE Controller" + depends on PLAT_S3C64XX + help + Say Y here if you want to support using CF controller on SMDK(Samsung) + development board. It will be configured for true IDE mode. + +config BLK_DEV_IDE_S3C_PIO + bool "Use PIO Mode" + depends on (BLK_DEV_IDE_S3C && !BLK_DEV_IDE_S3C_UDMA) + select IDE_XFER_MODE + help + Say Y here if you want to support the DMA in PIO Mode. + +config BLK_DEV_IDE_S3C_UDMA + bool "Use UDMA Mode" + depends on BLK_DEV_IDE_S3C + help + Say Y here if you want to support the UDMA. + config BLK_DEV_IDEDMA_SFF bool
@@ -910,7 +930,7 @@ endif config BLK_DEV_IDEDMA def_bool BLK_DEV_IDEDMA_SFF || \ - BLK_DEV_IDEDMA_ICS || BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA + BLK_DEV_IDEDMA_ICS || BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA || BLK_DEV_IDE_S3C_UDMA select IDE_XFER_MODE endif # IDE
drivers/ide/Makefile +1 -0
@@ -64,6 +64,7 @@ obj-$(CONFIG_BLK_DEV_SIIMAGE) += siimage.o obj-$(CONFIG_BLK_DEV_SIS5513) += sis5513.o obj-$(CONFIG_BLK_DEV_SL82C105) += sl82c105.o obj-$(CONFIG_BLK_DEV_SLC90E66) += slc90e66.o +obj-$(CONFIG_BLK_DEV_IDE_S3C) += s3c-ide.o obj-$(CONFIG_BLK_DEV_TC86C001) += tc86c001.o obj-$(CONFIG_BLK_DEV_TRIFLEX) += triflex.o obj-$(CONFIG_BLK_DEV_TRM290) += trm290.o
drivers/ide/ide-proc.c +1 -0
@@ -51,6 +51,7 @@ static int proc_ide_read_imodelcase ide_au1xxx: name ="au1xxx" ;break ;case ide_palm3710: name ="palm3710" ;break ;case ide_acorn: name ="acorn" ;break ; +case ide_s3c: name ="s3c-ide" ;break ;default : name ="(unknown)" ;break ; } len =sprintf (page,"%s\n" , name);
drivers/ide/s3c-ide.c new file +810 -0
810 lines not on this page · raw message
include/linux/ide.h +1 -1
@@ -164,7 +164,7 @@ enum { ide_unknown, ide_generic, ide_pci, ide_cmd640, ide_dtc2278, ide_ali14xx, ide_qd65xx, ide_umc8672, ide_ht6560b, ide_4drives, ide_pmac, ide_acorn, - ide_au1xxx, ide_palm3710 + ide_au1xxx, ide_palm3710, ide_s3c };typedef u8 hwif_chipset_t ;
Signature · 1 line
1.5.3.4
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Abraham <[email protected]> writes:
Hi,
Thomas> diff --git a/drivers/ide/Kconfig b/drivers/ide/Kconfig Thomas> index 9a5d0aa..f6a728f 100644
Thomas> --- a/drivers/ide/Kconfig
Thomas> +++ b/drivers/ide/Kconfig
Thomas> @@ -292,6 +292,26 @@ config BLK_DEV_IDEPNP
Thomas> would like the kernel to automatically detect and activate Thomas> it, say Y here.
Thomas> +config BLK_DEV_IDE_S3C
Thomas> + tristate "Samsung S3C IDE Controller"
Thomas> + depends on PLAT_S3C64XX
Thomas> + help
Thomas> + Say Y here if you want to support using CF controller on SMDK(Samsung)
Thomas> + development board. It will be configured for true IDE mode.
Indentation is wrong. Kconfig files are indented with a <tab> (and help text with <tab><space><space>).
Signature · 1 line
Bye, Peter Korsgaard