diff options
Diffstat (limited to 'include/asm-arm/arch-omap')
-rw-r--r-- | include/asm-arm/arch-omap/blizzard.h | 12 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/board-2430sdp.h | 44 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/board-palmte.h | 34 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/board-palmtt.h | 23 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/board-palmz71.h | 26 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/board-sx1.h | 46 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/board.h | 4 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/dma.h | 1 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/eac.h | 101 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/gpmc.h | 5 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/hardware.h | 20 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/io.h | 10 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/menelaus.h | 20 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/mmc.h | 66 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/mux.h | 23 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/omap24xx.h | 12 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/onenand.h | 21 |
17 files changed, 465 insertions, 3 deletions
diff --git a/include/asm-arm/arch-omap/blizzard.h b/include/asm-arm/arch-omap/blizzard.h new file mode 100644 index 000000000000..8d160f171372 --- /dev/null +++ b/include/asm-arm/arch-omap/blizzard.h | |||
@@ -0,0 +1,12 @@ | |||
1 | #ifndef _BLIZZARD_H | ||
2 | #define _BLIZZARD_H | ||
3 | |||
4 | struct blizzard_platform_data { | ||
5 | void (*power_up)(struct device *dev); | ||
6 | void (*power_down)(struct device *dev); | ||
7 | unsigned long (*get_clock_rate)(struct device *dev); | ||
8 | |||
9 | unsigned te_connected : 1; | ||
10 | }; | ||
11 | |||
12 | #endif | ||
diff --git a/include/asm-arm/arch-omap/board-2430sdp.h b/include/asm-arm/arch-omap/board-2430sdp.h new file mode 100644 index 000000000000..e9c65ce3cb12 --- /dev/null +++ b/include/asm-arm/arch-omap/board-2430sdp.h | |||
@@ -0,0 +1,44 @@ | |||
1 | /* | ||
2 | * linux/include/asm-arm/arch-omap/board-2430sdp.h | ||
3 | * | ||
4 | * Hardware definitions for TI OMAP2430 SDP board. | ||
5 | * | ||
6 | * Based on board-h4.h by Dirk Behme <dirk.behme@de.bosch.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms of the GNU General Public License as published by the | ||
10 | * Free Software Foundation; either version 2 of the License, or (at your | ||
11 | * option) any later version. | ||
12 | * | ||
13 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
14 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
15 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
16 | * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
17 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
18 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
19 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
20 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
21 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
23 | * | ||
24 | * You should have received a copy of the GNU General Public License along | ||
25 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
26 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
27 | */ | ||
28 | |||
29 | #ifndef __ASM_ARCH_OMAP_2430SDP_H | ||
30 | #define __ASM_ARCH_OMAP_2430SDP_H | ||
31 | |||
32 | /* Placeholder for 2430SDP specific defines */ | ||
33 | #define OMAP24XX_ETHR_START 0x08000300 | ||
34 | #define OMAP24XX_ETHR_GPIO_IRQ 149 | ||
35 | #define SDP2430_CS0_BASE 0x04000000 | ||
36 | |||
37 | #define TWL4030_IRQNUM INT_24XX_SYS_NIRQ | ||
38 | |||
39 | /* TWL4030 Primary Interrupt Handler (PIH) interrupts */ | ||
40 | #define IH_TWL4030_BASE IH_BOARD_BASE | ||
41 | #define IH_TWL4030_END (IH_TWL4030_BASE+8) | ||
42 | #define NR_IRQS (IH_TWL4030_END) | ||
43 | |||
44 | #endif /* __ASM_ARCH_OMAP_2430SDP_H */ | ||
diff --git a/include/asm-arm/arch-omap/board-palmte.h b/include/asm-arm/arch-omap/board-palmte.h new file mode 100644 index 000000000000..cd22035a7160 --- /dev/null +++ b/include/asm-arm/arch-omap/board-palmte.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /* | ||
2 | * linux/include/asm-arm/arch-omap/board-palmte.h | ||
3 | * | ||
4 | * Hardware definitions for the Palm Tungsten E device. | ||
5 | * | ||
6 | * Maintainters : http://palmtelinux.sf.net | ||
7 | * palmtelinux-developpers@lists.sf.net | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | ||
13 | |||
14 | #ifndef __OMAP_BOARD_PALMTE_H | ||
15 | #define __OMAP_BOARD_PALMTE_H | ||
16 | |||
17 | #include <asm/arch/gpio.h> | ||
18 | |||
19 | #define PALMTE_USBDETECT_GPIO 0 | ||
20 | #define PALMTE_USB_OR_DC_GPIO 1 | ||
21 | #define PALMTE_TSC_GPIO 4 | ||
22 | #define PALMTE_PINTDAV_GPIO 6 | ||
23 | #define PALMTE_MMC_WP_GPIO 8 | ||
24 | #define PALMTE_MMC_POWER_GPIO 9 | ||
25 | #define PALMTE_HDQ_GPIO 11 | ||
26 | #define PALMTE_HEADPHONES_GPIO 14 | ||
27 | #define PALMTE_SPEAKER_GPIO 15 | ||
28 | #define PALMTE_DC_GPIO OMAP_MPUIO(2) | ||
29 | #define PALMTE_MMC_SWITCH_GPIO OMAP_MPUIO(4) | ||
30 | #define PALMTE_MMC1_GPIO OMAP_MPUIO(6) | ||
31 | #define PALMTE_MMC2_GPIO OMAP_MPUIO(7) | ||
32 | #define PALMTE_MMC3_GPIO OMAP_MPUIO(11) | ||
33 | |||
34 | #endif /* __OMAP_BOARD_PALMTE_H */ | ||
diff --git a/include/asm-arm/arch-omap/board-palmtt.h b/include/asm-arm/arch-omap/board-palmtt.h new file mode 100644 index 000000000000..d9590b0ec90e --- /dev/null +++ b/include/asm-arm/arch-omap/board-palmtt.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | * linux/include/asm-arm/arch-omap/board-palmte.h | ||
3 | * | ||
4 | * Hardware definitions for the Palm Tungsten|T device. | ||
5 | * | ||
6 | * Maintainters : Marek Vasut <marek.vasut@gmail.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #ifndef __OMAP_BOARD_PALMTT_H | ||
14 | #define __OMAP_BOARD_PALMTT_H | ||
15 | |||
16 | #define PALMTT_USBDETECT_GPIO 0 | ||
17 | #define PALMTT_CABLE_GPIO 1 | ||
18 | #define PALMTT_LED_GPIO 3 | ||
19 | #define PALMTT_PENIRQ_GPIO 6 | ||
20 | #define PALMTT_MMC_WP_GPIO 8 | ||
21 | #define PALMTT_HDQ_GPIO 11 | ||
22 | |||
23 | #endif /* __OMAP_BOARD_PALMTT_H */ | ||
diff --git a/include/asm-arm/arch-omap/board-palmz71.h b/include/asm-arm/arch-omap/board-palmz71.h new file mode 100644 index 000000000000..1252a859787d --- /dev/null +++ b/include/asm-arm/arch-omap/board-palmz71.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* | ||
2 | * linux/include/asm-arm/arch-omap/board-palmz71.h | ||
3 | * | ||
4 | * Hardware definitions for the Palm Zire71 device. | ||
5 | * | ||
6 | * Maintainters : Marek Vasut <marek.vasut@gmail.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #ifndef __OMAP_BOARD_PALMZ71_H | ||
14 | #define __OMAP_BOARD_PALMZ71_H | ||
15 | |||
16 | #define PALMZ71_USBDETECT_GPIO 0 | ||
17 | #define PALMZ71_PENIRQ_GPIO 6 | ||
18 | #define PALMZ71_MMC_WP_GPIO 8 | ||
19 | #define PALMZ71_HDQ_GPIO 11 | ||
20 | |||
21 | #define PALMZ71_HOTSYNC_GPIO OMAP_MPUIO(1) | ||
22 | #define PALMZ71_CABLE_GPIO OMAP_MPUIO(2) | ||
23 | #define PALMZ71_SLIDER_GPIO OMAP_MPUIO(3) | ||
24 | #define PALMZ71_MMC_IN_GPIO OMAP_MPUIO(4) | ||
25 | |||
26 | #endif /* __OMAP_BOARD_PALMZ71_H */ | ||
diff --git a/include/asm-arm/arch-omap/board-sx1.h b/include/asm-arm/arch-omap/board-sx1.h new file mode 100644 index 000000000000..2bb8dd6e2d14 --- /dev/null +++ b/include/asm-arm/arch-omap/board-sx1.h | |||
@@ -0,0 +1,46 @@ | |||
1 | /* | ||
2 | * Siemens SX1 board definitions | ||
3 | * | ||
4 | * Copyright: Vovan888 at gmail com | ||
5 | * | ||
6 | * This package 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 | * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
11 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
12 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | */ | ||
14 | |||
15 | #ifndef __ASM_ARCH_SX1_I2C_CHIPS_H | ||
16 | #define __ASM_ARCH_SX1_I2C_CHIPS_H | ||
17 | |||
18 | #define SOFIA_MAX_LIGHT_VAL 0x2B | ||
19 | |||
20 | #define SOFIA_I2C_ADDR 0x32 | ||
21 | /* Sofia reg 3 bits masks */ | ||
22 | #define SOFIA_POWER1_REG 0x03 | ||
23 | |||
24 | #define SOFIA_USB_POWER 0x01 | ||
25 | #define SOFIA_MMC_POWER 0x04 | ||
26 | #define SOFIA_BLUETOOTH_POWER 0x08 | ||
27 | #define SOFIA_MMILIGHT_POWER 0x20 | ||
28 | |||
29 | #define SOFIA_POWER2_REG 0x04 | ||
30 | #define SOFIA_BACKLIGHT_REG 0x06 | ||
31 | #define SOFIA_KEYLIGHT_REG 0x07 | ||
32 | #define SOFIA_DIMMING_REG 0x09 | ||
33 | |||
34 | |||
35 | /* Function Prototypes for SX1 devices control on I2C bus */ | ||
36 | |||
37 | int sx1_setbacklight(u8 backlight); | ||
38 | int sx1_getbacklight(u8 *backlight); | ||
39 | int sx1_setkeylight(u8 keylight); | ||
40 | int sx1_getkeylight(u8 *keylight); | ||
41 | |||
42 | int sx1_setmmipower(u8 onoff); | ||
43 | int sx1_setusbpower(u8 onoff); | ||
44 | int sx1_setmmcpower(u8 onoff); | ||
45 | |||
46 | #endif /* __ASM_ARCH_SX1_I2C_CHIPS_H */ | ||
diff --git a/include/asm-arm/arch-omap/board.h b/include/asm-arm/arch-omap/board.h index 031672c56377..db44c5d1f1a0 100644 --- a/include/asm-arm/arch-omap/board.h +++ b/include/asm-arm/arch-omap/board.h | |||
@@ -179,4 +179,8 @@ extern const void *omap_get_var_config(u16 tag, size_t *len); | |||
179 | extern struct omap_board_config_kernel *omap_board_config; | 179 | extern struct omap_board_config_kernel *omap_board_config; |
180 | extern int omap_board_config_size; | 180 | extern int omap_board_config_size; |
181 | 181 | ||
182 | |||
183 | /* for TI reference platforms sharing the same debug card */ | ||
184 | extern int debug_card_init(u32 addr, unsigned gpio); | ||
185 | |||
182 | #endif | 186 | #endif |
diff --git a/include/asm-arm/arch-omap/dma.h b/include/asm-arm/arch-omap/dma.h index f7774192a41e..f33b467fddb7 100644 --- a/include/asm-arm/arch-omap/dma.h +++ b/include/asm-arm/arch-omap/dma.h | |||
@@ -417,7 +417,6 @@ extern void omap_free_lcd_dma(void); | |||
417 | extern void omap_setup_lcd_dma(void); | 417 | extern void omap_setup_lcd_dma(void); |
418 | extern void omap_enable_lcd_dma(void); | 418 | extern void omap_enable_lcd_dma(void); |
419 | extern void omap_stop_lcd_dma(void); | 419 | extern void omap_stop_lcd_dma(void); |
420 | extern int omap_lcd_dma_ext_running(void); | ||
421 | extern void omap_set_lcd_dma_ext_controller(int external); | 420 | extern void omap_set_lcd_dma_ext_controller(int external); |
422 | extern void omap_set_lcd_dma_single_transfer(int single); | 421 | extern void omap_set_lcd_dma_single_transfer(int single); |
423 | extern void omap_set_lcd_dma_b1(unsigned long addr, u16 fb_xres, u16 fb_yres, | 422 | extern void omap_set_lcd_dma_b1(unsigned long addr, u16 fb_xres, u16 fb_yres, |
diff --git a/include/asm-arm/arch-omap/eac.h b/include/asm-arm/arch-omap/eac.h new file mode 100644 index 000000000000..6662cb02bafc --- /dev/null +++ b/include/asm-arm/arch-omap/eac.h | |||
@@ -0,0 +1,101 @@ | |||
1 | /* | ||
2 | * linux/include/asm-arm/arch-omap2/eac.h | ||
3 | * | ||
4 | * Defines for Enhanced Audio Controller | ||
5 | * | ||
6 | * Contact: Jarkko Nikula <jarkko.nikula@nokia.com> | ||
7 | * | ||
8 | * Copyright (C) 2006 Nokia Corporation | ||
9 | * Copyright (C) 2004 Texas Instruments, Inc. | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or | ||
12 | * modify it under the terms of the GNU General Public License | ||
13 | * version 2 as published by the Free Software Foundation. | ||
14 | * | ||
15 | * This program is distributed in the hope that it will be useful, but | ||
16 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
18 | * General Public License for more details. | ||
19 | * | ||
20 | * You should have received a copy of the GNU General Public License | ||
21 | * along with this program; if not, write to the Free Software | ||
22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
23 | * 02110-1301 USA | ||
24 | * | ||
25 | */ | ||
26 | |||
27 | #ifndef __ASM_ARM_ARCH_OMAP2_EAC_H | ||
28 | #define __ASM_ARM_ARCH_OMAP2_EAC_H | ||
29 | |||
30 | #include <asm/arch/io.h> | ||
31 | #include <asm/arch/hardware.h> | ||
32 | #include <asm/irq.h> | ||
33 | |||
34 | #include <sound/driver.h> | ||
35 | #include <sound/core.h> | ||
36 | |||
37 | /* master codec clock source */ | ||
38 | #define EAC_MCLK_EXT_MASK 0x100 | ||
39 | enum eac_mclk_src { | ||
40 | EAC_MCLK_INT_11290000, /* internal 96 MHz / 8.5 = 11.29 Mhz */ | ||
41 | EAC_MCLK_EXT_11289600 = EAC_MCLK_EXT_MASK, | ||
42 | EAC_MCLK_EXT_12288000, | ||
43 | EAC_MCLK_EXT_2x11289600, | ||
44 | EAC_MCLK_EXT_2x12288000, | ||
45 | }; | ||
46 | |||
47 | /* codec port interface mode */ | ||
48 | enum eac_codec_mode { | ||
49 | EAC_CODEC_PCM, | ||
50 | EAC_CODEC_AC97, | ||
51 | EAC_CODEC_I2S_MASTER, /* codec port, I.e. EAC is the master */ | ||
52 | EAC_CODEC_I2S_SLAVE, | ||
53 | }; | ||
54 | |||
55 | /* configuration structure for I2S mode */ | ||
56 | struct eac_i2s_conf { | ||
57 | /* if enabled, then first data slot (left channel) is signaled as | ||
58 | * positive level of frame sync EAC.AC_FS */ | ||
59 | unsigned polarity_changed_mode:1; | ||
60 | /* if enabled, then serial data starts one clock cycle after the | ||
61 | * of EAC.AC_FS for first audio slot */ | ||
62 | unsigned sync_delay_enable:1; | ||
63 | }; | ||
64 | |||
65 | /* configuration structure for EAC codec port */ | ||
66 | struct eac_codec { | ||
67 | enum eac_mclk_src mclk_src; | ||
68 | |||
69 | enum eac_codec_mode codec_mode; | ||
70 | union { | ||
71 | struct eac_i2s_conf i2s; | ||
72 | } codec_conf; | ||
73 | |||
74 | int default_rate; /* audio sampling rate */ | ||
75 | |||
76 | int (* set_power)(void *private_data, int dac, int adc); | ||
77 | int (* register_controls)(void *private_data, | ||
78 | struct snd_card *card); | ||
79 | const char *short_name; | ||
80 | |||
81 | void *private_data; | ||
82 | }; | ||
83 | |||
84 | /* structure for passing platform dependent data to the EAC driver */ | ||
85 | struct eac_platform_data { | ||
86 | int (* init)(struct device *eac_dev); | ||
87 | void (* cleanup)(struct device *eac_dev); | ||
88 | /* these callbacks are used to configure & control external MCLK | ||
89 | * source. NULL if not used */ | ||
90 | int (* enable_ext_clocks)(struct device *eac_dev); | ||
91 | void (* disable_ext_clocks)(struct device *eac_dev); | ||
92 | }; | ||
93 | |||
94 | extern void omap_init_eac(struct eac_platform_data *pdata); | ||
95 | |||
96 | extern int eac_register_codec(struct device *eac_dev, struct eac_codec *codec); | ||
97 | extern void eac_unregister_codec(struct device *eac_dev); | ||
98 | |||
99 | extern int eac_set_mode(struct device *eac_dev, int play, int rec); | ||
100 | |||
101 | #endif /* __ASM_ARM_ARCH_OMAP2_EAC_H */ | ||
diff --git a/include/asm-arm/arch-omap/gpmc.h b/include/asm-arm/arch-omap/gpmc.h index 995cc83482eb..6a8e07ffc2d0 100644 --- a/include/asm-arm/arch-omap/gpmc.h +++ b/include/asm-arm/arch-omap/gpmc.h | |||
@@ -23,9 +23,10 @@ | |||
23 | #define GPMC_CS_NAND_DATA 0x24 | 23 | #define GPMC_CS_NAND_DATA 0x24 |
24 | 24 | ||
25 | #define GPMC_CONFIG1_WRAPBURST_SUPP (1 << 31) | 25 | #define GPMC_CONFIG1_WRAPBURST_SUPP (1 << 31) |
26 | #define GPMC_CONFIG1_READMULTIPLE_SUPP (1 << 20) | 26 | #define GPMC_CONFIG1_READMULTIPLE_SUPP (1 << 30) |
27 | #define GPMC_CONFIG1_READTYPE_ASYNC (0 << 29) | 27 | #define GPMC_CONFIG1_READTYPE_ASYNC (0 << 29) |
28 | #define GPMC_CONFIG1_READTYPE_SYNC (1 << 29) | 28 | #define GPMC_CONFIG1_READTYPE_SYNC (1 << 29) |
29 | #define GPMC_CONFIG1_WRITEMULTIPLE_SUPP (1 << 28) | ||
29 | #define GPMC_CONFIG1_WRITETYPE_ASYNC (0 << 27) | 30 | #define GPMC_CONFIG1_WRITETYPE_ASYNC (0 << 27) |
30 | #define GPMC_CONFIG1_WRITETYPE_SYNC (1 << 27) | 31 | #define GPMC_CONFIG1_WRITETYPE_SYNC (1 << 27) |
31 | #define GPMC_CONFIG1_CLKACTIVATIONTIME(val) ((val & 3) << 25) | 32 | #define GPMC_CONFIG1_CLKACTIVATIONTIME(val) ((val & 3) << 25) |
@@ -80,6 +81,8 @@ struct gpmc_timings { | |||
80 | }; | 81 | }; |
81 | 82 | ||
82 | extern unsigned int gpmc_ns_to_ticks(unsigned int time_ns); | 83 | extern unsigned int gpmc_ns_to_ticks(unsigned int time_ns); |
84 | extern unsigned int gpmc_round_ns_to_ticks(unsigned int time_ns); | ||
85 | extern unsigned long gpmc_get_fclk_period(void); | ||
83 | 86 | ||
84 | extern void gpmc_cs_write_reg(int cs, int idx, u32 val); | 87 | extern void gpmc_cs_write_reg(int cs, int idx, u32 val); |
85 | extern u32 gpmc_cs_read_reg(int cs, int idx); | 88 | extern u32 gpmc_cs_read_reg(int cs, int idx); |
diff --git a/include/asm-arm/arch-omap/hardware.h b/include/asm-arm/arch-omap/hardware.h index e225f4f39b34..da572092e255 100644 --- a/include/asm-arm/arch-omap/hardware.h +++ b/include/asm-arm/arch-omap/hardware.h | |||
@@ -318,6 +318,10 @@ | |||
318 | #include "board-h4.h" | 318 | #include "board-h4.h" |
319 | #endif | 319 | #endif |
320 | 320 | ||
321 | #ifdef CONFIG_MACH_OMAP_2430SDP | ||
322 | #include "board-2430sdp.h" | ||
323 | #endif | ||
324 | |||
321 | #ifdef CONFIG_MACH_OMAP_APOLLON | 325 | #ifdef CONFIG_MACH_OMAP_APOLLON |
322 | #include "board-apollon.h" | 326 | #include "board-apollon.h" |
323 | #endif | 327 | #endif |
@@ -330,6 +334,22 @@ | |||
330 | #include "board-voiceblue.h" | 334 | #include "board-voiceblue.h" |
331 | #endif | 335 | #endif |
332 | 336 | ||
337 | #ifdef CONFIG_MACH_OMAP_PALMTE | ||
338 | #include "board-palmte.h" | ||
339 | #endif | ||
340 | |||
341 | #ifdef CONFIG_MACH_OMAP_PALMZ71 | ||
342 | #include "board-palmz71.h" | ||
343 | #endif | ||
344 | |||
345 | #ifdef CONFIG_MACH_OMAP_PALMTT | ||
346 | #include "board-palmtt.h" | ||
347 | #endif | ||
348 | |||
349 | #ifdef CONFIG_MACH_SX1 | ||
350 | #include "board-sx1.h" | ||
351 | #endif | ||
352 | |||
333 | #endif /* !__ASSEMBLER__ */ | 353 | #endif /* !__ASSEMBLER__ */ |
334 | 354 | ||
335 | #endif /* __ASM_ARCH_OMAP_HARDWARE_H */ | 355 | #endif /* __ASM_ARCH_OMAP_HARDWARE_H */ |
diff --git a/include/asm-arm/arch-omap/io.h b/include/asm-arm/arch-omap/io.h index 4aca7e3d7566..289082d07f14 100644 --- a/include/asm-arm/arch-omap/io.h +++ b/include/asm-arm/arch-omap/io.h | |||
@@ -72,6 +72,16 @@ | |||
72 | #define L4_24XX_PHYS L4_24XX_BASE /* 0x48000000 */ | 72 | #define L4_24XX_PHYS L4_24XX_BASE /* 0x48000000 */ |
73 | #define L4_24XX_VIRT 0xd8000000 | 73 | #define L4_24XX_VIRT 0xd8000000 |
74 | #define L4_24XX_SIZE SZ_1M /* 1MB of 128MB used, want 1MB sect */ | 74 | #define L4_24XX_SIZE SZ_1M /* 1MB of 128MB used, want 1MB sect */ |
75 | |||
76 | #ifdef CONFIG_ARCH_OMAP2430 | ||
77 | #define L4_WK_243X_PHYS L4_WK_243X_BASE /* 0x49000000 */ | ||
78 | #define L4_WK_243X_VIRT 0xd9000000 | ||
79 | #define L4_WK_243X_SIZE SZ_1M | ||
80 | #define OMAP243X_GPMC_PHYS OMAP243X_GPMC_BASE /* 0x49000000 */ | ||
81 | #define OMAP243X_GPMC_VIRT 0xFE000000 | ||
82 | #define OMAP243X_GPMC_SIZE SZ_1M | ||
83 | #endif | ||
84 | |||
75 | #define IO_OFFSET 0x90000000 | 85 | #define IO_OFFSET 0x90000000 |
76 | #define IO_ADDRESS(pa) ((pa) + IO_OFFSET) /* Works for L3 and L4 */ | 86 | #define IO_ADDRESS(pa) ((pa) + IO_OFFSET) /* Works for L3 and L4 */ |
77 | #define io_p2v(pa) ((pa) + IO_OFFSET) /* Works for L3 and L4 */ | 87 | #define io_p2v(pa) ((pa) + IO_OFFSET) /* Works for L3 and L4 */ |
diff --git a/include/asm-arm/arch-omap/menelaus.h b/include/asm-arm/arch-omap/menelaus.h index 82d276a6bd95..69ed7ee40179 100644 --- a/include/asm-arm/arch-omap/menelaus.h +++ b/include/asm-arm/arch-omap/menelaus.h | |||
@@ -7,6 +7,12 @@ | |||
7 | #ifndef __ASM_ARCH_MENELAUS_H | 7 | #ifndef __ASM_ARCH_MENELAUS_H |
8 | #define __ASM_ARCH_MENELAUS_H | 8 | #define __ASM_ARCH_MENELAUS_H |
9 | 9 | ||
10 | struct device; | ||
11 | |||
12 | struct menelaus_platform_data { | ||
13 | int (* late_init)(struct device *dev); | ||
14 | }; | ||
15 | |||
10 | extern int menelaus_register_mmc_callback(void (*callback)(void *data, u8 card_mask), | 16 | extern int menelaus_register_mmc_callback(void (*callback)(void *data, u8 card_mask), |
11 | void *data); | 17 | void *data); |
12 | extern void menelaus_unregister_mmc_callback(void); | 18 | extern void menelaus_unregister_mmc_callback(void); |
@@ -20,6 +26,19 @@ extern int menelaus_set_vaux(unsigned int mV); | |||
20 | extern int menelaus_set_vdcdc(int dcdc, unsigned int mV); | 26 | extern int menelaus_set_vdcdc(int dcdc, unsigned int mV); |
21 | extern int menelaus_set_slot_sel(int enable); | 27 | extern int menelaus_set_slot_sel(int enable); |
22 | extern int menelaus_get_slot_pin_states(void); | 28 | extern int menelaus_get_slot_pin_states(void); |
29 | extern int menelaus_set_vcore_sw(unsigned int mV); | ||
30 | extern int menelaus_set_vcore_hw(unsigned int roof_mV, unsigned int floor_mV); | ||
31 | |||
32 | #define EN_VPLL_SLEEP (1 << 7) | ||
33 | #define EN_VMMC_SLEEP (1 << 6) | ||
34 | #define EN_VAUX_SLEEP (1 << 5) | ||
35 | #define EN_VIO_SLEEP (1 << 4) | ||
36 | #define EN_VMEM_SLEEP (1 << 3) | ||
37 | #define EN_DC3_SLEEP (1 << 2) | ||
38 | #define EN_DC2_SLEEP (1 << 1) | ||
39 | #define EN_VC_SLEEP (1 << 0) | ||
40 | |||
41 | extern int menelaus_set_regulator_sleep(int enable, u32 val); | ||
23 | 42 | ||
24 | #if defined(CONFIG_ARCH_OMAP24XX) && defined(CONFIG_MENELAUS) | 43 | #if defined(CONFIG_ARCH_OMAP24XX) && defined(CONFIG_MENELAUS) |
25 | #define omap_has_menelaus() 1 | 44 | #define omap_has_menelaus() 1 |
@@ -28,4 +47,3 @@ extern int menelaus_get_slot_pin_states(void); | |||
28 | #endif | 47 | #endif |
29 | 48 | ||
30 | #endif | 49 | #endif |
31 | |||
diff --git a/include/asm-arm/arch-omap/mmc.h b/include/asm-arm/arch-omap/mmc.h new file mode 100644 index 000000000000..b70e37b61242 --- /dev/null +++ b/include/asm-arm/arch-omap/mmc.h | |||
@@ -0,0 +1,66 @@ | |||
1 | /* | ||
2 | * MMC definitions for OMAP2 | ||
3 | * | ||
4 | * Copyright (C) 2006 Nokia Corporation | ||
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 | #ifndef __OMAP2_MMC_H | ||
12 | #define __OMAP2_MMC_H | ||
13 | |||
14 | #include <linux/types.h> | ||
15 | #include <linux/device.h> | ||
16 | #include <linux/mmc/host.h> | ||
17 | |||
18 | #define OMAP_MMC_MAX_SLOTS 2 | ||
19 | |||
20 | struct omap_mmc_platform_data { | ||
21 | unsigned enabled:1; | ||
22 | /* number of slots on board */ | ||
23 | unsigned nr_slots:2; | ||
24 | /* nomux means "standard" muxing is wrong on this board, and that | ||
25 | * board-specific code handled it before common init logic. | ||
26 | */ | ||
27 | unsigned nomux:1; | ||
28 | /* 4 wire signaling is optional, and is only used for SD/SDIO and | ||
29 | * MMCv4 */ | ||
30 | unsigned wire4:1; | ||
31 | /* set if your board has components or wiring that limits the | ||
32 | * maximum frequency on the MMC bus */ | ||
33 | unsigned int max_freq; | ||
34 | |||
35 | /* switch the bus to a new slot */ | ||
36 | int (* switch_slot)(struct device *dev, int slot); | ||
37 | /* initialize board-specific MMC functionality, can be NULL if | ||
38 | * not supported */ | ||
39 | int (* init)(struct device *dev); | ||
40 | void (* cleanup)(struct device *dev); | ||
41 | |||
42 | struct omap_mmc_slot_data { | ||
43 | int (* set_bus_mode)(struct device *dev, int slot, int bus_mode); | ||
44 | int (* set_power)(struct device *dev, int slot, int power_on, int vdd); | ||
45 | int (* get_ro)(struct device *dev, int slot); | ||
46 | |||
47 | /* return MMC cover switch state, can be NULL if not supported. | ||
48 | * | ||
49 | * possible return values: | ||
50 | * 0 - open | ||
51 | * 1 - closed | ||
52 | */ | ||
53 | int (* get_cover_state)(struct device *dev, int slot); | ||
54 | |||
55 | const char *name; | ||
56 | u32 ocr_mask; | ||
57 | } slots[OMAP_MMC_MAX_SLOTS]; | ||
58 | }; | ||
59 | |||
60 | extern void omap_set_mmc_info(int host, const struct omap_mmc_platform_data *info); | ||
61 | |||
62 | /* called from board-specific card detection service routine */ | ||
63 | extern void omap_mmc_notify_card_detect(struct device *dev, int slot, int detected); | ||
64 | extern void omap_mmc_notify_cover_event(struct device *dev, int slot, int is_closed); | ||
65 | |||
66 | #endif | ||
diff --git a/include/asm-arm/arch-omap/mux.h b/include/asm-arm/arch-omap/mux.h index f1ec2edd4040..b8fff50e6a87 100644 --- a/include/asm-arm/arch-omap/mux.h +++ b/include/asm-arm/arch-omap/mux.h | |||
@@ -406,6 +406,29 @@ enum omap1xxx_index { | |||
406 | V10_1610_CF_IREQ, | 406 | V10_1610_CF_IREQ, |
407 | W10_1610_CF_RESET, | 407 | W10_1610_CF_RESET, |
408 | W11_1610_CF_CD1, | 408 | W11_1610_CF_CD1, |
409 | |||
410 | /* parallel camera */ | ||
411 | J15_1610_CAM_LCLK, | ||
412 | J18_1610_CAM_D7, | ||
413 | J19_1610_CAM_D6, | ||
414 | J14_1610_CAM_D5, | ||
415 | K18_1610_CAM_D4, | ||
416 | K19_1610_CAM_D3, | ||
417 | K15_1610_CAM_D2, | ||
418 | K14_1610_CAM_D1, | ||
419 | L19_1610_CAM_D0, | ||
420 | L18_1610_CAM_VS, | ||
421 | L15_1610_CAM_HS, | ||
422 | M19_1610_CAM_RSTZ, | ||
423 | Y15_1610_CAM_OUTCLK, | ||
424 | |||
425 | /* serial camera */ | ||
426 | H19_1610_CAM_EXCLK, | ||
427 | Y12_1610_CCP_CLKP, | ||
428 | W13_1610_CCP_CLKM, | ||
429 | W14_1610_CCP_DATAP, | ||
430 | Y14_1610_CCP_DATAM, | ||
431 | |||
409 | }; | 432 | }; |
410 | 433 | ||
411 | enum omap24xx_index { | 434 | enum omap24xx_index { |
diff --git a/include/asm-arm/arch-omap/omap24xx.h b/include/asm-arm/arch-omap/omap24xx.h index 708b2fac77f2..14c0f9496579 100644 --- a/include/asm-arm/arch-omap/omap24xx.h +++ b/include/asm-arm/arch-omap/omap24xx.h | |||
@@ -8,6 +8,7 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #define L4_24XX_BASE 0x48000000 | 10 | #define L4_24XX_BASE 0x48000000 |
11 | #define L4_WK_243X_BASE 0x49000000 | ||
11 | #define L3_24XX_BASE 0x68000000 | 12 | #define L3_24XX_BASE 0x68000000 |
12 | 13 | ||
13 | /* interrupt controller */ | 14 | /* interrupt controller */ |
@@ -16,9 +17,20 @@ | |||
16 | #define OMAP24XX_IVA_INTC_BASE 0x40000000 | 17 | #define OMAP24XX_IVA_INTC_BASE 0x40000000 |
17 | #define IRQ_SIR_IRQ 0x0040 | 18 | #define IRQ_SIR_IRQ 0x0040 |
18 | 19 | ||
20 | #ifdef CONFIG_ARCH_OMAP2420 | ||
19 | #define OMAP24XX_32KSYNCT_BASE (L4_24XX_BASE + 0x4000) | 21 | #define OMAP24XX_32KSYNCT_BASE (L4_24XX_BASE + 0x4000) |
20 | #define OMAP24XX_PRCM_BASE (L4_24XX_BASE + 0x8000) | 22 | #define OMAP24XX_PRCM_BASE (L4_24XX_BASE + 0x8000) |
21 | #define OMAP24XX_SDRC_BASE (L3_24XX_BASE + 0x9000) | 23 | #define OMAP24XX_SDRC_BASE (L3_24XX_BASE + 0x9000) |
24 | #define OMAP242X_CONTROL_STATUS (L4_24XX_BASE + 0x2f8) | ||
25 | #endif | ||
26 | |||
27 | #ifdef CONFIG_ARCH_OMAP2430 | ||
28 | #define OMAP24XX_32KSYNCT_BASE (L4_WK_243X_BASE + 0x20000) | ||
29 | #define OMAP24XX_PRCM_BASE (L4_WK_243X_BASE + 0x6000) | ||
30 | #define OMAP24XX_SDRC_BASE (0x6D000000) | ||
31 | #define OMAP242X_CONTROL_STATUS (L4_24XX_BASE + 0x2f8) | ||
32 | #define OMAP243X_GPMC_BASE 0x6E000000 | ||
33 | #endif | ||
22 | 34 | ||
23 | /* DSP SS */ | 35 | /* DSP SS */ |
24 | #define OMAP24XX_DSP_BASE 0x58000000 | 36 | #define OMAP24XX_DSP_BASE 0x58000000 |
diff --git a/include/asm-arm/arch-omap/onenand.h b/include/asm-arm/arch-omap/onenand.h new file mode 100644 index 000000000000..6c959d0ce470 --- /dev/null +++ b/include/asm-arm/arch-omap/onenand.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* | ||
2 | * include/asm-arm/arch-omap/onenand.h | ||
3 | * | ||
4 | * Copyright (C) 2006 Nokia Corporation | ||
5 | * Author: Juha Yrjola | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | ||
11 | |||
12 | #include <linux/mtd/partitions.h> | ||
13 | |||
14 | struct omap_onenand_platform_data { | ||
15 | int cs; | ||
16 | int gpio_irq; | ||
17 | struct mtd_partition *parts; | ||
18 | int nr_parts; | ||
19 | int (*onenand_setup)(void __iomem *); | ||
20 | int dma_channel; | ||
21 | }; | ||