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
b78bb469
Commit
b78bb469
authored
18 years ago
by
Wolfgang Denk
Committed by
Wolfgang Denk
18 years ago
Browse files
Options
Downloads
Plain Diff
Merge with /home/tur/proj/idmr/u-boot
parents
a4012396
2daf046b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
board/idmr/flash.c
+1
-1
1 addition, 1 deletion
board/idmr/flash.c
cpu/mcf52x2/cpu.c
+33
-1
33 additions, 1 deletion
cpu/mcf52x2/cpu.c
include/asm-m68k/m5271.h
+6
-0
6 additions, 0 deletions
include/asm-m68k/m5271.h
include/configs/idmr.h
+18
-2
18 additions, 2 deletions
include/configs/idmr.h
with
58 additions
and
4 deletions
board/idmr/flash.c
+
1
−
1
View file @
b78bb469
...
...
@@ -97,7 +97,7 @@ unsigned long flash_init (void)
flash_protect
(
FLAG_PROTECT_SET
,
CFG_FLASH_BASE
,
CFG_FLASH_BASE
+
0x
30000
,
&
flash_info
[
0
]);
CFG_FLASH_BASE
+
0x
2ffff
,
&
flash_info
[
0
]);
return
size
;
}
...
...
This diff is collapsed.
Click to expand it.
cpu/mcf52x2/cpu.c
+
33
−
1
View file @
b78bb469
...
...
@@ -49,11 +49,43 @@
#endif
#ifdef CONFIG_M5271
/*
* Both MCF5270 and MCF5271 are members of the MPC5271 family. Try to
* determine which one we are running on, based on the Chip Identification
* Register (CIR).
*/
int
checkcpu
(
void
)
{
char
buf
[
32
];
unsigned
short
cir
;
/* Chip Identification Register */
unsigned
short
pin
;
/* Part identification number */
unsigned
char
prn
;
/* Part revision number */
char
*
cpu_model
;
cir
=
mbar_readShort
(
MCF_CCM_CIR
);
pin
=
cir
>>
MCF_CCM_CIR_PIN_LEN
;
prn
=
cir
&
MCF_CCM_CIR_PRN_MASK
;
switch
(
pin
)
{
case
MCF_CCM_CIR_PIN_MCF5270
:
cpu_model
=
"5270"
;
break
;
case
MCF_CCM_CIR_PIN_MCF5271
:
cpu_model
=
"5271"
;
break
;
default:
cpu_model
=
NULL
;
break
;
}
if
(
cpu_model
)
printf
(
"CPU: Freescale ColdFire MCF%s rev. %hu, at %s MHz
\n
"
,
cpu_model
,
prn
,
strmhz
(
buf
,
CFG_CLK
));
else
printf
(
"CPU: Unknown - Freescale ColdFire MCF5271 family"
" (PIN: 0x%x) rev. %hu, at %s MHz
\n
"
,
pin
,
prn
,
strmhz
(
buf
,
CFG_CLK
));
printf
(
"CPU: Freescale Coldfire MCF5271 at %s MHz
\n
"
,
strmhz
(
buf
,
CFG_CLK
));
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
include/asm-m68k/m5271.h
+
6
−
0
View file @
b78bb469
...
...
@@ -57,6 +57,12 @@
#define MCF_GPIO_PAR_FECI2C 0x100047
#define MCF_GPIO_PAR_UART 0x100048
#define MCF_CCM_CIR 0x11000A
#define MCF_CCM_CIR_PRN_MASK 0x3F
#define MCF_CCM_CIR_PIN_LEN 6
#define MCF_CCM_CIR_PIN_MCF5270 0x2e
#define MCF_CCM_CIR_PIN_MCF5271 0x80
#define MCF_GPIO_AD_ADDR23 0x80
#define MCF_GPIO_AD_ADDR22 0x40
#define MCF_GPIO_AD_ADDR21 0x20
...
...
This diff is collapsed.
Click to expand it.
include/configs/idmr.h
+
18
−
2
View file @
b78bb469
...
...
@@ -83,8 +83,8 @@
*/
#define CONFIG_COMMANDS ((CONFIG_CMD_DFL | \
CFG_CMD_PING | \
CFG_CMD_
NET
| \
CFG_CMD_
MII
) & \
CFG_CMD_
JFFS2
| \
CFG_CMD_
NET
) & \
~(CFG_CMD_LOADS | \
CFG_CMD_LOADB))
...
...
@@ -194,4 +194,20 @@
/* Port configuration */
#define CFG_FECI2C 0xF0
/* Dynamic MTD partition support */
#define CONFIG_JFFS2_CMDLINE
#define MTDIDS_DEFAULT "nor0=idmr-0"
#define MTDPARTS_DEFAULT "mtdparts=idmr-0:128k(u-boot)," \
"64k(env)," \
"640k(kernel)," \
"2m(rootfs)," \
"-(user)";
#if (CONFIG_COMMANDS & CFG_CMD_MII)
#error MII commands don't work on iDMR board and sholud not be enabled.
#endif
/* (CONFIG_COMMANDS & CFG_CMD_MII) */
#endif
/* _IDMR_H */
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