diff options
Diffstat (limited to 'include/mach/omap/omap4-generic.h')
-rw-r--r-- | include/mach/omap/omap4-generic.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/mach/omap/omap4-generic.h b/include/mach/omap/omap4-generic.h new file mode 100644 index 0000000000..38fa79a1f8 --- /dev/null +++ b/include/mach/omap/omap4-generic.h @@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __MACH_OMAP4_GENERIC_H +#define __MACH_OMAP4_GENERIC_H + +#include <linux/sizes.h> +#include <mach/omap/generic.h> +#include <mach/omap/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)); +} + +int omap4_init(void); +int omap4_devices_init(void); + +#endif /* __MACH_OMAP4_GENERIC_H */ |