Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
c6d92e9b
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
c6d92e9b
编写于
12月 21, 2010
作者:
D
David Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'msm-usb' into for-next
* msm-usb: MSM: Add USB support for MSM7x30 MSM: Add USB suport for QSD8x50
上级
ba119204
5155e2c7
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
187 addition
and
0 deletion
+187
-0
arch/arm/mach-msm/board-msm7x30.c
arch/arm/mach-msm/board-msm7x30.c
+20
-0
arch/arm/mach-msm/board-qsd8x50.c
arch/arm/mach-msm/board-qsd8x50.c
+19
-0
arch/arm/mach-msm/devices-msm7x30.c
arch/arm/mach-msm/devices-msm7x30.c
+72
-0
arch/arm/mach-msm/devices-qsd8x50.c
arch/arm/mach-msm/devices-qsd8x50.c
+71
-0
arch/arm/mach-msm/devices.h
arch/arm/mach-msm/devices.h
+2
-0
arch/arm/mach-msm/include/mach/msm_iomap-7x30.h
arch/arm/mach-msm/include/mach/msm_iomap-7x30.h
+3
-0
未找到文件。
arch/arm/mach-msm/board-msm7x30.c
浏览文件 @
c6d92e9b
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include <linux/delay.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/io.h>
#include <linux/smsc911x.h>
#include <linux/smsc911x.h>
#include <linux/usb/msm_hsusb.h>
#include <asm/mach-types.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/arch.h>
...
@@ -39,11 +40,26 @@
...
@@ -39,11 +40,26 @@
extern
struct
sys_timer
msm_timer
;
extern
struct
sys_timer
msm_timer
;
static
int
hsusb_phy_init_seq
[]
=
{
0x30
,
0x32
,
/* Enable and set Pre-Emphasis Depth to 20% */
0x02
,
0x36
,
/* Disable CDR Auto Reset feature */
-
1
};
static
struct
msm_otg_platform_data
msm_otg_pdata
=
{
.
phy_init_seq
=
hsusb_phy_init_seq
,
.
mode
=
USB_PERIPHERAL
,
.
otg_control
=
OTG_PHY_CONTROL
,
};
static
struct
platform_device
*
devices
[]
__initdata
=
{
static
struct
platform_device
*
devices
[]
__initdata
=
{
#if defined(CONFIG_SERIAL_MSM) || defined(CONFIG_MSM_SERIAL_DEBUGGER)
#if defined(CONFIG_SERIAL_MSM) || defined(CONFIG_MSM_SERIAL_DEBUGGER)
&
msm_device_uart2
,
&
msm_device_uart2
,
#endif
#endif
&
msm_device_smd
,
&
msm_device_smd
,
&
msm_device_otg
,
&
msm_device_hsusb
,
&
msm_device_hsusb_host
,
};
};
static
void
__init
msm7x30_init_irq
(
void
)
static
void
__init
msm7x30_init_irq
(
void
)
...
@@ -53,6 +69,10 @@ static void __init msm7x30_init_irq(void)
...
@@ -53,6 +69,10 @@ static void __init msm7x30_init_irq(void)
static
void
__init
msm7x30_init
(
void
)
static
void
__init
msm7x30_init
(
void
)
{
{
msm_device_otg
.
dev
.
platform_data
=
&
msm_otg_pdata
;
msm_device_hsusb
.
dev
.
parent
=
&
msm_device_otg
.
dev
;
msm_device_hsusb_host
.
dev
.
parent
=
&
msm_device_otg
.
dev
;
platform_add_devices
(
devices
,
ARRAY_SIZE
(
devices
));
platform_add_devices
(
devices
,
ARRAY_SIZE
(
devices
));
}
}
...
...
arch/arm/mach-msm/board-qsd8x50.c
浏览文件 @
c6d92e9b
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#include <linux/gpio.h>
#include <linux/gpio.h>
#include <linux/platform_device.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/delay.h>
#include <linux/usb/msm_hsusb.h>
#include <asm/mach-types.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/arch.h>
...
@@ -74,9 +75,24 @@ static int __init msm_init_smc91x(void)
...
@@ -74,9 +75,24 @@ static int __init msm_init_smc91x(void)
}
}
module_init
(
msm_init_smc91x
);
module_init
(
msm_init_smc91x
);
static
int
hsusb_phy_init_seq
[]
=
{
0x08
,
0x31
,
/* Increase HS Driver Amplitude */
0x20
,
0x32
,
/* Enable and set Pre-Emphasis Depth to 10% */
-
1
};
static
struct
msm_otg_platform_data
msm_otg_pdata
=
{
.
phy_init_seq
=
hsusb_phy_init_seq
,
.
mode
=
USB_PERIPHERAL
,
.
otg_control
=
OTG_PHY_CONTROL
,
};
static
struct
platform_device
*
devices
[]
__initdata
=
{
static
struct
platform_device
*
devices
[]
__initdata
=
{
&
msm_device_uart3
,
&
msm_device_uart3
,
&
msm_device_smd
,
&
msm_device_smd
,
&
msm_device_otg
,
&
msm_device_hsusb
,
&
msm_device_hsusb_host
,
};
};
static
void
__init
qsd8x50_map_io
(
void
)
static
void
__init
qsd8x50_map_io
(
void
)
...
@@ -93,6 +109,9 @@ static void __init qsd8x50_init_irq(void)
...
@@ -93,6 +109,9 @@ static void __init qsd8x50_init_irq(void)
static
void
__init
qsd8x50_init
(
void
)
static
void
__init
qsd8x50_init
(
void
)
{
{
msm_device_otg
.
dev
.
platform_data
=
&
msm_otg_pdata
;
msm_device_hsusb
.
dev
.
parent
=
&
msm_device_otg
.
dev
;
msm_device_hsusb_host
.
dev
.
parent
=
&
msm_device_otg
.
dev
;
platform_add_devices
(
devices
,
ARRAY_SIZE
(
devices
));
platform_add_devices
(
devices
,
ARRAY_SIZE
(
devices
));
}
}
...
...
arch/arm/mach-msm/devices-msm7x30.c
浏览文件 @
c6d92e9b
...
@@ -56,6 +56,77 @@ struct platform_device msm_device_smd = {
...
@@ -56,6 +56,77 @@ struct platform_device msm_device_smd = {
.
id
=
-
1
,
.
id
=
-
1
,
};
};
static
struct
resource
resources_otg
[]
=
{
{
.
start
=
MSM_HSUSB_PHYS
,
.
end
=
MSM_HSUSB_PHYS
+
MSM_HSUSB_SIZE
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
INT_USB_HS
,
.
end
=
INT_USB_HS
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
msm_device_otg
=
{
.
name
=
"msm_otg"
,
.
id
=
-
1
,
.
num_resources
=
ARRAY_SIZE
(
resources_otg
),
.
resource
=
resources_otg
,
.
dev
=
{
.
coherent_dma_mask
=
0xffffffff
,
},
};
static
struct
resource
resources_hsusb
[]
=
{
{
.
start
=
MSM_HSUSB_PHYS
,
.
end
=
MSM_HSUSB_PHYS
+
MSM_HSUSB_SIZE
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
INT_USB_HS
,
.
end
=
INT_USB_HS
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
msm_device_hsusb
=
{
.
name
=
"msm_hsusb"
,
.
id
=
-
1
,
.
num_resources
=
ARRAY_SIZE
(
resources_hsusb
),
.
resource
=
resources_hsusb
,
.
dev
=
{
.
coherent_dma_mask
=
0xffffffff
,
},
};
static
u64
dma_mask
=
0xffffffffULL
;
static
struct
resource
resources_hsusb_host
[]
=
{
{
.
start
=
MSM_HSUSB_PHYS
,
.
end
=
MSM_HSUSB_PHYS
+
MSM_HSUSB_SIZE
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
INT_USB_HS
,
.
end
=
INT_USB_HS
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
msm_device_hsusb_host
=
{
.
name
=
"msm_hsusb_host"
,
.
id
=
-
1
,
.
num_resources
=
ARRAY_SIZE
(
resources_hsusb_host
),
.
resource
=
resources_hsusb_host
,
.
dev
=
{
.
dma_mask
=
&
dma_mask
,
.
coherent_dma_mask
=
0xffffffffULL
,
},
};
struct
clk
msm_clocks_7x30
[]
=
{
struct
clk
msm_clocks_7x30
[]
=
{
CLK_PCOM
(
"adm_clk"
,
ADM_CLK
,
NULL
,
0
),
CLK_PCOM
(
"adm_clk"
,
ADM_CLK
,
NULL
,
0
),
CLK_PCOM
(
"adsp_clk"
,
ADSP_CLK
,
NULL
,
0
),
CLK_PCOM
(
"adsp_clk"
,
ADSP_CLK
,
NULL
,
0
),
...
@@ -107,6 +178,7 @@ struct clk msm_clocks_7x30[] = {
...
@@ -107,6 +178,7 @@ struct clk msm_clocks_7x30[] = {
CLK_PCOM
(
"tv_dac_clk"
,
TV_DAC_CLK
,
NULL
,
0
),
CLK_PCOM
(
"tv_dac_clk"
,
TV_DAC_CLK
,
NULL
,
0
),
CLK_PCOM
(
"tv_enc_clk"
,
TV_ENC_CLK
,
NULL
,
0
),
CLK_PCOM
(
"tv_enc_clk"
,
TV_ENC_CLK
,
NULL
,
0
),
CLK_PCOM
(
"uart_clk"
,
UART2_CLK
,
&
msm_device_uart2
.
dev
,
0
),
CLK_PCOM
(
"uart_clk"
,
UART2_CLK
,
&
msm_device_uart2
.
dev
,
0
),
CLK_PCOM
(
"usb_phy_clk"
,
USB_PHY_CLK
,
NULL
,
0
),
CLK_PCOM
(
"usb_hs_clk"
,
USB_HS_CLK
,
NULL
,
OFF
),
CLK_PCOM
(
"usb_hs_clk"
,
USB_HS_CLK
,
NULL
,
OFF
),
CLK_PCOM
(
"usb_hs_pclk"
,
USB_HS_P_CLK
,
NULL
,
OFF
),
CLK_PCOM
(
"usb_hs_pclk"
,
USB_HS_P_CLK
,
NULL
,
OFF
),
CLK_PCOM
(
"usb_hs_core_clk"
,
USB_HS_CORE_CLK
,
NULL
,
OFF
),
CLK_PCOM
(
"usb_hs_core_clk"
,
USB_HS_CORE_CLK
,
NULL
,
OFF
),
...
...
arch/arm/mach-msm/devices-qsd8x50.c
浏览文件 @
c6d92e9b
...
@@ -53,6 +53,77 @@ struct platform_device msm_device_smd = {
...
@@ -53,6 +53,77 @@ struct platform_device msm_device_smd = {
.
id
=
-
1
,
.
id
=
-
1
,
};
};
static
struct
resource
resources_otg
[]
=
{
{
.
start
=
MSM_HSUSB_PHYS
,
.
end
=
MSM_HSUSB_PHYS
+
MSM_HSUSB_SIZE
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
INT_USB_HS
,
.
end
=
INT_USB_HS
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
msm_device_otg
=
{
.
name
=
"msm_otg"
,
.
id
=
-
1
,
.
num_resources
=
ARRAY_SIZE
(
resources_otg
),
.
resource
=
resources_otg
,
.
dev
=
{
.
coherent_dma_mask
=
0xffffffff
,
},
};
static
struct
resource
resources_hsusb
[]
=
{
{
.
start
=
MSM_HSUSB_PHYS
,
.
end
=
MSM_HSUSB_PHYS
+
MSM_HSUSB_SIZE
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
INT_USB_HS
,
.
end
=
INT_USB_HS
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
msm_device_hsusb
=
{
.
name
=
"msm_hsusb"
,
.
id
=
-
1
,
.
num_resources
=
ARRAY_SIZE
(
resources_hsusb
),
.
resource
=
resources_hsusb
,
.
dev
=
{
.
coherent_dma_mask
=
0xffffffff
,
},
};
static
u64
dma_mask
=
0xffffffffULL
;
static
struct
resource
resources_hsusb_host
[]
=
{
{
.
start
=
MSM_HSUSB_PHYS
,
.
end
=
MSM_HSUSB_PHYS
+
MSM_HSUSB_SIZE
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
INT_USB_HS
,
.
end
=
INT_USB_HS
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
msm_device_hsusb_host
=
{
.
name
=
"msm_hsusb_host"
,
.
id
=
-
1
,
.
num_resources
=
ARRAY_SIZE
(
resources_hsusb_host
),
.
resource
=
resources_hsusb_host
,
.
dev
=
{
.
dma_mask
=
&
dma_mask
,
.
coherent_dma_mask
=
0xffffffffULL
,
},
};
struct
clk
msm_clocks_8x50
[]
=
{
struct
clk
msm_clocks_8x50
[]
=
{
CLK_PCOM
(
"adm_clk"
,
ADM_CLK
,
NULL
,
0
),
CLK_PCOM
(
"adm_clk"
,
ADM_CLK
,
NULL
,
0
),
CLK_PCOM
(
"ebi1_clk"
,
EBI1_CLK
,
NULL
,
CLK_MIN
),
CLK_PCOM
(
"ebi1_clk"
,
EBI1_CLK
,
NULL
,
CLK_MIN
),
...
...
arch/arm/mach-msm/devices.h
浏览文件 @
c6d92e9b
...
@@ -28,6 +28,8 @@ extern struct platform_device msm_device_sdc3;
...
@@ -28,6 +28,8 @@ extern struct platform_device msm_device_sdc3;
extern
struct
platform_device
msm_device_sdc4
;
extern
struct
platform_device
msm_device_sdc4
;
extern
struct
platform_device
msm_device_hsusb
;
extern
struct
platform_device
msm_device_hsusb
;
extern
struct
platform_device
msm_device_otg
;
extern
struct
platform_device
msm_device_hsusb_host
;
extern
struct
platform_device
msm_device_i2c
;
extern
struct
platform_device
msm_device_i2c
;
...
...
arch/arm/mach-msm/include/mach/msm_iomap-7x30.h
浏览文件 @
c6d92e9b
...
@@ -119,4 +119,7 @@
...
@@ -119,4 +119,7 @@
#define MSM_AD5_PHYS 0xA7000000
#define MSM_AD5_PHYS 0xA7000000
#define MSM_AD5_SIZE (SZ_1M*13)
#define MSM_AD5_SIZE (SZ_1M*13)
#define MSM_HSUSB_PHYS 0xA3600000
#define MSM_HSUSB_SIZE SZ_1K
#endif
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录