barebox/arch/arm/include/asm/armlinux.h
Sascha Hauer 296cd8d638 ARM: call start_linux directly with initrd start/size and oftree
whoever calls this function is not necessarily aware of a struct
image_data, so remove the dependency from the function.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-15 10:26:03 +01:00

36 lines
760 B
C

#ifndef __ARCH_ARMLINUX_H
#define __ARCH_ARMLINUX_H
#include <asm/memory.h>
#if defined CONFIG_CMD_BOOTM || defined CONFIG_CMD_BOOTZ || \
defined CONFIG_CMD_BOOTU
void armlinux_set_bootparams(void *params);
void armlinux_set_architecture(int architecture);
void armlinux_set_revision(unsigned int);
void armlinux_set_serial(u64);
#else
static inline void armlinux_set_bootparams(void *params)
{
}
static inline void armlinux_set_architecture(int architecture)
{
}
static inline void armlinux_set_revision(unsigned int rev)
{
}
static inline void armlinux_set_serial(u64 serial)
{
}
#endif
struct image_data;
void start_linux(void *adr, int swap, unsigned long initrd_address,
unsigned long initrd_size, void *oftree);
#endif /* __ARCH_ARMLINUX_H */