Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
e92be633
Commit
e92be633
authored
16 years ago
by
吴智聪(John Wu)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set nand partition for davinci ntosd board
parent
ba45c6f2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
3 deletions
+32
-3
arch/arm/configs/ntosd_644xA_defconfig
arch/arm/configs/ntosd_644xA_defconfig
+1
-1
arch/arm/mach-davinci/board-ntosd-644xA.c
arch/arm/mach-davinci/board-ntosd-644xA.c
+31
-2
No files found.
arch/arm/configs/ntosd_644xA_defconfig
View file @
e92be633
...
@@ -473,7 +473,7 @@ CONFIG_MTD_NAND_IDS=y
...
@@ -473,7 +473,7 @@ CONFIG_MTD_NAND_IDS=y
# CONFIG_MTD_NAND_DISKONCHIP is not set
# CONFIG_MTD_NAND_DISKONCHIP is not set
# CONFIG_MTD_NAND_NANDSIM is not set
# CONFIG_MTD_NAND_NANDSIM is not set
# CONFIG_MTD_NAND_PLATFORM is not set
# CONFIG_MTD_NAND_PLATFORM is not set
# CONFIG_MTD_NAND_DAVINCI is not set
CONFIG_MTD_NAND_DAVINCI=y
# CONFIG_MTD_ONENAND is not set
# CONFIG_MTD_ONENAND is not set
#
#
...
...
This diff is collapsed.
Click to expand it.
arch/arm/mach-davinci/board-ntosd-644xA.c
View file @
e92be633
...
@@ -100,11 +100,40 @@ static struct platform_device ntosd_644xa_norflash_device = {
...
@@ -100,11 +100,40 @@ static struct platform_device ntosd_644xa_norflash_device = {
};
};
#if defined(CONFIG_MTD_NAND_DAVINCI) || defined(CONFIG_MTD_NAND_DAVINCI_MODULE)
#if defined(CONFIG_MTD_NAND_DAVINCI) || defined(CONFIG_MTD_NAND_DAVINCI_MODULE)
#define UBOOT_START 0x18000
struct
mtd_partition
ntosd_644xa_nandflash_partition
[]
=
{
struct
mtd_partition
ntosd_644xa_nandflash_partition
[]
=
{
/* 5 MB space at the beginning for bootloader and kernel */
/* uboot parameter */
{
.
name
=
"u-boot-parameter"
,
.
offset
=
0
,
.
size
=
1
*
SZ_16K
,
.
mask_flags
=
0
,
},
/* ubl */
{
.
name
=
"ubl"
,
.
offset
=
1
*
SZ_16K
,
.
size
=
5
*
SZ_16K
,
.
mask_flags
=
0
,
},
/* 1 MB space from bootloader start for bootloader */
{
.
name
=
"u-boot"
,
.
offset
=
UBOOT_START
,
.
size
=
1
*
SZ_1M
,
.
mask_flags
=
0
,
},
/* 5 MB space for kernel */
{
.
name
=
"kernel"
,
.
offset
=
1
*
SZ_1M
+
UBOOT_START
,
.
size
=
5
*
SZ_1M
,
.
mask_flags
=
0
,
},
/* the rest for rootfs */
{
{
.
name
=
"NAND filesystem"
,
.
name
=
"NAND filesystem"
,
.
offset
=
5
*
SZ_1M
,
.
offset
=
6
*
SZ_1M
+
UBOOT_START
,
.
size
=
MTDPART_SIZ_FULL
,
.
size
=
MTDPART_SIZ_FULL
,
.
mask_flags
=
0
,
.
mask_flags
=
0
,
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment