Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
633842f1
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看板
提交
633842f1
编写于
7月 11, 2012
作者:
R
Rafael J. Wysocki
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'renesas-kota2' into renesas-board
* renesas-kota2: ARM: mach-shmobile: add fixed voltage regulators to kota2
上级
d0ad89fd
f185c214
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
30 addition
and
0 deletion
+30
-0
arch/arm/mach-shmobile/board-kota2.c
arch/arm/mach-shmobile/board-kota2.c
+30
-0
未找到文件。
arch/arm/mach-shmobile/board-kota2.c
浏览文件 @
633842f1
...
...
@@ -27,6 +27,8 @@
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/smsc911x.h>
#include <linux/gpio.h>
#include <linux/input.h>
...
...
@@ -49,6 +51,12 @@
#include <asm/hardware/cache-l2x0.h>
#include <asm/traps.h>
/* Dummy supplies, where voltage doesn't matter */
static
struct
regulator_consumer_supply
dummy_supplies
[]
=
{
REGULATOR_SUPPLY
(
"vddvario"
,
"smsc911x"
),
REGULATOR_SUPPLY
(
"vdd33a"
,
"smsc911x"
),
};
/* SMSC 9220 */
static
struct
resource
smsc9220_resources
[]
=
{
[
0
]
=
{
...
...
@@ -288,6 +296,13 @@ static struct platform_device leds_tpu30_device = {
.
resource
=
tpu30_resources
,
};
/* Fixed 1.8V regulator to be used by MMCIF */
static
struct
regulator_consumer_supply
fixed1v8_power_consumers
[]
=
{
REGULATOR_SUPPLY
(
"vmmc"
,
"sh_mmcif.0"
),
REGULATOR_SUPPLY
(
"vqmmc"
,
"sh_mmcif.0"
),
};
/* MMCIF */
static
struct
resource
mmcif_resources
[]
=
{
[
0
]
=
{
...
...
@@ -321,6 +336,15 @@ static struct platform_device mmcif_device = {
.
resource
=
mmcif_resources
,
};
/* Fixed 3.3V regulator to be used by SDHI0 and SDHI1 */
static
struct
regulator_consumer_supply
fixed3v3_power_consumers
[]
=
{
REGULATOR_SUPPLY
(
"vmmc"
,
"sh_mobile_sdhi.0"
),
REGULATOR_SUPPLY
(
"vqmmc"
,
"sh_mobile_sdhi.0"
),
REGULATOR_SUPPLY
(
"vmmc"
,
"sh_mobile_sdhi.1"
),
REGULATOR_SUPPLY
(
"vqmmc"
,
"sh_mobile_sdhi.1"
),
};
/* SDHI0 */
static
struct
sh_mobile_sdhi_info
sdhi0_info
=
{
.
tmio_caps
=
MMC_CAP_SD_HIGHSPEED
,
...
...
@@ -411,6 +435,12 @@ static struct platform_device *kota2_devices[] __initdata = {
static
void
__init
kota2_init
(
void
)
{
regulator_register_always_on
(
0
,
"fixed-1.8V"
,
fixed1v8_power_consumers
,
ARRAY_SIZE
(
fixed1v8_power_consumers
),
1800000
);
regulator_register_always_on
(
1
,
"fixed-3.3V"
,
fixed3v3_power_consumers
,
ARRAY_SIZE
(
fixed3v3_power_consumers
),
3300000
);
regulator_register_fixed
(
2
,
dummy_supplies
,
ARRAY_SIZE
(
dummy_supplies
));
sh73a0_pinmux_init
();
/* SCIFA2 (UART2) */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录