Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] ARM: 2797/1: OMAP update 1/11: Update include files

Patch from Tony Lindgren

This patch by various OMAP developers syncs the OMAP
specific include files with the linux-omap tree.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Tony Lindgren and committed by
Russell King
af973d2a 8107338b

+80 -27
-5
include/asm-arm/arch-omap/board-h2.h
··· 34 34 /* At OMAP1610 Innovator the Ethernet is directly connected to CS1 */ 35 35 #define OMAP1610_ETHR_START 0x04000300 36 36 37 - /* Intel STRATA NOR flash at CS3 or CS2B(NAND Boot) */ 38 - #define OMAP_NOR_FLASH_SIZE SZ_32M 39 - #define OMAP_NOR_FLASH_START1 0x0C000000 /* CS3 */ 40 - #define OMAP_NOR_FLASH_START2 0x0A000000 /* CS2B */ 41 - 42 37 /* Samsung NAND flash at CS2B or CS3(NAND Boot) */ 43 38 #define OMAP_NAND_FLASH_START1 0x0A000000 /* CS2B */ 44 39 #define OMAP_NAND_FLASH_START2 0x0C000000 /* CS3 */
-5
include/asm-arm/arch-omap/board-h3.h
··· 30 30 /* In OMAP1710 H3 the Ethernet is directly connected to CS1 */ 31 31 #define OMAP1710_ETHR_START 0x04000300 32 32 33 - /* Intel STRATA NOR flash at CS3 or CS2B(NAND Boot) */ 34 - #define OMAP_NOR_FLASH_SIZE SZ_32M 35 - #define OMAP_NOR_FLASH_START1 0x0C000000 /* CS3 */ 36 - #define OMAP_NOR_FLASH_START2 0x0A000000 /* CS2B */ 37 - 38 33 /* Samsung NAND flash at CS2B or CS3(NAND Boot) */ 39 34 #define OMAP_NAND_FLASH_START1 0x0A000000 /* CS2B */ 40 35 #define OMAP_NAND_FLASH_START2 0x0C000000 /* CS3 */
-5
include/asm-arm/arch-omap/board-osk.h
··· 32 32 /* At OMAP5912 OSK the Ethernet is directly connected to CS1 */ 33 33 #define OMAP_OSK_ETHR_START 0x04800300 34 34 35 - /* Micron NOR flash at CS3 mapped to address 0x0 if BM bit is 1 */ 36 - #define OMAP_OSK_NOR_FLASH_BASE 0xD8000000 37 - #define OMAP_OSK_NOR_FLASH_SIZE SZ_32M 38 - #define OMAP_OSK_NOR_FLASH_START 0x00000000 39 - 40 35 #endif /* __ASM_ARCH_OMAP_OSK_H */ 41 36
+9 -3
include/asm-arm/arch-omap/board.h
··· 16 16 /* Different peripheral ids */ 17 17 #define OMAP_TAG_CLOCK 0x4f01 18 18 #define OMAP_TAG_MMC 0x4f02 19 - #define OMAP_TAG_UART 0x4f03 19 + #define OMAP_TAG_SERIAL_CONSOLE 0x4f03 20 20 #define OMAP_TAG_USB 0x4f04 21 21 #define OMAP_TAG_LCD 0x4f05 22 22 #define OMAP_TAG_GPIO_SWITCH 0x4f06 23 + #define OMAP_TAG_UART 0x4f07 23 24 24 25 #define OMAP_TAG_BOOT_REASON 0x4f80 25 26 #define OMAP_TAG_FLASH_PART 0x4f81 ··· 36 35 s16 mmc1_switch_pin, mmc2_switch_pin; 37 36 }; 38 37 39 - struct omap_uart_config { 38 + struct omap_serial_console_config { 40 39 u8 console_uart; 41 40 u32 console_speed; 42 41 }; ··· 83 82 */ 84 83 #define OMAP_GPIO_SWITCH_TYPE_COVER 0x0000 85 84 #define OMAP_GPIO_SWITCH_TYPE_CONNECTION 0x0001 86 - #define OMAP_GPIO_SWITCH_FLAG_INVERTED 0x0001 85 + #define OMAP_GPIO_SWITCH_FLAG_INVERTED 0x0001 86 + #define OMAP_GPIO_SWITCH_FLAG_OUTPUT 0x0002 87 87 struct omap_gpio_switch_config { 88 88 char name[12]; 89 89 u16 gpio; ··· 101 99 char reason_str[12]; 102 100 }; 103 101 102 + struct omap_uart_config { 103 + /* Bit field of UARTs present; bit 0 --> UART1 */ 104 + unsigned int enabled_uarts; 105 + }; 104 106 105 107 struct omap_board_config_entry { 106 108 u16 tag;
+16 -8
include/asm-arm/arch-omap/hardware.h
··· 54 54 55 55 /* 56 56 * ---------------------------------------------------------------------------- 57 + * Timers 58 + * ---------------------------------------------------------------------------- 59 + */ 60 + #define OMAP_MPU_TIMER1_BASE (0xfffec500) 61 + #define OMAP_MPU_TIMER2_BASE (0xfffec600) 62 + #define OMAP_MPU_TIMER3_BASE (0xfffec700) 63 + #define MPU_TIMER_FREE (1 << 6) 64 + #define MPU_TIMER_CLOCK_ENABLE (1 << 5) 65 + #define MPU_TIMER_AR (1 << 1) 66 + #define MPU_TIMER_ST (1 << 0) 67 + 68 + /* 69 + * ---------------------------------------------------------------------------- 57 70 * Clocks 58 71 * ---------------------------------------------------------------------------- 59 72 */ ··· 91 78 92 79 /* DSP clock control */ 93 80 #define DSP_CONFIG_REG_BASE (0xe1008000) 81 + #define DSP_CKCTL (DSP_CONFIG_REG_BASE + 0x0) 94 82 #define DSP_IDLECT1 (DSP_CONFIG_REG_BASE + 0x4) 95 83 #define DSP_IDLECT2 (DSP_CONFIG_REG_BASE + 0x8) 96 84 ··· 102 88 */ 103 89 #define ULPD_REG_BASE (0xfffe0800) 104 90 #define ULPD_IT_STATUS (ULPD_REG_BASE + 0x14) 91 + #define ULPD_SETUP_ANALOG_CELL_3 (ULPD_REG_BASE + 0x24) 105 92 #define ULPD_CLOCK_CTRL (ULPD_REG_BASE + 0x30) 106 93 # define DIS_USB_PVCI_CLK (1 << 5) /* no USB/FAC synch */ 107 94 # define USB_MCLK_EN (1 << 4) /* enable W4_USB_CLKO */ ··· 283 268 * Processor specific defines 284 269 * --------------------------------------------------------------------------- 285 270 */ 286 - #ifdef CONFIG_ARCH_OMAP730 271 + 287 272 #include "omap730.h" 288 - #endif 289 - 290 - #ifdef CONFIG_ARCH_OMAP1510 291 273 #include "omap1510.h" 292 - #endif 293 - 294 - #ifdef CONFIG_ARCH_OMAP16XX 295 274 #include "omap16xx.h" 296 - #endif 297 275 298 276 /* 299 277 * ---------------------------------------------------------------------------
+3
include/asm-arm/arch-omap/irqs.h
··· 159 159 #define INT_1610_GPIO_BANK3 (41 + IH2_BASE) 160 160 #define INT_1610_MMC2 (42 + IH2_BASE) 161 161 #define INT_1610_CF (43 + IH2_BASE) 162 + #define INT_1610_WAKE_UP_REQ (46 + IH2_BASE) 162 163 #define INT_1610_GPIO_BANK4 (48 + IH2_BASE) 163 164 #define INT_1610_SPI (49 + IH2_BASE) 164 165 #define INT_1610_DMA_CH6 (53 + IH2_BASE) ··· 238 237 #define IH_GPIO_BASE (128 + IH2_BASE) 239 238 #define IH_MPUIO_BASE (OMAP_MAX_GPIO_LINES + IH_GPIO_BASE) 240 239 #define IH_BOARD_BASE (16 + IH_MPUIO_BASE) 240 + 241 + #define OMAP_IRQ_BIT(irq) (1 << ((irq) % 32)) 241 242 242 243 #ifndef __ASSEMBLY__ 243 244 extern void omap_init_irq(void);
+32
include/asm-arm/arch-omap/omap16xx.h
··· 183 183 #define OMAP16XX_PWL_ENABLE (OMAP16XX_PWL_BASE + 0x00) 184 184 #define OMAP16XX_PWL_CLK_ENABLE (OMAP16XX_PWL_BASE + 0x04) 185 185 186 + /* 187 + * --------------------------------------------------------------------------- 188 + * Watchdog timer 189 + * --------------------------------------------------------------------------- 190 + */ 191 + 192 + /* 32-bit Watchdog timer in OMAP 16XX */ 193 + #define OMAP_16XX_WATCHDOG_BASE (0xfffeb000) 194 + #define OMAP_16XX_WIDR (OMAP_16XX_WATCHDOG_BASE + 0x00) 195 + #define OMAP_16XX_WD_SYSCONFIG (OMAP_16XX_WATCHDOG_BASE + 0x10) 196 + #define OMAP_16XX_WD_SYSSTATUS (OMAP_16XX_WATCHDOG_BASE + 0x14) 197 + #define OMAP_16XX_WCLR (OMAP_16XX_WATCHDOG_BASE + 0x24) 198 + #define OMAP_16XX_WCRR (OMAP_16XX_WATCHDOG_BASE + 0x28) 199 + #define OMAP_16XX_WLDR (OMAP_16XX_WATCHDOG_BASE + 0x2c) 200 + #define OMAP_16XX_WTGR (OMAP_16XX_WATCHDOG_BASE + 0x30) 201 + #define OMAP_16XX_WWPS (OMAP_16XX_WATCHDOG_BASE + 0x34) 202 + #define OMAP_16XX_WSPR (OMAP_16XX_WATCHDOG_BASE + 0x48) 203 + 204 + #define WCLR_PRE_SHIFT 5 205 + #define WCLR_PTV_SHIFT 2 206 + 207 + #define WWPS_W_PEND_WSPR (1 << 4) 208 + #define WWPS_W_PEND_WTGR (1 << 3) 209 + #define WWPS_W_PEND_WLDR (1 << 2) 210 + #define WWPS_W_PEND_WCRR (1 << 1) 211 + #define WWPS_W_PEND_WCLR (1 << 0) 212 + 213 + #define WSPR_ENABLE_0 (0x0000bbbb) 214 + #define WSPR_ENABLE_1 (0x00004444) 215 + #define WSPR_DISABLE_0 (0x0000aaaa) 216 + #define WSPR_DISABLE_1 (0x00005555) 217 + 186 218 #endif /* __ASM_ARCH_OMAP16XX_H */ 187 219
+20 -1
include/asm-arm/arch-omap/system.h
··· 5 5 #ifndef __ASM_ARCH_SYSTEM_H 6 6 #define __ASM_ARCH_SYSTEM_H 7 7 #include <linux/config.h> 8 + #include <asm/mach-types.h> 8 9 #include <asm/arch/hardware.h> 10 + #include <asm/mach-types.h> 9 11 10 12 static inline void arch_idle(void) 11 13 { ··· 16 14 17 15 static inline void arch_reset(char mode) 18 16 { 19 - omap_writew(1, ARM_RSTCT1); 17 + 18 + #ifdef CONFIG_ARCH_OMAP16XX 19 + /* 20 + * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28 21 + * "Global Software Reset Affects Traffic Controller Frequency". 22 + */ 23 + if (cpu_is_omap5912()) { 24 + omap_writew(omap_readw(DPLL_CTL) & ~(1 << 4), 25 + DPLL_CTL); 26 + omap_writew(0x8, ARM_RSTCT1); 27 + } 28 + #endif 29 + #ifdef CONFIG_MACH_VOICEBLUE 30 + if (machine_is_voiceblue()) 31 + voiceblue_reset(); 32 + else 33 + #endif 34 + omap_writew(1, ARM_RSTCT1); 20 35 } 21 36 22 37 #endif