diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-14 16:42:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-14 16:42:43 -0400 |
commit | 2cf4d4514d5b43c1f3b64bd0ec8b9853bde8f1dc (patch) | |
tree | e35a625496acc6ac852846d40b8851186b9d1ac4 /arch/arm/include/asm/hardware | |
parent | 44b7532b8b464f606053562400719c9c21276037 (diff) | |
parent | ce53895a5d24e0ee19fb92f56c17323fb4c9ab27 (diff) |
Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (417 commits)
MAINTAINERS: EB110ATX is not ebsa110
MAINTAINERS: update Eric Miao's email address and status
fb: add support of LCD display controller on pxa168/910 (base layer)
[ARM] 5552/1: ep93xx get_uart_rate(): use EP93XX_SYSCON_PWRCNT and EP93XX_SYSCON_PWRCN
[ARM] pxa/sharpsl_pm: zaurus needs generic pxa suspend/resume routines
[ARM] 5544/1: Trust PrimeCell resource sizes
[ARM] pxa/sharpsl_pm: cleanup of gpio-related code.
[ARM] pxa/sharpsl_pm: drop set_irq_type calls
[ARM] pxa/sharpsl_pm: merge pxa-specific code into generic one
[ARM] pxa/sharpsl_pm: merge the two sharpsl_pm.c since it's now pxa specific
[ARM] sa1100: remove unused collie_pm.c
[ARM] pxa: fix the conflicting non-static declarations of global_gpios[]
[ARM] 5550/1: Add default configure file for w90p910 platform
[ARM] 5549/1: Add clock api for w90p910 platform.
[ARM] 5548/1: Add gpio api for w90p910 platform
[ARM] 5551/1: Add multi-function pin api for w90p910 platform.
[ARM] Make ARM_VIC_NR depend on ARM_VIC
[ARM] 5546/1: ARM PL022 SSP/SPI driver v3
ARM: OMAP4: SMP: Update defconfig for OMAP4430
ARM: OMAP4: SMP: Enable SMP support for OMAP4430
...
Diffstat (limited to 'arch/arm/include/asm/hardware')
-rw-r--r-- | arch/arm/include/asm/hardware/arm_twd.h | 21 | ||||
-rw-r--r-- | arch/arm/include/asm/hardware/cache-l2x0.h | 2 | ||||
-rw-r--r-- | arch/arm/include/asm/hardware/pl080.h | 138 | ||||
-rw-r--r-- | arch/arm/include/asm/hardware/sharpsl_pm.h | 106 | ||||
-rw-r--r-- | arch/arm/include/asm/hardware/vic.h | 2 |
5 files changed, 141 insertions, 128 deletions
diff --git a/arch/arm/include/asm/hardware/arm_twd.h b/arch/arm/include/asm/hardware/arm_twd.h deleted file mode 100644 index e521b70713c8..000000000000 --- a/arch/arm/include/asm/hardware/arm_twd.h +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | #ifndef __ASM_HARDWARE_TWD_H | ||
2 | #define __ASM_HARDWARE_TWD_H | ||
3 | |||
4 | #define TWD_TIMER_LOAD 0x00 | ||
5 | #define TWD_TIMER_COUNTER 0x04 | ||
6 | #define TWD_TIMER_CONTROL 0x08 | ||
7 | #define TWD_TIMER_INTSTAT 0x0C | ||
8 | |||
9 | #define TWD_WDOG_LOAD 0x20 | ||
10 | #define TWD_WDOG_COUNTER 0x24 | ||
11 | #define TWD_WDOG_CONTROL 0x28 | ||
12 | #define TWD_WDOG_INTSTAT 0x2C | ||
13 | #define TWD_WDOG_RESETSTAT 0x30 | ||
14 | #define TWD_WDOG_DISABLE 0x34 | ||
15 | |||
16 | #define TWD_TIMER_CONTROL_ENABLE (1 << 0) | ||
17 | #define TWD_TIMER_CONTROL_ONESHOT (0 << 1) | ||
18 | #define TWD_TIMER_CONTROL_PERIODIC (1 << 1) | ||
19 | #define TWD_TIMER_CONTROL_IT_ENABLE (1 << 2) | ||
20 | |||
21 | #endif | ||
diff --git a/arch/arm/include/asm/hardware/cache-l2x0.h b/arch/arm/include/asm/hardware/cache-l2x0.h index 64f2252a25cd..cdb9022716fd 100644 --- a/arch/arm/include/asm/hardware/cache-l2x0.h +++ b/arch/arm/include/asm/hardware/cache-l2x0.h | |||
@@ -24,6 +24,8 @@ | |||
24 | #define L2X0_CACHE_TYPE 0x004 | 24 | #define L2X0_CACHE_TYPE 0x004 |
25 | #define L2X0_CTRL 0x100 | 25 | #define L2X0_CTRL 0x100 |
26 | #define L2X0_AUX_CTRL 0x104 | 26 | #define L2X0_AUX_CTRL 0x104 |
27 | #define L2X0_TAG_LATENCY_CTRL 0x108 | ||
28 | #define L2X0_DATA_LATENCY_CTRL 0x10C | ||
27 | #define L2X0_EVENT_CNT_CTRL 0x200 | 29 | #define L2X0_EVENT_CNT_CTRL 0x200 |
28 | #define L2X0_EVENT_CNT1_CFG 0x204 | 30 | #define L2X0_EVENT_CNT1_CFG 0x204 |
29 | #define L2X0_EVENT_CNT0_CFG 0x208 | 31 | #define L2X0_EVENT_CNT0_CFG 0x208 |
diff --git a/arch/arm/include/asm/hardware/pl080.h b/arch/arm/include/asm/hardware/pl080.h new file mode 100644 index 000000000000..6a6c66be7f65 --- /dev/null +++ b/arch/arm/include/asm/hardware/pl080.h | |||
@@ -0,0 +1,138 @@ | |||
1 | /* arch/arm/include/asm/hardware/pl080.h | ||
2 | * | ||
3 | * Copyright 2008 Openmoko, Inc. | ||
4 | * Copyright 2008 Simtec Electronics | ||
5 | * http://armlinux.simtec.co.uk/ | ||
6 | * Ben Dooks <ben@simtec.co.uk> | ||
7 | * | ||
8 | * ARM PrimeCell PL080 DMA controller | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | */ | ||
14 | |||
15 | /* Note, there are some Samsung updates to this controller block which | ||
16 | * make it not entierly compatible with the PL080 specification from | ||
17 | * ARM. When in doubt, check the Samsung documentation first. | ||
18 | * | ||
19 | * The Samsung defines are PL080S, and add an extra controll register, | ||
20 | * the ability to move more than 2^11 counts of data and some extra | ||
21 | * OneNAND features. | ||
22 | */ | ||
23 | |||
24 | #define PL080_INT_STATUS (0x00) | ||
25 | #define PL080_TC_STATUS (0x04) | ||
26 | #define PL080_TC_CLEAR (0x08) | ||
27 | #define PL080_ERR_STATUS (0x0C) | ||
28 | #define PL080_ERR_CLEAR (0x10) | ||
29 | #define PL080_RAW_TC_STATUS (0x14) | ||
30 | #define PL080_RAW_ERR_STATUS (0x18) | ||
31 | #define PL080_EN_CHAN (0x1c) | ||
32 | #define PL080_SOFT_BREQ (0x20) | ||
33 | #define PL080_SOFT_SREQ (0x24) | ||
34 | #define PL080_SOFT_LBREQ (0x28) | ||
35 | #define PL080_SOFT_LSREQ (0x2C) | ||
36 | |||
37 | #define PL080_CONFIG (0x30) | ||
38 | #define PL080_CONFIG_M2_BE (1 << 2) | ||
39 | #define PL080_CONFIG_M1_BE (1 << 1) | ||
40 | #define PL080_CONFIG_ENABLE (1 << 0) | ||
41 | |||
42 | #define PL080_SYNC (0x34) | ||
43 | |||
44 | /* Per channel configuration registers */ | ||
45 | |||
46 | #define PL008_Cx_STRIDE (0x20) | ||
47 | #define PL080_Cx_BASE(x) ((0x100 + (x * 0x20))) | ||
48 | #define PL080_Cx_SRC_ADDR(x) ((0x100 + (x * 0x20))) | ||
49 | #define PL080_Cx_DST_ADDR(x) ((0x104 + (x * 0x20))) | ||
50 | #define PL080_Cx_LLI(x) ((0x108 + (x * 0x20))) | ||
51 | #define PL080_Cx_CONTROL(x) ((0x10C + (x * 0x20))) | ||
52 | #define PL080_Cx_CONFIG(x) ((0x110 + (x * 0x20))) | ||
53 | #define PL080S_Cx_CONTROL2(x) ((0x110 + (x * 0x20))) | ||
54 | #define PL080S_Cx_CONFIG(x) ((0x114 + (x * 0x20))) | ||
55 | |||
56 | #define PL080_CH_SRC_ADDR (0x00) | ||
57 | #define PL080_CH_DST_ADDR (0x04) | ||
58 | #define PL080_CH_LLI (0x08) | ||
59 | #define PL080_CH_CONTROL (0x0C) | ||
60 | #define PL080_CH_CONFIG (0x10) | ||
61 | #define PL080S_CH_CONTROL2 (0x10) | ||
62 | #define PL080S_CH_CONFIG (0x14) | ||
63 | |||
64 | #define PL080_LLI_ADDR_MASK (0x3fffffff << 2) | ||
65 | #define PL080_LLI_ADDR_SHIFT (2) | ||
66 | #define PL080_LLI_LM_AHB2 (1 << 0) | ||
67 | |||
68 | #define PL080_CONTROL_TC_IRQ_EN (1 << 31) | ||
69 | #define PL080_CONTROL_PROT_MASK (0x7 << 28) | ||
70 | #define PL080_CONTROL_PROT_SHIFT (28) | ||
71 | #define PL080_CONTROL_PROT_SYS (1 << 28) | ||
72 | #define PL080_CONTROL_DST_INCR (1 << 27) | ||
73 | #define PL080_CONTROL_SRC_INCR (1 << 26) | ||
74 | #define PL080_CONTROL_DST_AHB2 (1 << 25) | ||
75 | #define PL080_CONTROL_SRC_AHB2 (1 << 24) | ||
76 | #define PL080_CONTROL_DWIDTH_MASK (0x7 << 21) | ||
77 | #define PL080_CONTROL_DWIDTH_SHIFT (21) | ||
78 | #define PL080_CONTROL_SWIDTH_MASK (0x7 << 18) | ||
79 | #define PL080_CONTROL_SWIDTH_SHIFT (18) | ||
80 | #define PL080_CONTROL_DB_SIZE_MASK (0x7 << 15) | ||
81 | #define PL080_CONTROL_DB_SIZE_SHIFT (15) | ||
82 | #define PL080_CONTROL_SB_SIZE_MASK (0x7 << 12) | ||
83 | #define PL080_CONTROL_SB_SIZE_SHIFT (12) | ||
84 | #define PL080_CONTROL_TRANSFER_SIZE_MASK (0xfff << 0) | ||
85 | #define PL080_CONTROL_TRANSFER_SIZE_SHIFT (0) | ||
86 | |||
87 | #define PL080_BSIZE_1 (0x0) | ||
88 | #define PL080_BSIZE_4 (0x1) | ||
89 | #define PL080_BSIZE_8 (0x2) | ||
90 | #define PL080_BSIZE_16 (0x3) | ||
91 | #define PL080_BSIZE_32 (0x4) | ||
92 | #define PL080_BSIZE_64 (0x5) | ||
93 | #define PL080_BSIZE_128 (0x6) | ||
94 | #define PL080_BSIZE_256 (0x7) | ||
95 | |||
96 | #define PL080_WIDTH_8BIT (0x0) | ||
97 | #define PL080_WIDTH_16BIT (0x1) | ||
98 | #define PL080_WIDTH_32BIT (0x2) | ||
99 | |||
100 | #define PL080_CONFIG_HALT (1 << 18) | ||
101 | #define PL080_CONFIG_ACTIVE (1 << 17) /* RO */ | ||
102 | #define PL080_CONFIG_LOCK (1 << 16) | ||
103 | #define PL080_CONFIG_TC_IRQ_MASK (1 << 15) | ||
104 | #define PL080_CONFIG_ERR_IRQ_MASK (1 << 14) | ||
105 | #define PL080_CONFIG_FLOW_CONTROL_MASK (0x7 << 11) | ||
106 | #define PL080_CONFIG_FLOW_CONTROL_SHIFT (11) | ||
107 | #define PL080_CONFIG_DST_SEL_MASK (0xf << 6) | ||
108 | #define PL080_CONFIG_DST_SEL_SHIFT (6) | ||
109 | #define PL080_CONFIG_SRC_SEL_MASK (0xf << 1) | ||
110 | #define PL080_CONFIG_SRC_SEL_SHIFT (1) | ||
111 | #define PL080_CONFIG_ENABLE (1 << 0) | ||
112 | |||
113 | #define PL080_FLOW_MEM2MEM (0x0) | ||
114 | #define PL080_FLOW_MEM2PER (0x1) | ||
115 | #define PL080_FLOW_PER2MEM (0x2) | ||
116 | #define PL080_FLOW_SRC2DST (0x3) | ||
117 | #define PL080_FLOW_SRC2DST_DST (0x4) | ||
118 | #define PL080_FLOW_MEM2PER_PER (0x5) | ||
119 | #define PL080_FLOW_PER2MEM_PER (0x6) | ||
120 | #define PL080_FLOW_SRC2DST_SRC (0x7) | ||
121 | |||
122 | /* DMA linked list chain structure */ | ||
123 | |||
124 | struct pl080_lli { | ||
125 | u32 src_addr; | ||
126 | u32 dst_addr; | ||
127 | u32 next_lli; | ||
128 | u32 control0; | ||
129 | }; | ||
130 | |||
131 | struct pl080s_lli { | ||
132 | u32 src_addr; | ||
133 | u32 dst_addr; | ||
134 | u32 next_lli; | ||
135 | u32 control0; | ||
136 | u32 control1; | ||
137 | }; | ||
138 | |||
diff --git a/arch/arm/include/asm/hardware/sharpsl_pm.h b/arch/arm/include/asm/hardware/sharpsl_pm.h deleted file mode 100644 index 2d00db22b981..000000000000 --- a/arch/arm/include/asm/hardware/sharpsl_pm.h +++ /dev/null | |||
@@ -1,106 +0,0 @@ | |||
1 | /* | ||
2 | * SharpSL Battery/PM Driver | ||
3 | * | ||
4 | * Copyright (c) 2004-2005 Richard Purdie | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | */ | ||
11 | |||
12 | #include <linux/interrupt.h> | ||
13 | |||
14 | struct sharpsl_charger_machinfo { | ||
15 | void (*init)(void); | ||
16 | void (*exit)(void); | ||
17 | int gpio_acin; | ||
18 | int gpio_batfull; | ||
19 | int batfull_irq; | ||
20 | int gpio_batlock; | ||
21 | int gpio_fatal; | ||
22 | void (*discharge)(int); | ||
23 | void (*discharge1)(int); | ||
24 | void (*charge)(int); | ||
25 | void (*measure_temp)(int); | ||
26 | void (*presuspend)(void); | ||
27 | void (*postsuspend)(void); | ||
28 | void (*earlyresume)(void); | ||
29 | unsigned long (*read_devdata)(int); | ||
30 | #define SHARPSL_BATT_VOLT 1 | ||
31 | #define SHARPSL_BATT_TEMP 2 | ||
32 | #define SHARPSL_ACIN_VOLT 3 | ||
33 | #define SHARPSL_STATUS_ACIN 4 | ||
34 | #define SHARPSL_STATUS_LOCK 5 | ||
35 | #define SHARPSL_STATUS_CHRGFULL 6 | ||
36 | #define SHARPSL_STATUS_FATAL 7 | ||
37 | unsigned long (*charger_wakeup)(void); | ||
38 | int (*should_wakeup)(unsigned int resume_on_alarm); | ||
39 | void (*backlight_limit)(int); | ||
40 | int (*backlight_get_status) (void); | ||
41 | int charge_on_volt; | ||
42 | int charge_on_temp; | ||
43 | int charge_acin_high; | ||
44 | int charge_acin_low; | ||
45 | int fatal_acin_volt; | ||
46 | int fatal_noacin_volt; | ||
47 | int bat_levels; | ||
48 | struct battery_thresh *bat_levels_noac; | ||
49 | struct battery_thresh *bat_levels_acin; | ||
50 | struct battery_thresh *bat_levels_noac_bl; | ||
51 | struct battery_thresh *bat_levels_acin_bl; | ||
52 | int status_high_acin; | ||
53 | int status_low_acin; | ||
54 | int status_high_noac; | ||
55 | int status_low_noac; | ||
56 | }; | ||
57 | |||
58 | struct battery_thresh { | ||
59 | int voltage; | ||
60 | int percentage; | ||
61 | }; | ||
62 | |||
63 | struct battery_stat { | ||
64 | int ac_status; /* APM AC Present/Not Present */ | ||
65 | int mainbat_status; /* APM Main Battery Status */ | ||
66 | int mainbat_percent; /* Main Battery Percentage Charge */ | ||
67 | int mainbat_voltage; /* Main Battery Voltage */ | ||
68 | }; | ||
69 | |||
70 | struct sharpsl_pm_status { | ||
71 | struct device *dev; | ||
72 | struct timer_list ac_timer; | ||
73 | struct timer_list chrg_full_timer; | ||
74 | |||
75 | int charge_mode; | ||
76 | #define CHRG_ERROR (-1) | ||
77 | #define CHRG_OFF (0) | ||
78 | #define CHRG_ON (1) | ||
79 | #define CHRG_DONE (2) | ||
80 | |||
81 | unsigned int flags; | ||
82 | #define SHARPSL_SUSPENDED (1 << 0) /* Device is Suspended */ | ||
83 | #define SHARPSL_ALARM_ACTIVE (1 << 1) /* Alarm is for charging event (not user) */ | ||
84 | #define SHARPSL_BL_LIMIT (1 << 2) /* Backlight Intensity Limited */ | ||
85 | #define SHARPSL_APM_QUEUED (1 << 3) /* APM Event Queued */ | ||
86 | #define SHARPSL_DO_OFFLINE_CHRG (1 << 4) /* Trigger the offline charger */ | ||
87 | |||
88 | int full_count; | ||
89 | unsigned long charge_start_time; | ||
90 | struct sharpsl_charger_machinfo *machinfo; | ||
91 | struct battery_stat battstat; | ||
92 | }; | ||
93 | |||
94 | extern struct sharpsl_pm_status sharpsl_pm; | ||
95 | |||
96 | |||
97 | #define SHARPSL_LED_ERROR 2 | ||
98 | #define SHARPSL_LED_ON 1 | ||
99 | #define SHARPSL_LED_OFF 0 | ||
100 | |||
101 | void sharpsl_battery_kick(void); | ||
102 | void sharpsl_pm_led(int val); | ||
103 | irqreturn_t sharpsl_ac_isr(int irq, void *dev_id); | ||
104 | irqreturn_t sharpsl_chrg_full_isr(int irq, void *dev_id); | ||
105 | irqreturn_t sharpsl_fatal_isr(int irq, void *dev_id); | ||
106 | |||
diff --git a/arch/arm/include/asm/hardware/vic.h b/arch/arm/include/asm/hardware/vic.h index f87328d4a180..5d72550a8097 100644 --- a/arch/arm/include/asm/hardware/vic.h +++ b/arch/arm/include/asm/hardware/vic.h | |||
@@ -41,7 +41,7 @@ | |||
41 | #define VIC_PL192_VECT_ADDR 0xF00 | 41 | #define VIC_PL192_VECT_ADDR 0xF00 |
42 | 42 | ||
43 | #ifndef __ASSEMBLY__ | 43 | #ifndef __ASSEMBLY__ |
44 | void vic_init(void __iomem *base, unsigned int irq_start, u32 vic_sources); | 44 | void vic_init(void __iomem *base, unsigned int irq_start, u32 vic_sources, u32 resume_sources); |
45 | #endif | 45 | #endif |
46 | 46 | ||
47 | #endif | 47 | #endif |