Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
U
uboot-imx
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Librem5
uboot-imx
Commits
a5debaa3
Commit
a5debaa3
authored
Jul 12, 2016
by
Ladislav Michl
Committed by
Tom Rini
Jul 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
igep00x0: generate default mtdparts according NAND chip used
Signed-off-by:
Ladislav Michl
<
ladis@linux-mips.org
>
parent
4b9dc7c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
board/isee/igep00x0/igep00x0.c
board/isee/igep00x0/igep00x0.c
+18
-0
include/configs/omap3_igep00x0.h
include/configs/omap3_igep00x0.h
+1
-0
No files found.
board/isee/igep00x0/igep00x0.c
View file @
a5debaa3
...
...
@@ -17,6 +17,7 @@
#include <asm/arch/mux.h>
#include <asm/arch/sys_proto.h>
#include <asm/mach-types.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h>
#include <linux/mtd/nand.h>
#include <linux/mtd/onenand.h>
...
...
@@ -232,6 +233,23 @@ int misc_init_r(void)
return
0
;
}
void
board_mtdparts_default
(
const
char
**
mtdids
,
const
char
**
mtdparts
)
{
struct
mtd_info
*
mtd
=
get_mtd_device
(
NULL
,
0
);
if
(
mtd
)
{
static
char
ids
[
24
];
static
char
parts
[
48
];
const
char
*
linux_name
=
"omap2-nand"
;
if
(
strncmp
(
mtd
->
name
,
"onenand0"
,
8
)
==
0
)
linux_name
=
"omap2-onenand"
;
snprintf
(
ids
,
sizeof
(
ids
),
"%s=%s"
,
mtd
->
name
,
linux_name
);
snprintf
(
parts
,
sizeof
(
parts
),
"mtdparts=%s:%dk(SPL),-(UBI)"
,
linux_name
,
4
*
mtd
->
erasesize
>>
10
);
*
mtdids
=
ids
;
*
mtdparts
=
parts
;
}
}
/*
* Routine: set_muxconf_regs
* Description: Setting up the configuration Mux registers specific to the
...
...
include/configs/omap3_igep00x0.h
View file @
a5debaa3
...
...
@@ -113,6 +113,7 @@
#define CONFIG_RBTREE
#define CONFIG_MTD_PARTITIONS
#define CONFIG_SYS_MTDPARTS_RUNTIME
/* OneNAND config */
#define CONFIG_SPL_ONENAND_SUPPORT
...
...
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