Skip to contentSkip to conversation

S3C: ide: Add Samsung S3C IDE controller driver

PATCH New Thomas Abraham 4 participants 4 messages Nov 1, 2009 libata

lore
Share & tools
lore
#0 lore raw

PATCH 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 depends the following patch series.
[PATCH 0/7] S3C64XX: Add platform support for Samsung S3C IDE controller driver

Signed-off-by Abhilash Kesavan <a.kesavan <at> samsung.com>
Signed-off-by Thomas Abraham <thomas.ab <at> samsung.com>
---
 drivers/ide/Kconfig    |    9 +
 drivers/ide/Makefile   |    1 +
 drivers/ide/ide-proc.c |    1 +
 drivers/ide/s3c-ide.c  |  822 ++++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/ide.h    |    2 +-
 5 files changed, 834 insertions(+), 1 deletions(-)
 create mode 100644 drivers/ide/s3c-ide.c
drivers/ide/Kconfig +9 -0
index 9a5d0aa..35610bc 100644
@@ -292,6 +292,15 @@ 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
+	select BLK_DEV_IDEDMA
+	help
+	  Say Y here if you want to support onchip CF/IDE controller
+	  in Samsung SoC. It will be configured for True IDE mode with
+	  support for PIO and UDMA mode of data transfer.
+
 config BLK_DEV_IDEDMA_SFF
 	bool
 
drivers/ide/Makefile +1 -0
index 81df925..a64a723 100644
@@ -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
index 3242698..d18478f 100644
@@ -51,6 +51,7 @@ static int proc_ide_read_imodel
 	case 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 +822 -0

822 lines not on this page · raw message

include/linux/ide.h +1 -1
index edc93a6..ff9eb0e 100644
@@ -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
#1 lore raw

PATCH 1/1 S3C: ide: Add Samsung S3C IDE controller driver

Quoted 8 lines · Thomas Abraham

This patch adds Samsung S3C IDE controller driver. This driver supports PIO and UDMA modes of data transfer.

Note: This patch depends the following patch series.
[PATCH 0/7] S3C64XX: Add platform support for Samsung S3C IDE controller driver

Signed-off-by Abhilash Kesavan<a.kesavan<at> samsung.com>
Signed-off-by Thomas Abraham<thomas.ab<at> samsung.com>

A libata driver would be nice, since we are trying to move away from old-IDE.

Jeff

#2 lore raw

PATCH 1/1 S3C: ide: Add Samsung S3C IDE controller driver

From: Jeff Garzik <[email protected]>
Date: Sun, 01 Nov 2009 01:53:25 -0500

Quoted 9 lines · Thomas Abraham
Quoted 8 lines

This patch adds Samsung S3C IDE controller driver. This driver supports
PIO and UDMA modes of data transfer.

Note: This patch depends the following patch series. [PATCH 0/7] S3C64XX: Add platform support for Samsung S3C IDE controller driver

Quoted 5 lines
Quoted 2 lines
Signed-off-by Abhilash Kesavan<a.kesavan<at> samsung.com>
Signed-off-by Thomas Abraham<thomas.ab<at> samsung.com>

A libata driver would be nice, since we are trying to move away from old-IDE.

Yes, I refuse to add new IDE layer drivers to the tree.

#3 lore raw

PATCH 1/1 S3C: ide: Add Samsung S3C IDE controller driver

In reply to Thomas Abraham
Quoted 2 lines · On Sun, 1 Nov 2009 14:07:09 +0900 Thomas Abraham <[email protected]> wrote:

This patch adds Samsung S3C IDE controller driver. This driver supports PIO and UDMA modes of data transfer.

drivers/ide is old code in maintenance mode only. New drivers should be using libata.