2 * arch/arm/mach-iop3xx/common.c
4 * Common routines shared across all IOP3xx implementations
6 * Author: Deepak Saxena <dsaxena@mvista.com>
8 * Copyright 2003 (c) MontaVista, Software, Inc.
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.
15 #include <linux/delay.h>
16 #include <asm/hardware.h>
21 unsigned long iop3xx_pcibios_min_io = 0;
22 unsigned long iop3xx_pcibios_min_mem = 0;
24 #ifdef CONFIG_ARCH_EP80219
25 #include <linux/kernel.h>
27 * Default power-off for EP80219
30 static inline void ep80219_send_to_pic(__u8 c) {
33 void ep80219_power_off(void)
36 * This function will send a SHUTDOWN_COMPLETE message to the PIC controller
37 * over I2C. We are not using the i2c subsystem since we are going to power
38 * off and it may be removed
41 /* Send the Address byte w/ the start condition */
46 /* Send the START_MSG byte w/ no start or stop condition */
51 /* Send the SHUTDOWN_COMPLETE Message ID byte w/ no start or stop condition */
56 /* Send an ignored byte w/ stop condition */
63 #include <linux/init.h>
66 static int __init ep80219_init(void)
68 pm_power_off = ep80219_power_off;
71 arch_initcall(ep80219_init);