Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uboot-i9100
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
Model registry
Operate
Environments
Monitor
Incidents
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
onny
uboot-i9100
Commits
00c35bd2
Commit
00c35bd2
authored
19 years ago
by
Markus Klotzbcher
Committed by
Markus Klotzbcher
19 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added GPIO initialization of DF signal. Still not working.
parent
6949328d
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
board/delta/nand.c
+40
-2
40 additions, 2 deletions
board/delta/nand.c
config.mk
+6
-1
6 additions, 1 deletion
config.mk
cpu/pxa/config.mk
+1
-0
1 addition, 0 deletions
cpu/pxa/config.mk
include/configs/delta.h
+1
-1
1 addition, 1 deletion
include/configs/delta.h
with
48 additions
and
4 deletions
board/delta/nand.c
+
40
−
2
View file @
00c35bd2
...
@@ -141,7 +141,7 @@ static void delta_cmdfunc(struct mtd_info *mtd, unsigned command,
...
@@ -141,7 +141,7 @@ static void delta_cmdfunc(struct mtd_info *mtd, unsigned command,
switch
(
command
)
{
switch
(
command
)
{
case
NAND_CMD_READID
:
case
NAND_CMD_READID
:
printk
(
"delta_cmdfunc: NAND_CMD_READID.
\n
"
);
printk
(
"delta_cmdfunc: NAND_CMD_READID.
\n
"
);
ndcb0
|=
((
3
<<
21
)
|
(
2
<<
16
));
ndcb0
|=
((
3
<<
21
)
|
(
1
<<
16
));
/* addr cycles*/
break
;
break
;
case
NAND_CMD_PAGEPROG
:
case
NAND_CMD_PAGEPROG
:
case
NAND_CMD_ERASE1
:
case
NAND_CMD_ERASE1
:
...
@@ -161,6 +161,43 @@ static void delta_cmdfunc(struct mtd_info *mtd, unsigned command,
...
@@ -161,6 +161,43 @@ static void delta_cmdfunc(struct mtd_info *mtd, unsigned command,
NDCB2
=
ndcb2
;
NDCB2
=
ndcb2
;
}
}
void
delta_dfc_gpio_init
()
{
printf
(
"Setting up DFC GPIO's.
\n
"
);
/* no idea what is done here, see zylonite.c */
GPIO4
=
0x1
;
DF_ALE_WE1
=
0x00000001
;
DF_ALE_WE2
=
0x00000001
;
DF_nCS0
=
0x00000001
;
DF_nCS1
=
0x00000001
;
DF_nWE
=
0x00000001
;
DF_nRE
=
0x00000001
;
DF_IO0
=
0x00000001
;
DF_IO8
=
0x00000001
;
DF_IO1
=
0x00000001
;
DF_IO9
=
0x00000001
;
DF_IO2
=
0x00000001
;
DF_IO10
=
0x00000001
;
DF_IO3
=
0x00000001
;
DF_IO11
=
0x00000001
;
DF_IO4
=
0x00000001
;
DF_IO12
=
0x00000001
;
DF_IO5
=
0x00000001
;
DF_IO13
=
0x00000001
;
DF_IO6
=
0x00000001
;
DF_IO14
=
0x00000001
;
DF_IO7
=
0x00000001
;
DF_IO15
=
0x00000001
;
DF_nWE
=
0x1901
;
DF_nRE
=
0x1901
;
DF_CLE_NOE
=
0x1900
;
DF_ALE_WE1
=
0x1901
;
DF_INT_RnB
=
0x1900
;
}
/*
/*
* Board-specific NAND initialization. The following members of the
* Board-specific NAND initialization. The following members of the
* argument are board-specific (per include/linux/mtd/nand_new.h):
* argument are board-specific (per include/linux/mtd/nand_new.h):
...
@@ -184,7 +221,8 @@ void board_nand_init(struct nand_chip *nand)
...
@@ -184,7 +221,8 @@ void board_nand_init(struct nand_chip *nand)
unsigned
long
tCH
,
tCS
,
tWH
,
tWP
,
tRH
,
tRP
,
tRP_high
,
tR
,
tWHR
,
tAR
;
unsigned
long
tCH
,
tCS
,
tWH
,
tWP
,
tRH
,
tRP
,
tRP_high
,
tR
,
tWHR
,
tAR
;
/* set up GPIO Control Registers */
/* set up GPIO Control Registers */
delta_dfc_gpio_init
();
/* turn on the NAND Controller Clock (104 MHz @ D0) */
/* turn on the NAND Controller Clock (104 MHz @ D0) */
CKENA
|=
(
CKENA_4_NAND
|
CKENA_9_SMC
);
CKENA
|=
(
CKENA_4_NAND
|
CKENA_9_SMC
);
...
...
This diff is collapsed.
Click to expand it.
config.mk
+
6
−
1
View file @
00c35bd2
...
@@ -132,9 +132,14 @@ CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes
...
@@ -132,9 +132,14 @@ CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes
endif
endif
ifdef
WILD_WILD_WEST
ifdef
WILD_WILD_WEST
CFLAGS
:=
$(
CFLAGS
)
-Werror
CFLAGS
:=
$(
C
PP
FLAGS
)
-Werror
endif
endif
ifdef
NO_JUMP
CFLAGS
:=
$(
CPPFLAGS
)
-fno-schedule-insns
-fno-schedule-insns2
endif
# avoid trigraph warnings while parsing pci.h (produced by NIOS gcc-2.9)
# avoid trigraph warnings while parsing pci.h (produced by NIOS gcc-2.9)
# this option have to be placed behind -Wall -- that's why it is here
# this option have to be placed behind -Wall -- that's why it is here
ifeq
($(ARCH),nios)
ifeq
($(ARCH),nios)
...
...
This diff is collapsed.
Click to expand it.
cpu/pxa/config.mk
+
1
−
0
View file @
00c35bd2
...
@@ -33,4 +33,5 @@ PLATFORM_CPPFLAGS += -march=armv5 -mtune=xscale
...
@@ -33,4 +33,5 @@ PLATFORM_CPPFLAGS += -march=armv5 -mtune=xscale
#
#
# ========================================================================
# ========================================================================
PLATFORM_CPPFLAGS
+=
$(
call cc-option,-mapcs-32,-mabi
=
apcs-gnu
)
PLATFORM_CPPFLAGS
+=
$(
call cc-option,-mapcs-32,-mabi
=
apcs-gnu
)
# for gcc-3x: PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32)
PLATFORM_RELFLAGS
+=
$(
call cc-option,-mshort-load-bytes,
$(
call cc-option,-malignment-traps,
))
PLATFORM_RELFLAGS
+=
$(
call cc-option,-mshort-load-bytes,
$(
call cc-option,-malignment-traps,
))
This diff is collapsed.
Click to expand it.
include/configs/delta.h
+
1
−
1
View file @
00c35bd2
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
*/
*/
/* Use the new NAND code. (BOARDLIBS = drivers/nand/libnand.a required) */
/* Use the new NAND code. (BOARDLIBS = drivers/nand/libnand.a required) */
#define CONFIG_NEW_NAND_CODE
#define CONFIG_NEW_NAND_CODE
#define CFG_NAND0_BASE 0x10000000
#define CFG_NAND0_BASE
0x43100040
/*
0x10000000
*/
#undef CFG_NAND1_BASE
#undef CFG_NAND1_BASE
#define CFG_NAND_BASE_LIST { CFG_NAND0_BASE }
#define CFG_NAND_BASE_LIST { CFG_NAND0_BASE }
...
...
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