Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ZHJ0125
ARMTraining
提交
64945f25
A
ARMTraining
项目概览
ZHJ0125
/
ARMTraining
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ARMTraining
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
64945f25
编写于
6月 29, 2020
作者:
ZHJ0125
🐢
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Do Linux Training
上级
0d9bf7e8
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
123 addition
and
34 deletion
+123
-34
SourceCode/linux-2.6.24.tar.bz2
SourceCode/linux-2.6.24.tar.bz2
+0
-0
linux-2.6.24/Makefile
linux-2.6.24/Makefile
+4
-2
linux-2.6.24/arch/arm/mach-s3c2410/mach-smdk2410.c
linux-2.6.24/arch/arm/mach-s3c2410/mach-smdk2410.c
+62
-0
linux-2.6.24/arch/arm/plat-s3c24xx/common-smdk.c
linux-2.6.24/arch/arm/plat-s3c24xx/common-smdk.c
+57
-32
未找到文件。
linux-2.6.24.tar.bz2
→
SourceCode/
linux-2.6.24.tar.bz2
浏览文件 @
64945f25
文件已移动
linux-2.6.24/Makefile
浏览文件 @
64945f25
...
...
@@ -190,8 +190,10 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
# Default value for CROSS_COMPILE is not to prefix executables
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
ARCH
?=
$(SUBARCH)
CROSS_COMPILE
?=
# ARCH ?= $(SUBARCH)
# CROSS_COMPILE ?=
ARCH
?=
arm
CROSS_COMPILE
?=
arm-linux-
# Architecture as present in compile.h
UTS_MACHINE
:=
$(ARCH)
...
...
linux-2.6.24/arch/arm/mach-s3c2410/mach-smdk2410.c
浏览文件 @
64945f25
...
...
@@ -54,6 +54,66 @@
#include <asm/plat-s3c24xx/common-smdk.h>
/* ZhangHoujin Edited in 2020.06.29 */
#include <asm/arch /fb.h>
#include <linux/platform_device.h>
static
struct
s3c2410fb_display
up2410_fb
[]
__initdata
=
{
{
.
lcdcon5
=
(
1
<<
12
)
|
(
1
<<
11
)
|
(
1
<<
9
)
|
(
1
<<
8
)
|
(
1
<<
0
),
.
type
=
(
3
<<
5
),
.
width
=
640
,
.
height
=
480
,
.
pixclock
=
39721
,
.
xres
=
640
,
.
yres
=
480
,
.
bpp
=
16
,
.
left_margin
=
40
,
.
right_margin
=
32
,
.
hsync_len
=
32
,
.
vsync_len
=
2
,
.
upper_margin
=
35
,
.
lower_margin
=
5
,
},
};
static
struct
s3c2410fb_mach_info
up2410_fb_info
__initdata
=
{
.
displays
=
up2410_fb
,
.
num_displays
=
1
,
.
default_display
=
0
,
.
gpcup
=
0xffffffff
,
.
gpcup_mask
=
0x0
,
.
gpccon
=
0xaaaaaaaa
,
.
gpccon_mask
=
0x0
,
.
gpdup
=
0xffffffff
,
.
gpdup_mask
=
0x0
,
.
gpdcon
=
0xaaaaaaaa
,
.
gpdcon_mask
=
0x0
,
.
lpcsel
=
0
,
};
static
struct
resource
s3c_dm9ks_resource
[]
=
{
[
0
]
=
{
.
start
=
0x10000000
,
.
end
=
0x10000040
,
.
flags
=
IORESOURCE_MEM
,
},
[
1
]
=
{
.
start
=
IRQ_EINT2
,
.
end
=
IRQ_EINT2
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
s3c_device_dm9ks
=
{
.
name
=
"s3c2410-dm9ks"
,
.
id
=
-
1
,
.
num_resources
=
ARRAY_SIZE
(
s3c_dm9ks_resource
),
.
resource
=
s3c_dm9ks_resource
,
};
/* End of Edited */
static
struct
map_desc
smdk2410_iodesc
[]
__initdata
=
{
/* nothing here yet */
};
...
...
@@ -92,6 +152,7 @@ static struct platform_device *smdk2410_devices[] __initdata = {
&
s3c_device_wdt
,
&
s3c_device_i2c
,
&
s3c_device_iis
,
&
s3c_device_dm9ks
,
};
static
void
__init
smdk2410_map_io
(
void
)
...
...
@@ -105,6 +166,7 @@ static void __init smdk2410_init(void)
{
platform_add_devices
(
smdk2410_devices
,
ARRAY_SIZE
(
smdk2410_devices
));
smdk_machine_init
();
s3c24xx_fb_set_platdata
(
&
up2410_fb_info
);
}
MACHINE_START
(
SMDK2410
,
"SMDK2410"
)
/* @TODO: request a new identifier and switch
...
...
linux-2.6.24/arch/arm/plat-s3c24xx/common-smdk.c
浏览文件 @
64945f25
...
...
@@ -106,49 +106,74 @@ static struct platform_device smdk_led7 = {
/* NAND parititon from 2.4.18-swl5 */
// static struct mtd_partition smdk_default_nand_part[] = {
// [0] = {
// .name = "Boot Agent",
// .size = SZ_16K,
// .offset = 0,
// },
// [1] = {
// .name = "S3C2410 flash partition 1",
// .offset = 0,
// .size = SZ_2M,
// },
// [2] = {
// .name = "S3C2410 flash partition 2",
// .offset = SZ_4M,
// .size = SZ_4M,
// },
// [3] = {
// .name = "S3C2410 flash partition 3",
// .offset = SZ_8M,
// .size = SZ_2M,
// },
// [4] = {
// .name = "S3C2410 flash partition 4",
// .offset = SZ_1M * 10,
// .size = SZ_4M,
// },
// [5] = {
// .name = "S3C2410 flash partition 5",
// .offset = SZ_1M * 14,
// .size = SZ_1M * 10,
// },
// [6] = {
// .name = "S3C2410 flash partition 6",
// .offset = SZ_1M * 24,
// .size = SZ_1M * 24,
// },
// [7] = {
// .name = "S3C2410 flash partition 7",
// .offset = SZ_1M * 48,
// .size = SZ_16M,
// }
// };
/* ZhangHoujin Edited in 2020.06.29 */
static
struct
mtd_partition
smdk_default_nand_part
[]
=
{
[
0
]
=
{
.
name
=
"Boot Agent
"
,
.
size
=
SZ_16K
,
.
offset
=
0
,
.
name
=
"Bootloader
"
,
.
size
=
0x80000
,
.
offset
=
0
,
},
[
1
]
=
{
.
name
=
"S3C2410 flash partition 1
"
,
.
offset
=
0
,
.
size
=
SZ_2M
,
.
name
=
"Linux Kernel
"
,
.
offset
=
0
x80000
,
.
size
=
SZ_2M
,
},
[
2
]
=
{
.
name
=
"S3C2410 flash partition 2
"
,
.
offset
=
SZ_4M
,
.
size
=
SZ_4M
,
.
name
=
"Root File System
"
,
.
offset
=
0x280000
,
.
size
=
SZ_4M
,
},
[
3
]
=
{
.
name
=
"S3C2410 flash partition 3"
,
.
offset
=
SZ_8M
,
.
size
=
SZ_2M
,
},
[
4
]
=
{
.
name
=
"S3C2410 flash partition 4"
,
.
offset
=
SZ_1M
*
10
,
.
size
=
SZ_4M
,
.
name
=
"User Space"
,
.
offset
=
0x680000
,
.
size
=
0x3980000
,
},
[
5
]
=
{
.
name
=
"S3C2410 flash partition 5"
,
.
offset
=
SZ_1M
*
14
,
.
size
=
SZ_1M
*
10
,
},
[
6
]
=
{
.
name
=
"S3C2410 flash partition 6"
,
.
offset
=
SZ_1M
*
24
,
.
size
=
SZ_1M
*
24
,
},
[
7
]
=
{
.
name
=
"S3C2410 flash partition 7"
,
.
offset
=
SZ_1M
*
48
,
.
size
=
SZ_16M
,
}
};
static
struct
s3c2410_nand_set
smdk_nand_sets
[]
=
{
[
0
]
=
{
.
name
=
"NAND"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录