blob: e246e360e55d738543265f8c766ed88bb6edf2bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef __MACH_OMAP4_GENERIC_H
#define __MACH_OMAP4_GENERIC_H
#include <mach/generic.h>
#include <mach/omap4-silicon.h>
static inline void omap4_save_bootinfo(uint32_t *info)
{
unsigned long i = (unsigned long)info;
if (i & 0x3)
return;
if (i < OMAP44XX_SRAM_BASE)
return;
if (i > OMAP44XX_SRAM_BASE + SZ_64K)
return;
memcpy((void *)OMAP44XX_SRAM_SCRATCH_SPACE, info, 3 * sizeof(uint32_t));
}
void __noreturn omap4_reset_cpu(unsigned long addr);
int omap4_init(void);
int omap4_devices_init(void);
#endif /* __MACH_OMAP4_GENERIC_H */
|