ARM: OMAP3: Add support for some of TIs ARM-Cortex A8 OMAP3 boards
v4 cover ARM: OMAP3: Add support for some of TIs ARM-Cortex A8 OMAP3 boards
Subject: [PATCH 00/13 v4] ARM: OMAP3: Add support for some of TIs ARM-Cortex A8 OMAP3 boards
This patch series adds U-Boot v1 support for some of TI's ARM-Cortex A8 based OMAP3 boards. These are BeagleBoard [1][2], EVM [3] and Overo [4].
The patch series is based on U-Boot tar ball [5] for BeagleBoard and EVM done by several TI employees.
To be able to easily add new boards, most of the code is common for all boards. After the header files (patches 1-3) and the common code for ARM Cortex A8 (patch 4) and OMAP3 SoC (patches 5-7), support and drivers for NAND, MMC and I2C is added (patches 8-10). Patches 11-13 then introduce the individual board support for Beagle, EVM and Overo.
As discussed earlier on this list, we compile for armv5 to be compatible with existing toolchains.
This patch adds ~300k of new code.
Thanks to
Steve Sakoman <[email protected]>
Pillai, Manikandan <[email protected]>
Syed Mohammed, Khasim <[email protected]>
Nishanth Menon <[email protected]>
and all others who helped with this.
Dirk
Changes in version v4:
- Update u-boot-arm.git next base, commit 1c38b6cd7ca20b68766815299385b7e46611ca46, "add tool to check patch and file for CFG_ presence"
- Fix/update NAND driver with review comments from Scott Wood and fixes from Nishanth Menon
Changes in version v3:
- Replace space by tabs in headers as proposed by Jean-Christophe PLAGNIOL-VILLARD
- Fix/update NAND driver and seperate it into an own patch as proposed by Scott Wood
- Add detection and support for 128MB/256MB RAM by Mans Rullgard
Changes in version v2:
- Move MMC driver to drivers/mmc/ as suggested by Haavard Skinnemoen.
- Move common ARM Cortex A8 code to cpu/arm_cortexa8/ and OMAP3 SoC specific common code to cpu/arm_cortexa8/omap3 as proposed by Wolfgang.
- Update Overo pin mux to add and pull down X_GATE, by Steve Sakoman.
- Remove SMC911X network init as proposed by Ben Warren.
- Rebase against u-boot-arm.git next, commit 4995fed33099bb9813504869056bab72446fe8f9, "add tool to check patch and filr for CFG_ present" (CFG vs. CONFIG changes)
This v4 patch series makes all previous (v1, v2, v3) OMAP3 patches obsolete.
[2] http://elinux.org/BeagleBoard
[3] http://focus.ti.com/docs/toolsw/folders/print/tmdxevm3503.html
[4] http://www.gumstix.net/Overo/
[5] http://beagleboard.googlecode.com/files/u-boot_beagle_revb.tar.gz
PATCH v4 1/13 ARM: OMAP3: Add pin mux, clock and cpu headers
Subject: [PATCH 01/13 v4] ARM: OMAP3: Add pin mux, clock and cpu headers
From: Dirk Behme <[email protected]>
Add pin mux, clock and cpu header files for OMAP3.
---
Changes in version v3:
- Replace space by tabs in headers as proposed by Jean-Christophe PLAGNIOL-VILLARD
include/asm-arm/arch-omap3/bits.h | 48 +++ include/asm-arm/arch-omap3/clocks.h | 62 ++++ include/asm-arm/arch-omap3/clocks_omap3.h | 101 +++++++ include/asm-arm/arch-omap3/cpu.h | 249 ++++++++++++++++++ include/asm-arm/arch-omap3/mux.h | 407 ++++++++++++++++++++++++++++++ 5 files changed, 867 insertions(+)
include/asm-arm/arch-omap3/mux.h new file +407 -0
@@ -0,0 +1,407 @@ +/* +* (C) Copyright 2006-2008 +* Texas Instruments, <www.ti.com> +* Syed Mohammed Khasim <[email protected]> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ +#ifndef _MUX_H_ +#define _MUX_H_ + +/* +* IEN - Input Enable +* IDIS - Input Disable +* PTD - Pull type Down +* PTU - Pull type Up +* DIS - Pull type selection is inactive +* EN - Pull type selection is active +* M0 - Mode 0 +*/ + +#define IEN (1 << 8) + +#define IDIS (0 << 8) +#define PTU (1 << 4) +#define PTD (0 << 4) +#define EN (1 << 3) +#define DIS (0 << 3) + +#define M0 0 +#define M1 1 +#define M2 2 +#define M3 3 +#define M4 4 +#define M5 5 +#define M6 6 +#define M7 7 + +/* +* To get the actual address the offset has to added +* with OMAP34XX_CTRL_BASE to get the actual address +*/ + +/*SDRC*/ +#define CONTROL_PADCONF_SDRC_D0 0x0030 +#define CONTROL_PADCONF_SDRC_D1 0x0032 +#define CONTROL_PADCONF_SDRC_D2 0x0034 +#define CONTROL_PADCONF_SDRC_D3 0x0036 +#define CONTROL_PADCONF_SDRC_D4 0x0038 +#define CONTROL_PADCONF_SDRC_D5 0x003A +#define CONTROL_PADCONF_SDRC_D6 0x003C +#define CONTROL_PADCONF_SDRC_D7 0x003E +#define CONTROL_PADCONF_SDRC_D8 0x0040 +#define CONTROL_PADCONF_SDRC_D9 0x0042 +#define CONTROL_PADCONF_SDRC_D10 0x0044 +#define CONTROL_PADCONF_SDRC_D11 0x0046 +#define CONTROL_PADCONF_SDRC_D12 0x0048 +#define CONTROL_PADCONF_SDRC_D13 0x004A +#define CONTROL_PADCONF_SDRC_D14 0x004C +#define CONTROL_PADCONF_SDRC_D15 0x004E +#define CONTROL_PADCONF_SDRC_D16 0x0050 +#define CONTROL_PADCONF_SDRC_D17 0x0052 +#define CONTROL_PADCONF_SDRC_D18 0x0054 +#define CONTROL_PADCONF_SDRC_D19 0x0056 +#define CONTROL_PADCONF_SDRC_D20 0x0058 +#define CONTROL_PADCONF_SDRC_D21 0x005A +#define CONTROL_PADCONF_SDRC_D22 0x005C +#define CONTROL_PADCONF_SDRC_D23 0x005E +#define CONTROL_PADCONF_SDRC_D24 0x0060 +#define CONTROL_PADCONF_SDRC_D25 0x0062 +#define CONTROL_PADCONF_SDRC_D26 0x0064 +#define CONTROL_PADCONF_SDRC_D27 0x0066 +#define CONTROL_PADCONF_SDRC_D28 0x0068 +#define CONTROL_PADCONF_SDRC_D29 0x006A +#define CONTROL_PADCONF_SDRC_D30 0x006C +#define CONTROL_PADCONF_SDRC_D31 0x006E +#define CONTROL_PADCONF_SDRC_CLK 0x0070 +#define CONTROL_PADCONF_SDRC_DQS0 0x0072 +#define CONTROL_PADCONF_SDRC_DQS1 0x0074 +#define CONTROL_PADCONF_SDRC_DQS2 0x0076 +#define CONTROL_PADCONF_SDRC_DQS3 0x0078 +/*GPMC*/ +#define CONTROL_PADCONF_GPMC_A1 0x007A +#define CONTROL_PADCONF_GPMC_A2 0x007C +#define CONTROL_PADCONF_GPMC_A3 0x007E +#define CONTROL_PADCONF_GPMC_A4 0x0080 +#define CONTROL_PADCONF_GPMC_A5 0x0082 +#define CONTROL_PADCONF_GPMC_A6 0x0084 +#define CONTROL_PADCONF_GPMC_A7 0x0086 +#define CONTROL_PADCONF_GPMC_A8 0x0088 +#define CONTROL_PADCONF_GPMC_A9 0x008A +#define CONTROL_PADCONF_GPMC_A10 0x008C +#define CONTROL_PADCONF_GPMC_D0 0x008E +#define CONTROL_PADCONF_GPMC_D1 0x0090 +#define CONTROL_PADCONF_GPMC_D2 0x0092 +#define CONTROL_PADCONF_GPMC_D3 0x0094 +#define CONTROL_PADCONF_GPMC_D4 0x0096 +#define CONTROL_PADCONF_GPMC_D5 0x0098 +#define CONTROL_PADCONF_GPMC_D6 0x009A +#define CONTROL_PADCONF_GPMC_D7 0x009C +#define CONTROL_PADCONF_GPMC_D8 0x009E +#define CONTROL_PADCONF_GPMC_D9 0x00A0 +#define CONTROL_PADCONF_GPMC_D10 0x00A2 +#define CONTROL_PADCONF_GPMC_D11 0x00A4 +#define CONTROL_PADCONF_GPMC_D12 0x00A6 +#define CONTROL_PADCONF_GPMC_D13 0x00A8 +#define CONTROL_PADCONF_GPMC_D14 0x00AA +#define CONTROL_PADCONF_GPMC_D15 0x00AC +#define CONTROL_PADCONF_GPMC_nCS0 0x00AE +#define CONTROL_PADCONF_GPMC_nCS1 0x00B0 +#define CONTROL_PADCONF_GPMC_nCS2 0x00B2 +#define CONTROL_PADCONF_GPMC_nCS3 0x00B4 +#define CONTROL_PADCONF_GPMC_nCS4 0x00B6 +#define CONTROL_PADCONF_GPMC_nCS5 0x00B8 +#define CONTROL_PADCONF_GPMC_nCS6 0x00BA +#define CONTROL_PADCONF_GPMC_nCS7 0x00BC +#define CONTROL_PADCONF_GPMC_CLK 0x00BE +#define CONTROL_PADCONF_GPMC_nADV_ALE 0x00C0 +#define CONTROL_PADCONF_GPMC_nOE 0x00C2 +#define CONTROL_PADCONF_GPMC_nWE 0x00C4 +#define CONTROL_PADCONF_GPMC_nBE0_CLE 0x00C6 +#define CONTROL_PADCONF_GPMC_nBE1 0x00C8 +#define CONTROL_PADCONF_GPMC_nWP 0x00CA +#define CONTROL_PADCONF_GPMC_WAIT0 0x00CC +#define CONTROL_PADCONF_GPMC_WAIT1 0x00CE +#define CONTROL_PADCONF_GPMC_WAIT2 0x00D0 +#define CONTROL_PADCONF_GPMC_WAIT3 0x00D2 +/*DSS*/ +#define CONTROL_PADCONF_DSS_PCLK 0x00D4 +#define CONTROL_PADCONF_DSS_HSYNC 0x00D6 +#define CONTROL_PADCONF_DSS_VSYNC 0x00D8 +#define CONTROL_PADCONF_DSS_ACBIAS 0x00DA +#define CONTROL_PADCONF_DSS_DATA0 0x00DC +#define CONTROL_PADCONF_DSS_DATA1 0x00DE +#define CONTROL_PADCONF_DSS_DATA2 0x00E0 +#define CONTROL_PADCONF_DSS_DATA3 0x00E2 +#define CONTROL_PADCONF_DSS_DATA4 0x00E4 +#define CONTROL_PADCONF_DSS_DATA5 0x00E6 +#define CONTROL_PADCONF_DSS_DATA6 0x00E8 +#define CONTROL_PADCONF_DSS_DATA7 0x00EA +#define CONTROL_PADCONF_DSS_DATA8 0x00EC +#define CONTROL_PADCONF_DSS_DATA9 0x00EE +#define CONTROL_PADCONF_DSS_DATA10 0x00F0 +#define CONTROL_PADCONF_DSS_DATA11 0x00F2 +#define CONTROL_PADCONF_DSS_DATA12 0x00F4 +#define CONTROL_PADCONF_DSS_DATA13 0x00F6 +#define CONTROL_PADCONF_DSS_DATA14 0x00F8 +#define CONTROL_PADCONF_DSS_DATA15 0x00FA +#define CONTROL_PADCONF_DSS_DATA16 0x00FC +#define CONTROL_PADCONF_DSS_DATA17 0x00FE +#define CONTROL_PADCONF_DSS_DATA18 0x0100 +#define CONTROL_PADCONF_DSS_DATA19 0x0102 +#define CONTROL_PADCONF_DSS_DATA20 0x0104 +#define CONTROL_PADCONF_DSS_DATA21 0x0106 +#define CONTROL_PADCONF_DSS_DATA22 0x0108 +#define CONTROL_PADCONF_DSS_DATA23 0x010A +/*CAMERA*/ +#define CONTROL_PADCONF_CAM_HS 0x010C +#define CONTROL_PADCONF_CAM_VS 0x010E +#define CONTROL_PADCONF_CAM_XCLKA 0x0110 +#define CONTROL_PADCONF_CAM_PCLK 0x0112 +#define CONTROL_PADCONF_CAM_FLD 0x0114 +#define CONTROL_PADCONF_CAM_D0 0x0116 +#define CONTROL_PADCONF_CAM_D1 0x0118 +#define CONTROL_PADCONF_CAM_D2 0x011A +#define CONTROL_PADCONF_CAM_D3 0x011C +#define CONTROL_PADCONF_CAM_D4 0x011E +#define CONTROL_PADCONF_CAM_D5 0x0120 +#define CONTROL_PADCONF_CAM_D6 0x0122 +#define CONTROL_PADCONF_CAM_D7 0x0124 +#define CONTROL_PADCONF_CAM_D8 0x0126 +#define CONTROL_PADCONF_CAM_D9 0x0128 +#define CONTROL_PADCONF_CAM_D10 0x012A +#define CONTROL_PADCONF_CAM_D11 0x012C +#define CONTROL_PADCONF_CAM_XCLKB 0x012E +#define CONTROL_PADCONF_CAM_WEN 0x0130 +#define CONTROL_PADCONF_CAM_STROBE 0x0132 +#define CONTROL_PADCONF_CSI2_DX0 0x0134 +#define CONTROL_PADCONF_CSI2_DY0 0x0136 +#define CONTROL_PADCONF_CSI2_DX1 0x0138 +#define CONTROL_PADCONF_CSI2_DY1 0x013A +/*Audio Interface */ +#define CONTROL_PADCONF_McBSP2_FSX 0x013C +#define CONTROL_PADCONF_McBSP2_CLKX 0x013E +#define CONTROL_PADCONF_McBSP2_DR 0x0140 +#define CONTROL_PADCONF_McBSP2_DX 0x0142 +#define CONTROL_PADCONF_MMC1_CLK 0x0144 +#define CONTROL_PADCONF_MMC1_CMD 0x0146 +#define CONTROL_PADCONF_MMC1_DAT0 0x0148 +#define CONTROL_PADCONF_MMC1_DAT1 0x014A +#define CONTROL_PADCONF_MMC1_DAT2 0x014C +#define CONTROL_PADCONF_MMC1_DAT3 0x014E +#define CONTROL_PADCONF_MMC1_DAT4 0x0150 +#define CONTROL_PADCONF_MMC1_DAT5 0x0152 +#define CONTROL_PADCONF_MMC1_DAT6 0x0154 +#define CONTROL_PADCONF_MMC1_DAT7 0x0156 +/*Wireless LAN */ +#define CONTROL_PADCONF_MMC2_CLK 0x0158 +#define CONTROL_PADCONF_MMC2_CMD 0x015A +#define CONTROL_PADCONF_MMC2_DAT0 0x015C +#define CONTROL_PADCONF_MMC2_DAT1 0x015E +#define CONTROL_PADCONF_MMC2_DAT2 0x0160 +#define CONTROL_PADCONF_MMC2_DAT3 0x0162 +#define CONTROL_PADCONF_MMC2_DAT4 0x0164 +#define CONTROL_PADCONF_MMC2_DAT5 0x0166 +#define CONTROL_PADCONF_MMC2_DAT6 0x0168 +#define CONTROL_PADCONF_MMC2_DAT7 0x016A +/*Bluetooth*/ +#define CONTROL_PADCONF_McBSP3_DX 0x016C +#define CONTROL_PADCONF_McBSP3_DR 0x016E +#define CONTROL_PADCONF_McBSP3_CLKX 0x0170 +#define CONTROL_PADCONF_McBSP3_FSX 0x0172 +#define CONTROL_PADCONF_UART2_CTS 0x0174 +#define CONTROL_PADCONF_UART2_RTS 0x0176 +#define CONTROL_PADCONF_UART2_TX 0x0178 +#define CONTROL_PADCONF_UART2_RX 0x017A +/*Modem Interface */ +#define CONTROL_PADCONF_UART1_TX 0x017C +#define CONTROL_PADCONF_UART1_RTS 0x017E +#define CONTROL_PADCONF_UART1_CTS 0x0180 +#define CONTROL_PADCONF_UART1_RX 0x0182 +#define CONTROL_PADCONF_McBSP4_CLKX 0x0184 +#define CONTROL_PADCONF_McBSP4_DR 0x0186 +#define CONTROL_PADCONF_McBSP4_DX 0x0188 +#define CONTROL_PADCONF_McBSP4_FSX 0x018A +#define CONTROL_PADCONF_McBSP1_CLKR 0x018C +#define CONTROL_PADCONF_McBSP1_FSR 0x018E +#define CONTROL_PADCONF_McBSP1_DX 0x0190 +#define CONTROL_PADCONF_McBSP1_DR 0x0192 +#define CONTROL_PADCONF_McBSP_CLKS 0x0194 +#define CONTROL_PADCONF_McBSP1_FSX 0x0196 +#define CONTROL_PADCONF_McBSP1_CLKX 0x0198 +/*Serial Interface*/ +#define CONTROL_PADCONF_UART3_CTS_RCTX 0x019A +#define CONTROL_PADCONF_UART3_RTS_SD 0x019C +#define CONTROL_PADCONF_UART3_RX_IRRX 0x019E +#define CONTROL_PADCONF_UART3_TX_IRTX 0x01A0 +#define CONTROL_PADCONF_HSUSB0_CLK 0x01A2 +#define CONTROL_PADCONF_HSUSB0_STP 0x01A4 +#define CONTROL_PADCONF_HSUSB0_DIR 0x01A6 +#define CONTROL_PADCONF_HSUSB0_NXT 0x01A8 +#define CONTROL_PADCONF_HSUSB0_DATA0 0x01AA +#define CONTROL_PADCONF_HSUSB0_DATA1 0x01AC +#define CONTROL_PADCONF_HSUSB0_DATA2 0x01AE +#define CONTROL_PADCONF_HSUSB0_DATA3 0x01B0 +#define CONTROL_PADCONF_HSUSB0_DATA4 0x01B2 +#define CONTROL_PADCONF_HSUSB0_DATA5 0x01B4 +#define CONTROL_PADCONF_HSUSB0_DATA6 0x01B6 +#define CONTROL_PADCONF_HSUSB0_DATA7 0x01B8 +#define CONTROL_PADCONF_I2C1_SCL 0x01BA +#define CONTROL_PADCONF_I2C1_SDA 0x01BC +#define CONTROL_PADCONF_I2C2_SCL 0x01BE +#define CONTROL_PADCONF_I2C2_SDA 0x01C0 +#define CONTROL_PADCONF_I2C3_SCL 0x01C2 +#define CONTROL_PADCONF_I2C3_SDA 0x01C4 +#define CONTROL_PADCONF_I2C4_SCL 0x0A00 +#define CONTROL_PADCONF_I2C4_SDA 0x0A02 +#define CONTROL_PADCONF_HDQ_SIO 0x01C6 +#define CONTROL_PADCONF_McSPI1_CLK 0x01C8 +#define CONTROL_PADCONF_McSPI1_SIMO 0x01CA +#define CONTROL_PADCONF_McSPI1_SOMI 0x01CC +#define CONTROL_PADCONF_McSPI1_CS0 0x01CE +#define CONTROL_PADCONF_McSPI1_CS1 0x01D0 +#define CONTROL_PADCONF_McSPI1_CS2 0x01D2 +#define CONTROL_PADCONF_McSPI1_CS3 0x01D4 +#define CONTROL_PADCONF_McSPI2_CLK 0x01D6 +#define CONTROL_PADCONF_McSPI2_SIMO 0x01D8 +#define CONTROL_PADCONF_McSPI2_SOMI 0x01DA +#define CONTROL_PADCONF_McSPI2_CS0 0x01DC +#define CONTROL_PADCONF_McSPI2_CS1 0x01DE +/*Control and debug */ +#define CONTROL_PADCONF_SYS_32K 0x0A04 +#define CONTROL_PADCONF_SYS_CLKREQ 0x0A06 +#define CONTROL_PADCONF_SYS_nIRQ 0x01E0 +#define CONTROL_PADCONF_SYS_BOOT0 0x0A0A +#define CONTROL_PADCONF_SYS_BOOT1 0x0A0C +#define CONTROL_PADCONF_SYS_BOOT2 0x0A0E +#define CONTROL_PADCONF_SYS_BOOT3 0x0A10 +#define CONTROL_PADCONF_SYS_BOOT4 0x0A12 +#define CONTROL_PADCONF_SYS_BOOT5 0x0A14 +#define CONTROL_PADCONF_SYS_BOOT6 0x0A16 +#define CONTROL_PADCONF_SYS_OFF_MODE 0x0A18 +#define CONTROL_PADCONF_SYS_CLKOUT1 0x0A1A +#define CONTROL_PADCONF_SYS_CLKOUT2 0x01E2 +#define CONTROL_PADCONF_JTAG_nTRST 0x0A1C +#define CONTROL_PADCONF_JTAG_TCK 0x0A1E +#define CONTROL_PADCONF_JTAG_TMS 0x0A20 +#define CONTROL_PADCONF_JTAG_TDI 0x0A22 +#define CONTROL_PADCONF_JTAG_EMU0 0x0A24 +#define CONTROL_PADCONF_JTAG_EMU1 0x0A26 +#define CONTROL_PADCONF_ETK_CLK 0x0A28 +#define CONTROL_PADCONF_ETK_CTL 0x0A2A +#define CONTROL_PADCONF_ETK_D0 0x0A2C +#define CONTROL_PADCONF_ETK_D1 0x0A2E +#define CONTROL_PADCONF_ETK_D2 0x0A30 +#define CONTROL_PADCONF_ETK_D3 0x0A32 +#define CONTROL_PADCONF_ETK_D4 0x0A34 +#define CONTROL_PADCONF_ETK_D5 0x0A36 +#define CONTROL_PADCONF_ETK_D6 0x0A38 +#define CONTROL_PADCONF_ETK_D7 0x0A3A +#define CONTROL_PADCONF_ETK_D8 0x0A3C +#define CONTROL_PADCONF_ETK_D9 0x0A3E +#define CONTROL_PADCONF_ETK_D10 0x0A40 +#define CONTROL_PADCONF_ETK_D11 0x0A42 +#define CONTROL_PADCONF_ETK_D12 0x0A44 +#define CONTROL_PADCONF_ETK_D13 0x0A46 +#define CONTROL_PADCONF_ETK_D14 0x0A48 +#define CONTROL_PADCONF_ETK_D15 0x0A4A +#define CONTROL_PADCONF_ETK_CLK_ES2 0x05D8 +#define CONTROL_PADCONF_ETK_CTL_ES2 0x05DA +#define CONTROL_PADCONF_ETK_D0_ES2 0x05DC +#define CONTROL_PADCONF_ETK_D1_ES2 0x05DE +#define CONTROL_PADCONF_ETK_D2_ES2 0x05E0 +#define CONTROL_PADCONF_ETK_D3_ES2 0x05E2 +#define CONTROL_PADCONF_ETK_D4_ES2 0x05E4 +#define CONTROL_PADCONF_ETK_D5_ES2 0x05E6 +#define CONTROL_PADCONF_ETK_D6_ES2 0x05E8 +#define CONTROL_PADCONF_ETK_D7_ES2 0x05EA +#define CONTROL_PADCONF_ETK_D8_ES2 0x05EC +#define CONTROL_PADCONF_ETK_D9_ES2 0x05EE +#define CONTROL_PADCONF_ETK_D10_ES2 0x05F0 +#define CONTROL_PADCONF_ETK_D11_ES2 0x05F2 +#define CONTROL_PADCONF_ETK_D12_ES2 0x05F4 +#define CONTROL_PADCONF_ETK_D13_ES2 0x05F6 +#define CONTROL_PADCONF_ETK_D14_ES2 0x05F8 +#define CONTROL_PADCONF_ETK_D15_ES2 0x05FA +/*Die to Die */ +#define CONTROL_PADCONF_d2d_mcad0 0x01E4 +#define CONTROL_PADCONF_d2d_mcad1 0x01E6 +#define CONTROL_PADCONF_d2d_mcad2 0x01E8 +#define CONTROL_PADCONF_d2d_mcad3 0x01EA +#define CONTROL_PADCONF_d2d_mcad4 0x01EC +#define CONTROL_PADCONF_d2d_mcad5 0x01EE +#define CONTROL_PADCONF_d2d_mcad6 0x01F0 +#define CONTROL_PADCONF_d2d_mcad7 0x01F2 +#define CONTROL_PADCONF_d2d_mcad8 0x01F4 +#define CONTROL_PADCONF_d2d_mcad9 0x01F6 +#define CONTROL_PADCONF_d2d_mcad10 0x01F8 +#define CONTROL_PADCONF_d2d_mcad11 0x01FA +#define CONTROL_PADCONF_d2d_mcad12 0x01FC +#define CONTROL_PADCONF_d2d_mcad13 0x01FE +#define CONTROL_PADCONF_d2d_mcad14 0x0200 +#define CONTROL_PADCONF_d2d_mcad15 0x0202 +#define CONTROL_PADCONF_d2d_mcad16 0x0204 +#define CONTROL_PADCONF_d2d_mcad17 0x0206 +#define CONTROL_PADCONF_d2d_mcad18 0x0208 +#define CONTROL_PADCONF_d2d_mcad19 0x020A +#define CONTROL_PADCONF_d2d_mcad20 0x020C +#define CONTROL_PADCONF_d2d_mcad21 0x020E +#define CONTROL_PADCONF_d2d_mcad22 0x0210 +#define CONTROL_PADCONF_d2d_mcad23 0x0212 +#define CONTROL_PADCONF_d2d_mcad24 0x0214 +#define CONTROL_PADCONF_d2d_mcad25 0x0216 +#define CONTROL_PADCONF_d2d_mcad26 0x0218 +#define CONTROL_PADCONF_d2d_mcad27 0x021A +#define CONTROL_PADCONF_d2d_mcad28 0x021C +#define CONTROL_PADCONF_d2d_mcad29 0x021E +#define CONTROL_PADCONF_d2d_mcad30 0x0220 +#define CONTROL_PADCONF_d2d_mcad31 0x0222 +#define CONTROL_PADCONF_d2d_mcad32 0x0224 +#define CONTROL_PADCONF_d2d_mcad33 0x0226 +#define CONTROL_PADCONF_d2d_mcad34 0x0228 +#define CONTROL_PADCONF_d2d_mcad35 0x022A +#define CONTROL_PADCONF_d2d_mcad36 0x022C +#define CONTROL_PADCONF_d2d_clk26mi 0x022E +#define CONTROL_PADCONF_d2d_nrespwron 0x0230 +#define CONTROL_PADCONF_d2d_nreswarm 0x0232 +#define CONTROL_PADCONF_d2d_arm9nirq 0x0234 +#define CONTROL_PADCONF_d2d_uma2p6fiq 0x0236 +#define CONTROL_PADCONF_d2d_spint 0x0238 +#define CONTROL_PADCONF_d2d_frint 0x023A +#define CONTROL_PADCONF_d2d_dmareq0 0x023C +#define CONTROL_PADCONF_d2d_dmareq1 0x023E +#define CONTROL_PADCONF_d2d_dmareq2 0x0240 +#define CONTROL_PADCONF_d2d_dmareq3 0x0242 +#define CONTROL_PADCONF_d2d_n3gtrst 0x0244 +#define CONTROL_PADCONF_d2d_n3gtdi 0x0246 +#define CONTROL_PADCONF_d2d_n3gtdo 0x0248 +#define CONTROL_PADCONF_d2d_n3gtms 0x024A +#define CONTROL_PADCONF_d2d_n3gtck 0x024C +#define CONTROL_PADCONF_d2d_n3grtck 0x024E +#define CONTROL_PADCONF_d2d_mstdby 0x0250 +#define CONTROL_PADCONF_d2d_swakeup 0x0A4C +#define CONTROL_PADCONF_d2d_idlereq 0x0252 +#define CONTROL_PADCONF_d2d_idleack 0x0254 +#define CONTROL_PADCONF_d2d_mwrite 0x0256 +#define CONTROL_PADCONF_d2d_swrite 0x0258 +#define CONTROL_PADCONF_d2d_mread 0x025A +#define CONTROL_PADCONF_d2d_sread 0x025C +#define CONTROL_PADCONF_d2d_mbusflag 0x025E +#define CONTROL_PADCONF_d2d_sbusflag 0x0260 +#define CONTROL_PADCONF_sdrc_cke0 0x0262 +#define CONTROL_PADCONF_sdrc_cke1 0x0264 + +#endif
include/asm-arm/arch-omap3/bits.h new file +48 -0
48 lines not on this page · raw message
include/asm-arm/arch-omap3/clocks.h new file +62 -0
62 lines not on this page · raw message
include/asm-arm/arch-omap3/clocks_omap3.h new file +101 -0
101 lines not on this page · raw message
include/asm-arm/arch-omap3/cpu.h new file +249 -0
249 lines not on this page · raw message
PATCH v4 1/13 ARM: OMAP3: Add pin mux, clock and cpu headers
Quoted 24 lines · dirk.behme at googlemail.com
Subject: [PATCH 01/13 v4] ARM: OMAP3: Add pin mux, clock and cpu headers
From: Dirk Behme <[email protected]>
Add pin mux, clock and cpu header files for OMAP3.
Signed-off-by Dirk Behme <[email protected]>---
Changes in version v3:
- Replace space by tabs in headers as proposed by Jean-Christophe PLAGNIOL-VILLARD
include/asm-arm/arch-omap3/bits.h | 48 +++ include/asm-arm/arch-omap3/clocks.h | 62 ++++ include/asm-arm/arch-omap3/clocks_omap3.h | 101 +++++++ include/asm-arm/arch-omap3/cpu.h | 249 ++++++++++++++++++ include/asm-arm/arch-omap3/mux.h | 407 ++++++++++++++++++++++++++++++ 5 files changed, 867 insertions(+)include/asm-arm/arch-omap3/mux.h new file +3
-0+#define CONTROL_PADCONF_DSS_DATA13 0x00F6 +#define CONTROL_PADCONF_DSS_DATA14 0x00F8 +#define CONTROL_PADCONF_DSS_DATA15 0x00FA
include/asm-arm/arch-omap3/mux.h line 170
Quoted 10 lines
include/asm-arm/arch-omap3/mux.h new file +10
-0+#define CONTROL_PADCONF_DSS_DATA16 0x00FC +#define CONTROL_PADCONF_DSS_DATA17 0x00FE +#define CONTROL_PADCONF_DSS_DATA18 0x0100 +#define CONTROL_PADCONF_DSS_DATA19 0x0102 +#define CONTROL_PADCONF_DSS_DATA20 0x0104 +#define CONTROL_PADCONF_DSS_DATA21 0x0106 +#define CONTROL_PADCONF_DSS_DATA22 0x0108 +#define CONTROL_PADCONF_DSS_DATA23 0x010A +/*CAMERA*/ +#define CONTROL_PADCONF_CAM_HS 0x010C
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_CAM_VS0x010E
^
white space please remove
include/asm-arm/arch-omap3/mux.h line 175
Quoted 4 lines
include/asm-arm/arch-omap3/mux.h new file +4
-0+#define CONTROL_PADCONF_CAM_XCLKA 0x0110 +#define CONTROL_PADCONF_CAM_PCLK 0x0112 +#define CONTROL_PADCONF_CAM_FLD 0x0114 +#define CONTROL_PADCONF_CAM_D0 0x0116
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_CAM_D10x0118
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_CAM_D20x011A
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_CAM_D30x011C
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_CAM_D40x011E
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_CAM_D50x0120
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_CAM_D60x0122
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_CAM_D70x0124
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_CAM_D80x0126
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_CAM_D90x0128
^
white space please remove
include/asm-arm/arch-omap3/mux.h line 195
Quoted 11 lines
include/asm-arm/arch-omap3/mux.h new file +11
-0+#define CONTROL_PADCONF_CAM_D10 0x012A +#define CONTROL_PADCONF_CAM_D11 0x012C +#define CONTROL_PADCONF_CAM_XCLKB 0x012E +#define CONTROL_PADCONF_CAM_WEN 0x0130 +#define CONTROL_PADCONF_CAM_STROBE 0x0132 +#define CONTROL_PADCONF_CSI2_DX0 0x0134 +#define CONTROL_PADCONF_CSI2_DY0 0x0136 +#define CONTROL_PADCONF_CSI2_DX1 0x0138 +#define CONTROL_PADCONF_CSI2_DY1 0x013A +/*Audio Interface */ +#define CONTROL_PADCONF_McBSP2_FSX 0x013C
please use upercase for macro
Quoted 1 line
+#define
CONTROL_PADCONF_McBSP2_CLKX0x013E
ditto
Quoted 1 line
+#define
CONTROL_PADCONF_McBSP2_DR0x0140
ditto
Quoted 1 line
+#define
CONTROL_PADCONF_McBSP2_DX0x0142
ditto
Quoted 13 lines
include/asm-arm/arch-omap3/mux.h new file +13
-0+#define CONTROL_PADCONF_MMC1_CLK 0x0144 +#define CONTROL_PADCONF_MMC1_CMD 0x0146 +#define CONTROL_PADCONF_MMC1_DAT0 0x0148 +#define CONTROL_PADCONF_MMC1_DAT1 0x014A +#define CONTROL_PADCONF_MMC1_DAT2 0x014C +#define CONTROL_PADCONF_MMC1_DAT3 0x014E +#define CONTROL_PADCONF_MMC1_DAT4 0x0150 +#define CONTROL_PADCONF_MMC1_DAT5 0x0152 +#define CONTROL_PADCONF_MMC1_DAT6 0x0154 +#define CONTROL_PADCONF_MMC1_DAT7 0x0156 +/*Wireless LAN */ +#define CONTROL_PADCONF_MMC2_CLK 0x0158 +#define CONTROL_PADCONF_MMC2_CMD 0x015A
include/asm-arm/arch-omap3/mux.h line 221
Quoted 10 lines
include/asm-arm/arch-omap3/mux.h new file +10
-0+#define CONTROL_PADCONF_MMC2_DAT0 0x015C +#define CONTROL_PADCONF_MMC2_DAT1 0x015E +#define CONTROL_PADCONF_MMC2_DAT2 0x0160 +#define CONTROL_PADCONF_MMC2_DAT3 0x0162 +#define CONTROL_PADCONF_MMC2_DAT4 0x0164 +#define CONTROL_PADCONF_MMC2_DAT5 0x0166 +#define CONTROL_PADCONF_MMC2_DAT6 0x0168 +#define CONTROL_PADCONF_MMC2_DAT7 0x016A +/*Bluetooth*/ +#define CONTROL_PADCONF_McBSP3_DX 0x016C
ditto
Quoted 1 line
+#define
CONTROL_PADCONF_McBSP3_DR0x016E
ditto
Quoted 1 line
+#define
CONTROL_PADCONF_McBSP3_CLKX0x0170
ditto
Quoted 1 line
+#define
CONTROL_PADCONF_McBSP3_FSX0x0172
ditto and other
Quoted 7 lines
(quoted diff) +7
-0+#define CONTROL_PADCONF_UART2_CTS 0x0174 +#define CONTROL_PADCONF_UART2_RTS 0x0176 +#define CONTROL_PADCONF_UART2_TX 0x0178 +#define CONTROL_PADCONF_UART2_RX 0x017A +#define CONTROL_PADCONF_SYS_BOOT6 0x0A16 +#define CONTROL_PADCONF_SYS_OFF_MODE 0x0A18 +#define CONTROL_PADCONF_SYS_CLKOUT1 0x0A1A
Review
Quoted 10 lines
(quoted diff) +10
-0+#define CONTROL_PADCONF_SYS_CLKOUT2 0x01E2 +#define CONTROL_PADCONF_JTAG_nTRST 0x0A1C +#define CONTROL_PADCONF_JTAG_TCK 0x0A1E +#define CONTROL_PADCONF_JTAG_TMS 0x0A20 +#define CONTROL_PADCONF_JTAG_TDI 0x0A22 +#define CONTROL_PADCONF_JTAG_EMU0 0x0A24 +#define CONTROL_PADCONF_JTAG_EMU1 0x0A26 +#define CONTROL_PADCONF_ETK_CLK 0x0A28 +#define CONTROL_PADCONF_ETK_CTL 0x0A2A +#define CONTROL_PADCONF_ETK_D0 0x0A2C
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_ETK_D10x0A2E
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_ETK_D20x0A30
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_ETK_D30x0A32
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_ETK_D40x0A34
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_ETK_D50x0A36
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_ETK_D60x0A38
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_ETK_D70x0A3A
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_ETK_D80x0A3C
^
white space please remove
Quoted 1 line
+#define
CONTROL_PADCONF_ETK_D90x0A3E
^
white space please remove
Quoted 16 lines
include/asm-arm/arch-omap3/mux.h new file +6
-0+#define CONTROL_PADCONF_ETK_D10 0x0A40 +#define CONTROL_PADCONF_ETK_D11 0x0A42 +#define CONTROL_PADCONF_ETK_D12 0x0A44 +#define CONTROL_PADCONF_ETK_D13 0x0A46 + +#endif Index:
u-boot-arm/include/asm-arm/arch-omap3/bits.h
===================================================================include/asm-arm/arch-omap3/bits.h new file +5
-0@@ -0,0 +1,48 @@ +/* bits.h +* Copyright (c) 2004 Texas Instruments +* +* This package is free software; you can redistribute it and/or +* modify it under the terms of the license found in the file
include/asm-arm/arch-omap3/bits.h line 15
Quoted 10 lines
include/asm-arm/arch-omap3/bits.h new file +10
-0+* named COPYING that should have accompanied this file. +* +* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR +* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED +* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. +*/ +#ifndef __bits_h +#define __bits_h 1 + +#define BIT0 (1<<0)
plase add space to be more easy to read
#define BIT0 (1 << 0)
Quoted 25 lines
include/asm-arm/arch-omap3/bits.h new file +10
-0+#define BIT1 (1<<1) +#define BIT2 (1<<2) +#define BIT3 (1<<3) +#define BIT4 (1<<4) +#define BIT5 (1<<5) +#define BIT6 (1<<6) +#define BIT7 (1<<7) +#define BIT8 (1<<8) +#define BIT9 (1<<9) +#endif Index:
u-boot-arm/include/asm-arm/arch-omap3/clocks.h
===================================================================include/asm-arm/arch-omap3/clocks.h new file +10
-0@@ -0,0 +1,62 @@ +/* +* (C) Copyright 2006-2008 +* Texas Instruments, <www.ti.com> +* Richard Woodruff <[email protected]> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +*
include/asm-arm/arch-omap3/clocks.h line 20
Quoted 10 lines
include/asm-arm/arch-omap3/clocks.h new file +10
-0+* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR /PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/
^
white space please remove
Quoted 40 lines
include/asm-arm/arch-omap3/clocks.h new file +25
-0+#ifndef _CLOCKS_H_ +#define _CLOCKS_H_ + +#define LDELAY 12000000 + +#define S12M 12000000 +#define S13M 13000000 +#define S19_2M 19200000 +#define S24M 24000000 +#define S26M 26000000 +#define S38_4M 38400000 + +unsigned int fsel; + unsigned int m2; +} dpll_param; + +/* Following functions are exported from lowlevel_init.S */ +extern dpll_param *get_mpu_dpll_param (void ); +extern dpll_param *get_iva_dpll_param (void ); +extern dpll_param *get_core_dpll_param (void ); +extern dpll_param *get_per_dpll_param (void ); + +extern void *_end_vect, *_start; + +#endif Index:
u-boot-arm/include/asm-arm/arch-omap3/clocks_omap3.h
===================================================================include/asm-arm/arch-omap3/clocks_omap3.h new file +10
-0@@ -0,0 +1,101 @@ +/* +* (C) Copyright 2006-2008 +* Texas Instruments, <www.ti.com> +* Richard Woodruff <[email protected]> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +*
include/asm-arm/arch-omap3/clocks_omap3.h line 20
Quoted 10 lines
include/asm-arm/arch-omap3/clocks_omap3.h new file +10
-0+* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR /PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/
^
white space please remove
Quoted 8 lines
include/asm-arm/arch-omap3/clocks_omap3.h new file +8
-0+#ifndef _CLOCKS_OMAP3_H_ +#define _CLOCKS_OMAP3_H_ + +#define PLL_STOP 1/* PER & IVA */ +#define PLL_LOW_POWER_BYPASS 5/* MPU, IVA & CORE */ +#define PLL_FAST_RELOCK_BYPASS 6/* CORE */ +#define PLL_LOCK 7/* MPU, IVA, CORE & PER */ +
include/asm-arm/arch-omap3/clocks_omap3.h line 38
Quoted 10 lines
include/asm-arm/arch-omap3/clocks_omap3.h new file +10
-0+/* The following configurations are OPP and SysClk value independant +* and hence are defined here. All the other DPLL related values are +* tabulated in lowlevel_init.S. +*/ + +/* CORE DPLL */ +#define CORE_M3X2 2/* 332MHz : CM_CLKSEL1_EMU */ +#define CORE_SSI_DIV 3/* 221MHz : CM_CLKSEL_CORE */ +#define CORE_FUSB_DIV 2/* 41.5MHz: */ +#define CORE_L4_DIV 2/* 83MHz : L4 */
^
white space please remove
include/asm-arm/arch-omap3/clocks_omap3.h line 40
Quoted 2 lines
include/asm-arm/arch-omap3/clocks_omap3.h new file +2
-0+#define CORE_L3_DIV 2/* 166MHz : L3 {DDR} */ +#define GFX_DIV 2/* 83MHz : CM_CLKSEL_GFX */
^
white space please remove
include/asm-arm/arch-omap3/clocks_omap3.h line 49
Quoted 9 lines
include/asm-arm/arch-omap3/clocks_omap3.h new file +9
-0+#define WKUP_RSM 2/* 41.5MHz: CM_CLKSEL_WKUP */ + +/* PER DPLL */ +#define PER_M6X2 3/* 288MHz: CM_CLKSEL1_EMU */ +#define PER_M5X2 4/* 216MHz: CM_CLKSEL_CAM */ +#define PER_M4X2 2/* 432MHz: CM_CLKSEL_DSS-dss1 */ +#define PER_M3X2 16/* 54MHz : CM_CLKSEL_DSS-tv */ + +#define CLSEL1_EMU_VAL ((CORE_M3X2 << 16) | (PER_M6X2 << 24) | (0x0a50))
please use only one syle 0xaa or 0xAA
Quoted 39 lines
include/asm-arm/arch-omap3/clocks_omap3.h new file +8
-0+ +#define M_12 0xA6 +#define N_12 0x05 +#define FSEL_12 0x07 +#define M2_12 0x01/* M3 of 2 */ + + +#endif /* endif _CLOCKS_OMAP3_H_ */ Index:
u-boot-arm/include/asm-arm/arch-omap3/cpu.h
===================================================================include/asm-arm/arch-omap3/cpu.h new file +26
-0@@ -0,0 +1,249 @@ +/* +* (C) Copyright 2006-2008 +* Texas Instruments, <www.ti.com> +* +* See file CREDITS for list of people who contributed to this +* project. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +* +*/ + +#ifndef _CPU_H +#define _CPU_H
include/asm-arm/arch-omap3/cpu.h line 36
Quoted 10 lines
include/asm-arm/arch-omap3/cpu.h new file +10
-0+ +/* Register offsets of common modules */ +/* Control */ +#define CONTROL_STATUS (OMAP34XX_CTRL_BASE + 0x2F0) +#define OMAP34XX_MCR (OMAP34XX_CTRL_BASE + 0x8C) +#define CONTROL_SCALABLE_OMAP_STATUS (OMAP34XX_CTRL_BASE + 0x44C) +#define CONTROL_SCALABLE_OMAP_OCP (OMAP34XX_CTRL_BASE + 0x534) + +/* Tap Information */ +#define TAP_IDCODE_REG (OMAP34XX_TAP_BASE+0x204)
please add space
#define TAP_IDCODE_REG (OMAP34XX_TAP_BASE + 0x204)
include/asm-arm/arch-omap3/cpu.h line 37
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define PRODUCTION_ID (OMAP34XX_TAP_BASE+0x208)
ditto
include/asm-arm/arch-omap3/cpu.h line 40
Quoted 3 lines
include/asm-arm/arch-omap3/cpu.h new file +3
-0+ +/* device type */ +#define DEVICE_MASK (BIT8|BIT9|BIT10)
ditto
include/asm-arm/arch-omap3/cpu.h line 48
Quoted 8 lines
include/asm-arm/arch-omap3/cpu.h new file +8
-0+#define TST_DEVICE 0x0 +#define EMU_DEVICE 0x1 +#define HS_DEVICE 0x2 +#define GP_DEVICE 0x3 + +/* GPMC CS3/cs4/cs6 not avaliable */ +#define GPMC_BASE (OMAP34XX_GPMC_BASE) +#define GPMC_SYSCONFIG (OMAP34XX_GPMC_BASE+0x10)
ditto
include/asm-arm/arch-omap3/cpu.h line 49
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define GPMC_IRQSTATUS (OMAP34XX_GPMC_BASE+0x18)
ditto
include/asm-arm/arch-omap3/cpu.h line 50
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define GPMC_IRQENABLE (OMAP34XX_GPMC_BASE+0x1C)
ditto
include/asm-arm/arch-omap3/cpu.h line 51
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define GPMC_TIMEOUT_CONTROL (OMAP34XX_GPMC_BASE+0x40)
ditto
include/asm-arm/arch-omap3/cpu.h line 52
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define GPMC_CONFIG (OMAP34XX_GPMC_BASE+0x50)
ditto
include/asm-arm/arch-omap3/cpu.h line 53
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define GPMC_STATUS (OMAP34XX_GPMC_BASE+0x54)
ditto
include/asm-arm/arch-omap3/cpu.h line 55
Quoted 2 lines
include/asm-arm/arch-omap3/cpu.h new file +2
-0+ +#define GPMC_CONFIG_CS0 (OMAP34XX_GPMC_BASE+0x60)
ditto
Quoted 5 lines
include/asm-arm/arch-omap3/cpu.h new file +5
-0+#define GPMC_CONFIG_WIDTH (0x30) + +#define GPMC_CONFIG1 (0x00) +#define GPMC_CONFIG2 (0x04) +#define GPMC_CONFIG3 (0x08)
include/asm-arm/arch-omap3/cpu.h line 97
Quoted 10 lines
include/asm-arm/arch-omap3/cpu.h new file +10
-0+#define GPMC_CONFIG4 (0x0C) +#define GPMC_CONFIG5 (0x10) +#define GPMC_CONFIG6 (0x14) +#define GPMC_CONFIG7 (0x18) +#define GPMC_NAND_CMD (0x1C) +#define GPMC_NAND_ADR (0x20) +#define GPMC_NAND_DAT (0x24) + +/* SMS */ +#define SMS_SYSCONFIG (OMAP34XX_SMS_BASE+0x10)
ditto
include/asm-arm/arch-omap3/cpu.h line 98
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SMS_RG_ATT0 (OMAP34XX_SMS_BASE+0x48)
ditto
include/asm-arm/arch-omap3/cpu.h line 99
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SMS_CLASS_ARB0 (OMAP34XX_SMS_BASE+0xD0)
ditto
include/asm-arm/arch-omap3/cpu.h line 103
Quoted 4 lines
include/asm-arm/arch-omap3/cpu.h new file +4
-0+#define BURSTCOMPLETE_GROUP7 BIT31 + +/* SDRC */ +#define SDRC_SYSCONFIG (OMAP34XX_SDRC_BASE+0x10)
ditto
include/asm-arm/arch-omap3/cpu.h line 104
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SDRC_STATUS (OMAP34XX_SDRC_BASE+0x14)
ditto
include/asm-arm/arch-omap3/cpu.h line 105
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SDRC_CS_CFG (OMAP34XX_SDRC_BASE+0x40)
ditto
include/asm-arm/arch-omap3/cpu.h line 106
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SDRC_SHARING (OMAP34XX_SDRC_BASE+0x44)
ditto
include/asm-arm/arch-omap3/cpu.h line 107
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SDRC_DLLA_CTRL (OMAP34XX_SDRC_BASE+0x60)
ditto
include/asm-arm/arch-omap3/cpu.h line 108
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SDRC_DLLA_STATUS (OMAP34XX_SDRC_BASE+0x64)
ditto
include/asm-arm/arch-omap3/cpu.h line 109
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SDRC_DLLB_CTRL (OMAP34XX_SDRC_BASE+0x68)
ditto
include/asm-arm/arch-omap3/cpu.h line 110
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SDRC_DLLB_STATUS (OMAP34XX_SDRC_BASE+0x6C)
ditto
include/asm-arm/arch-omap3/cpu.h line 114
Quoted 4 lines
include/asm-arm/arch-omap3/cpu.h new file +4
-0+#define DLLPHASE BIT1 +#define LOADDLL BIT2 +#define DLL_DELAY_MASK 0xFF00 +#define DLL_NO_FILTER_MASK (BIT8|BIT9)
ditto
include/asm-arm/arch-omap3/cpu.h line 116
Quoted 2 lines
include/asm-arm/arch-omap3/cpu.h new file +2
-0+ +#define SDRC_POWER (OMAP34XX_SDRC_BASE+0x70)
ditto
include/asm-arm/arch-omap3/cpu.h line 119
Quoted 3 lines
include/asm-arm/arch-omap3/cpu.h new file +3
-0+#define WAKEUPPROC BIT26 + +#define SDRC_MCFG_0 (OMAP34XX_SDRC_BASE+0x80)
ditto
include/asm-arm/arch-omap3/cpu.h line 120
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SDRC_MR_0 (OMAP34XX_SDRC_BASE+0x84)
ditto
include/asm-arm/arch-omap3/cpu.h line 121
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SDRC_ACTIM_CTRLA_0 (OMAP34XX_SDRC_BASE+0x9C)
ditto
include/asm-arm/arch-omap3/cpu.h line 122
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SDRC_ACTIM_CTRLB_0 (OMAP34XX_SDRC_BASE+0xA0)
ditto
include/asm-arm/arch-omap3/cpu.h line 123
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SDRC_ACTIM_CTRLA_1 (OMAP34XX_SDRC_BASE+0xC4)
ditto
include/asm-arm/arch-omap3/cpu.h line 124
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SDRC_ACTIM_CTRLB_1 (OMAP34XX_SDRC_BASE+0xC8)
ditto
include/asm-arm/arch-omap3/cpu.h line 125
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SDRC_RFR_CTRL (OMAP34XX_SDRC_BASE+0xA4)
ditto
include/asm-arm/arch-omap3/cpu.h line 126
Quoted 1 line
include/asm-arm/arch-omap3/cpu.h new file +1
-0+#define SDRC_MANUAL_0 (OMAP34XX_SDRC_BASE+0xA8)
ditto
Quoted 22 lines
include/asm-arm/arch-omap3/cpu.h new file +22
-0+#define OMAP34XX_SDRC_CS0 0x80000000 +#define OMAP34XX_SDRC_CS1 0xA0000000 +#define CMD_NOP 0x0 +#define CMD_PRECHARGE 0x1 +#define CMD_AUTOREFRESH 0x2 +#define CMD_ENTR_PWRDOWN 0x3 +#define CMD_EXIT_PWRDOWN 0x4 +#define CMD_ENTR_SRFRSH 0x5 +#define CMD_CKE_HIGH 0x6 +#define CMD_CKE_LOW 0x7 +#define SOFTRESET BIT1 +#define SMART_IDLE (0x2 << 3) +#define REF_ON_IDLE (0x1 << 6) + +/* timer regs offsets (32 bit regs) */ +#define TIDR 0x0/* r */ +#define TIOCP_CFG 0x10/* rw */ +#define TISTAT 0x14/* r */ +#define TISR 0x18/* rw */ +#define TIER 0x1C/* rw */ +#define TWER 0x20/* rw */ +#define TCLR 0x24/* rw */
include/asm-arm/arch-omap3/cpu.h line 158
Quoted 10 lines
include/asm-arm/arch-omap3/cpu.h new file +10
-0+#define TCRR 0x28/* rw */ +#define TLDR 0x2C/* rw */ +#define TTGR 0x30/* rw */ +#define TWPS 0x34/* r */ +#define TMAR 0x38/* rw */ +#define TCAR1 0x3c/* r */ +#define TSICR 0x40/* rw */ +#define TCAR2 0x44/* r */ +/* enable sys_clk NO-prescale /1 */ +#define GPT_EN ((0<<2)|BIT1|BIT0)
ditto
include/asm-arm/arch-omap3/cpu.h line 165
Quoted 7 lines
include/asm-arm/arch-omap3/cpu.h new file +7
-0+ +/* Watchdog */ +#define WWPS 0x34/* r */ +#define WSPR 0x48/* rw */ +#define WD_UNLOCK1 0xAAAA +#define WD_UNLOCK2 0x5555 +
Best Regards,
J.