mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
ARM: omap3: beagle: Set 'mtdids' and 'mtdparts' in board file
BeagleBoard 'xM' does not really have NAND. CONFIG_MTDIDS_DEFAULT and CONFIG_MTDPARTS_DEFAULT can/should be empty for 'xM'. This commit sets the defined values if they exist. Signed-off-by: Derald D. Woods <woods.technical@gmail.com>
This commit is contained in:
parent
2c9afab9ac
commit
ebf6e265ac
1 changed files with 8 additions and 0 deletions
|
@ -521,6 +521,14 @@ int misc_init_r(void)
|
|||
if (generate_fake_mac)
|
||||
omap_die_id_usbethaddr();
|
||||
|
||||
#if defined(CONFIG_MTDIDS_DEFAULT) && defined(CONFIG_MTDPARTS_DEFAULT)
|
||||
if (strlen(CONFIG_MTDIDS_DEFAULT))
|
||||
env_set("mtdids", CONFIG_MTDIDS_DEFAULT);
|
||||
|
||||
if (strlen(CONFIG_MTDPARTS_DEFAULT))
|
||||
env_set("mtdparts", CONFIG_MTDPARTS_DEFAULT);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue