blob: 7953dde0b91c91dbac87a859dc4a4aa6c90df20c [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/arch/sh/kernel/setup_rts7751r2d.c
3 *
4 * Copyright (C) 2000 Kazumoto Kojima
5 *
6 * Renesas Technology Sales RTS7751R2D Support.
7 *
8 * Modified for RTS7751R2D by
9 * Atom Create Engineering Co., Ltd. 2002.
10 */
11
12#include <linux/init.h>
Paul Mundta56d2762006-09-27 11:43:24 +090013#include <linux/pm.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#include <asm/io.h>
15#include <asm/rts7751r2d/rts7751r2d.h>
16
17unsigned int debug_counter;
18
19const char *get_system_type(void)
20{
21 return "RTS7751R2D";
22}
23
Paul Mundta56d2762006-09-27 11:43:24 +090024static void rts7751r2d_power_off(void)
25{
26 ctrl_outw(0x0001, PA_POWOFF);
27}
28
Linus Torvalds1da177e2005-04-16 15:20:36 -070029/*
30 * Initialize the board
31 */
32void __init platform_setup(void)
33{
34 printk(KERN_INFO "Renesas Technology Sales RTS7751R2D support.\n");
35 ctrl_outw(0x0000, PA_OUTPORT);
Paul Mundta56d2762006-09-27 11:43:24 +090036 pm_power_off = rts7751r2d_power_off;
Linus Torvalds1da177e2005-04-16 15:20:36 -070037 debug_counter = 0;
38}