mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-10-01 00:00:50 +02:00
Add device tree support in SMSC HUB driver which also registers platform_device for HSIC as its child. This allows SMSC HUB driver to turn OFF clocks for power savings after HSIC is suspended. Also add support for SMSC HUB to use dedicated clock as ref_clk instead of XO. Change-Id: I3e8828ddc232936df3e21c8e1158af92b16996a2 Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
51 lines
1.5 KiB
C
51 lines
1.5 KiB
C
/* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
|
|
*
|
|
* This software is licensed under the terms of the GNU General Public
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
* may be copied, distributed, and modified under those terms.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef __LINUX_SMSC3503_H__
|
|
#define __LINUX_SMSC3503_H__
|
|
|
|
/*Serial interface Registers*/
|
|
#define SMSC3503_VENDORID 0x00 /*u16 read*/
|
|
#define SMSC3503_PRODUCTID 0x02 /*u16 read*/
|
|
#define SMSC3503_DEVICEID 0x04 /*u16 read*/
|
|
|
|
#define SMSC3503_CONFIG_BYTE_1 0x06 /*u8 read*/
|
|
#define PORT_PWR (1<<0)
|
|
#define EOP_DISABLE (1<<3)
|
|
#define MTT_ENABLE (1<<4)
|
|
#define HS_DISABLE (1<<5)
|
|
#define SELF_BUS_PWR (1<<7)
|
|
|
|
#define SMSC3503_CONFIG_BYTE_2 0x07 /*u8 read*/
|
|
#define SMSC3503_LANGID 0x11 /*u16 read*/
|
|
#define SMSC3503_MFRSL 0x13 /*u8 read*/
|
|
#define SMSC3503_PRDSL 0x14 /*u8 read*/
|
|
#define SMSC3503_SERSL 0x15 /*u8 read*/
|
|
#define SMSC3503_MANSTR 0x16 /*0x16h-0x53h*/
|
|
#define SMSC3503_PRDSTR 0x54 /*0x54h-0x91h*/
|
|
#define SMSC3503_SERSTR 0x92 /*0x92h-0xCFh*/
|
|
|
|
#define SMSC3503_SP_ILOCK 0xE7 /*u8 read, set,clear*/
|
|
#define CONFIG_N (1<<0)
|
|
#define CONNECT_N (1<<1)
|
|
#define PRTPWRPINSEL (1<<4)
|
|
#define OCSPINSEL (1<<5)
|
|
|
|
struct smsc_hub_platform_data {
|
|
unsigned hub_reset;
|
|
unsigned refclk_gpio;
|
|
unsigned int_gpio;
|
|
};
|
|
|
|
#endif
|