/*
* ispreg.h
*
* TI OMAP3 ISP - Registers definitions
*
* Copyright (C) 2010 Nokia Corporation
* Copyright (C) 2009 Texas Instruments, Inc
*
* Contacts: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
* Sakari Ailus <sakari.ailus@iki.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#ifndef OMAP3_ISP_REG_H
#define OMAP3_ISP_REG_H
#define CM_CAM_MCLK_HZ 172800000 /* Hz */
/* ISP module register offset */
#define ISP_REVISION (0x000)
#define ISP_SYSCONFIG (0x004)
#define ISP_SYSSTATUS (0x008)
#define ISP_IRQ0ENABLE (0x00C)
#define ISP_IRQ0STATUS (0x010)
#define ISP_IRQ1ENABLE (0x014)
#define ISP_IRQ1STATUS (0x018)
#define ISP_TCTRL_GRESET_LENGTH (0x030)
#define ISP_TCTRL_PSTRB_REPLAY (0x034)
#define ISP_CTRL (0x040)
#define ISP_SECURE (0x044)
#define ISP_TCTRL_CTRL (0x050)
#define ISP_TCTRL_FRAME (0x054)
#define ISP_TCTRL_PSTRB_DELAY (0x058)
#define ISP_TCTRL_STRB_DELAY (0x05C)
#define ISP_TCTRL_SHUT_DELAY (0x060)
#define ISP_TCTRL_PSTRB_LENGTH (0x064)
#define ISP_TCTRL_STRB_LENGTH (0x068)
#define ISP_TCTRL_SHUT_LENGTH (0x06C)
#define ISP_PING_PONG_ADDR (0x070)
#define ISP_PING_PONG_MEM_RANGE (0x074)
#define ISP_PING_PONG_BUF_SIZE (0x078)
/* CCP2 receiver registers */
#define ISPCCP2_REVISION (0x000)
#define ISPCCP2_SYSCONFIG (0x004)
#define ISPCCP2_SYSCONFIG_SOFT_RESET (1 << 1)
#define ISPCCP2_SYSCONFIG_AUTO_IDLE 0x1
#define ISPCCP2_SYSCONFIG_MSTANDBY_MODE_SHIFT 12
#define ISPCCP2_SYSCONFIG_MSTANDBY_MODE_FORCE \
(0x0 << ISPCCP2_SYSCONFIG_MSTANDBY_MODE_SHIFT)
#define ISPCCP2_SYSCONFIG_MSTANDBY_MODE_NO \
(0x1 << ISPCCP2_SYSCONFIG_MSTANDBY_MODE_SHIFT)
#define ISPCCP2_SYSCONFIG_MSTANDBY_MODE_SMART \
(0x2 << ISPCCP2_SYSCONFIG_MSTANDBY_MODE_SHIFT)
#define ISPCCP2_SYSSTATU