diff options
Diffstat (limited to 'arch/arm/mach-omap1')
| -rw-r--r-- | arch/arm/mach-omap1/Kconfig | 1 | ||||
| -rw-r--r-- | arch/arm/mach-omap1/Makefile | 4 | ||||
| -rw-r--r-- | arch/arm/mach-omap1/board-nokia770.c | 13 | ||||
| -rw-r--r-- | arch/arm/mach-omap1/clock.c | 2 | ||||
| -rw-r--r-- | arch/arm/mach-omap1/pm.c | 11 | ||||
| -rw-r--r-- | arch/arm/mach-omap1/pm.h | 280 | ||||
| -rw-r--r-- | arch/arm/mach-omap1/serial.c | 3 | ||||
| -rw-r--r-- | arch/arm/mach-omap1/sleep.S | 2 |
8 files changed, 305 insertions, 11 deletions
diff --git a/arch/arm/mach-omap1/Kconfig b/arch/arm/mach-omap1/Kconfig index cd8de89c5fad..55ecc01ea206 100644 --- a/arch/arm/mach-omap1/Kconfig +++ b/arch/arm/mach-omap1/Kconfig | |||
| @@ -46,7 +46,6 @@ config MACH_OMAP_H2 | |||
| 46 | config MACH_OMAP_H3 | 46 | config MACH_OMAP_H3 |
| 47 | bool "TI H3 Support" | 47 | bool "TI H3 Support" |
| 48 | depends on ARCH_OMAP1 && ARCH_OMAP16XX | 48 | depends on ARCH_OMAP1 && ARCH_OMAP16XX |
| 49 | # select GPIOEXPANDER_OMAP | ||
| 50 | help | 49 | help |
| 51 | TI OMAP 1710 H3 board support. Say Y here if you have such | 50 | TI OMAP 1710 H3 board support. Say Y here if you have such |
| 52 | a board. | 51 | a board. |
diff --git a/arch/arm/mach-omap1/Makefile b/arch/arm/mach-omap1/Makefile index 1bda8f5d7546..6867cd3ad0b4 100644 --- a/arch/arm/mach-omap1/Makefile +++ b/arch/arm/mach-omap1/Makefile | |||
| @@ -13,6 +13,10 @@ obj-$(CONFIG_OMAP_32K_TIMER) += timer32k.o | |||
| 13 | # Power Management | 13 | # Power Management |
| 14 | obj-$(CONFIG_PM) += pm.o sleep.o | 14 | obj-$(CONFIG_PM) += pm.o sleep.o |
| 15 | 15 | ||
| 16 | # DSP | ||
| 17 | obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox_mach.o | ||
| 18 | mailbox_mach-objs := mailbox.o | ||
| 19 | |||
| 16 | led-y := leds.o | 20 | led-y := leds.o |
| 17 | 21 | ||
| 18 | # Specific board support | 22 | # Specific board support |
diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c index d1ed1365319e..e70fc7c66bbb 100644 --- a/arch/arm/mach-omap1/board-nokia770.c +++ b/arch/arm/mach-omap1/board-nokia770.c | |||
| @@ -33,8 +33,11 @@ | |||
| 33 | #include <mach/common.h> | 33 | #include <mach/common.h> |
| 34 | #include <mach/dsp_common.h> | 34 | #include <mach/dsp_common.h> |
| 35 | #include <mach/omapfb.h> | 35 | #include <mach/omapfb.h> |
| 36 | #include <mach/hwa742.h> | ||
| 36 | #include <mach/lcd_mipid.h> | 37 | #include <mach/lcd_mipid.h> |
| 37 | #include <mach/mmc.h> | 38 | #include <mach/mmc.h> |
| 39 | #include <mach/usb.h> | ||
| 40 | #include <mach/clock.h> | ||
| 38 | 41 | ||
| 39 | #define ADS7846_PENDOWN_GPIO 15 | 42 | #define ADS7846_PENDOWN_GPIO 15 |
| 40 | 43 | ||
| @@ -162,6 +165,15 @@ static struct spi_board_info nokia770_spi_board_info[] __initdata = { | |||
| 162 | }, | 165 | }, |
| 163 | }; | 166 | }; |
| 164 | 167 | ||
| 168 | static struct hwa742_platform_data nokia770_hwa742_platform_data = { | ||
| 169 | .te_connected = 1, | ||
| 170 | }; | ||
| 171 | |||
| 172 | static void hwa742_dev_init(void) | ||
| 173 | { | ||
| 174 | clk_add_alias("hwa_sys_ck", NULL, "bclk", NULL); | ||
| 175 | omapfb_set_ctrl_platform_data(&nokia770_hwa742_platform_data); | ||
| 176 | } | ||
| 165 | 177 | ||
| 166 | /* assume no Mini-AB port */ | 178 | /* assume no Mini-AB port */ |
| 167 | 179 | ||
| @@ -370,6 +382,7 @@ static void __init omap_nokia770_init(void) | |||
| 370 | omap_serial_init(); | 382 | omap_serial_init(); |
| 371 | omap_register_i2c_bus(1, 100, NULL, 0); | 383 | omap_register_i2c_bus(1, 100, NULL, 0); |
| 372 | omap_dsp_init(); | 384 | omap_dsp_init(); |
| 385 | hwa742_dev_init(); | ||
| 373 | ads7846_dev_init(); | 386 | ads7846_dev_init(); |
| 374 | mipid_dev_init(); | 387 | mipid_dev_init(); |
| 375 | omap_usb_init(&nokia770_usb_config); | 388 | omap_usb_init(&nokia770_usb_config); |
diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c index 336e51dc6127..436eed22801b 100644 --- a/arch/arm/mach-omap1/clock.c +++ b/arch/arm/mach-omap1/clock.c | |||
| @@ -776,7 +776,7 @@ int __init omap1_clk_init(void) | |||
| 776 | arm_idlect1_mask = ~0; | 776 | arm_idlect1_mask = ~0; |
| 777 | 777 | ||
| 778 | for (c = omap_clks; c < omap_clks + ARRAY_SIZE(omap_clks); c++) | 778 | for (c = omap_clks; c < omap_clks + ARRAY_SIZE(omap_clks); c++) |
| 779 | clk_init_one(c->lk.clk); | 779 | clk_preinit(c->lk.clk); |
| 780 | 780 | ||
| 781 | cpu_mask = 0; | 781 | cpu_mask = 0; |
| 782 | if (cpu_is_omap16xx()) | 782 | if (cpu_is_omap16xx()) |
diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c index 9774c1f5311e..5218943c91c0 100644 --- a/arch/arm/mach-omap1/pm.c +++ b/arch/arm/mach-omap1/pm.c | |||
| @@ -53,11 +53,12 @@ | |||
| 53 | #include <mach/clock.h> | 53 | #include <mach/clock.h> |
| 54 | #include <mach/sram.h> | 54 | #include <mach/sram.h> |
| 55 | #include <mach/tc.h> | 55 | #include <mach/tc.h> |
| 56 | #include <mach/pm.h> | ||
| 57 | #include <mach/mux.h> | 56 | #include <mach/mux.h> |
| 58 | #include <mach/dma.h> | 57 | #include <mach/dma.h> |
| 59 | #include <mach/dmtimer.h> | 58 | #include <mach/dmtimer.h> |
| 60 | 59 | ||
| 60 | #include "pm.h" | ||
| 61 | |||
| 61 | static unsigned int arm_sleep_save[ARM_SLEEP_SAVE_SIZE]; | 62 | static unsigned int arm_sleep_save[ARM_SLEEP_SAVE_SIZE]; |
| 62 | static unsigned short dsp_sleep_save[DSP_SLEEP_SAVE_SIZE]; | 63 | static unsigned short dsp_sleep_save[DSP_SLEEP_SAVE_SIZE]; |
| 63 | static unsigned short ulpd_sleep_save[ULPD_SLEEP_SAVE_SIZE]; | 64 | static unsigned short ulpd_sleep_save[ULPD_SLEEP_SAVE_SIZE]; |
| @@ -101,7 +102,7 @@ static void (*omap_sram_suspend)(unsigned long r0, unsigned long r1) = NULL; | |||
| 101 | * going idle we continue to do idle even if we get | 102 | * going idle we continue to do idle even if we get |
| 102 | * a clock tick interrupt . . | 103 | * a clock tick interrupt . . |
| 103 | */ | 104 | */ |
| 104 | void omap_pm_idle(void) | 105 | void omap1_pm_idle(void) |
| 105 | { | 106 | { |
| 106 | extern __u32 arm_idlect1_mask; | 107 | extern __u32 arm_idlect1_mask; |
| 107 | __u32 use_idlect1 = arm_idlect1_mask; | 108 | __u32 use_idlect1 = arm_idlect1_mask; |
| @@ -222,7 +223,7 @@ static void omap_pm_wakeup_setup(void) | |||
| 222 | #define EN_APICK 6 /* ARM_IDLECT2 */ | 223 | #define EN_APICK 6 /* ARM_IDLECT2 */ |
| 223 | #define DSP_EN 1 /* ARM_RSTCT1 */ | 224 | #define DSP_EN 1 /* ARM_RSTCT1 */ |
| 224 | 225 | ||
| 225 | void omap_pm_suspend(void) | 226 | void omap1_pm_suspend(void) |
| 226 | { | 227 | { |
| 227 | unsigned long arg0 = 0, arg1 = 0; | 228 | unsigned long arg0 = 0, arg1 = 0; |
| 228 | 229 | ||
| @@ -610,7 +611,7 @@ static int omap_pm_enter(suspend_state_t state) | |||
| 610 | { | 611 | { |
| 611 | case PM_SUSPEND_STANDBY: | 612 | case PM_SUSPEND_STANDBY: |
| 612 | case PM_SUSPEND_MEM: | 613 | case PM_SUSPEND_MEM: |
| 613 | omap_pm_suspend(); | 614 | omap1_pm_suspend(); |
| 614 | break; | 615 | break; |
| 615 | default: | 616 | default: |
| 616 | return -EINVAL; | 617 | return -EINVAL; |
| @@ -683,7 +684,7 @@ static int __init omap_pm_init(void) | |||
| 683 | return -ENODEV; | 684 | return -ENODEV; |
| 684 | } | 685 | } |
| 685 | 686 | ||
| 686 | pm_idle = omap_pm_idle; | 687 | pm_idle = omap1_pm_idle; |
| 687 | 688 | ||
| 688 | if (cpu_is_omap730()) | 689 | if (cpu_is_omap730()) |
| 689 | setup_irq(INT_730_WAKE_UP_REQ, &omap_wakeup_irq); | 690 | setup_irq(INT_730_WAKE_UP_REQ, &omap_wakeup_irq); |
diff --git a/arch/arm/mach-omap1/pm.h b/arch/arm/mach-omap1/pm.h new file mode 100644 index 000000000000..9ed5e2c1de4d --- /dev/null +++ b/arch/arm/mach-omap1/pm.h | |||
| @@ -0,0 +1,280 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/mach-omap1/pm.h | ||
| 3 | * | ||
| 4 | * Header file for OMAP1 Power Management Routines | ||
| 5 | * | ||
| 6 | * Author: MontaVista Software, Inc. | ||
| 7 | * support@mvista.com | ||
| 8 | * | ||
| 9 | * Copyright 2002 MontaVista Software Inc. | ||
| 10 | * | ||
| 11 | * Cleanup 2004 for Linux 2.6 by Dirk Behme <dirk.behme@de.bosch.com> | ||
| 12 | * | ||
| 13 | * This program is free software; you can redistribute it and/or modify it | ||
| 14 | * under the terms of the GNU General Public License as published by the | ||
| 15 | * Free Software Foundation; either version 2 of the License, or (at your | ||
| 16 | * option) any later version. | ||
| 17 | * | ||
| 18 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
| 19 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
| 20 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
| 21 | * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| 22 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 23 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
| 24 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
| 25 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| 26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
| 27 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 28 | * | ||
| 29 | * You should have received a copy of the GNU General Public License along | ||
| 30 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
| 31 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 32 | */ | ||
| 33 | |||
| 34 | #ifndef __ARCH_ARM_MACH_OMAP1_PM_H | ||
| 35 | #define __ARCH_ARM_MACH_OMAP1_PM_H | ||
| 36 | |||
| 37 | /* | ||
| 38 | * ---------------------------------------------------------------------------- | ||
| 39 | * Register and offset definitions to be used in PM assembler code | ||
| 40 | * ---------------------------------------------------------------------------- | ||
| 41 | */ | ||
| 42 | #define CLKGEN_REG_ASM_BASE IO_ADDRESS(0xfffece00) | ||
| 43 | #define ARM_IDLECT1_ASM_OFFSET 0x04 | ||
| 44 | #define ARM_IDLECT2_ASM_OFFSET 0x08 | ||
| 45 | |||
| 46 | #define TCMIF_ASM_BASE IO_ADDRESS(0xfffecc00) | ||
| 47 | #define EMIFS_CONFIG_ASM_OFFSET 0x0c | ||
| 48 | #define EMIFF_SDRAM_CONFIG_ASM_OFFSET 0x20 | ||
| 49 | |||
| 50 | /* | ||
| 51 | * ---------------------------------------------------------------------------- | ||
| 52 | * Power management bitmasks | ||
| 53 | * ---------------------------------------------------------------------------- | ||
| 54 | */ | ||
| 55 | #define IDLE_WAIT_CYCLES 0x00000fff | ||
| 56 | #define PERIPHERAL_ENABLE 0x2 | ||
| 57 | |||
| 58 | #define SELF_REFRESH_MODE 0x0c000001 | ||
| 59 | #define IDLE_EMIFS_REQUEST 0xc | ||
| 60 | #define MODEM_32K_EN 0x1 | ||
| 61 | #define PER_EN 0x1 | ||
| 62 | |||
| 63 | #define CPU_SUSPEND_SIZE 200 | ||
| 64 | #define ULPD_LOW_PWR_EN 0x0001 | ||
| 65 | #define ULPD_DEEP_SLEEP_TRANSITION_EN 0x0010 | ||
| 66 | #define ULPD_SETUP_ANALOG_CELL_3_VAL 0 | ||
| 67 | #define ULPD_POWER_CTRL_REG_VAL 0x0219 | ||
| 68 | |||
| 69 | #define DSP_IDLE_DELAY 10 | ||
| 70 | #define DSP_IDLE 0x0040 | ||
| 71 | #define DSP_RST 0x0004 | ||
| 72 | #define DSP_ENABLE 0x0002 | ||
| 73 | #define SUFFICIENT_DSP_RESET_TIME 1000 | ||
| 74 | #define DEFAULT_MPUI_CONFIG 0x05cf | ||
| 75 | #define ENABLE_XORCLK 0x2 | ||
| 76 | #define DSP_CLOCK_ENABLE 0x2000 | ||
| 77 | #define DSP_IDLE_MODE 0x2 | ||
| 78 | #define TC_IDLE_REQUEST (0x0000000c) | ||
| 79 | |||
| 80 | #define IRQ_LEVEL2 (1<<0) | ||
| 81 | #define IRQ_KEYBOARD (1<<1) | ||
| 82 | #define IRQ_UART2 (1<<15) | ||
| 83 | |||
| 84 | #define PDE_BIT 0x08 | ||
| 85 | #define PWD_EN_BIT 0x04 | ||
| 86 | #define EN_PERCK_BIT 0x04 | ||
| 87 | |||
| 88 | #define OMAP1510_DEEP_SLEEP_REQUEST 0x0ec7 | ||
| 89 | #define OMAP1510_BIG_SLEEP_REQUEST 0x0cc5 | ||
| 90 | #define OMAP1510_IDLE_LOOP_REQUEST 0x0c00 | ||
| 91 | #define OMAP1510_IDLE_CLOCK_DOMAINS 0x2 | ||
| 92 | |||
| 93 | /* Both big sleep and deep sleep use same values. Difference is in ULPD. */ | ||
| 94 | #define OMAP1610_IDLECT1_SLEEP_VAL 0x13c7 | ||
| 95 | #define OMAP1610_IDLECT2_SLEEP_VAL 0x09c7 | ||
| 96 | #define OMAP1610_IDLECT3_VAL 0x3f | ||
| 97 | #define OMAP1610_IDLECT3_SLEEP_ORMASK 0x2c | ||
| 98 | #define OMAP1610_IDLECT3 0xfffece24 | ||
| 99 | #define OMAP1610_IDLE_LOOP_REQUEST 0x0400 | ||
| 100 | |||
| 101 | #define OMAP730_IDLECT1_SLEEP_VAL 0x16c7 | ||
| 102 | #define OMAP730_IDLECT2_SLEEP_VAL 0x09c7 | ||
| 103 | #define OMAP730_IDLECT3_VAL 0x3f | ||
| 104 | #define OMAP730_IDLECT3 0xfffece24 | ||
| 105 | #define OMAP730_IDLE_LOOP_REQUEST 0x0C00 | ||
| 106 | |||
| 107 | #if !defined(CONFIG_ARCH_OMAP730) && \ | ||
| 108 | !defined(CONFIG_ARCH_OMAP15XX) && \ | ||
| 109 | !defined(CONFIG_ARCH_OMAP16XX) | ||
| 110 | #warning "Power management for this processor not implemented yet" | ||
| 111 | #endif | ||
| 112 | |||
| 113 | #ifndef __ASSEMBLER__ | ||
| 114 | |||
| 115 | #include <linux/clk.h> | ||
| 116 | |||
| 117 | extern struct kset power_subsys; | ||
| 118 | |||
| 119 | extern void prevent_idle_sleep(void); | ||
| 120 | extern void allow_idle_sleep(void); | ||
| 121 | |||
| 122 | extern void omap1_pm_idle(void); | ||
| 123 | extern void omap1_pm_suspend(void); | ||
| 124 | |||
| 125 | extern void omap730_cpu_suspend(unsigned short, unsigned short); | ||
| 126 | extern void omap1510_cpu_suspend(unsigned short, unsigned short); | ||
| 127 | extern void omap1610_cpu_suspend(unsigned short, unsigned short); | ||
| 128 | extern void omap730_idle_loop_suspend(void); | ||
| 129 | extern void omap1510_idle_loop_suspend(void); | ||
| 130 | extern void omap1610_idle_loop_suspend(void); | ||
| 131 | |||
| 132 | extern unsigned int omap730_cpu_suspend_sz; | ||
| 133 | extern unsigned int omap1510_cpu_suspend_sz; | ||
| 134 | extern unsigned int omap1610_cpu_suspend_sz; | ||
| 135 | extern unsigned int omap730_idle_loop_suspend_sz; | ||
| 136 | extern unsigned int omap1510_idle_loop_suspend_sz; | ||
| 137 | extern unsigned int omap1610_idle_loop_suspend_sz; | ||
| 138 | |||
| 139 | #ifdef CONFIG_OMAP_SERIAL_WAKE | ||
| 140 | extern void omap_serial_wake_trigger(int enable); | ||
| 141 | #else | ||
| 142 | #define omap_serial_wakeup_init() {} | ||
| 143 | #define omap_serial_wake_trigger(x) {} | ||
| 144 | #endif /* CONFIG_OMAP_SERIAL_WAKE */ | ||
| 145 | |||
| 146 | #define ARM_SAVE(x) arm_sleep_save[ARM_SLEEP_SAVE_##x] = omap_readl(x) | ||
| 147 | #define ARM_RESTORE(x) omap_writel((arm_sleep_save[ARM_SLEEP_SAVE_##x]), (x)) | ||
| 148 | #define ARM_SHOW(x) arm_sleep_save[ARM_SLEEP_SAVE_##x] | ||
| 149 | |||
| 150 | #define DSP_SAVE(x) dsp_sleep_save[DSP_SLEEP_SAVE_##x] = __raw_readw(x) | ||
| 151 | #define DSP_RESTORE(x) __raw_writew((dsp_sleep_save[DSP_SLEEP_SAVE_##x]), (x)) | ||
| 152 | #define DSP_SHOW(x) dsp_sleep_save[DSP_SLEEP_SAVE_##x] | ||
| 153 | |||
| 154 | #define ULPD_SAVE(x) ulpd_sleep_save[ULPD_SLEEP_SAVE_##x] = omap_readw(x) | ||
| 155 | #define ULPD_RESTORE(x) omap_writew((ulpd_sleep_save[ULPD_SLEEP_SAVE_##x]), (x)) | ||
| 156 | #define ULPD_SHOW(x) ulpd_sleep_save[ULPD_SLEEP_SAVE_##x] | ||
| 157 | |||
| 158 | #define MPUI730_SAVE(x) mpui730_sleep_save[MPUI730_SLEEP_SAVE_##x] = omap_readl(x) | ||
| 159 | #define MPUI730_RESTORE(x) omap_writel((mpui730_sleep_save[MPUI730_SLEEP_SAVE_##x]), (x)) | ||
| 160 | #define MPUI730_SHOW(x) mpui730_sleep_save[MPUI730_SLEEP_SAVE_##x] | ||
| 161 | |||
| 162 | #define MPUI1510_SAVE(x) mpui1510_sleep_save[MPUI1510_SLEEP_SAVE_##x] = omap_readl(x) | ||
| 163 | #define MPUI1510_RESTORE(x) omap_writel((mpui1510_sleep_save[MPUI1510_SLEEP_SAVE_##x]), (x)) | ||
| 164 | #define MPUI1510_SHOW(x) mpui1510_sleep_save[MPUI1510_SLEEP_SAVE_##x] | ||
| 165 | |||
| 166 | #define MPUI1610_SAVE(x) mpui1610_sleep_save[MPUI1610_SLEEP_SAVE_##x] = omap_readl(x) | ||
| 167 | #define MPUI1610_RESTORE(x) omap_writel((mpui1610_sleep_save[MPUI1610_SLEEP_SAVE_##x]), (x)) | ||
| 168 | #define MPUI1610_SHOW(x) mpui1610_sleep_save[MPUI1610_SLEEP_SAVE_##x] | ||
| 169 | |||
| 170 | /* | ||
| 171 | * List of global OMAP registers to preserve. | ||
| 172 | * More ones like CP and general purpose register values are preserved | ||
| 173 | * with the stack pointer in sleep.S. | ||
| 174 | */ | ||
| 175 | |||
| 176 | enum arm_save_state { | ||
| 177 | ARM_SLEEP_SAVE_START = 0, | ||
| 178 | /* | ||
| 179 | * MPU control registers 32 bits | ||
| 180 | */ | ||
| 181 | ARM_SLEEP_SAVE_ARM_CKCTL, | ||
| 182 | ARM_SLEEP_SAVE_ARM_IDLECT1, | ||
| 183 | ARM_SLEEP_SAVE_ARM_IDLECT2, | ||
| 184 | ARM_SLEEP_SAVE_ARM_IDLECT3, | ||
| 185 | ARM_SLEEP_SAVE_ARM_EWUPCT, | ||
| 186 | ARM_SLEEP_SAVE_ARM_RSTCT1, | ||
| 187 | ARM_SLEEP_SAVE_ARM_RSTCT2, | ||
| 188 | ARM_SLEEP_SAVE_ARM_SYSST, | ||
| 189 | ARM_SLEEP_SAVE_SIZE | ||
| 190 | }; | ||
| 191 | |||
| 192 | enum dsp_save_state { | ||
| 193 | DSP_SLEEP_SAVE_START = 0, | ||
| 194 | /* | ||
| 195 | * DSP registers 16 bits | ||
| 196 | */ | ||
| 197 | DSP_SLEEP_SAVE_DSP_IDLECT2, | ||
| 198 | DSP_SLEEP_SAVE_SIZE | ||
| 199 | }; | ||
| 200 | |||
| 201 | enum ulpd_save_state { | ||
| 202 | ULPD_SLEEP_SAVE_START = 0, | ||
| 203 | /* | ||
| 204 | * ULPD registers 16 bits | ||
| 205 | */ | ||
| 206 | ULPD_SLEEP_SAVE_ULPD_IT_STATUS, | ||
| 207 | ULPD_SLEEP_SAVE_ULPD_CLOCK_CTRL, | ||
| 208 | ULPD_SLEEP_SAVE_ULPD_SOFT_REQ, | ||
| 209 | ULPD_SLEEP_SAVE_ULPD_STATUS_REQ, | ||
| 210 | ULPD_SLEEP_SAVE_ULPD_DPLL_CTRL, | ||
| 211 | ULPD_SLEEP_SAVE_ULPD_POWER_CTRL, | ||
| 212 | ULPD_SLEEP_SAVE_SIZE | ||
| 213 | }; | ||
| 214 | |||
| 215 | enum mpui1510_save_state { | ||
| 216 | MPUI1510_SLEEP_SAVE_START = 0, | ||
| 217 | /* | ||
| 218 | * MPUI registers 32 bits | ||
| 219 | */ | ||
| 220 | MPUI1510_SLEEP_SAVE_MPUI_CTRL, | ||
| 221 | MPUI1510_SLEEP_SAVE_MPUI_DSP_BOOT_CONFIG, | ||
| 222 | MPUI1510_SLEEP_SAVE_MPUI_DSP_API_CONFIG, | ||
| 223 | MPUI1510_SLEEP_SAVE_MPUI_DSP_STATUS, | ||
| 224 | MPUI1510_SLEEP_SAVE_EMIFF_SDRAM_CONFIG, | ||
| 225 | MPUI1510_SLEEP_SAVE_EMIFS_CONFIG, | ||
| 226 | MPUI1510_SLEEP_SAVE_OMAP_IH1_MIR, | ||
| 227 | MPUI1510_SLEEP_SAVE_OMAP_IH2_MIR, | ||
| 228 | #if defined(CONFIG_ARCH_OMAP15XX) | ||
| 229 | MPUI1510_SLEEP_SAVE_SIZE | ||
| 230 | #else | ||
| 231 | MPUI1510_SLEEP_SAVE_SIZE = 0 | ||
| 232 | #endif | ||
| 233 | }; | ||
| 234 | |||
| 235 | enum mpui730_save_state { | ||
| 236 | MPUI730_SLEEP_SAVE_START = 0, | ||
| 237 | /* | ||
| 238 | * MPUI registers 32 bits | ||
| 239 | */ | ||
| 240 | MPUI730_SLEEP_SAVE_MPUI_CTRL, | ||
| 241 | MPUI730_SLEEP_SAVE_MPUI_DSP_BOOT_CONFIG, | ||
| 242 | MPUI730_SLEEP_SAVE_MPUI_DSP_API_CONFIG, | ||
| 243 | MPUI730_SLEEP_SAVE_MPUI_DSP_STATUS, | ||
| 244 | MPUI730_SLEEP_SAVE_EMIFF_SDRAM_CONFIG, | ||
| 245 | MPUI730_SLEEP_SAVE_EMIFS_CONFIG, | ||
| 246 | MPUI730_SLEEP_SAVE_OMAP_IH1_MIR, | ||
| 247 | MPUI730_SLEEP_SAVE_OMAP_IH2_0_MIR, | ||
| 248 | MPUI730_SLEEP_SAVE_OMAP_IH2_1_MIR, | ||
| 249 | #if defined(CONFIG_ARCH_OMAP730) | ||
| 250 | MPUI730_SLEEP_SAVE_SIZE | ||
| 251 | #else | ||
| 252 | MPUI730_SLEEP_SAVE_SIZE = 0 | ||
| 253 | #endif | ||
| 254 | }; | ||
| 255 | |||
| 256 | enum mpui1610_save_state { | ||
| 257 | MPUI1610_SLEEP_SAVE_START = 0, | ||
| 258 | /* | ||
| 259 | * MPUI registers 32 bits | ||
| 260 | */ | ||
| 261 | MPUI1610_SLEEP_SAVE_MPUI_CTRL, | ||
| 262 | MPUI1610_SLEEP_SAVE_MPUI_DSP_BOOT_CONFIG, | ||
| 263 | MPUI1610_SLEEP_SAVE_MPUI_DSP_API_CONFIG, | ||
| 264 | MPUI1610_SLEEP_SAVE_MPUI_DSP_STATUS, | ||
| 265 | MPUI1610_SLEEP_SAVE_EMIFF_SDRAM_CONFIG, | ||
| 266 | MPUI1610_SLEEP_SAVE_EMIFS_CONFIG, | ||
| 267 | MPUI1610_SLEEP_SAVE_OMAP_IH1_MIR, | ||
| 268 | MPUI1610_SLEEP_SAVE_OMAP_IH2_0_MIR, | ||
| 269 | MPUI1610_SLEEP_SAVE_OMAP_IH2_1_MIR, | ||
| 270 | MPUI1610_SLEEP_SAVE_OMAP_IH2_2_MIR, | ||
| 271 | MPUI1610_SLEEP_SAVE_OMAP_IH2_3_MIR, | ||
| 272 | #if defined(CONFIG_ARCH_OMAP16XX) | ||
| 273 | MPUI1610_SLEEP_SAVE_SIZE | ||
| 274 | #else | ||
| 275 | MPUI1610_SLEEP_SAVE_SIZE = 0 | ||
| 276 | #endif | ||
| 277 | }; | ||
| 278 | |||
| 279 | #endif /* ASSEMBLER */ | ||
| 280 | #endif /* __ASM_ARCH_OMAP_PM_H */ | ||
diff --git a/arch/arm/mach-omap1/serial.c b/arch/arm/mach-omap1/serial.c index 842090b148f1..f754cee4f3c3 100644 --- a/arch/arm/mach-omap1/serial.c +++ b/arch/arm/mach-omap1/serial.c | |||
| @@ -26,9 +26,6 @@ | |||
| 26 | #include <mach/mux.h> | 26 | #include <mach/mux.h> |
| 27 | #include <mach/gpio.h> | 27 | #include <mach/gpio.h> |
| 28 | #include <mach/fpga.h> | 28 | #include <mach/fpga.h> |
| 29 | #ifdef CONFIG_PM | ||
| 30 | #include <mach/pm.h> | ||
| 31 | #endif | ||
| 32 | 29 | ||
| 33 | static struct clk * uart1_ck; | 30 | static struct clk * uart1_ck; |
| 34 | static struct clk * uart2_ck; | 31 | static struct clk * uart2_ck; |
diff --git a/arch/arm/mach-omap1/sleep.S b/arch/arm/mach-omap1/sleep.S index f3eac932092d..22e8568339b0 100644 --- a/arch/arm/mach-omap1/sleep.S +++ b/arch/arm/mach-omap1/sleep.S | |||
| @@ -35,7 +35,7 @@ | |||
| 35 | #include <linux/linkage.h> | 35 | #include <linux/linkage.h> |
| 36 | #include <asm/assembler.h> | 36 | #include <asm/assembler.h> |
| 37 | #include <mach/io.h> | 37 | #include <mach/io.h> |
| 38 | #include <mach/pm.h> | 38 | #include "pm.h" |
| 39 | 39 | ||
| 40 | .text | 40 | .text |
| 41 | 41 | ||
