Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
a07351fd
Commit
a07351fd
authored
16 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
git://git.denx.de/u-boot-at91
parents
bde63587
fdd70d19
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
MAKEALL
+1
-11
1 addition, 11 deletions
MAKEALL
drivers/mtd/dataflash.c
+14
-0
14 additions, 0 deletions
drivers/mtd/dataflash.c
include/dataflash.h
+1
-0
1 addition, 0 deletions
include/dataflash.h
with
16 additions
and
11 deletions
MAKEALL
+
1
−
11
View file @
a07351fd
...
...
@@ -461,13 +461,6 @@ LIST_ARM7=" \
#########################################################################
LIST_ARM9
=
"
\
at91cap9adk
\
at91rm9200dk
\
at91sam9260ek
\
at91sam9261ek
\
at91sam9263ek
\
at91sam9rlek
\
cmc_pu2
\
ap920t
\
ap922_XA10
\
ap926ejs
\
...
...
@@ -478,11 +471,7 @@ LIST_ARM9=" \
cp926ejs
\
cp946es
\
cp966
\
csb637
\
kb9202
\
lpd7a400
\
m501sk
\
mp2usb
\
mx1ads
\
mx1fs2
\
netstar
\
...
...
@@ -587,6 +576,7 @@ LIST_arm=" \
${
LIST_ARM9
}
\
${
LIST_ARM10
}
\
${
LIST_ARM11
}
\
${
LIST_at91
}
\
${
LIST_pxa
}
\
${
LIST_ixp
}
\
"
...
...
This diff is collapsed.
Click to expand it.
drivers/mtd/dataflash.c
+
14
−
0
View file @
a07351fd
...
...
@@ -54,6 +54,17 @@ int AT91F_DataflashInit (void)
&
dataflash_info
[
i
].
Desc
);
switch
(
dfcode
)
{
case
AT45DB021
:
dataflash_info
[
i
].
Device
.
pages_number
=
1024
;
dataflash_info
[
i
].
Device
.
pages_size
=
263
;
dataflash_info
[
i
].
Device
.
page_offset
=
9
;
dataflash_info
[
i
].
Device
.
byte_mask
=
0x300
;
dataflash_info
[
i
].
Device
.
cs
=
cs
[
i
].
cs
;
dataflash_info
[
i
].
Desc
.
DataFlash_state
=
IDLE
;
dataflash_info
[
i
].
logical_address
=
cs
[
i
].
addr
;
dataflash_info
[
i
].
id
=
dfcode
;
found
[
i
]
+=
dfcode
;;
break
;
case
AT45DB161
:
dataflash_info
[
i
].
Device
.
pages_number
=
4096
;
dataflash_info
[
i
].
Device
.
pages_size
=
528
;
...
...
@@ -178,6 +189,9 @@ void dataflash_print_info (void)
if
(
dataflash_info
[
i
].
id
!=
0
)
{
printf
(
"DataFlash:"
);
switch
(
dataflash_info
[
i
].
id
)
{
case
AT45DB021
:
printf
(
"AT45DB021
\n
"
);
break
;
case
AT45DB161
:
printf
(
"AT45DB161
\n
"
);
break
;
...
...
This diff is collapsed.
Click to expand it.
include/dataflash.h
+
1
−
0
View file @
a07351fd
...
...
@@ -137,6 +137,7 @@ struct dataflash_addr {
/*-------------------------------------------------------------------------------------------------*/
#define AT45DB161 0x2c
#define AT45DB021 0x14
#define AT45DB321 0x34
#define AT45DB642 0x3c
#define AT45DB128 0x10
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment