summaryrefslogtreecommitdiff
path: root/lib_arm/armlinux.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-05-19 22:39:42 +0000
committerwdenk <wdenk>2005-05-19 22:39:42 +0000
commit3a574cbe72e7d8be2b367c6d7ad9c06f53e4c957 (patch)
tree19d7c5acc132afb14e66c3c6385949e0bc4119f6 /lib_arm/armlinux.c
parent7680c140af9cac62c834f30d2d3c1479723ced69 (diff)
downloadu-boot-imx-3a574cbe72e7d8be2b367c6d7ad9c06f53e4c957.zip
u-boot-imx-3a574cbe72e7d8be2b367c6d7ad9c06f53e4c957.tar.gz
u-boot-imx-3a574cbe72e7d8be2b367c6d7ad9c06f53e4c957.tar.bz2
* Patch by Greg Ungerer, 19 May 2005:
add support for the KS8695P (ARM 922 based) CPU * Patch by Steven Scholz, 19 May 2005: Add support for CONFIG_SERIAL_TAG on ARM boards
Diffstat (limited to 'lib_arm/armlinux.c')
-rw-r--r--lib_arm/armlinux.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/lib_arm/armlinux.c b/lib_arm/armlinux.c
index 5596569..d158605 100644
--- a/lib_arm/armlinux.c
+++ b/lib_arm/armlinux.c
@@ -377,15 +377,30 @@ static void setup_videolfb_tag (gd_t *gd)
}
#endif /* CONFIG_VFD || CONFIG_LCD */
+#ifdef CONFIG_SERIAL_TAG
+void setup_serial_tag (struct tag **tmp)
+{
+ struct tag *params = *tmp;
+ struct tag_serialnr serialnr;
+ void get_board_serial(struct tag_serialnr *serialnr);
+
+ get_board_serial(&serialnr);
+ params->hdr.tag = ATAG_SERIAL;
+ params->hdr.size = tag_size (tag_serialnr);
+ params->u.serialnr.low = serialnr.low;
+ params->u.serialnr.high= serialnr.high;
+ params = tag_next (params);
+ *tmp = params;
+}
+#endif
+
#ifdef CONFIG_REVISION_TAG
void setup_revision_tag(struct tag **in_params)
{
u32 rev = 0;
-#ifdef CONFIG_OMAP2420H4
u32 get_board_rev(void);
rev = get_board_rev();
-#endif
params->hdr.tag = ATAG_REVISION;
params->hdr.size = tag_size (tag_revision);
params->u.revision.rev = rev;