Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
U
uboot-imx
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Librem5
uboot-imx
Commits
bfc81252
Commit
bfc81252
authored
Mar 06, 2006
by
Wolfgang Denk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor code cleanup
parent
4e3ccd26
Changes
24
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
433 additions
and
529 deletions
+433
-529
CHANGELOG
CHANGELOG
+2
-0
config.mk
board/amcc/bamboo/config.mk
+0
-1
config.mk
board/bmw/config.mk
+0
-1
config.mk
board/dave/PPChameleonEVB/config.mk
+0
-1
nand.c
board/dave/PPChameleonEVB/nand.c
+1
-1
auto_update.c
board/esd/common/auto_update.c
+0
-3
cmd_loadpci.c
board/esd/common/cmd_loadpci.c
+0
-1
cpci2dp.c
board/esd/cpci2dp/cpci2dp.c
+2
-2
config.mk
board/esd/cpci405/config.mk
+0
-1
cpci750.c
board/esd/cpci750/cpci750.c
+0
-1
pci.c
board/esd/cpci750/pci.c
+96
-96
config.mk
board/esd/hh405/config.mk
+0
-1
config.mk
board/esd/hub405/config.mk
+0
-1
mcc200.c
board/mcc200/mcc200.c
+0
-60
mt48lc8m32b2-6-7.h
board/mcc200/mt48lc8m32b2-6-7.h
+0
-18
config.mk
board/netstar/config.mk
+0
-1
config.mk
board/netta2/config.mk
+0
-1
cmd_nand.c
common/cmd_nand.c
+0
-2
README.nand
doc/README.nand
+3
-4
i8042.c
drivers/i8042.c
+218
-218
CPCI750.h
include/configs/CPCI750.h
+109
-109
PPChameleonEVB.h
include/configs/PPChameleonEVB.h
+0
-2
mcc200.h
include/configs/mcc200.h
+2
-3
nand.h
include/linux/mtd/nand.h
+0
-1
No files found.
CHANGELOG
View file @
bfc81252
...
...
@@ -2,6 +2,8 @@
Changes since U-Boot 1.1.4:
======================================================================
* Minor code cleanup
* Merge the new NAND code (testing-NAND brach); see doc/README.nand
Rewrite of NAND code based on what is in 2.6.12 Linux kernel
Patch by Ladislav Michl, 29 Jun 2005
...
...
board/amcc/bamboo/config.mk
View file @
bfc81252
...
...
@@ -35,4 +35,3 @@ endif
# legacy nand support
BOARDLIBS = drivers/nand_legacy/libnand_legacy.a
board/bmw/config.mk
View file @
bfc81252
...
...
@@ -30,4 +30,3 @@ TEXT_BASE = 0xFFF00000
PLATFORM_CPPFLAGS += -DEMBEDDED -DBIG_ENDIAN_HOST -DINCLUDE_5701_AX_FIX=1\
-DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256\
-DTEXT_BASE=$(TEXT_BASE)
board/dave/PPChameleonEVB/config.mk
View file @
bfc81252
...
...
@@ -32,4 +32,3 @@ BOARDLIBS = drivers/nand/libnand.a
# Compile the legacy NAND code (CFG_NAND_LEGACY must be defined)
#BOARDLIBS = drivers/nand_legacy/libnand_legacy.a
board/dave/PPChameleonEVB/nand.c
View file @
bfc81252
...
...
@@ -81,7 +81,7 @@ static int ppchameleonevb_device_ready(struct mtd_info *mtdinfo)
break
;
}
if
(
in32
(
GPIO0_IR
)
&
rb_gpio_pin
)
if
(
in32
(
GPIO0_IR
)
&
rb_gpio_pin
)
return
1
;
return
0
;
}
...
...
board/esd/common/auto_update.c
View file @
bfc81252
...
...
@@ -42,9 +42,6 @@
#error "must define CFG_CMD_FAT"
#endif
extern
au_image_t
au_image
[];
extern
int
N_AU_IMAGES
;
...
...
board/esd/common/cmd_loadpci.c
View file @
bfc81252
...
...
@@ -120,4 +120,3 @@ U_BOOT_CMD(
);
#endif
board/esd/cpci2dp/cpci2dp.c
View file @
bfc81252
...
...
@@ -36,9 +36,9 @@ int board_early_init_f (void)
cntrl0Reg
=
mfdcr
(
cntrl0
);
mtdcr
(
cntrl0
,
cntrl0Reg
|
((
CFG_EEPROM_WP
|
CFG_PB_LED
|
CFG_SELF_RST
|
CFG_INTA_FAKE
)
<<
5
));
/* set output pins to high */
/* set output pins to high */
out32
(
GPIO0_OR
,
CFG_EEPROM_WP
);
/* setup for output (LED=off) */
/* setup for output (LED=off) */
out32
(
GPIO0_TCR
,
CFG_EEPROM_WP
|
CFG_PB_LED
);
/*
...
...
board/esd/cpci405/config.mk
View file @
bfc81252
...
...
@@ -41,4 +41,3 @@ endif
# Compile the legacy NAND code (CFG_NAND_LEGACY must be defined)
BOARDLIBS = drivers/nand_legacy/libnand_legacy.a
board/esd/cpci750/cpci750.c
View file @
bfc81252
...
...
@@ -378,7 +378,6 @@ int misc_init_r ()
CFG_MONITOR_BASE
,
CFG_MONITOR_BASE
+
monitor_flash_len
-
1
,
&
flash_info
[
3
]);
}
return
0
;
}
...
...
board/esd/cpci750/pci.c
View file @
bfc81252
This diff is collapsed.
Click to expand it.
board/esd/hh405/config.mk
View file @
bfc81252
...
...
@@ -32,4 +32,3 @@ TEXT_BASE = 0xFFF80000
# Compile the legacy NAND code (CFG_NAND_LEGACY must be defined)
BOARDLIBS = drivers/nand_legacy/libnand_legacy.a
board/esd/hub405/config.mk
View file @
bfc81252
...
...
@@ -29,4 +29,3 @@ TEXT_BASE = 0xFFFC0000
# Compile the legacy NAND code (CFG_NAND_LEGACY must be defined)
BOARDLIBS = drivers/nand_legacy/libnand_legacy.a
board/mcc200/mcc200.c
View file @
bfc81252
...
...
@@ -28,19 +28,12 @@
#include <mpc5xxx.h>
#include <pci.h>
//###CHD: es gibt eigentlich kein DDR bei uns -> weg damit!; dto. PCI!
#if defined(CONFIG_MPC5200_DDR)
#include "mt46v16m16-75.h"
#else
//#include "mt48lc16m16a2-75.h"
#include "mt48lc8m32b2-6-7.h"
#endif
extern
flash_info_t
flash_info
[];
/* FLASH chips info */
ulong
flash_get_size
(
ulong
base
,
int
banknum
);
//###CHD: wenn RAMBOOT gehen wuerde, ....
#ifndef CFG_RAMBOOT
static
void
sdram_start
(
int
hi_addr
)
{
...
...
@@ -88,7 +81,6 @@ static void sdram_start (int hi_addr)
* is something else than 0x00000000.
*/
#if defined(CONFIG_MPC5200)
long
int
initdram
(
int
board_type
)
{
ulong
dramsize
=
0
;
...
...
@@ -190,58 +182,6 @@ long int initdram (int board_type)
return
dramsize
+
dramsize2
;
}
//###CHD: sowas gibt es bei usn nicht!
#elif defined(CONFIG_MGT5100)
long
int
initdram
(
int
board_type
)
{
ulong
dramsize
=
0
;
#ifndef CFG_RAMBOOT
ulong
test1
,
test2
;
/* setup and enable SDRAM chip selects */
*
(
vu_long
*
)
MPC5XXX_SDRAM_START
=
0x00000000
;
*
(
vu_long
*
)
MPC5XXX_SDRAM_STOP
=
0x0000ffff
;
/* 2G */
*
(
vu_long
*
)
MPC5XXX_ADDECR
|=
(
1
<<
22
);
/* Enable SDRAM */
__asm__
volatile
(
"sync"
);
/* setup config registers */
*
(
vu_long
*
)
MPC5XXX_SDRAM_CONFIG1
=
SDRAM_CONFIG1
;
*
(
vu_long
*
)
MPC5XXX_SDRAM_CONFIG2
=
SDRAM_CONFIG2
;
/* address select register */
*
(
vu_long
*
)
MPC5XXX_SDRAM_XLBSEL
=
SDRAM_ADDRSEL
;
__asm__
volatile
(
"sync"
);
/* find RAM size */
sdram_start
(
0
);
test1
=
get_ram_size
((
ulong
*
)
CFG_SDRAM_BASE
,
0x80000000
);
sdram_start
(
1
);
test2
=
get_ram_size
((
ulong
*
)
CFG_SDRAM_BASE
,
0x80000000
);
if
(
test1
>
test2
)
{
sdram_start
(
0
);
dramsize
=
test1
;
}
else
{
dramsize
=
test2
;
}
/* set SDRAM end address according to size */
*
(
vu_long
*
)
MPC5XXX_SDRAM_STOP
=
((
dramsize
-
1
)
>>
15
);
#else
/* CFG_RAMBOOT */
/* Retrieve amount of SDRAM available */
dramsize
=
((
*
(
vu_long
*
)
MPC5XXX_SDRAM_STOP
+
1
)
<<
15
);
#endif
/* CFG_RAMBOOT */
return
dramsize
;
}
#else
#error Neither CONFIG_MPC5200 or CONFIG_MGT5100 defined
#endif
int
checkboard
(
void
)
{
puts
(
"Board: MCC200
\n
"
);
...
...
board/mcc200/mt48lc8m32b2-6-7.h
View file @
bfc81252
...
...
@@ -4,27 +4,9 @@
#define SDRAM_DDR 0
/* is SDR */
#if defined(CONFIG_MPC5200)
/* Settings for XLB = 132 MHz */
//#define SDRAM_MODE 0x00cc0000 // CL-3 BURST-8 -> Mode RegisterMBAR + 0x0100
//#define SDRAM_CONTROL 0x501f0000 // Control RegisterMBAR + 0x0104
//#define SDRAM_CONFIG1 0xe2329000 // Delays between commands -> Configuration Register 1MBAR + 0x0108
//#define SDRAM_CONFIG2 0x46e70000 // Delays between commands -> Configuration Register 2MBAR + 0x010C
//Christian
//#define SDRAM_MODE 0x00cd0000 // CL-3 BURST-8 -> Mode RegisterMBAR + 0x0100
//#define SDRAM_CONTROL 0x501f0000 // Control RegisterMBAR + 0x0104
//#define SDRAM_CONFIG1 0xd2322900 // Delays between commands -> Configuration Register 1MBAR + 0x0108
//#define SDRAM_CONFIG2 0x8ad70000 // Delays between commands -> Configuration Register 2MBAR + 0x010C
//###CHD: ordentliche Doku dazu! CAS=2, etc.
//STefan
#define SDRAM_MODE 0x008d0000 // CL-3 BURST-8 -> Mode RegisterMBAR + 0x0100
#define SDRAM_CONTROL 0x504f0000 // Control RegisterMBAR + 0x0104
#define SDRAM_CONFIG1 0xc2222900 // Delays between commands -> Configuration Register 1MBAR + 0x0108
#define SDRAM_CONFIG2 0x88c70000 // Delays between commands -> Configuration Register 2MBAR + 0x010C
#else
#error CONFIG_MPC5200 not defined, please set parameters for your sdram controller in mt48lc8m32b2.h
#endif
board/netstar/config.mk
View file @
bfc81252
...
...
@@ -12,4 +12,3 @@ TEXT_BASE = 0x13FC0000
# Compile the new NAND code
BOARDLIBS = drivers/nand/libnand.a
board/netta2/config.mk
View file @
bfc81252
...
...
@@ -29,4 +29,3 @@ TEXT_BASE = 0x40000000
# Compile the legacy NAND code (CFG_NAND_LEGACY must be defined)
BOARDLIBS = drivers/nand_legacy/libnand_legacy.a
common/cmd_nand.c
View file @
bfc81252
...
...
@@ -442,8 +442,6 @@ void archflashwp(void *archdata, int wp);
#define NANDRW_JFFS2 0x02
#define NANDRW_JFFS2_SKIP 0x04
/*
* Imports from nand_legacy.c
*/
...
...
doc/README.nand
View file @
bfc81252
...
...
@@ -179,7 +179,6 @@ More Definitions:
#define NAND_MAX_CHIPS 1
NOTE:
=====
...
...
@@ -204,7 +203,7 @@ use JFFS, which has been adopted to use the new NAND, and at the same
time use NAND in legacy mode. The breakage will disappear when the
board-specific code is changed to the new NAND.
As mentioned above, the legacy code is still used by the DoC subsystem.
The consequence of this is that the legacy NAND can't be removed from
the tree until the DoC is ported to use the new NAND support (or boards
As mentioned above, the legacy code is still used by the DoC subsystem.
The consequence of this is that the legacy NAND can't be removed from
the tree until the DoC is ported to use the new NAND support (or boards
with DoC will break).
drivers/i8042.c
View file @
bfc81252
This diff is collapsed.
Click to expand it.
include/configs/CPCI750.h
View file @
bfc81252
This diff is collapsed.
Click to expand it.
include/configs/PPChameleonEVB.h
View file @
bfc81252
...
...
@@ -300,8 +300,6 @@
#define NAND_ChipID_UNKNOWN 0x00
#define NAND_MAX_FLOORS 1
#ifdef NAND_NO_RB
/* constant delay (see also tR in the datasheet) */
#define NAND_WAIT_READY(nand) do { \
...
...
include/configs/mcc200.h
View file @
bfc81252
...
...
@@ -229,9 +229,8 @@
/*
* GPIO configuration
*/
//###CHD: MSB = 1 -> 64MB: funktioniert nicht: ERRATA - BUG?
//###CHD: 0x10000004 = 32MB SDRAM
//###CHD: 0x90000004 = 64MB SDRAM
/* 0x10000004 = 32MB SDRAM */
/* 0x90000004 = 64MB SDRAM */
#define CFG_GPS_PORT_CONFIG 0x10000004
/*
...
...
include/linux/mtd/nand.h
View file @
bfc81252
...
...
@@ -65,7 +65,6 @@ extern void nand_release (struct mtd_info *mtd);
extern
int
nand_read_raw
(
struct
mtd_info
*
mtd
,
uint8_t
*
buf
,
loff_t
from
,
size_t
len
,
size_t
ooblen
);
/* This constant declares the max. oobsize / page, which
* is supported now. If you add a chip with bigger oobsize/page
* adjust this accordingly.
...
...
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