From 6d403070f28cd44860fdb3a53be5da0275c65cf4 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 19 Jun 2000 22:45:37 +0000 Subject: Merge with 2.4.0-test1-ac21 + pile of MIPS cleanups to make merging possible. Chainsawed RM200 kernel to compile again. Jazz machine status unknown. --- arch/sh/kernel/setup_od.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 arch/sh/kernel/setup_od.c (limited to 'arch/sh/kernel/setup_od.c') diff --git a/arch/sh/kernel/setup_od.c b/arch/sh/kernel/setup_od.c new file mode 100644 index 000000000..f605bd20e --- /dev/null +++ b/arch/sh/kernel/setup_od.c @@ -0,0 +1,35 @@ +/* $Id: setup_od.c,v 1.1 2000/06/14 09:35:59 stuart_menefy Exp $ + * + * arch/sh/kernel/setup_od.c + * + * Copyright (C) 2000 Stuart Menefy + * + * STMicroelectronics Overdrive Support. + * + */ + +#include +#include +#include + +/* + * Initialize the board + */ +int __init setup_od(void) +{ + /* Enable RS232 receive buffers */ + volatile int* p = (volatile int*)0xa3000000; + +#if defined(CONFIG_SH_ORION) + *p=1; +#elif defined(CONFIG_SH_OVERDRIVE) + *p=0x1e; +#else +#error Illegal configuration +#endif + + printk(KERN_INFO "STMicroelectronics Overdrive Setup...done\n"); + return 0; +} + +module_init(setup_od); -- cgit v1.2.3