diff options
Diffstat (limited to 'arch/arm/mach-iop32x/common.c')
-rw-r--r-- | arch/arm/mach-iop32x/common.c | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/arch/arm/mach-iop32x/common.c b/arch/arm/mach-iop32x/common.c deleted file mode 100644 index 9a17a081327d..000000000000 --- a/arch/arm/mach-iop32x/common.c +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-iop32x/common.c | ||
3 | * | ||
4 | * Common routines shared across all IOP3xx implementations | ||
5 | * | ||
6 | * Author: Deepak Saxena <dsaxena@mvista.com> | ||
7 | * | ||
8 | * Copyright 2003 (c) MontaVista, Software, Inc. | ||
9 | * | ||
10 | * This file is licensed under the terms of the GNU General Public | ||
11 | * License version 2. This program is licensed "as is" without any | ||
12 | * warranty of any kind, whether express or implied. | ||
13 | */ | ||
14 | |||
15 | #include <linux/delay.h> | ||
16 | #include <asm/hardware.h> | ||
17 | #include <asm/hardware/iop3xx.h> | ||
18 | |||
19 | #ifdef CONFIG_ARCH_EP80219 | ||
20 | #include <linux/kernel.h> | ||
21 | /* | ||
22 | * Default power-off for EP80219 | ||
23 | */ | ||
24 | |||
25 | static inline void ep80219_send_to_pic(__u8 c) { | ||
26 | } | ||
27 | |||
28 | void ep80219_power_off(void) | ||
29 | { | ||
30 | /* | ||
31 | * This function will send a SHUTDOWN_COMPLETE message to the PIC controller | ||
32 | * over I2C. We are not using the i2c subsystem since we are going to power | ||
33 | * off and it may be removed | ||
34 | */ | ||
35 | |||
36 | /* Send the Address byte w/ the start condition */ | ||
37 | *IOP3XX_IDBR1 = 0x60; | ||
38 | *IOP3XX_ICR1 = 0xE9; | ||
39 | mdelay(1); | ||
40 | |||
41 | /* Send the START_MSG byte w/ no start or stop condition */ | ||
42 | *IOP3XX_IDBR1 = 0x0F; | ||
43 | *IOP3XX_ICR1 = 0xE8; | ||
44 | mdelay(1); | ||
45 | |||
46 | /* Send the SHUTDOWN_COMPLETE Message ID byte w/ no start or stop condition */ | ||
47 | *IOP3XX_IDBR1 = 0x03; | ||
48 | *IOP3XX_ICR1 = 0xE8; | ||
49 | mdelay(1); | ||
50 | |||
51 | /* Send an ignored byte w/ stop condition */ | ||
52 | *IOP3XX_IDBR1 = 0x00; | ||
53 | *IOP3XX_ICR1 = 0xEA; | ||
54 | |||
55 | while (1) ; | ||
56 | } | ||
57 | |||
58 | #include <linux/init.h> | ||
59 | #include <linux/pm.h> | ||
60 | |||
61 | static int __init ep80219_init(void) | ||
62 | { | ||
63 | pm_power_off = ep80219_power_off; | ||
64 | return 0; | ||
65 | } | ||
66 | arch_initcall(ep80219_init); | ||
67 | #endif | ||