1 Index: linux-2.6.23.17/arch/arm/mach-ixp4xx/avila-setup.c
2 ===================================================================
3 --- linux-2.6.23.17.orig/arch/arm/mach-ixp4xx/avila-setup.c
4 +++ linux-2.6.23.17/arch/arm/mach-ixp4xx/avila-setup.c
5 @@ -165,6 +165,35 @@ static struct platform_device *avila_dev
9 +static char avila_rtc_probe[] __initdata = "rtc-ds1672.probe=0,0x68 ";
11 +static void __init avila_fixup(struct machine_desc *desc,
12 + struct tag *tags, char **cmdline, struct meminfo *mi)
14 + struct tag *t = tags;
17 + /* Find the end of the tags table, taking note of any cmdline tag. */
18 + for (; t->hdr.size; t = tag_next(t)) {
19 + if (t->hdr.tag == ATAG_CMDLINE) {
20 + p = t->u.cmdline.cmdline;
24 + /* Overwrite the end of the table with a new cmdline tag. */
25 + t->hdr.tag = ATAG_CMDLINE;
26 + t->hdr.size = (sizeof (struct tag_header) +
27 + strlen(avila_rtc_probe) + strlen(p) + 1 + 4) >> 2;
28 + strlcpy(t->u.cmdline.cmdline, avila_rtc_probe, COMMAND_LINE_SIZE);
29 + strlcpy(t->u.cmdline.cmdline + strlen(avila_rtc_probe), p,
30 + COMMAND_LINE_SIZE - strlen(avila_rtc_probe));
32 + /* Terminate the table. */
34 + t->hdr.tag = ATAG_NONE;
38 static void __init avila_init(void)
41 @@ -192,6 +221,7 @@ MACHINE_START(AVILA, "Gateworks Avila Ne
42 /* Maintainer: Deepak Saxena <dsaxena@plexity.net> */
43 .phys_io = IXP4XX_PERIPHERAL_BASE_PHYS,
44 .io_pg_offst = ((IXP4XX_PERIPHERAL_BASE_VIRT) >> 18) & 0xfffc,
45 + .fixup = avila_fixup,
46 .map_io = ixp4xx_map_io,
47 .init_irq = ixp4xx_init_irq,
48 .timer = &ixp4xx_timer,
49 @@ -209,6 +239,7 @@ MACHINE_START(LOFT, "Giant Shoulder Inc
50 /* Maintainer: Tom Billman <kernel@giantshoulderinc.com> */
51 .phys_io = IXP4XX_PERIPHERAL_BASE_PHYS,
52 .io_pg_offst = ((IXP4XX_PERIPHERAL_BASE_VIRT) >> 18) & 0xfffc,
53 + .fixup = avila_fixup,
54 .map_io = ixp4xx_map_io,
55 .init_irq = ixp4xx_init_irq,
56 .timer = &ixp4xx_timer,