1 /*
2  * linux/arch/sh/kernel/setup_microdev.c
3  *
4  * Copyright (C) 2003 Sean McGoogan (Sean.McGoogan@superh.com)
5  *
6  * SuperH SH4-202 MicroDev board support.
7  *
8  * May be copied or modified under the terms of the GNU General Public
9  * License.  See linux/COPYING for more information.
10  */
11 
12 #include <linux/config.h>
13 #include <linux/init.h>
14 #include <asm/io.h>
15 
16 	/* General-Purpose base address on CPU-board FPGA */
17 #define	MICRODEV_FPGA_GP_BASE		0xa6100000ul
18 
19 	/* Address of Cache Control Register */
20 #define CCR				0xff00001cul
21 
22 /*
23  * Initialize the board
24  */
setup_microdev(void)25 void __init setup_microdev(void)
26 {
27 	int * const fpgaRevisionRegister = (int*)(MICRODEV_FPGA_GP_BASE + 0x8ul);
28 	const int fpgaRevision = *fpgaRevisionRegister;
29 	int * const CacheControlRegister = (int*)CCR;
30 
31 	printk("SuperH SH4-202 MicroDev board (FPGA rev: 0x%0x, CCR: 0x%0x)\n",
32 		fpgaRevision, *CacheControlRegister);
33 
34 	return;
35 }
36 
37 
38