Commit 0b1954ee authored by Juha Yrjola's avatar Juha Yrjola Committed by Tony Lindgren

ARM: Add support for ATAG_BOARD

Adds support for board specific tag ATAG_BOARD.
Signed-off-by: default avatarJuha Yrjola <juha.yrjola@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent ebbdfaa9
......@@ -6,6 +6,7 @@
#include <linux/config.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/string.h>
#include <asm/elf.h>
#include <asm/page.h>
......@@ -44,3 +45,26 @@ static int __init parse_tag_acorn(const struct tag *tag)
__tagtable(ATAG_ACORN, parse_tag_acorn);
#endif
#ifdef CONFIG_OMAP_BOOT_TAG
unsigned char omap_bootloader_tag[512];
int omap_bootloader_tag_len = 0;
static int __init parse_tag_omap(const struct tag *tag)
{
u32 size = tag->hdr.size - (sizeof(tag->hdr) >> 2);
size <<= 2;
if (size > sizeof(omap_bootloader_tag))
return -1;
memcpy(omap_bootloader_tag, tag->u.omap.data, size);
omap_bootloader_tag_len = size;
return 0;
}
__tagtable(ATAG_BOARD, parse_tag_omap);
#endif
......@@ -34,6 +34,14 @@ config OMAP_RESET_CLOCKS
probably do not want this option enabled until your
device drivers work properly.
config OMAP_BOOT_TAG
bool "OMAP bootloader information passing"
depends on ARCH_OMAP
default n
help
Say Y, if you have a bootloader which passes information
about your board and its peripheral configuration.
config OMAP_MUX
bool "OMAP multiplexing support"
depends on ARCH_OMAP
......
......@@ -134,6 +134,13 @@ struct tag_acorn {
u8 adfsdrives;
};
/* TI OMAP specific information */
#define ATAG_BOARD 0x414f4d50
struct tag_omap {
u8 data[0];
};
/* footbridge memory clock, see arch/arm/mach-footbridge/arch.c */
#define ATAG_MEMCLK 0x41000402
......@@ -159,6 +166,11 @@ struct tag {
*/
struct tag_acorn acorn;
/*
* OMAP specific
*/
struct tag_omap omap;
/*
* DC21285 specific
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment