smsc_hub.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
  2. *
  3. * This software is licensed under the terms of the GNU General Public
  4. * License version 2, as published by the Free Software Foundation, and
  5. * may be copied, distributed, and modified under those terms.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef __LINUX_SMSC3503_H__
  14. #define __LINUX_SMSC3503_H__
  15. #define SMSC3502_ID 3502
  16. #define SMSC3503_ID 3503
  17. #define SMSC4604_ID 4604
  18. #define SMSC3503_I2C_ADDR 0x08
  19. #define SMSC4604_I2C_ADDR 0x2d
  20. #define SMSC_GSBI_I2C_BUS_ID 0
  21. /*Serial interface Registers*/
  22. #define SMSC3503_VENDORID 0x00 /*u16 read*/
  23. #define SMSC3503_PRODUCTID 0x02 /*u16 read*/
  24. #define SMSC3503_DEVICEID 0x04 /*u16 read*/
  25. #define SMSC3503_CONFIG_BYTE_1 0x06 /*u8 read*/
  26. #define PORT_PWR (1<<0)
  27. #define EOP_DISABLE (1<<3)
  28. #define MTT_ENABLE (1<<4)
  29. #define HS_DISABLE (1<<5)
  30. #define SELF_BUS_PWR (1<<7)
  31. #define SMSC3503_CONFIG_BYTE_2 0x07 /*u8 read*/
  32. #define SMSC3503_LANGID 0x11 /*u16 read*/
  33. #define SMSC3503_MFRSL 0x13 /*u8 read*/
  34. #define SMSC3503_PRDSL 0x14 /*u8 read*/
  35. #define SMSC3503_SERSL 0x15 /*u8 read*/
  36. #define SMSC3503_MANSTR 0x16 /*0x16h-0x53h*/
  37. #define SMSC3503_PRDSTR 0x54 /*0x54h-0x91h*/
  38. #define SMSC3503_SERSTR 0x92 /*0x92h-0xCFh*/
  39. #define SMSC3503_SP_ILOCK 0xE7 /*u8 read, set,clear*/
  40. #define CONFIG_N (1<<0)
  41. #define CONNECT_N (1<<1)
  42. #define PRTPWRPINSEL (1<<4)
  43. #define OCSPINSEL (1<<5)
  44. struct smsc_hub_platform_data {
  45. u32 model_id;
  46. int hub_reset;
  47. int refclk_gpio;
  48. int int_gpio;
  49. int xo_clk_gpio;
  50. };
  51. #endif