Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226617
b: refs/heads/master
c: 72e06d0
h: refs/heads/master
i:
  226615: 8383ac2
v: v3
  • Loading branch information
Paul Walmsley committed Dec 22, 2010
1 parent f297a62 commit c0ec459
Show file tree
Hide file tree
Showing 28 changed files with 46 additions and 73 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1540f214065982e6cbc6b8da1fe65a15e358f7c5
refs/heads/master: 72e06d087204f3bc9acf281717b90ebf0b9731f7
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/clockdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "prcm44xx.h"

#include <plat/clock.h>
#include <plat/powerdomain.h>
#include "powerdomain.h"
#include "clockdomain.h"
#include <plat/prcm.h>

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/clockdomain.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <linux/init.h>

#include <plat/powerdomain.h>
#include "powerdomain.h"
#include <plat/clock.h>
#include <plat/cpu.h>

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/cpuidle34xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include <plat/prcm.h>
#include <plat/irqs.h>
#include <plat/powerdomain.h>
#include "powerdomain.h"
#include "clockdomain.h"
#include <plat/serial.h>

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include "io.h"

#include <plat/omap-pm.h>
#include <plat/powerdomain.h>
#include "powerdomain.h"

#include "clockdomain.h"
#include <plat/omap_hwmod.h>
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/omap_hwmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
#include <plat/common.h>
#include <plat/cpu.h>
#include "clockdomain.h"
#include <plat/powerdomain.h>
#include "powerdomain.h"
#include <plat/clock.h>
#include <plat/omap_hwmod.h>
#include <plat/prcm.h>
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/pm-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include <plat/clock.h>
#include <plat/board.h>
#include <plat/powerdomain.h>
#include "powerdomain.h"
#include "clockdomain.h"
#include <plat/dmtimer.h>

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <plat/omap_device.h>
#include <plat/common.h>

#include <plat/powerdomain.h>
#include "powerdomain.h"
#include "clockdomain.h"

static struct omap_device_pm_latency *pm_lats;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef __ARCH_ARM_MACH_OMAP2_PM_H
#define __ARCH_ARM_MACH_OMAP2_PM_H

#include <plat/powerdomain.h>
#include "powerdomain.h"

extern void *omap3_secure_ram_storage;
extern void omap3_pm_off_mode_enable(int);
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-omap2/pm24xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#include "pm.h"
#include "control.h"

#include <plat/powerdomain.h>
#include "powerdomain.h"
#include "clockdomain.h"

#ifdef CONFIG_SUSPEND
Expand Down Expand Up @@ -120,7 +120,7 @@ static void omap2_enter_full_retention(void)
l = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0) | OMAP24XX_USBSTANDBYCTRL;
omap_ctrl_writel(l, OMAP2_CONTROL_DEVCONF0);

omap2_gpio_prepare_for_idle(PWRDM_POWER_RET);
omap2_gpio_prepare_for_idle(0);

if (omap2_pm_debug) {
omap2_pm_dump(0, 0, 0);
Expand Down
6 changes: 4 additions & 2 deletions trunk/arch/arm/mach-omap2/pm34xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include <plat/sram.h>
#include "clockdomain.h"
#include <plat/powerdomain.h>
#include "powerdomain.h"
#include <plat/serial.h>
#include <plat/sdrc.h>
#include <plat/prcm.h>
Expand Down Expand Up @@ -360,6 +360,7 @@ void omap_sram_idle(void)
int mpu_next_state = PWRDM_POWER_ON;
int per_next_state = PWRDM_POWER_ON;
int core_next_state = PWRDM_POWER_ON;
int per_going_off;
int core_prev_state, per_prev_state;
u32 sdrc_pwr = 0;

Expand Down Expand Up @@ -411,9 +412,10 @@ void omap_sram_idle(void)

/* PER */
if (per_next_state < PWRDM_POWER_ON) {
per_going_off = (per_next_state == PWRDM_POWER_OFF) ? 1 : 0;
omap_uart_prepare_idle(2);
omap_uart_prepare_idle(3);
omap2_gpio_prepare_for_idle(per_next_state);
omap2_gpio_prepare_for_idle(per_going_off);
if (per_next_state == PWRDM_POWER_OFF)
omap3_per_save_context();
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/pm44xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <linux/err.h>
#include <linux/slab.h>

#include <plat/powerdomain.h>
#include "powerdomain.h"
#include <mach/omap4-common.h>

struct power_state {
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-omap2/powerdomain-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "cm-regbits-44xx.h"
#include "prm-regbits-34xx.h"
#include "prm-regbits-44xx.h"
#include "powerdomains.h"

/*
* OMAP3 and OMAP4 specific register bit initialisations
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/powerdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "prm44xx.h"

#include <plat/cpu.h>
#include <plat/powerdomain.h>
#include "powerdomain.h"
#include "clockdomain.h"
#include <plat/prcm.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
* OMAP2/3/4 powerdomain control
*
* Copyright (C) 2007-2008 Texas Instruments, Inc.
* Copyright (C) 2007-2008, 2010 Texas Instruments, Inc.
* Copyright (C) 2007-2010 Nokia Corporation
*
* Written by Paul Walmsley
* Paul Walmsley
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand All @@ -14,13 +14,13 @@
* opportunity.
*/

#ifndef ASM_ARM_PLAT_OMAP_INCLUDE_PLAT_POWERDOMAIN
#define ASM_ARM_PLAT_OMAP_INCLUDE_PLAT_POWERDOMAIN
#ifndef __ARCH_ARM_MACH_OMAP2_POWERDOMAIN_H
#define __ARCH_ARM_MACH_OMAP2_POWERDOMAIN_H

#include <linux/types.h>
#include <linux/list.h>

#include <asm/atomic.h>
#include <linux/atomic.h>

#include <plat/cpu.h>

Expand Down Expand Up @@ -216,4 +216,17 @@ extern void omap2xxx_powerdomains_init(void);
extern void omap3xxx_powerdomains_init(void);
extern void omap44xx_powerdomains_init(void);

extern struct pwrdm_ops omap2_pwrdm_operations;
extern struct pwrdm_ops omap3_pwrdm_operations;
extern struct pwrdm_ops omap4_pwrdm_operations;

/* Common Internal functions used across OMAP rev's */
extern u32 omap2_pwrdm_get_mem_bank_onstate_mask(u8 bank);
extern u32 omap2_pwrdm_get_mem_bank_retst_mask(u8 bank);
extern u32 omap2_pwrdm_get_mem_bank_stst_mask(u8 bank);

extern struct powerdomain wkup_omap2_pwrdm;
extern struct powerdomain gfx_omap2_pwrdm;


#endif
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/powerdomain2xxx_3xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include <plat/prcm.h>

#include "powerdomain.h"
#include "prm-regbits-34xx.h"
#include "powerdomains.h"
#include "prm.h"
#include "prm-regbits-24xx.h"
#include "prm-regbits-34xx.h"
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/arm/mach-omap2/powerdomain44xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@
#include <linux/errno.h>
#include <linux/delay.h>

#include <plat/powerdomain.h>
#include "powerdomain.h"
#include <plat/prcm.h>
#include "prm2xxx_3xxx.h"
#include "prm44xx.h"
#include "prminst44xx.h"
#include "prm-regbits-44xx.h"
#include "powerdomains.h"

static int omap4_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst)
{
Expand Down
30 changes: 0 additions & 30 deletions trunk/arch/arm/mach-omap2/powerdomains.h

This file was deleted.

4 changes: 1 addition & 3 deletions trunk/arch/arm/mach-omap2/powerdomains2xxx_3xxx_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,11 @@
* address offset is different between the C55 and C64 DSPs.
*/

#include <plat/powerdomain.h>
#include "powerdomain.h"

#include "prcm-common.h"
#include "prm.h"

#include "powerdomains.h"

/* OMAP2/3-common powerdomains */

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/powerdomains2xxx_3xxx_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef __ARCH_ARM_MACH_OMAP2_POWERDOMAINS2XXX_3XXX_DATA_H
#define __ARCH_ARM_MACH_OMAP2_POWERDOMAINS2XXX_3XXX_DATA_H

#include <plat/powerdomain.h>
#include "powerdomain.h"

extern struct powerdomain gfx_omap2_pwrdm;
extern struct powerdomain wkup_omap2_pwrdm;
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/arm/mach-omap2/powerdomains2xxx_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
#include <linux/kernel.h>
#include <linux/init.h>

#include <plat/powerdomain.h>
#include "powerdomain.h"
#include "powerdomains2xxx_3xxx_data.h"
#include "powerdomains.h"

#include "prcm-common.h"
#include "prm2xxx_3xxx.h"
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/arm/mach-omap2/powerdomains3xxx_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
#include <linux/kernel.h>
#include <linux/init.h>

#include <plat/powerdomain.h>
#include "powerdomain.h"
#include "powerdomains2xxx_3xxx_data.h"
#include "powerdomains.h"

#include "prcm-common.h"
#include "prm2xxx_3xxx.h"
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/arm/mach-omap2/powerdomains44xx_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
#include <linux/kernel.h>
#include <linux/init.h>

#include <plat/powerdomain.h>
#include "powerdomains.h"
#include "powerdomain.h"

#include "prcm-common.h"
#include "prcm44xx.h"
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/arm/plat-omap/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <mach/irqs.h>
#include <mach/gpio.h>
#include <asm/mach/irq.h>
#include <plat/powerdomain.h>

/*
* OMAP1510 GPIO registers
Expand Down Expand Up @@ -1864,7 +1863,7 @@ static struct sys_device omap_gpio_device = {

static int workaround_enabled;

void omap2_gpio_prepare_for_idle(int power_state)
void omap2_gpio_prepare_for_idle(int off_mode)
{
int i, c = 0;
int min = 0;
Expand All @@ -1880,7 +1879,7 @@ void omap2_gpio_prepare_for_idle(int power_state)
for (j = 0; j < hweight_long(bank->dbck_enable_mask); j++)
clk_disable(bank->dbck);

if (power_state > PWRDM_POWER_OFF)
if (!off_mode)
continue;

/* If going to OFF, remove triggering for all
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/plat-omap/include/plat/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ struct omap_gpio_platform_data {
/* TODO: Analyze removing gpio_bank_count usage from driver code */
extern int gpio_bank_count;

extern void omap2_gpio_prepare_for_idle(int power_state);
extern void omap2_gpio_prepare_for_idle(int off_mode);
extern void omap2_gpio_resume_after_idle(void);
extern void omap_set_gpio_debounce(int gpio, int enable);
extern void omap_set_gpio_debounce_time(int gpio, int enable);
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/arm/plat-omap/include/plat/omap-pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include <linux/clk.h>
#include <linux/opp.h>

#include "powerdomain.h"

/*
* agent_id values for use with omap_pm_set_min_bus_tput():
*
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/arm/plat-omap/omap-pm-noop.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
/* Interface documentation is in mach/omap-pm.h */
#include <plat/omap-pm.h>

#include <plat/powerdomain.h>

/*
* Device-driver-originated constraints (via board-*.c files)
*/
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/tidspbridge/core/_tiomap.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* be removed. No driver should call pwrdm_* or clkdm_* functions
* directly; they should rely on OMAP core code to do this.
*/
#include <plat/powerdomain.h>
#include <mach-omap2/powerdomain.h>
#include <mach-omap2/clockdomain.h>
/*
* XXX These mach-omap2/ includes are wrong and should be removed. No
Expand Down

0 comments on commit c0ec459

Please sign in to comment.