2008-03-01 21:47:46 +00:00
|
|
|
#ifndef __ARCH_ARMLINUX_H
|
|
|
|
#define __ARCH_ARMLINUX_H
|
|
|
|
|
2011-07-29 09:43:45 +00:00
|
|
|
#include <asm/memory.h>
|
2013-01-19 17:23:27 +00:00
|
|
|
#include <asm/setup.h>
|
2011-07-29 09:43:45 +00:00
|
|
|
|
2012-07-05 19:10:23 +00:00
|
|
|
#if defined CONFIG_ARM_LINUX
|
2008-03-01 21:47:46 +00:00
|
|
|
void armlinux_set_bootparams(void *params);
|
|
|
|
void armlinux_set_architecture(int architecture);
|
2010-05-14 02:15:15 +00:00
|
|
|
void armlinux_set_revision(unsigned int);
|
2010-08-02 11:58:51 +00:00
|
|
|
void armlinux_set_serial(u64);
|
2008-03-01 21:47:46 +00:00
|
|
|
#else
|
|
|
|
static inline void armlinux_set_bootparams(void *params)
|
|
|
|
{
|
|
|
|
}
|
2008-06-06 07:37:44 +00:00
|
|
|
|
2008-03-01 21:47:46 +00:00
|
|
|
static inline void armlinux_set_architecture(int architecture)
|
|
|
|
{
|
|
|
|
}
|
2009-06-10 18:24:54 +00:00
|
|
|
|
2010-08-17 08:51:28 +00:00
|
|
|
static inline void armlinux_set_revision(unsigned int rev)
|
2010-05-14 02:15:15 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-04-01 12:24:14 +00:00
|
|
|
static inline void armlinux_set_serial(u64 serial)
|
2010-08-02 11:58:51 +00:00
|
|
|
{
|
|
|
|
}
|
2008-03-01 21:47:46 +00:00
|
|
|
#endif
|
|
|
|
|
2013-01-19 17:23:27 +00:00
|
|
|
#if defined CONFIG_ARM_BOARD_APPEND_ATAG
|
|
|
|
void armlinux_set_atag_appender(struct tag *(*)(struct tag *));
|
|
|
|
#else
|
|
|
|
static inline void armlinux_set_atag_appender(struct tag *(*func)(struct tag *))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2011-04-01 12:15:54 +00:00
|
|
|
struct image_data;
|
|
|
|
|
2011-12-12 09:43:33 +00:00
|
|
|
void start_linux(void *adr, int swap, unsigned long initrd_address,
|
|
|
|
unsigned long initrd_size, void *oftree);
|
2011-04-01 12:15:54 +00:00
|
|
|
|
2008-03-01 21:47:46 +00:00
|
|
|
#endif /* __ARCH_ARMLINUX_H */
|