waterTankDataOperation.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * usb-host.c - OMAP USB Host
  3. *
  4. * This file will contain the board specific details for the
  5. * Synopsys EHCI/OHCI host controller on OMAP3430 and onwards
  6. *
  7. * Copyright (C) 2007-2011 Texas Instruments
  8. * Author: Vikram Pandita <vikram.pandita@ti.com>
  9. * Author: Keshava Munegowda <keshava_mgowda@ti.com>
  10. *
  11. * Generalization by:
  12. * Felipe Balbi <balbi@ti.com>
  13. *
  14. * This program is free software; you can redistribute it and/or modify
  15. * it under the terms of the GNU General Public License version 2 as
  16. * published by the Free Software Foundation.
  17. */
  18. #include <linux/types.h>
  19. #include <linux/errno.h>
  20. #include <linux/delay.h>
  21. #include <linux/platform_device.h>
  22. #include <linux/slab.h>
  23. #include <linux/dma-mapping.h>
  24. #include <asm/io.h>
  25. #include "soc.h"
  26. #include "omap_device.h"
  27. #include "mux.h"
  28. #include "usb.h"
  29. #ifdef CONFIG_MFD_OMAP_USB_HOST
  30. #define OMAP_USBHS_DEVICE "usbhs_omap"
  31. #define OMAP_USBTLL_DEVICE "usbhs_tll"
  32. #define USBHS_UHH_HWMODNAME "usb_host_hs"
  33. #define USBHS_TLL_HWMODNAME "usb_tll_hs"
  34. static struct usbhs_omap_platform_data usbhs_data;
  35. static struct usbtll_omap_platform_data usbtll_data;
  36. static struct ehci_hcd_omap_platform_data ehci_data;
  37. static struct ohci_hcd_omap_platform_data ohci_data;
  38. static struct omap_device_pm_latency omap_uhhtll_latency[] = {
  39. {
  40. .deactivate_func = omap_device_idle_hwmods,
  41. .activate_func = omap_device_enable_hwmods,
  42. .flags = OMAP_DEVICE_LATENCY_AUTO_ADJUST,
  43. },