projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_*
[platform/kernel/u-boot.git]
/
arch
/
nios2
/
cpu
/
cpu.c
diff --git
a/arch/nios2/cpu/cpu.c
b/arch/nios2/cpu/cpu.c
index
e7ca988
..
8554450
100644
(file)
--- a/
arch/nios2/cpu/cpu.c
+++ b/
arch/nios2/cpu/cpu.c
@@
-10,9
+10,11
@@
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>
+#include <event.h>
#include <init.h>
#include <irq_func.h>
#include <asm/cache.h>
#include <init.h>
#include <irq_func.h>
#include <asm/cache.h>
+#include <asm/global_data.h>
#include <asm/system.h>
DECLARE_GLOBAL_DATA_PTR;
#include <asm/system.h>
DECLARE_GLOBAL_DATA_PTR;
@@
-62,7
+64,7
@@
static void copy_exception_trampoline(void)
}
#endif
}
#endif
-
int arch_cpu_init_dm(void
)
+
static int nios_cpu_setup(void *ctx, struct event *event
)
{
struct udevice *dev;
int ret;
{
struct udevice *dev;
int ret;
@@
-71,13
+73,14
@@
int arch_cpu_init_dm(void)
if (ret)
return ret;
if (ret)
return ret;
- gd->ram_size = C
ONFI
G_SYS_SDRAM_SIZE;
+ gd->ram_size = C
F
G_SYS_SDRAM_SIZE;
#ifndef CONFIG_ROM_STUBS
copy_exception_trampoline();
#endif
return 0;
}
#ifndef CONFIG_ROM_STUBS
copy_exception_trampoline();
#endif
return 0;
}
+EVENT_SPY(EVT_DM_POST_INIT, nios_cpu_setup);
static int altera_nios2_get_desc(const struct udevice *dev, char *buf,
int size)
static int altera_nios2_get_desc(const struct udevice *dev, char *buf,
int size)