Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
b228f4c5
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看板
提交
b228f4c5
编写于
12月 11, 2006
作者:
R
Ralf Baechle
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[MIPS] Malta: Resurrect MTD support for onboard flash.
Signed-off-by:
N
Ralf Baechle
<
ralf@linux-mips.org
>
上级
2efac77e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
80 addition
and
41 deletion
+80
-41
arch/mips/configs/malta_defconfig
arch/mips/configs/malta_defconfig
+79
-1
arch/mips/mips-boards/malta/Makefile
arch/mips/mips-boards/malta/Makefile
+1
-1
arch/mips/mips-boards/malta/malta_setup.c
arch/mips/mips-boards/malta/malta_setup.c
+0
-39
未找到文件。
arch/mips/configs/malta_defconfig
浏览文件 @
b228f4c5
...
...
@@ -644,7 +644,85 @@ CONFIG_CONNECTOR=m
#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set
CONFIG_MTD=y
# CONFIG_MTD_DEBUG is not set
# CONFIG_MTD_CONCAT is not set
CONFIG_MTD_PARTITIONS=y
# CONFIG_MTD_REDBOOT_PARTS is not set
# CONFIG_MTD_CMDLINE_PARTS is not set
#
# User Modules And Translation Layers
#
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLOCK=y
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
# CONFIG_RFD_FTL is not set
# CONFIG_SSFDC is not set
#
# RAM/ROM/Flash chip drivers
#
CONFIG_MTD_CFI=y
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_GEN_PROBE=y
# CONFIG_MTD_CFI_ADV_OPTIONS is not set
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not set
CONFIG_MTD_CFI_INTELEXT=y
CONFIG_MTD_CFI_AMDSTD=y
CONFIG_MTD_CFI_STAA=y
CONFIG_MTD_CFI_UTIL=y
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set
# CONFIG_MTD_OBSOLETE_CHIPS is not set
#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_PHYSMAP_START=0x0
CONFIG_MTD_PHYSMAP_LEN=0x0
CONFIG_MTD_PHYSMAP_BANKWIDTH=0
# CONFIG_MTD_PLATRAM is not set
#
# Self-contained MTD device drivers
#
# CONFIG_MTD_PMC551 is not set
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_PHRAM is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_MTD_BLOCK2MTD is not set
#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOC2000 is not set
# CONFIG_MTD_DOC2001 is not set
# CONFIG_MTD_DOC2001PLUS is not set
#
# NAND Flash Device Drivers
#
# CONFIG_MTD_NAND is not set
#
# OneNAND Flash Device Drivers
#
# CONFIG_MTD_ONENAND is not set
#
# Parallel port support
...
...
arch/mips/mips-boards/malta/Makefile
浏览文件 @
b228f4c5
...
...
@@ -19,5 +19,5 @@
# under Linux.
#
obj-y
:=
malta_int.o malta_setup.o
obj-y
:=
malta_int.o malta_
mtd.o malta_
setup.o
obj-$(CONFIG_SMP)
+=
malta_smp.o
arch/mips/mips-boards/malta/malta_setup.c
浏览文件 @
b228f4c5
...
...
@@ -21,13 +21,6 @@
#include <linux/pci.h>
#include <linux/screen_info.h>
#ifdef CONFIG_MTD
#include <linux/mtd/partitions.h>
#include <linux/mtd/physmap.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
#endif
#include <asm/cpu.h>
#include <asm/bootinfo.h>
#include <asm/irq.h>
...
...
@@ -58,30 +51,6 @@ struct resource standard_io_resources[] = {
{
.
name
=
"dma2"
,
.
start
=
0xc0
,
.
end
=
0xdf
,
.
flags
=
IORESOURCE_BUSY
},
};
#ifdef CONFIG_MTD
static
struct
mtd_partition
malta_mtd_partitions
[]
=
{
{
.
name
=
"YAMON"
,
.
offset
=
0x0
,
.
size
=
0x100000
,
.
mask_flags
=
MTD_WRITEABLE
},
{
.
name
=
"User FS"
,
.
offset
=
0x100000
,
.
size
=
0x2e0000
},
{
.
name
=
"Board Config"
,
.
offset
=
0x3e0000
,
.
size
=
0x020000
,
.
mask_flags
=
MTD_WRITEABLE
}
};
#define number_partitions (sizeof(malta_mtd_partitions)/sizeof(struct mtd_partition))
#endif
const
char
*
get_system_type
(
void
)
{
return
"MIPS Malta"
;
...
...
@@ -211,14 +180,6 @@ void __init plat_mem_setup(void)
#endif
#endif
#ifdef CONFIG_MTD
/*
* Support for MTD on Malta. Use the generic physmap driver
*/
physmap_configure
(
0x1e000000
,
0x400000
,
4
,
NULL
);
physmap_set_partitions
(
malta_mtd_partitions
,
number_partitions
);
#endif
mips_reboot_setup
();
board_time_init
=
mips_time_init
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录