Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
dce65a6a
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
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看板
提交
dce65a6a
编写于
5月 26, 2011
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'rmobile/fbdev' into rmobile-latest
上级
4db70f73
1c7fcbed
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
114 addition
and
0 deletion
+114
-0
arch/arm/mach-shmobile/board-ap4evb.c
arch/arm/mach-shmobile/board-ap4evb.c
+56
-0
arch/arm/mach-shmobile/board-mackerel.c
arch/arm/mach-shmobile/board-mackerel.c
+58
-0
未找到文件。
arch/arm/mach-shmobile/board-ap4evb.c
浏览文件 @
dce65a6a
...
...
@@ -249,6 +249,29 @@ static int slot_cn7_get_cd(struct platform_device *pdev)
{
return
!
gpio_get_value
(
GPIO_PORT41
);
}
/* MERAM */
static
struct
sh_mobile_meram_info
meram_info
=
{
.
addr_mode
=
SH_MOBILE_MERAM_MODE1
,
};
static
struct
resource
meram_resources
[]
=
{
[
0
]
=
{
.
name
=
"MERAM"
,
.
start
=
0xe8000000
,
.
end
=
0xe81fffff
,
.
flags
=
IORESOURCE_MEM
,
},
};
static
struct
platform_device
meram_device
=
{
.
name
=
"sh_mobile_meram"
,
.
id
=
0
,
.
num_resources
=
ARRAY_SIZE
(
meram_resources
),
.
resource
=
meram_resources
,
.
dev
=
{
.
platform_data
=
&
meram_info
,
},
};
/* SH_MMCIF */
static
struct
resource
sh_mmcif_resources
[]
=
{
...
...
@@ -447,13 +470,29 @@ const static struct fb_videomode ap4evb_lcdc_modes[] = {
#endif
},
};
static
struct
sh_mobile_meram_cfg
lcd_meram_cfg
=
{
.
icb
[
0
]
=
{
.
marker_icb
=
28
,
.
cache_icb
=
24
,
.
meram_offset
=
0x0
,
.
meram_size
=
0x40
,
},
.
icb
[
1
]
=
{
.
marker_icb
=
29
,
.
cache_icb
=
25
,
.
meram_offset
=
0x40
,
.
meram_size
=
0x40
,
},
};
static
struct
sh_mobile_lcdc_info
lcdc_info
=
{
.
meram_dev
=
&
meram_info
,
.
ch
[
0
]
=
{
.
chan
=
LCDC_CHAN_MAINLCD
,
.
bpp
=
16
,
.
lcd_cfg
=
ap4evb_lcdc_modes
,
.
num_cfg
=
ARRAY_SIZE
(
ap4evb_lcdc_modes
),
.
meram_cfg
=
&
lcd_meram_cfg
,
}
};
...
...
@@ -724,15 +763,31 @@ static struct platform_device fsi_device = {
static
struct
platform_device
fsi_ak4643_device
=
{
.
name
=
"sh_fsi2_a_ak4643"
,
};
static
struct
sh_mobile_meram_cfg
hdmi_meram_cfg
=
{
.
icb
[
0
]
=
{
.
marker_icb
=
30
,
.
cache_icb
=
26
,
.
meram_offset
=
0x80
,
.
meram_size
=
0x100
,
},
.
icb
[
1
]
=
{
.
marker_icb
=
31
,
.
cache_icb
=
27
,
.
meram_offset
=
0x180
,
.
meram_size
=
0x100
,
},
};
static
struct
sh_mobile_lcdc_info
sh_mobile_lcdc1_info
=
{
.
clock_source
=
LCDC_CLK_EXTERNAL
,
.
meram_dev
=
&
meram_info
,
.
ch
[
0
]
=
{
.
chan
=
LCDC_CHAN_MAINLCD
,
.
bpp
=
16
,
.
interface_type
=
RGB24
,
.
clock_divider
=
1
,
.
flags
=
LCDC_FLAGS_DWPOL
,
.
meram_cfg
=
&
hdmi_meram_cfg
,
}
};
...
...
@@ -961,6 +1016,7 @@ static struct platform_device *ap4evb_devices[] __initdata = {
&
csi2_device
,
&
ceu_device
,
&
ap4evb_camera
,
&
meram_device
,
};
static
void
__init
hdmi_init_pm_clock
(
void
)
...
...
arch/arm/mach-shmobile/board-mackerel.c
浏览文件 @
dce65a6a
...
...
@@ -314,6 +314,30 @@ static struct platform_device smc911x_device = {
},
};
/* MERAM */
static
struct
sh_mobile_meram_info
mackerel_meram_info
=
{
.
addr_mode
=
SH_MOBILE_MERAM_MODE1
,
};
static
struct
resource
meram_resources
[]
=
{
[
0
]
=
{
.
name
=
"MERAM"
,
.
start
=
0xe8000000
,
.
end
=
0xe81fffff
,
.
flags
=
IORESOURCE_MEM
,
},
};
static
struct
platform_device
meram_device
=
{
.
name
=
"sh_mobile_meram"
,
.
id
=
0
,
.
num_resources
=
ARRAY_SIZE
(
meram_resources
),
.
resource
=
meram_resources
,
.
dev
=
{
.
platform_data
=
&
mackerel_meram_info
,
},
};
/* LCDC */
static
struct
fb_videomode
mackerel_lcdc_modes
[]
=
{
{
...
...
@@ -342,7 +366,23 @@ static int mackerel_get_brightness(void *board_data)
return
gpio_get_value
(
GPIO_PORT31
);
}
static
struct
sh_mobile_meram_cfg
lcd_meram_cfg
=
{
.
icb
[
0
]
=
{
.
marker_icb
=
28
,
.
cache_icb
=
24
,
.
meram_offset
=
0x0
,
.
meram_size
=
0x40
,
},
.
icb
[
1
]
=
{
.
marker_icb
=
29
,
.
cache_icb
=
25
,
.
meram_offset
=
0x40
,
.
meram_size
=
0x40
,
},
};
static
struct
sh_mobile_lcdc_info
lcdc_info
=
{
.
meram_dev
=
&
mackerel_meram_info
,
.
clock_source
=
LCDC_CLK_BUS
,
.
ch
[
0
]
=
{
.
chan
=
LCDC_CHAN_MAINLCD
,
...
...
@@ -362,6 +402,7 @@ static struct sh_mobile_lcdc_info lcdc_info = {
.
name
=
"sh_mobile_lcdc_bl"
,
.
max_brightness
=
1
,
},
.
meram_cfg
=
&
lcd_meram_cfg
,
}
};
...
...
@@ -388,8 +429,23 @@ static struct platform_device lcdc_device = {
},
};
static
struct
sh_mobile_meram_cfg
hdmi_meram_cfg
=
{
.
icb
[
0
]
=
{
.
marker_icb
=
30
,
.
cache_icb
=
26
,
.
meram_offset
=
0x80
,
.
meram_size
=
0x100
,
},
.
icb
[
1
]
=
{
.
marker_icb
=
31
,
.
cache_icb
=
27
,
.
meram_offset
=
0x180
,
.
meram_size
=
0x100
,
},
};
/* HDMI */
static
struct
sh_mobile_lcdc_info
hdmi_lcdc_info
=
{
.
meram_dev
=
&
mackerel_meram_info
,
.
clock_source
=
LCDC_CLK_EXTERNAL
,
.
ch
[
0
]
=
{
.
chan
=
LCDC_CHAN_MAINLCD
,
...
...
@@ -397,6 +453,7 @@ static struct sh_mobile_lcdc_info hdmi_lcdc_info = {
.
interface_type
=
RGB24
,
.
clock_divider
=
1
,
.
flags
=
LCDC_FLAGS_DWPOL
,
.
meram_cfg
=
&
hdmi_meram_cfg
,
}
};
...
...
@@ -1150,6 +1207,7 @@ static struct platform_device *mackerel_devices[] __initdata = {
&
mackerel_camera
,
&
hdmi_lcdc_device
,
&
hdmi_device
,
&
meram_device
,
};
/* Keypad Initialization */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录