Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ezynq
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
ezynq
Commits
eec54c50
Commit
eec54c50
authored
Dec 24, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correcting compile errors for mtd_info
parent
c2d194ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
elphel393_nand_spl.c
u-boot-tree/drivers/mtd/nand/raw/elphel393_nand_spl.c
+6
-3
No files found.
u-boot-tree/drivers/mtd/nand/raw/elphel393_nand_spl.c
View file @
eec54c50
...
...
@@ -19,10 +19,11 @@
#include <asm/arch/sys_proto.h>
//extern nand_info_t nand_info[CONFIG_SYS_MAX_NAND_DEVICE];
static
struct
mtd_info
*
mtd
;
static
int
is_badblock
(
struct
mtd_info
*
mtd
,
loff_t
offs
,
int
allowbbt
)
{
register
struct
nand_chip
*
chip
=
mtd
->
priv
;
register
struct
nand_chip
*
chip
=
mtd
_to_nand
(
mtd
)
;
unsigned
int
block
=
offs
>>
chip
->
phys_erase_shift
;
unsigned
int
page
=
offs
>>
chip
->
page_shift
;
unsigned
long
data_width
=
4
;
...
...
@@ -51,9 +52,11 @@ int nand_spl_load_image(uint32_t offs, unsigned int size, void *buf)
udelay
(
10000
);
//if (mxs_nand_init()) return -ENODEV;
mtd
=
&
nand_info
[
0
];
//
mtd = &nand_info[0];
//mtd.priv = &nand_chip;
chip
=
mtd
->
priv
;
//chip = mtd->priv;
chip
=
mtd_to_nand
(
mtd
);
page
=
offs
>>
chip
->
page_shift
;
nand_page_per_block
=
mtd
->
erasesize
/
mtd
->
writesize
;
...
...
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