Skip to contentSkip to conversation

S3C64XX: Add platform data and driver resources for IDE controller driver.

PATCH New [email protected] 1 participant 1 message Oct 8, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 5/7 S3C64XX: Add platform data and driver resources for IDE controller driver.

From: Thomas Abraham <[email protected]>

This patch adds the following for S3C IDE driver.
- IDE plafrom data strucure definition
- IDE driver resources
- IDE controller GPIO setup code
- IDE platform data setup code
- IDE platform device definition

---
 arch/arm/plat-s3c/include/plat/devs.h |    1 +
 arch/arm/plat-s3c/include/plat/ide.h  |   36 +++++++++++++
 arch/arm/plat-s3c64xx/dev-ide.c       |   88 +++++++++++++++++++++++++++++++++
 3 files changed, 125 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/plat-s3c/include/plat/ide.h
 create mode 100644 arch/arm/plat-s3c64xx/dev-ide.c
arch/arm/plat-s3c/include/plat/devs.h +1 -0
index 0f540ea..4ae0c6a 100644
@@ -52,6 +52,7 @@ extern struct platform_device s3c_device_nand;
 
 extern struct platform_device s3c_device_usbgadget;
 extern struct platform_device s3c_device_usb_hsotg;
+extern struct platform_device s3c_device_cfcon;
 
 /* s3c2440 specific devices */
 
arch/arm/plat-s3c/include/plat/ide.h new file +36 -0
new file mode 100644
index 0000000..3983891
@@ -0,0 +1,36 @@
+/* linux/arch/arm/plat-s3c/include/plat/ide.h
+ *
+ * Copyright (C) 2009 Samsung Electronics
+ * 	http://samsungsemi.com
+ *
+ * S3C IDE Platform data definitions
+ *
+ * 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.
+*/
+
+#ifndef __PLAT_S3C_IDE_H
+#define __PLAT_S3C_IDE_H __FILE__
+
+/**
+ * struct s3c_ide_platdata - S3C IDE driver platform data.
+ * @setup_gpio: Platform specific ide gpio setup function.
+ *
+ */
+struct s3c_ide_platdata {
+	void 	(*setup_gpio)(void);
+};
+
+/*
+ * s3c_ide_set_platdata() - Setup the platform specifc data for IDE driver.
+ * @pdata: Platform data for IDE driver.
+ */
+extern void s3c_ide_set_platdata(struct s3c_ide_platdata *pdata);
+
+/*
+ * s3c64xx_ide_setup_gpio() - Platform specific ide gpio setup function.
+ */
+extern void s3c64xx_ide_setup_gpio(void);
+
+#endif
arch/arm/plat-s3c64xx/dev-ide.c new file +88 -0

88 lines not on this page · raw message

Signature · 1 line
1.5.3.4