Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 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 Mundt | a56d276 | 2006-09-27 11:43:24 +0900 | [diff] [blame^] | 13 | #include <linux/pm.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | #include <asm/io.h> |
| 15 | #include <asm/rts7751r2d/rts7751r2d.h> |
| 16 | |
| 17 | unsigned int debug_counter; |
| 18 | |
| 19 | const char *get_system_type(void) |
| 20 | { |
| 21 | return "RTS7751R2D"; |
| 22 | } |
| 23 | |
Paul Mundt | a56d276 | 2006-09-27 11:43:24 +0900 | [diff] [blame^] | 24 | static void rts7751r2d_power_off(void) |
| 25 | { |
| 26 | ctrl_outw(0x0001, PA_POWOFF); |
| 27 | } |
| 28 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | /* |
| 30 | * Initialize the board |
| 31 | */ |
| 32 | void __init platform_setup(void) |
| 33 | { |
| 34 | printk(KERN_INFO "Renesas Technology Sales RTS7751R2D support.\n"); |
| 35 | ctrl_outw(0x0000, PA_OUTPORT); |
Paul Mundt | a56d276 | 2006-09-27 11:43:24 +0900 | [diff] [blame^] | 36 | pm_power_off = rts7751r2d_power_off; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | debug_counter = 0; |
| 38 | } |