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
11d9eec4
Commit
11d9eec4
authored
17 years ago
by
Martin Krause
Committed by
Wolfgang Denk
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
TQM885D: adjust for doubled flash sector size + some minor fixes
Signed-off-by:
Martin Krause
<
martin.krause@tqs.de
>
parent
22d1a56c
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
board/tqm8xx/tqm8xx.c
+2
-2
2 additions, 2 deletions
board/tqm8xx/tqm8xx.c
include/common.h
+5
-4
5 additions, 4 deletions
include/common.h
include/configs/TQM885D.h
+13
-7
13 additions, 7 deletions
include/configs/TQM885D.h
with
20 additions
and
13 deletions
board/tqm8xx/tqm8xx.c
+
2
−
2
View file @
11d9eec4
...
@@ -184,7 +184,7 @@ long int initdram (int board_type)
...
@@ -184,7 +184,7 @@ long int initdram (int board_type)
#ifndef CONFIG_CAN_DRIVER
#ifndef CONFIG_CAN_DRIVER
if
((
board_type
!=
'L'
)
&&
if
((
board_type
!=
'L'
)
&&
(
board_type
!=
'M'
)
&&
(
board_type
!=
'M'
)
&&
(
board_type
!=
'D'
)
)
{
/*
"L" and "M" type boards have only one bank SDRAM
*/
(
board_type
!=
'D'
)
)
{
/*
only one SDRAM bank on L, M and D modules
*/
memctl
->
memc_or3
=
CFG_OR3_PRELIM
;
memctl
->
memc_or3
=
CFG_OR3_PRELIM
;
memctl
->
memc_br3
=
CFG_BR3_PRELIM
;
memctl
->
memc_br3
=
CFG_BR3_PRELIM
;
}
}
...
@@ -260,7 +260,7 @@ long int initdram (int board_type)
...
@@ -260,7 +260,7 @@ long int initdram (int board_type)
#ifndef CONFIG_CAN_DRIVER
#ifndef CONFIG_CAN_DRIVER
if
((
board_type
!=
'L'
)
&&
if
((
board_type
!=
'L'
)
&&
(
board_type
!=
'M'
)
&&
(
board_type
!=
'M'
)
&&
(
board_type
!=
'D'
)
)
{
/*
"L" and "M" type boards have only one bank SDRAM
*/
(
board_type
!=
'D'
)
)
{
/*
only one SDRAM bank on L, M and D modules
*/
/*
/*
* Check Bank 1 Memory Size
* Check Bank 1 Memory Size
* use current column settings
* use current column settings
...
...
This diff is collapsed.
Click to expand it.
include/common.h
+
5
−
4
View file @
11d9eec4
...
@@ -129,20 +129,21 @@ typedef void (interrupt_handler_t)(void *);
...
@@ -129,20 +129,21 @@ typedef void (interrupt_handler_t)(void *);
/*
/*
* enable common handling for all TQM8xxL/M boards:
* enable common handling for all TQM8xxL/M boards:
* - CONFIG_TQM8xxM will be defined for all TQM8xxM
and TQM885D
boards
* - CONFIG_TQM8xxM will be defined for all TQM8xxM boards
* - CONFIG_TQM8xxL will be defined for all TQM8xxL _and_ TQM8xxM boards
* - CONFIG_TQM8xxL will be defined for all TQM8xxL _and_ TQM8xxM boards
* and for the TQM885D board
*/
*/
#if defined(CONFIG_TQM823M) || defined(CONFIG_TQM850M) || \
#if defined(CONFIG_TQM823M) || defined(CONFIG_TQM850M) || \
defined(CONFIG_TQM855M) || defined(CONFIG_TQM860M) || \
defined(CONFIG_TQM855M) || defined(CONFIG_TQM860M) || \
defined(CONFIG_TQM862M) || defined(CONFIG_TQM866M) || \
defined(CONFIG_TQM862M) || defined(CONFIG_TQM866M)
defined(CONFIG_TQM885D)
# ifndef CONFIG_TQM8xxM
# ifndef CONFIG_TQM8xxM
# define CONFIG_TQM8xxM
# define CONFIG_TQM8xxM
# endif
# endif
#endif
#endif
#if defined(CONFIG_TQM823L) || defined(CONFIG_TQM850L) || \
#if defined(CONFIG_TQM823L) || defined(CONFIG_TQM850L) || \
defined(CONFIG_TQM855L) || defined(CONFIG_TQM860L) || \
defined(CONFIG_TQM855L) || defined(CONFIG_TQM860L) || \
defined(CONFIG_TQM862L) || defined(CONFIG_TQM8xxM)
defined(CONFIG_TQM862L) || defined(CONFIG_TQM8xxM) || \
defined(CONFIG_TQM885D)
# ifndef CONFIG_TQM8xxL
# ifndef CONFIG_TQM8xxL
# define CONFIG_TQM8xxL
# define CONFIG_TQM8xxL
# endif
# endif
...
...
This diff is collapsed.
Click to expand it.
include/configs/TQM885D.h
+
13
−
7
View file @
11d9eec4
...
@@ -76,9 +76,15 @@
...
@@ -76,9 +76,15 @@
"bootm ${kernel_addr} ${ramdisk_addr}\0" \
"bootm ${kernel_addr} ${ramdisk_addr}\0" \
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0" \
"rootpath=/opt/eldk/ppc_8xx\0" \
"rootpath=/opt/eldk/ppc_8xx\0" \
"bootfile=/tftpboot/TQM866M/uImage\0" \
"bootfile=/tftpboot/TQM885D/uImage\0" \
"kernel_addr=40080000\0" \
"fdt_addr=400C0000\0" \
"ramdisk_addr=40180000\0" \
"kernel_addr=40100000\0" \
"ramdisk_addr=40280000\0" \
"load=tftp 200000 ${u-boot}\0" \
"update=protect off 40000000 +${filesize};" \
"erase 40000000 +${filesize};" \
"cp.b 200000 40000000 ${filesize};" \
"protect on 40000000 +${filesize}\0" \
""
""
#define CONFIG_BOOTCOMMAND "run flash_self"
#define CONFIG_BOOTCOMMAND "run flash_self"
...
@@ -137,7 +143,7 @@
...
@@ -137,7 +143,7 @@
#define CONFIG_MAC_PARTITION
#define CONFIG_MAC_PARTITION
#define CONFIG_DOS_PARTITION
#define CONFIG_DOS_PARTITION
#undef CONFIG_RTC_MPC8xx
/* MPC8
66
does not support RTC */
#undef CONFIG_RTC_MPC8xx
/* MPC8
85
does not support RTC */
#define CONFIG_TIMESTAMP
/* but print image timestmps */
#define CONFIG_TIMESTAMP
/* but print image timestmps */
...
@@ -223,7 +229,7 @@
...
@@ -223,7 +229,7 @@
#define CFG_FLASH_BASE 0x40000000
#define CFG_FLASH_BASE 0x40000000
#define CFG_MONITOR_LEN (256 << 10)
/* Reserve 256 kB for Monitor */
#define CFG_MONITOR_LEN (256 << 10)
/* Reserve 256 kB for Monitor */
#define CFG_MONITOR_BASE CFG_FLASH_BASE
#define CFG_MONITOR_BASE CFG_FLASH_BASE
#define CFG_MALLOC_LEN (
128
<< 10)
/* Reserve 128 kB for malloc() */
#define CFG_MALLOC_LEN (
256
<< 10)
/* Reserve 128 kB for malloc() */
/*
/*
* For booting Linux, the board info and command line data
* For booting Linux, the board info and command line data
...
@@ -243,8 +249,8 @@
...
@@ -243,8 +249,8 @@
#define CFG_ENV_IS_IN_FLASH 1
#define CFG_ENV_IS_IN_FLASH 1
#define CFG_ENV_OFFSET 0x40000
/* Offset of Environment Sector */
#define CFG_ENV_OFFSET 0x40000
/* Offset of Environment Sector */
#define CFG_ENV_SIZE 0x08000
/* Total Size of Environment
Sector
*/
#define CFG_ENV_SIZE 0x08000
/* Total Size of Environment
*/
#define CFG_ENV_SECT_SIZE 0x
2
0000
/* Total Size of Environment Sector */
#define CFG_ENV_SECT_SIZE 0x
4
0000
/* Total Size of Environment Sector */
/* Address and size of Redundant Environment Sector */
/* Address and size of Redundant Environment Sector */
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
#define CFG_ENV_OFFSET_REDUND (CFG_ENV_OFFSET+CFG_ENV_SECT_SIZE)
...
...
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