aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2011-05-17 17:23:46 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2011-05-17 17:23:46 -0400
commit290c748725c170ed9a02522959ae67f528eefe98 (patch)
treea920190b75c7e054af24d850e79cc54f5cf53263 /kernel/module.c
parent2d2a9163bd4f3ba301f8138c32e4790edc30156c (diff)
parent72874daa5e9064c4e8d689e6a04b1e96f687f872 (diff)
Merge branch 'power-domains' into for-linus
* power-domains: PM: Fix build issue in clock_ops.c for CONFIG_PM_RUNTIME unset PM: Revert "driver core: platform_bus: allow runtime override of dev_pm_ops" OMAP1 / PM: Use generic clock manipulation routines for runtime PM PM / Runtime: Generic clock manipulation rountines for runtime PM (v6) PM / Runtime: Add subsystem data field to struct dev_pm_info OMAP2+ / PM: move runtime PM implementation to use device power domains PM / Platform: Use generic runtime PM callbacks directly shmobile: Use power domains for platform runtime PM PM: Export platform bus type's default PM callbacks PM: Make power domain callbacks take precedence over subsystem ones
Diffstat (limited to 'kernel/module.c')
0 files changed, 0 insertions, 0 deletions
el. * * The VSA is described further in arch/x86/pci/olpc.c. */ static inline int olpc_has_vsa(void) { return (olpc_platform_info.flags & OLPC_F_VSA) ? 1 : 0; } /* * The "Mass Production" version of OLPC's XO is identified as being model * C2. During the prototype phase, the following models (in chronological * order) were created: A1, B1, B2, B3, B4, C1. The A1 through B2 models * were based on Geode GX CPUs, and models after that were based upon * Geode LX CPUs. There were also some hand-assembled models floating * around, referred to as PreB1, PreB2, etc. */ static inline int olpc_board_at_least(uint32_t rev) { return olpc_platform_info.boardrev >= rev; } #else static inline int machine_is_olpc(void) { return 0; } static inline int olpc_has_dcon(void) { return 0; } static inline int olpc_has_vsa(void) { return 0; } #endif /* EC related functions */ extern int olpc_ec_cmd(unsigned char cmd, unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen); extern int olpc_ec_mask_set(uint8_t bits); extern int olpc_ec_mask_unset(uint8_t bits); /* EC commands */ #define EC_FIRMWARE_REV 0x08 /* SCI source values */ #define EC_SCI_SRC_EMPTY 0x00 #define EC_SCI_SRC_GAME 0x01 #define EC_SCI_SRC_BATTERY 0x02 #define EC_SCI_SRC_BATSOC 0x04 #define EC_SCI_SRC_BATERR 0x08 #define EC_SCI_SRC_EBOOK 0x10 #define EC_SCI_SRC_WLAN 0x20 #define EC_SCI_SRC_ACPWR 0x40 #define EC_SCI_SRC_ALL 0x7F /* GPIO assignments */ #define OLPC_GPIO_MIC_AC geode_gpio(1) #define OLPC_GPIO_DCON_IRQ geode_gpio(7) #define OLPC_GPIO_THRM_ALRM geode_gpio(10) #define OLPC_GPIO_SMB_CLK geode_gpio(14) #define OLPC_GPIO_SMB_DATA geode_gpio(15) #define OLPC_GPIO_WORKAUX geode_gpio(24) #define OLPC_GPIO_LID geode_gpio(26) #define OLPC_GPIO_ECSCI geode_gpio(27) #endif