Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
39160435
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
39160435
编写于
4月 03, 2012
作者:
T
Tony Lindgren
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'fixes-smsc911x' into fixes
上级
1512f0db
5b3689f4
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
68 addition
and
81 deletion
+68
-81
arch/arm/mach-omap2/board-cm-t35.c
arch/arm/mach-omap2/board-cm-t35.c
+16
-0
arch/arm/mach-omap2/board-igep0020.c
arch/arm/mach-omap2/board-igep0020.c
+6
-0
arch/arm/mach-omap2/board-ldp.c
arch/arm/mach-omap2/board-ldp.c
+7
-0
arch/arm/mach-omap2/board-omap3evm.c
arch/arm/mach-omap2/board-omap3evm.c
+6
-9
arch/arm/mach-omap2/board-omap3logic.c
arch/arm/mach-omap2/board-omap3logic.c
+7
-0
arch/arm/mach-omap2/board-omap3stalker.c
arch/arm/mach-omap2/board-omap3stalker.c
+7
-9
arch/arm/mach-omap2/board-overo.c
arch/arm/mach-omap2/board-overo.c
+8
-0
arch/arm/mach-omap2/board-zoom-debugboard.c
arch/arm/mach-omap2/board-zoom-debugboard.c
+9
-0
arch/arm/mach-omap2/gpmc-smsc911x.c
arch/arm/mach-omap2/gpmc-smsc911x.c
+2
-63
未找到文件。
arch/arm/mach-omap2/board-cm-t35.c
浏览文件 @
39160435
...
...
@@ -26,6 +26,7 @@
#include <linux/i2c/at24.h>
#include <linux/i2c/twl.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/mmc/host.h>
...
...
@@ -81,8 +82,23 @@ static struct omap_smsc911x_platform_data sb_t35_smsc911x_cfg = {
.
flags
=
SMSC911X_USE_32BIT
|
SMSC911X_SAVE_MAC_ADDRESS
,
};
static
struct
regulator_consumer_supply
cm_t35_smsc911x_supplies
[]
=
{
REGULATOR_SUPPLY
(
"vddvario"
,
"smsc911x.0"
),
REGULATOR_SUPPLY
(
"vdd33a"
,
"smsc911x.0"
),
};
static
struct
regulator_consumer_supply
sb_t35_smsc911x_supplies
[]
=
{
REGULATOR_SUPPLY
(
"vddvario"
,
"smsc911x.1"
),
REGULATOR_SUPPLY
(
"vdd33a"
,
"smsc911x.1"
),
};
static
void
__init
cm_t35_init_ethernet
(
void
)
{
regulator_register_fixed
(
0
,
cm_t35_smsc911x_supplies
,
ARRAY_SIZE
(
cm_t35_smsc911x_supplies
));
regulator_register_fixed
(
1
,
sb_t35_smsc911x_supplies
,
ARRAY_SIZE
(
sb_t35_smsc911x_supplies
));
gpmc_smsc911x_init
(
&
cm_t35_smsc911x_cfg
);
gpmc_smsc911x_init
(
&
sb_t35_smsc911x_cfg
);
}
...
...
arch/arm/mach-omap2/board-igep0020.c
浏览文件 @
39160435
...
...
@@ -634,8 +634,14 @@ static void __init igep_wlan_bt_init(void)
static
inline
void
__init
igep_wlan_bt_init
(
void
)
{
}
#endif
static
struct
regulator_consumer_supply
dummy_supplies
[]
=
{
REGULATOR_SUPPLY
(
"vddvario"
,
"smsc911x.0"
),
REGULATOR_SUPPLY
(
"vdd33a"
,
"smsc911x.0"
),
};
static
void
__init
igep_init
(
void
)
{
regulator_register_fixed
(
0
,
dummy_supplies
,
ARRAY_SIZE
(
dummy_supplies
));
omap3_mux_init
(
board_mux
,
OMAP_PACKAGE_CBB
);
/* Get IGEP2 hardware revision */
...
...
arch/arm/mach-omap2/board-ldp.c
浏览文件 @
39160435
...
...
@@ -22,6 +22,7 @@
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/spi/spi.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/i2c/twl.h>
#include <linux/io.h>
...
...
@@ -410,8 +411,14 @@ static struct mtd_partition ldp_nand_partitions[] = {
};
static
struct
regulator_consumer_supply
dummy_supplies
[]
=
{
REGULATOR_SUPPLY
(
"vddvario"
,
"smsc911x.0"
),
REGULATOR_SUPPLY
(
"vdd33a"
,
"smsc911x.0"
),
};
static
void
__init
omap_ldp_init
(
void
)
{
regulator_register_fixed
(
0
,
dummy_supplies
,
ARRAY_SIZE
(
dummy_supplies
));
omap3_mux_init
(
board_mux
,
OMAP_PACKAGE_CBB
);
ldp_init_smsc911x
();
omap_i2c_init
();
...
...
arch/arm/mach-omap2/board-omap3evm.c
浏览文件 @
39160435
...
...
@@ -114,15 +114,6 @@ static struct omap_smsc911x_platform_data smsc911x_cfg = {
static
inline
void
__init
omap3evm_init_smsc911x
(
void
)
{
struct
clk
*
l3ck
;
unsigned
int
rate
;
l3ck
=
clk_get
(
NULL
,
"l3_ck"
);
if
(
IS_ERR
(
l3ck
))
rate
=
100000000
;
else
rate
=
clk_get_rate
(
l3ck
);
/* Configure ethernet controller reset gpio */
if
(
cpu_is_omap3430
())
{
if
(
get_omap3_evm_rev
()
==
OMAP3EVM_BOARD_GEN_1
)
...
...
@@ -632,9 +623,15 @@ static void __init omap3_evm_wl12xx_init(void)
#endif
}
static
struct
regulator_consumer_supply
dummy_supplies
[]
=
{
REGULATOR_SUPPLY
(
"vddvario"
,
"smsc911x.0"
),
REGULATOR_SUPPLY
(
"vdd33a"
,
"smsc911x.0"
),
};
static
void
__init
omap3_evm_init
(
void
)
{
omap3_evm_get_revision
();
regulator_register_fixed
(
0
,
dummy_supplies
,
ARRAY_SIZE
(
dummy_supplies
));
if
(
cpu_is_omap3630
())
omap3_mux_init
(
omap36x_board_mux
,
OMAP_PACKAGE_CBB
);
...
...
arch/arm/mach-omap2/board-omap3logic.c
浏览文件 @
39160435
...
...
@@ -23,6 +23,7 @@
#include <linux/io.h>
#include <linux/gpio.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/i2c/twl.h>
...
...
@@ -188,8 +189,14 @@ static struct omap_board_mux board_mux[] __initdata = {
};
#endif
static
struct
regulator_consumer_supply
dummy_supplies
[]
=
{
REGULATOR_SUPPLY
(
"vddvario"
,
"smsc911x.0"
),
REGULATOR_SUPPLY
(
"vdd33a"
,
"smsc911x.0"
),
};
static
void
__init
omap3logic_init
(
void
)
{
regulator_register_fixed
(
0
,
dummy_supplies
,
ARRAY_SIZE
(
dummy_supplies
));
omap3_mux_init
(
board_mux
,
OMAP_PACKAGE_CBB
);
omap3torpedo_fix_pbias_voltage
();
omap3logic_i2c_init
();
...
...
arch/arm/mach-omap2/board-omap3stalker.c
浏览文件 @
39160435
...
...
@@ -24,6 +24,7 @@
#include <linux/input.h>
#include <linux/gpio_keys.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/i2c/twl.h>
#include <linux/mmc/host.h>
...
...
@@ -72,15 +73,6 @@ static struct omap_smsc911x_platform_data smsc911x_cfg = {
static
inline
void
__init
omap3stalker_init_eth
(
void
)
{
struct
clk
*
l3ck
;
unsigned
int
rate
;
l3ck
=
clk_get
(
NULL
,
"l3_ck"
);
if
(
IS_ERR
(
l3ck
))
rate
=
100000000
;
else
rate
=
clk_get_rate
(
l3ck
);
omap_mux_init_gpio
(
19
,
OMAP_PIN_INPUT_PULLUP
);
gpmc_smsc911x_init
(
&
smsc911x_cfg
);
}
...
...
@@ -419,8 +411,14 @@ static struct omap_board_mux board_mux[] __initdata = {
};
#endif
static
struct
regulator_consumer_supply
dummy_supplies
[]
=
{
REGULATOR_SUPPLY
(
"vddvario"
,
"smsc911x.0"
),
REGULATOR_SUPPLY
(
"vdd33a"
,
"smsc911x.0"
),
};
static
void
__init
omap3_stalker_init
(
void
)
{
regulator_register_fixed
(
0
,
dummy_supplies
,
ARRAY_SIZE
(
dummy_supplies
));
omap3_mux_init
(
board_mux
,
OMAP_PACKAGE_CUS
);
omap_board_config
=
omap3_stalker_config
;
omap_board_config_size
=
ARRAY_SIZE
(
omap3_stalker_config
);
...
...
arch/arm/mach-omap2/board-overo.c
浏览文件 @
39160435
...
...
@@ -498,10 +498,18 @@ static struct gpio overo_bt_gpios[] __initdata = {
{
OVERO_GPIO_BT_NRESET
,
GPIOF_OUT_INIT_HIGH
,
"lcd bl enable"
},
};
static
struct
regulator_consumer_supply
dummy_supplies
[]
=
{
REGULATOR_SUPPLY
(
"vddvario"
,
"smsc911x.0"
),
REGULATOR_SUPPLY
(
"vdd33a"
,
"smsc911x.0"
),
REGULATOR_SUPPLY
(
"vddvario"
,
"smsc911x.1"
),
REGULATOR_SUPPLY
(
"vdd33a"
,
"smsc911x.1"
),
};
static
void
__init
overo_init
(
void
)
{
int
ret
;
regulator_register_fixed
(
0
,
dummy_supplies
,
ARRAY_SIZE
(
dummy_supplies
));
omap3_mux_init
(
board_mux
,
OMAP_PACKAGE_CBB
);
omap_hsmmc_init
(
mmc
);
overo_i2c_init
();
...
...
arch/arm/mach-omap2/board-zoom-debugboard.c
浏览文件 @
39160435
...
...
@@ -14,6 +14,9 @@
#include <linux/smsc911x.h>
#include <linux/interrupt.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <plat/gpmc.h>
#include <plat/gpmc-smsc911x.h>
...
...
@@ -117,11 +120,17 @@ static struct platform_device *zoom_devices[] __initdata = {
&
zoom_debugboard_serial_device
,
};
static
struct
regulator_consumer_supply
dummy_supplies
[]
=
{
REGULATOR_SUPPLY
(
"vddvario"
,
"smsc911x.0"
),
REGULATOR_SUPPLY
(
"vdd33a"
,
"smsc911x.0"
),
};
int
__init
zoom_debugboard_init
(
void
)
{
if
(
!
omap_zoom_debugboard_detect
())
return
0
;
regulator_register_fixed
(
0
,
dummy_supplies
,
ARRAY_SIZE
(
dummy_supplies
));
zoom_init_smsc911x
();
zoom_init_quaduart
();
return
platform_add_devices
(
zoom_devices
,
ARRAY_SIZE
(
zoom_devices
));
...
...
arch/arm/mach-omap2/gpmc-smsc911x.c
浏览文件 @
39160435
...
...
@@ -19,15 +19,11 @@
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/smsc911x.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <plat/board.h>
#include <plat/gpmc.h>
#include <plat/gpmc-smsc911x.h>
static
struct
omap_smsc911x_platform_data
*
gpmc_cfg
;
static
struct
resource
gpmc_smsc911x_resources
[]
=
{
[
0
]
=
{
.
flags
=
IORESOURCE_MEM
,
...
...
@@ -41,51 +37,6 @@ static struct smsc911x_platform_config gpmc_smsc911x_config = {
.
phy_interface
=
PHY_INTERFACE_MODE_MII
,
.
irq_polarity
=
SMSC911X_IRQ_POLARITY_ACTIVE_LOW
,
.
irq_type
=
SMSC911X_IRQ_TYPE_OPEN_DRAIN
,
.
flags
=
SMSC911X_USE_16BIT
,
};
static
struct
regulator_consumer_supply
gpmc_smsc911x_supply
[]
=
{
REGULATOR_SUPPLY
(
"vddvario"
,
"smsc911x.0"
),
REGULATOR_SUPPLY
(
"vdd33a"
,
"smsc911x.0"
),
};
/* Generic regulator definition to satisfy smsc911x */
static
struct
regulator_init_data
gpmc_smsc911x_reg_init_data
=
{
.
constraints
=
{
.
min_uV
=
3300000
,
.
max_uV
=
3300000
,
.
valid_modes_mask
=
REGULATOR_MODE_NORMAL
|
REGULATOR_MODE_STANDBY
,
.
valid_ops_mask
=
REGULATOR_CHANGE_MODE
|
REGULATOR_CHANGE_STATUS
,
},
.
num_consumer_supplies
=
ARRAY_SIZE
(
gpmc_smsc911x_supply
),
.
consumer_supplies
=
gpmc_smsc911x_supply
,
};
static
struct
fixed_voltage_config
gpmc_smsc911x_fixed_reg_data
=
{
.
supply_name
=
"gpmc_smsc911x"
,
.
microvolts
=
3300000
,
.
gpio
=
-
EINVAL
,
.
startup_delay
=
0
,
.
enable_high
=
0
,
.
enabled_at_boot
=
1
,
.
init_data
=
&
gpmc_smsc911x_reg_init_data
,
};
/*
* Platform device id of 42 is a temporary fix to avoid conflicts
* with other reg-fixed-voltage devices. The real fix should
* involve the driver core providing a way of dynamically
* assigning a unique id on registration for platform devices
* in the same name space.
*/
static
struct
platform_device
gpmc_smsc911x_regulator
=
{
.
name
=
"reg-fixed-voltage"
,
.
id
=
42
,
.
dev
=
{
.
platform_data
=
&
gpmc_smsc911x_fixed_reg_data
,
},
};
/*
...
...
@@ -93,23 +44,12 @@ static struct platform_device gpmc_smsc911x_regulator = {
* assume that pin multiplexing is done in the board-*.c file,
* or in the bootloader.
*/
void
__init
gpmc_smsc911x_init
(
struct
omap_smsc911x_platform_data
*
board_data
)
void
__init
gpmc_smsc911x_init
(
struct
omap_smsc911x_platform_data
*
gpmc_cfg
)
{
struct
platform_device
*
pdev
;
unsigned
long
cs_mem_base
;
int
ret
;
gpmc_cfg
=
board_data
;
if
(
!
gpmc_cfg
->
id
)
{
ret
=
platform_device_register
(
&
gpmc_smsc911x_regulator
);
if
(
ret
<
0
)
{
pr_err
(
"Unable to register smsc911x regulators: %d
\n
"
,
ret
);
return
;
}
}
if
(
gpmc_cs_request
(
gpmc_cfg
->
cs
,
SZ_16M
,
&
cs_mem_base
)
<
0
)
{
pr_err
(
"Failed to request GPMC mem region
\n
"
);
return
;
...
...
@@ -139,8 +79,7 @@ void __init gpmc_smsc911x_init(struct omap_smsc911x_platform_data *board_data)
gpio_set_value
(
gpmc_cfg
->
gpio_reset
,
1
);
}
if
(
gpmc_cfg
->
flags
)
gpmc_smsc911x_config
.
flags
=
gpmc_cfg
->
flags
;
gpmc_smsc911x_config
.
flags
=
gpmc_cfg
->
flags
?
:
SMSC911X_USE_16BIT
;
pdev
=
platform_device_register_resndata
(
NULL
,
"smsc911x"
,
gpmc_cfg
->
id
,
gpmc_smsc911x_resources
,
ARRAY_SIZE
(
gpmc_smsc911x_resources
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录