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
c083e4ba
Commit
c083e4ba
authored
14 years ago
by
Graeme Russ
Browse files
Options
Downloads
Patches
Plain Diff
eNET: Rearrange PAR assignments
parent
420c7c05
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
board/eNET/eNET.c
+46
-15
46 additions, 15 deletions
board/eNET/eNET.c
include/configs/eNET.h
+0
-15
0 additions, 15 deletions
include/configs/eNET.h
with
46 additions
and
30 deletions
board/eNET/eNET.c
+
46
−
15
View file @
c083e4ba
...
@@ -47,6 +47,7 @@ unsigned long monitor_flash_len = CONFIG_SYS_MONITOR_LEN;
...
@@ -47,6 +47,7 @@ unsigned long monitor_flash_len = CONFIG_SYS_MONITOR_LEN;
static
void
enet_timer_isr
(
void
);
static
void
enet_timer_isr
(
void
);
static
void
enet_toggle_run_led
(
void
);
static
void
enet_toggle_run_led
(
void
);
static
void
enet_setup_pars
(
void
);
/*
/*
* Miscellaneous platform dependent initializations
* Miscellaneous platform dependent initializations
...
@@ -89,21 +90,7 @@ int board_early_init_f(void)
...
@@ -89,21 +90,7 @@ int board_early_init_f(void)
/* Clear FPGA program mode */
/* Clear FPGA program mode */
writew
(
CONFIG_SYS_ENET_FPGA_PROG
,
&
sc520_mmcr
->
pioset31_16
);
writew
(
CONFIG_SYS_ENET_FPGA_PROG
,
&
sc520_mmcr
->
pioset31_16
);
/* Configure Programmable Address Regions */
enet_setup_pars
();
writel
(
CONFIG_SYS_SC520_UARTA_PAR
,
&
sc520_mmcr
->
par
[
2
]);
writel
(
CONFIG_SYS_SC520_UARTB_PAR
,
&
sc520_mmcr
->
par
[
3
]);
writel
(
CONFIG_SYS_SC520_UARTC_PAR
,
&
sc520_mmcr
->
par
[
4
]);
writel
(
CONFIG_SYS_SC520_UARTD_PAR
,
&
sc520_mmcr
->
par
[
5
]);
writel
(
CONFIG_SYS_SC520_SDRAM_PAR
,
&
sc520_mmcr
->
par
[
6
]);
writel
(
CONFIG_SYS_SC520_SF1_PAR
,
&
sc520_mmcr
->
par
[
7
]);
writel
(
CONFIG_SYS_SC520_SF2_PAR
,
&
sc520_mmcr
->
par
[
8
]);
writel
(
CONFIG_SYS_SC520_SRAM1_PAR
,
&
sc520_mmcr
->
par
[
9
]);
writel
(
CONFIG_SYS_SC520_SRAM2_PAR
,
&
sc520_mmcr
->
par
[
10
]);
writel
(
CONFIG_SYS_SC520_DPRAM_PAR
,
&
sc520_mmcr
->
par
[
11
]);
writel
(
CONFIG_SYS_SC520_CF1_PAR
,
&
sc520_mmcr
->
par
[
12
]);
writel
(
CONFIG_SYS_SC520_CF2_PAR
,
&
sc520_mmcr
->
par
[
13
]);
/* writel(CONFIG_SYS_SC520_BOOTCS_PAR, &sc520_mmcr->par14); */
/* writel(CONFIG_SYS_SC520_LLIO_PAR, &sc520_mmcr->par15); */
/* Disable Watchdog */
/* Disable Watchdog */
writew
(
0x3333
,
&
sc520_mmcr
->
wdtmrctl
);
writew
(
0x3333
,
&
sc520_mmcr
->
wdtmrctl
);
...
@@ -128,6 +115,50 @@ int board_early_init_f(void)
...
@@ -128,6 +115,50 @@ int board_early_init_f(void)
return
0
;
return
0
;
}
}
static
void
enet_setup_pars
(
void
)
{
/*
* PARs 11 and 12 are 2MB SRAM @ 0x19000000
*
* These are setup now because older version of U-Boot have them
* mapped to a different PAR which gets clobbered which prevents
* using SRAM for warm-booting a new image
*/
writel
(
CONFIG_SYS_SC520_SRAM1_PAR
,
&
sc520_mmcr
->
par
[
11
]);
writel
(
CONFIG_SYS_SC520_SRAM2_PAR
,
&
sc520_mmcr
->
par
[
12
]);
/* PARs 0 and 1 are Compact Flash slots (4kB each) */
writel
(
CONFIG_SYS_SC520_CF1_PAR
,
&
sc520_mmcr
->
par
[
0
]);
writel
(
CONFIG_SYS_SC520_CF2_PAR
,
&
sc520_mmcr
->
par
[
1
]);
/* PAR 2 is used for Cache-As-RAM */
/*
* PARs 5 through 8 are additional NS16550 UARTS
* 8 bytes each @ 0x013f8, 0x012f8, 0x011f8 and 0x010f8
*/
writel
(
CONFIG_SYS_SC520_UARTA_PAR
,
&
sc520_mmcr
->
par
[
5
]);
writel
(
CONFIG_SYS_SC520_UARTB_PAR
,
&
sc520_mmcr
->
par
[
6
]);
writel
(
CONFIG_SYS_SC520_UARTC_PAR
,
&
sc520_mmcr
->
par
[
7
]);
writel
(
CONFIG_SYS_SC520_UARTD_PAR
,
&
sc520_mmcr
->
par
[
8
]);
/* PARs 9 and 10 are 32MB StrataFlash @ 0x10000000 */
writel
(
CONFIG_SYS_SC520_SF1_PAR
,
&
sc520_mmcr
->
par
[
9
]);
writel
(
CONFIG_SYS_SC520_SF2_PAR
,
&
sc520_mmcr
->
par
[
10
]);
/* PAR 13 is 4kB DPRAM @ 0x18100000 (implemented in FPGA) */
writel
(
CONFIG_SYS_SC520_DPRAM_PAR
,
&
sc520_mmcr
->
par
[
13
]);
/*
* PAR 14 is Low Level I/O (LEDs, Hex Switches etc)
* Already configured in board_init16 (eNET_start16.S)
*
* PAR 15 is Boot ROM
* Already configured in board_init16 (eNET_start16.S)
*/
}
int
board_early_init_r
(
void
)
int
board_early_init_r
(
void
)
{
{
/* CPU Speed to 100MHz */
/* CPU Speed to 100MHz */
...
...
This diff is collapsed.
Click to expand it.
include/configs/eNET.h
+
0
−
15
View file @
c083e4ba
...
@@ -614,21 +614,6 @@
...
@@ -614,21 +614,6 @@
*/
*/
#define CONFIG_SYS_SC520_DPRAM_PAR 0x50018100
#define CONFIG_SYS_SC520_DPRAM_PAR 0x50018100
/*-----------------------------------------------------------------------
* PAR for SDRAM - 128MB @ 0x00000000
* 111 0 0 0 1 11111111111 00000000000000 }- 0xe3ffc000
* \ / | | | | \----+----/ \-----+------/
* | | | | | | +---------- Start at 0x00000000
* | | | | | +----------------------- 128MB Region Size
* | | | | | ((2047 + 1) * 64kB)
* | | | | +------------------------------ 64kB Page Size
* | | | +-------------------------------- Writes Enabled
* | | +---------------------------------- Caching Enabled
* | +------------------------------------ Execution Enabled
* +--------------------------------------- SDRAM
*/
#define CONFIG_SYS_SC520_SDRAM_PAR 0xe3ffc000
#ifndef __ASSEMBLER__
#ifndef __ASSEMBLER__
extern
unsigned
long
ip
;
extern
unsigned
long
ip
;
...
...
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