Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
3a27f6e0
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
14
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3a27f6e0
编写于
7月 28, 2010
作者:
M
Marek Vasut
提交者:
Eric Miao
8月 05, 2010
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ARM] pxa/balloon3: Add MAX1586 PMIC support
Signed-off-by:
N
Marek Vasut
<
marek.vasut@gmail.com
>
上级
e6a8ef54
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
55 addition
and
0 deletion
+55
-0
arch/arm/mach-pxa/balloon3.c
arch/arm/mach-pxa/balloon3.c
+55
-0
未找到文件。
arch/arm/mach-pxa/balloon3.c
浏览文件 @
3a27f6e0
...
...
@@ -29,6 +29,7 @@
#include <linux/i2c/pcf857x.h>
#include <linux/mtd/nand.h>
#include <linux/mtd/physmap.h>
#include <linux/regulator/max1586.h>
#include <asm/setup.h>
#include <asm/mach-types.h>
...
...
@@ -679,6 +680,59 @@ static void __init balloon3_nand_init(void)
static
inline
void
balloon3_nand_init
(
void
)
{}
#endif
/******************************************************************************
* Core power regulator
******************************************************************************/
#if defined(CONFIG_REGULATOR_MAX1586) || \
defined(CONFIG_REGULATOR_MAX1586_MODULE)
static
struct
regulator_consumer_supply
balloon3_max1587a_consumers
[]
=
{
{
.
supply
=
"vcc_core"
,
}
};
static
struct
regulator_init_data
balloon3_max1587a_v3_info
=
{
.
constraints
=
{
.
name
=
"vcc_core range"
,
.
min_uV
=
900000
,
.
max_uV
=
1705000
,
.
always_on
=
1
,
.
valid_ops_mask
=
REGULATOR_CHANGE_VOLTAGE
,
},
.
consumer_supplies
=
balloon3_max1587a_consumers
,
.
num_consumer_supplies
=
ARRAY_SIZE
(
balloon3_max1587a_consumers
),
};
static
struct
max1586_subdev_data
balloon3_max1587a_subdevs
[]
=
{
{
.
name
=
"vcc_core"
,
.
id
=
MAX1586_V3
,
.
platform_data
=
&
balloon3_max1587a_v3_info
,
}
};
static
struct
max1586_platform_data
balloon3_max1587a_info
=
{
.
subdevs
=
balloon3_max1587a_subdevs
,
.
num_subdevs
=
ARRAY_SIZE
(
balloon3_max1587a_subdevs
),
.
v3_gain
=
MAX1586_GAIN_R24_3k32
,
/* 730..1550 mV */
};
static
struct
i2c_board_info
__initdata
balloon3_pi2c_board_info
[]
=
{
{
I2C_BOARD_INFO
(
"max1586"
,
0x14
),
.
platform_data
=
&
balloon3_max1587a_info
,
},
};
static
void
__init
balloon3_pmic_init
(
void
)
{
pxa27x_set_i2c_power_info
(
NULL
);
i2c_register_board_info
(
1
,
ARRAY_AND_SIZE
(
balloon3_pi2c_board_info
));
}
#else
static
inline
void
balloon3_pmic_init
(
void
)
{}
#endif
/******************************************************************************
* Machine init
******************************************************************************/
...
...
@@ -699,6 +753,7 @@ static void __init balloon3_init(void)
balloon3_mmc_init
();
balloon3_nand_init
();
balloon3_nor_init
();
balloon3_pmic_init
();
balloon3_ts_init
();
balloon3_udc_init
();
balloon3_uhc_init
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录