X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=arch%2Farm%2Fmach-footbridge%2Fcats-hw.c;h=ef6ccc8993e96c2082489075cd712372006c417e;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=0aec69fb00ad3aec5620d7449426b4292ca95f9c;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/arch/arm/mach-footbridge/cats-hw.c b/arch/arm/mach-footbridge/cats-hw.c index 0aec69fb0..ef6ccc899 100644 --- a/arch/arm/mach-footbridge/cats-hw.c +++ b/arch/arm/mach-footbridge/cats-hw.c @@ -8,9 +8,16 @@ #include #include #include +#include +#include #include #include +#include + +#include + +#include "common.h" #define CFG_PORT 0x370 #define INDEX_PORT (CFG_PORT) @@ -62,3 +69,28 @@ static int __init cats_hw_init(void) } __initcall(cats_hw_init); + +/* + * CATS uses soft-reboot by default, since + * hard reboots fail on early boards. + */ +static void __init +fixup_cats(struct machine_desc *desc, struct tag *tags, + char **cmdline, struct meminfo *mi) +{ + ORIG_VIDEO_LINES = 25; + ORIG_VIDEO_POINTS = 16; + ORIG_Y = 24; +} + +MACHINE_START(CATS, "Chalice-CATS") + /* Maintainer: Philip Blundell */ + .phys_io = DC21285_ARMCSR_BASE, + .io_pg_offst = ((0xfe000000) >> 18) & 0xfffc, + .boot_params = 0x00000100, + .soft_reboot = 1, + .fixup = fixup_cats, + .map_io = footbridge_map_io, + .init_irq = footbridge_init_irq, + .timer = &isa_timer, +MACHINE_END