blob: d13fb6af5cfc101d5043e3150c8e302aa5b4dbdd [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
Ben Cheng94a85f62012-03-06 15:45:52 -080010 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef __ASM_ARCH_OMAP_HARDWARE_H
20#define __ASM_ARCH_OMAP_HARDWARE_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <asm/sizes.h>
22#ifndef __ASSEMBLER__
Ben Cheng94a85f62012-03-06 15:45:52 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024#include <asm/types.h>
25#include <asm/arch/cpu.h>
26#endif
27#include <asm/arch/io.h>
Ben Cheng94a85f62012-03-06 15:45:52 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029#include <asm/arch/serial.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080030#define OMAP_MPU_TIMER1_BASE (0xfffec500)
31#define OMAP_MPU_TIMER2_BASE (0xfffec600)
32#define OMAP_MPU_TIMER3_BASE (0xfffec700)
Ben Cheng94a85f62012-03-06 15:45:52 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034#define MPU_TIMER_FREE (1 << 6)
35#define MPU_TIMER_CLOCK_ENABLE (1 << 5)
36#define MPU_TIMER_AR (1 << 1)
37#define MPU_TIMER_ST (1 << 0)
Ben Cheng94a85f62012-03-06 15:45:52 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039#define CLKGEN_REG_BASE (0xfffece00)
40#define ARM_CKCTL (CLKGEN_REG_BASE + 0x0)
41#define ARM_IDLECT1 (CLKGEN_REG_BASE + 0x4)
42#define ARM_IDLECT2 (CLKGEN_REG_BASE + 0x8)
Ben Cheng94a85f62012-03-06 15:45:52 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044#define ARM_EWUPCT (CLKGEN_REG_BASE + 0xC)
45#define ARM_RSTCT1 (CLKGEN_REG_BASE + 0x10)
46#define ARM_RSTCT2 (CLKGEN_REG_BASE + 0x14)
47#define ARM_SYSST (CLKGEN_REG_BASE + 0x18)
Ben Cheng94a85f62012-03-06 15:45:52 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049#define ARM_IDLECT3 (CLKGEN_REG_BASE + 0x24)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080050#define CK_RATEF 1
51#define CK_IDLEF 2
52#define CK_ENABLEF 4
Ben Cheng94a85f62012-03-06 15:45:52 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054#define CK_SELECTF 8
55#define SETARM_IDLE_SHIFT
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080056#define DPLL_CTL (0xfffecf00)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080057#define DSP_CONFIG_REG_BASE (0xe1008000)
Ben Cheng94a85f62012-03-06 15:45:52 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059#define DSP_CKCTL (DSP_CONFIG_REG_BASE + 0x0)
60#define DSP_IDLECT1 (DSP_CONFIG_REG_BASE + 0x4)
61#define DSP_IDLECT2 (DSP_CONFIG_REG_BASE + 0x8)
62#define DSP_RSTCT2 (DSP_CONFIG_REG_BASE + 0x14)
Ben Cheng94a85f62012-03-06 15:45:52 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080064#define ULPD_REG_BASE (0xfffe0800)
65#define ULPD_IT_STATUS (ULPD_REG_BASE + 0x14)
66#define ULPD_SETUP_ANALOG_CELL_3 (ULPD_REG_BASE + 0x24)
67#define ULPD_CLOCK_CTRL (ULPD_REG_BASE + 0x30)
Ben Cheng94a85f62012-03-06 15:45:52 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080069#define DIS_USB_PVCI_CLK (1 << 5)
70#define USB_MCLK_EN (1 << 4)
71#define ULPD_SOFT_REQ (ULPD_REG_BASE + 0x34)
72#define SOFT_UDC_REQ (1 << 4)
Ben Cheng94a85f62012-03-06 15:45:52 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080074#define SOFT_USB_CLK_REQ (1 << 3)
75#define SOFT_DPLL_REQ (1 << 0)
76#define ULPD_DPLL_CTRL (ULPD_REG_BASE + 0x3c)
77#define ULPD_STATUS_REQ (ULPD_REG_BASE + 0x40)
Ben Cheng94a85f62012-03-06 15:45:52 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080079#define ULPD_APLL_CTRL (ULPD_REG_BASE + 0x4c)
80#define ULPD_POWER_CTRL (ULPD_REG_BASE + 0x50)
81#define ULPD_SOFT_DISABLE_REQ_REG (ULPD_REG_BASE + 0x68)
82#define DIS_MMC2_DPLL_REQ (1 << 11)
Ben Cheng94a85f62012-03-06 15:45:52 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080084#define DIS_MMC1_DPLL_REQ (1 << 10)
85#define DIS_UART3_DPLL_REQ (1 << 9)
86#define DIS_UART2_DPLL_REQ (1 << 8)
87#define DIS_UART1_DPLL_REQ (1 << 7)
Ben Cheng94a85f62012-03-06 15:45:52 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080089#define DIS_USB_HOST_DPLL_REQ (1 << 6)
90#define ULPD_SDW_CLK_DIV_CTRL_SEL (ULPD_REG_BASE + 0x74)
91#define ULPD_CAM_CLK_CTRL (ULPD_REG_BASE + 0x7c)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080092#define OMAP_MPU_WATCHDOG_BASE (0xfffec800)
Ben Cheng94a85f62012-03-06 15:45:52 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080094#define OMAP_WDT_TIMER (OMAP_MPU_WATCHDOG_BASE + 0x0)
95#define OMAP_WDT_LOAD_TIM (OMAP_MPU_WATCHDOG_BASE + 0x4)
96#define OMAP_WDT_READ_TIM (OMAP_MPU_WATCHDOG_BASE + 0x4)
97#define OMAP_WDT_TIMER_MODE (OMAP_MPU_WATCHDOG_BASE + 0x8)
Ben Cheng94a85f62012-03-06 15:45:52 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080099#define MOD_CONF_CTRL_0 0xfffe1080
100#define MOD_CONF_CTRL_1 0xfffe1110
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800101#define FUNC_MUX_CTRL_0 0xfffe1000
102#define FUNC_MUX_CTRL_1 0xfffe1004
Ben Cheng94a85f62012-03-06 15:45:52 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800104#define FUNC_MUX_CTRL_2 0xfffe1008
105#define COMP_MODE_CTRL_0 0xfffe100c
106#define FUNC_MUX_CTRL_3 0xfffe1010
107#define FUNC_MUX_CTRL_4 0xfffe1014
Ben Cheng94a85f62012-03-06 15:45:52 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800109#define FUNC_MUX_CTRL_5 0xfffe1018
110#define FUNC_MUX_CTRL_6 0xfffe101C
111#define FUNC_MUX_CTRL_7 0xfffe1020
112#define FUNC_MUX_CTRL_8 0xfffe1024
Ben Cheng94a85f62012-03-06 15:45:52 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800114#define FUNC_MUX_CTRL_9 0xfffe1028
115#define FUNC_MUX_CTRL_A 0xfffe102C
116#define FUNC_MUX_CTRL_B 0xfffe1030
117#define FUNC_MUX_CTRL_C 0xfffe1034
Ben Cheng94a85f62012-03-06 15:45:52 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800119#define FUNC_MUX_CTRL_D 0xfffe1038
120#define PULL_DWN_CTRL_0 0xfffe1040
121#define PULL_DWN_CTRL_1 0xfffe1044
122#define PULL_DWN_CTRL_2 0xfffe1048
Ben Cheng94a85f62012-03-06 15:45:52 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800124#define PULL_DWN_CTRL_3 0xfffe104c
125#define PULL_DWN_CTRL_4 0xfffe10ac
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800126#define FUNC_MUX_CTRL_E 0xfffe1090
127#define FUNC_MUX_CTRL_F 0xfffe1094
Ben Cheng94a85f62012-03-06 15:45:52 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800129#define FUNC_MUX_CTRL_10 0xfffe1098
130#define FUNC_MUX_CTRL_11 0xfffe109c
131#define FUNC_MUX_CTRL_12 0xfffe10a0
132#define PU_PD_SEL_0 0xfffe10b4
Ben Cheng94a85f62012-03-06 15:45:52 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800134#define PU_PD_SEL_1 0xfffe10b8
135#define PU_PD_SEL_2 0xfffe10bc
136#define PU_PD_SEL_3 0xfffe10c0
137#define PU_PD_SEL_4 0xfffe10c4
Ben Cheng94a85f62012-03-06 15:45:52 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800139#define OMAP_TIMER32K_BASE 0xFFFBC400
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800140#define TIPB_PUBLIC_CNTL_BASE 0xfffed300
141#define MPU_PUBLIC_TIPB_CNTL (TIPB_PUBLIC_CNTL_BASE + 0x8)
142#define TIPB_PRIVATE_CNTL_BASE 0xfffeca00
Ben Cheng94a85f62012-03-06 15:45:52 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800144#define MPU_PRIVATE_TIPB_CNTL (TIPB_PRIVATE_CNTL_BASE + 0x8)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800145#define MPUI_BASE (0xfffec900)
146#define MPUI_CTRL (MPUI_BASE + 0x0)
147#define MPUI_DEBUG_ADDR (MPUI_BASE + 0x4)
Ben Cheng94a85f62012-03-06 15:45:52 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800149#define MPUI_DEBUG_DATA (MPUI_BASE + 0x8)
150#define MPUI_DEBUG_FLAG (MPUI_BASE + 0xc)
151#define MPUI_STATUS_REG (MPUI_BASE + 0x10)
152#define MPUI_DSP_STATUS (MPUI_BASE + 0x14)
Ben Cheng94a85f62012-03-06 15:45:52 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800154#define MPUI_DSP_BOOT_CONFIG (MPUI_BASE + 0x18)
155#define MPUI_DSP_API_CONFIG (MPUI_BASE + 0x1c)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800156#define OMAP_LPG1_BASE 0xfffbd000
157#define OMAP_LPG2_BASE 0xfffbd800
Ben Cheng94a85f62012-03-06 15:45:52 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800159#define OMAP_LPG1_LCR (OMAP_LPG1_BASE + 0x00)
160#define OMAP_LPG1_PMR (OMAP_LPG1_BASE + 0x04)
161#define OMAP_LPG2_LCR (OMAP_LPG2_BASE + 0x00)
162#define OMAP_LPG2_PMR (OMAP_LPG2_BASE + 0x04)
Ben Cheng94a85f62012-03-06 15:45:52 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800164#define OMAP_PWL_BASE 0xfffb5800
165#define OMAP_PWL_ENABLE (OMAP_PWL_BASE + 0x00)
166#define OMAP_PWL_CLK_ENABLE (OMAP_PWL_BASE + 0x04)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800167#include "omap730.h"
Ben Cheng94a85f62012-03-06 15:45:52 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800169#include "omap1510.h"
170#include "omap24xx.h"
171#include "omap16xx.h"
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800172#ifndef __ASSEMBLER__
Ben Cheng94a85f62012-03-06 15:45:52 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800174#endif
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800175#endif