Permalink
Browse files

importing files from sgs2 host driver (this removes kevinh's fixes th…

…ough)

Signed-off-by: stratosk <stratosk@albert.(none)>
  • Loading branch information...
1 parent 17f7137 commit eaccfe7a1c66d0c1bdb092bf132029fb449f4b53 @sztupy sztupy committed with stratosk Jan 18, 2012
Showing with 2,972 additions and 3,550 deletions.
  1. +6 −1 arch/arm/mach-s5pv210/mach-aries.c
  2. +1 −1 drivers/usb/host/s3c-otg/Makefile
  3. +8 −10 drivers/usb/host/s3c-otg/s3c-otg-common-common.h
  4. +6 −6 drivers/usb/host/s3c-otg/s3c-otg-common-const.h
  5. +52 −134 drivers/usb/host/s3c-otg/s3c-otg-common-datastruct.h
  6. +6 −5 drivers/usb/host/s3c-otg/s3c-otg-common-errorcode.h
  7. +10 −10 drivers/usb/host/s3c-otg/s3c-otg-common-regdef.h
  8. +23 −24 drivers/usb/host/s3c-otg/s3c-otg-hcdi-debug.h
  9. +183 −148 drivers/usb/host/s3c-otg/s3c-otg-hcdi-driver.c
  10. +8 −11 drivers/usb/host/s3c-otg/s3c-otg-hcdi-driver.h
  11. +371 −442 drivers/usb/host/s3c-otg/s3c-otg-hcdi-hcd.c
  12. +33 −25 drivers/usb/host/s3c-otg/s3c-otg-hcdi-hcd.h
  13. +178 −185 drivers/usb/host/s3c-otg/s3c-otg-hcdi-kal.h
  14. +71 −79 drivers/usb/host/s3c-otg/s3c-otg-hcdi-list.h
  15. +79 −75 drivers/usb/host/s3c-otg/s3c-otg-hcdi-memory.h
  16. +108 −144 drivers/usb/host/s3c-otg/s3c-otg-isr.c
  17. +7 −7 drivers/usb/host/s3c-otg/s3c-otg-isr.h
  18. +339 −444 drivers/usb/host/s3c-otg/s3c-otg-oci.c
  19. +10 −10 drivers/usb/host/s3c-otg/s3c-otg-oci.h
  20. +325 −403 drivers/usb/host/s3c-otg/s3c-otg-roothub.c
  21. +15 −32 drivers/usb/host/s3c-otg/s3c-otg-roothub.h
  22. +87 −127 drivers/usb/host/s3c-otg/s3c-otg-scheduler-ischeduler.c
  23. +47 −36 drivers/usb/host/s3c-otg/s3c-otg-scheduler-readyq.c
  24. +107 −151 drivers/usb/host/s3c-otg/s3c-otg-scheduler-scheduler.c
  25. +30 −34 drivers/usb/host/s3c-otg/s3c-otg-scheduler-scheduler.h
  26. +250 −319 drivers/usb/host/s3c-otg/s3c-otg-transfer-common.c
  27. +45 −52 drivers/usb/host/s3c-otg/s3c-otg-transfer-nonperiodic.c
  28. +36 −39 drivers/usb/host/s3c-otg/s3c-otg-transfer-periodic.c
  29. +12 −15 drivers/usb/host/s3c-otg/s3c-otg-transfer-transfer.h
  30. +110 −110 drivers/usb/host/s3c-otg/s3c-otg-transferchecker-bulk.c
  31. +14 −14 drivers/usb/host/s3c-otg/s3c-otg-transferchecker-bulk.h
  32. +4 −4 drivers/usb/host/s3c-otg/s3c-otg-transferchecker-checker.h
  33. +82 −116 drivers/usb/host/s3c-otg/s3c-otg-transferchecker-common.c
  34. +6 −6 drivers/usb/host/s3c-otg/s3c-otg-transferchecker-common.h
  35. +163 −182 drivers/usb/host/s3c-otg/s3c-otg-transferchecker-control.c
  36. +16 −17 drivers/usb/host/s3c-otg/s3c-otg-transferchecker-control.h
  37. +110 −118 drivers/usb/host/s3c-otg/s3c-otg-transferchecker-interrupt.c
  38. +14 −14 drivers/usb/host/s3c-otg/s3c-otg-transferchecker-interrupt.h
@@ -5549,8 +5549,13 @@ void otg_host_phy_init(void)
{
__raw_writel(__raw_readl(S5P_USB_PHY_CONTROL)
|(0x1<<0), S5P_USB_PHY_CONTROL); /*USB PHY0 Enable */
+// from galaxy tab otg host:
+// __raw_writel((__raw_readl(S3C_USBOTG_PHYPWR)
+// &~(0x3<<3)&~(0x1<<0))|(0x1<<5), S3C_USBOTG_PHYPWR);
+// from galaxy s2 otg host:
__raw_writel((__raw_readl(S3C_USBOTG_PHYPWR)
- &~(0x3<<3)&~(0x1<<0))|(0x1<<5), S3C_USBOTG_PHYPWR);
+ &~(0x7<<3)&~(0x1<<0)), S3C_USBOTG_PHYPWR);
+
__raw_writel((__raw_readl(S3C_USBOTG_PHYCLK)
&~(0x1<<4))|(0x7<<0), S3C_USBOTG_PHYCLK);
@@ -4,7 +4,7 @@
obj-$(CONFIG_USB_S3C_OTG_HOST) += s3c_otg_hcd.o
-s3c_otg_hcd-objs += s3c-otg-hcdi-driver.o s3c-otg-hcdi-hcd.o
+s3c_otg_hcd-objs += s3c-otg-hcdi-driver.o s3c-otg-hcdi-hcd.o
s3c_otg_hcd-objs += s3c-otg-transfer-common.o s3c-otg-transfer-nonperiodic.o \
s3c-otg-transfer-periodic.o
s3c_otg_hcd-objs += s3c-otg-scheduler-ischeduler.o s3c-otg-scheduler-scheduler.o \
@@ -3,7 +3,7 @@
*
* @file s3c-otg-common-common.h
* @brief it includes common header files for all modules \n
- * @version
+ * @version
* ex)-# Jun 11,2008 v1.0 by SeungSoo Yang (ss1.yang@samsung.com) \n
* : Creating the initial version of this code \n
* @see None
@@ -23,17 +23,17 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
****************************************************************************/
-
+
#ifndef _S3C_OTG_COMMON_COMMON_H_
#define _S3C_OTG_COMMON_COMMON_H_
-
+
#ifdef __cplusplus
extern "C"
{
#endif
-
+
//#include "s3c-otg-common-typedef.h"
-#include "s3c-otg-common-errorcode.h"
+#include "s3c-otg-common-errorcode.h"
#include <linux/errno.h>
#include <linux/usb.h>
@@ -43,9 +43,7 @@ extern "C"
//Kernel Version
#define KERNEL_2_6_21
-#define CHARGER_IC_TEST 0
-
-#ifdef __cplusplus
-}
-#endif
+#ifdef __cplusplus
+}
+#endif
#endif /* _S3C_OTG_COMMON_COMMON_H_ */
@@ -1,12 +1,12 @@
-/****************************************************************************
+/****************************************************************************
* (C) Copyright 2008 Samsung Electronics Co., Ltd., All rights reserved
*
* [File Name] : s3c-otg-common-const.h
* [Description] : The Header file defines constants to be used at sub-modules of S3C6400HCD.
* [Author] : Yang Soon Yeal { syatom.yang@samsung.com }
* [Department] : System LSI Division/System SW Lab
* [Created Date]: 2008/06/03
- * [Revision History]
+ * [Revision History]
* (1) 2008/06/03 by Yang Soon Yeal { syatom.yang@samsung.com }
* - Created s3c-otg-common-const.h file and defines some constants.
*
@@ -27,8 +27,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
****************************************************************************/
-#ifndef _CONST_TYPE_DEF_H_
-#define _CONST_TYPE_DEF_H_
+#ifndef _CONST_TYPE_DEF_H_
+#define _CONST_TYPE_DEF_H_
/*
// ----------------------------------------------------------------------------
@@ -47,9 +47,9 @@ extern "C"
/**
* @def OTG_PORT_NUMBER
- *
+ *
* @brief write~ description
- *
+ *
* describe in detail
*/
#define OTG_PORT_NUMBER 0
Oops, something went wrong.

0 comments on commit eaccfe7

Please sign in to comment.