ARM: Phytec-phyCORE-imx27: Register board env during runtime
Register the board specific environment during runtime using defaultenv_append_directory() to make it available for multi image support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
352ddc86ae
commit
1e7380517b
|
@ -1,2 +1,3 @@
|
|||
obj-y += pcm038.o pcm970.o
|
||||
lwl-y += lowlevel.o
|
||||
bbenv-y += defaultenv-pcm038
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <io.h>
|
||||
#include <notifier.h>
|
||||
#include <sizes.h>
|
||||
#include <envfs.h>
|
||||
#include <mach/devices-imx27.h>
|
||||
#include <mach/imx-pll.h>
|
||||
#include <mach/imx27-regs.h>
|
||||
|
@ -174,6 +175,8 @@ static int pcm038_init(void)
|
|||
/* Clock gating enable */
|
||||
writel(0x00050f08, MX27_SYSCTRL_BASE_ADDR + MX27_GPCR);
|
||||
|
||||
defaultenv_append_directory(defaultenv_pcm038);
|
||||
|
||||
return 0;
|
||||
}
|
||||
device_initcall(pcm038_init);
|
||||
|
|
|
@ -17,7 +17,7 @@ CONFIG_CMDLINE_EDITING=y
|
|||
CONFIG_AUTO_COMPLETE=y
|
||||
CONFIG_MENU=y
|
||||
CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
|
||||
CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/phytec-phycore-imx27/env"
|
||||
CONFIG_DEFAULT_ENVIRONMENT_PATH=""
|
||||
CONFIG_LONGHELP=y
|
||||
CONFIG_CMD_IOMEM=y
|
||||
CONFIG_CMD_MEMINFO=y
|
||||
|
|
Loading…
Reference in New Issue