blob: 857ad1f60485a1bf46e0bad9121645121a54801c [file] [log] [blame]
Vijayavardhan Vennapusaafbbb8f2012-04-13 16:28:45 +05301/* Copyright (c) 2012, Code Aurora Forum. 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
14#ifndef __LINUX_SMSC3503_H__
15#define __LINUX_SMSC3503_H__
16
Vijayavardhan Vennapusa361da682012-04-12 19:50:02 +053017/*Serial interface Registers*/
18#define SMSC3503_VENDORID 0x00 /*u16 read*/
19#define SMSC3503_PRODUCTID 0x02 /*u16 read*/
20#define SMSC3503_DEVICEID 0x04 /*u16 read*/
21
22#define SMSC3503_CONFIG_BYTE_1 0x06 /*u8 read*/
23#define PORT_PWR (1<<0)
24#define EOP_DISABLE (1<<3)
25#define MTT_ENABLE (1<<4)
26#define HS_DISABLE (1<<5)
27#define SELF_BUS_PWR (1<<7)
28
29#define SMSC3503_CONFIG_BYTE_2 0x07 /*u8 read*/
30#define SMSC3503_LANGID 0x11 /*u16 read*/
31#define SMSC3503_MFRSL 0x13 /*u8 read*/
32#define SMSC3503_PRDSL 0x14 /*u8 read*/
33#define SMSC3503_SERSL 0x15 /*u8 read*/
34#define SMSC3503_MANSTR 0x16 /*0x16h-0x53h*/
35#define SMSC3503_PRDSTR 0x54 /*0x54h-0x91h*/
36#define SMSC3503_SERSTR 0x92 /*0x92h-0xCFh*/
37
38#define SMSC3503_SP_ILOCK 0xE7 /*u8 read, set,clear*/
39#define CONFIG_N (1<<0)
40#define CONNECT_N (1<<1)
41#define PRTPWRPINSEL (1<<4)
42#define OCSPINSEL (1<<5)
43
Vijayavardhan Vennapusaafbbb8f2012-04-13 16:28:45 +053044struct smsc_hub_platform_data {
45 unsigned hub_reset;
Manu Gautam863b74132012-11-21 14:30:04 +053046 unsigned refclk_gpio;
47 unsigned int_gpio;
Vijayavardhan Vennapusaafbbb8f2012-04-13 16:28:45 +053048};
49
50#endif