blob: 9c0afc09117b9ffa14887afc80577402d39ac1f8 [file] [log] [blame]
Manu Gautamfdd173a2013-04-12 11:23:45 +05301/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Vijayavardhan Vennapusaafbbb8f2012-04-13 16:28:45 +05302 *
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
14#ifndef __LINUX_SMSC3503_H__
15#define __LINUX_SMSC3503_H__
16
Eugene Yasman4b1935f2013-08-13 04:08:21 +030017#define SMSC3503_ID 3503
18#define SMSC4604_ID 4604
19#define SMSC3503_I2C_ADDR 0x08
20#define SMSC4604_I2C_ADDR 0x2d
21#define SMSC_GSBI_I2C_BUS_ID 0
22
Vijayavardhan Vennapusa361da682012-04-12 19:50:02 +053023/*Serial interface Registers*/
24#define SMSC3503_VENDORID 0x00 /*u16 read*/
25#define SMSC3503_PRODUCTID 0x02 /*u16 read*/
26#define SMSC3503_DEVICEID 0x04 /*u16 read*/
27
28#define SMSC3503_CONFIG_BYTE_1 0x06 /*u8 read*/
29#define PORT_PWR (1<<0)
30#define EOP_DISABLE (1<<3)
31#define MTT_ENABLE (1<<4)
32#define HS_DISABLE (1<<5)
33#define SELF_BUS_PWR (1<<7)
34
35#define SMSC3503_CONFIG_BYTE_2 0x07 /*u8 read*/
36#define SMSC3503_LANGID 0x11 /*u16 read*/
37#define SMSC3503_MFRSL 0x13 /*u8 read*/
38#define SMSC3503_PRDSL 0x14 /*u8 read*/
39#define SMSC3503_SERSL 0x15 /*u8 read*/
40#define SMSC3503_MANSTR 0x16 /*0x16h-0x53h*/
41#define SMSC3503_PRDSTR 0x54 /*0x54h-0x91h*/
42#define SMSC3503_SERSTR 0x92 /*0x92h-0xCFh*/
43
44#define SMSC3503_SP_ILOCK 0xE7 /*u8 read, set,clear*/
45#define CONFIG_N (1<<0)
46#define CONNECT_N (1<<1)
47#define PRTPWRPINSEL (1<<4)
48#define OCSPINSEL (1<<5)
49
Vijayavardhan Vennapusaafbbb8f2012-04-13 16:28:45 +053050struct smsc_hub_platform_data {
Eugene Yasman4b1935f2013-08-13 04:08:21 +030051 u32 model_id;
Manu Gautamfdd173a2013-04-12 11:23:45 +053052 int hub_reset;
53 int refclk_gpio;
54 int int_gpio;
Vijayavardhan Vennapusaafbbb8f2012-04-13 16:28:45 +053055};
56
57#endif