blob: 4313c7019154a8b39c1f5a7eaa477f80b04bfd8a [file] [log] [blame]
/*
* All Rights Reserved
*
* MARVELL CONFIDENTIAL
* Copyright 2012 Marvell International Ltd All Rights Reserved.
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned by Marvell International Ltd or its
* suppliers or licensors. Title to the Material remains with Marvell International Ltd
* or its suppliers and licensors. The Material contains trade secrets and
* proprietary and confidential information of Marvell or its suppliers and
* licensors. The Material is protected by worldwide copyright and trade secret
* laws and treaty provisions. No part of the Material may be used, copied,
* reproduced, modified, published, uploaded, posted, transmitted, distributed,
* or disclosed in any way without Marvell's prior express written permission.
*
* No license under any patent, copyright, trade secret or other intellectual
* property right is granted to or conferred upon you by disclosure or delivery
* of the Materials, either expressly, by implication, inducement, estoppel or
* otherwise. Any license under such intellectual property rights must be
* express and approved by Marvell in writing.
*
*/
#ifndef __H_ACM_GELATO__
#define __H_ACM_GELATO__
#include "acm_ach.h"
#define NUM_OF_REGS (sizeof(reg_cache)/sizeof(reg_cache[0]))
#define REG_NUMID_BASE 0
typedef struct {
unsigned char reg_index;
unsigned char reg_default;
unsigned short reg_value;
} GELATO_RegisterCache;
static GELATO_RegisterCache reg_cache[] = {
{0x00, 0x00, 0x00}, {0x01, 0x10, 0x10}, {0x02, 0x66, 0x66}, {0x03, 0x10, 0x10},
{0x04, 0x06, 0x06}, {0x05, 0x24, 0x24}, {0x06, 0x00, 0x00}, {0x07, 0x00, 0x00},
{0x08, 0x40, 0x40}, {0x09, 0x07, 0x07}, {0x0a, 0x55, 0x55}, {0x0b, 0x20, 0x20},
{0x0c, 0x0a, 0x0a}, {0x0d, 0x00, 0x00}, {0x0e, 0x00, 0x00}, {0x0f, 0x00, 0x00},
{0x10, 0x00, 0x00}, {0x11, 0x01, 0x01}, {0x12, 0x00, 0x00}, {0x13, 0x20, 0x20},
{0x14, 0x00, 0x00}, {0x15, 0x00, 0x00}, {0x16, 0x03, 0x03}, {0x17, 0x00, 0x00},
{0x18, 0x00, 0x00}, {0x19, 0xFF, 0xFF}, {0x1a, 0x00, 0x00}, {0x1b, 0x00, 0x00},
{0x1c, 0x20, 0x20}, {0x1d, 0x00, 0x00}, {0x1e, 0x00, 0x00}, {0x1f, 0x00, 0x00},
{0x20, 0x00, 0x00}, {0x21, 0x00, 0x00}, {0x22, 0x00, 0x00}, {0x23, 0xEB, 0xEB},
{0x24, 0xEB, 0xEB}, {0x25, 0x01, 0x01}, {0x26, 0x04, 0x04}, {0x27, 0x00, 0x00},
{0x28, 0x00, 0x00}, {0x29, 0x80, 0x80}, {0x2a, 0x3F, 0x3F}, {0x2b, 0x00, 0x00},
{0x2c, 0x00, 0x00}, {0x2d, 0x21, 0x21}, {0x2e, 0x0C, 0x0C}, {0x2f, 0x00, 0x00},
{0x30, 0x00, 0x00}, {0x31, 0x0C, 0x0C}, {0x32, 0x00, 0x00}, {0x33, 0x00, 0x00},
{0x34, 0x00, 0x00}, {0x35, 0x00, 0x00}, {0x36, 0x0C, 0x0C}, {0x37, 0x00, 0x00},
{0x38, 0x00, 0x00}, {0x39, 0x00, 0x00}, {0x3a, 0x00, 0x00}, {0x3b, 0x0C, 0x0C},
{0x3c, 0x00, 0x00}, {0x3d, 0x00, 0x00}, {0x3e, 0x00, 0x00}, {0x3f, 0x00, 0x00},
{0x40, 0x0C, 0x0C}, {0x41, 0x00, 0x00}, {0x42, 0x00, 0x00}, {0x43, 0x00, 0x00},
{0x44, 0x00, 0x00}, {0x45, 0x0C, 0x0C}, {0x46, 0x00, 0x00}, {0x47, 0x00, 0x00},
{0x48, 0x00, 0x00}, {0x49, 0x00, 0x00}, {0x4a, 0x0C, 0x0C}, {0x4b, 0x00, 0x00},
{0x4c, 0x00, 0x00}, {0x4d, 0x00, 0x00}, {0x4e, 0x00, 0x00}, {0x4f, 0x0C, 0x0C},
{0x50, 0x00, 0x00}, {0x51, 0x00, 0x00}, {0x52, 0xF8, 0xF8}, {0x53, 0x07, 0x07},
{0x54, 0x00, 0x00}, {0x55, 0x00, 0x00}, {0x56, 0x10, 0x10}, {0x57, 0x01, 0x01},
{0x58, 0x54, 0x54}, {0x59, 0x02, 0x02}, {0x5a, 0xA4, 0xA4}, {0x5b, 0x00, 0x00},
{0x5c, 0x88, 0x88}, {0x5d, 0x40, 0x40}, {0x5e, 0x40, 0x40}, {0x5f, 0x40, 0x40},
{0x60, 0x40, 0x40}, {0x61, 0x00, 0x00}, {0x62, 0x00, 0x00}, {0x63, 0x00, 0x00},
{0x64, 0x00, 0x00}, {0x65, 0x80, 0x80}, {0x66, 0x40, 0x40}, {0x67, 0x40, 0x40},
{0x68, 0x00, 0x00}, {0x69, 0x00, 0x00}, {0x6a, 0x00, 0x00}, {0x6b, 0x00, 0x00},
{0x6c, 0x00, 0x00}, {0x6d, 0x70, 0x70}, {0x6e, 0x00, 0x00}, {0x6f, 0x00, 0x00}, // 0x6e, 0x6f are reserved
{0x70, 0x00, 0x00}, {0x71, 0x00, 0x00}, {0x72, 0x00, 0x00}, {0x73, 0xEB, 0xEB},
{0x74, 0xEB, 0xEB}, {0x75, 0x01, 0x01}, {0x76, 0xF8, 0xF8}, {0x77, 0x07, 0x07},
{0x78, 0xF4, 0xF4}, {0x79, 0x0B, 0x0B}, {0x7a, 0x00, 0x00}, {0x7b, 0x00, 0x00},
{0x7c, 0x10, 0x10}, {0x7d, 0x01, 0x01}, {0x7e, 0x54, 0x54}, {0x7f, 0x02, 0x02},
{0x80, 0xA4, 0xA4}, {0x81, 0x00, 0x00}, {0x82, 0x88, 0x88}, {0x83, 0xB0, 0xB0},
{0x84, 0x46, 0x46}, {0x85, 0x40, 0x40}, {0x86, 0x40, 0x40}, {0x87, 0x40, 0x40},
{0x88, 0x40, 0x40}, {0x89, 0x04, 0x04}, {0x8a, 0x00, 0x00}, {0x8b, 0x00, 0x00},
{0x8c, 0x80, 0x80}, {0x8d, 0x3F, 0x3F}, {0x8e, 0x00, 0x00}, {0x8f, 0x00, 0x00},
{0x90, 0x21, 0x21}, {0x91, 0x00, 0x00}, {0x92, 0x00, 0x00}, {0x93, 0x00, 0x00},
{0x94, 0x00, 0x00}, {0x95, 0x00, 0x00}, {0x96, 0x04, 0x04}, {0x97, 0x7F, 0x7F},
{0x98, 0x40, 0x40}, {0x99, 0x40, 0x40}, {0x9a, 0x00, 0x00}, {0x9b, 0x10, 0x10},
{0x9c, 0x1A, 0x1A}, {0x9d, 0x7E, 0x7E}, {0x9e, 0x14, 0x14}, {0x9f, 0x3E, 0x3E},
{0xa0, 0x00, 0x00}, {0xa1, 0x01, 0x01}, {0xa2, 0x00, 0x00}, {0xa3, 0x00, 0x00},
{0xa4, 0x00, 0x00}, {0xa5, 0x3F, 0x3F}, {0xa6, 0x70, 0x70}, {0xa7, 0x00, 0x00},
{0xa8, 0x22, 0x22}, {0xa9, 0x00, 0x00}, {0xaa, 0x35, 0x35}, {0xab, 0x00, 0x00},
{0xac, 0x00, 0x00}, {0xad, 0x00, 0x00}, {0xae, 0x00, 0x00}, {0xaf, 0x00, 0x00}, // 0xaf is reserved
{0xb0, 0x00, 0x00}, {0xb1, 0x00, 0x00}, {0xb2, 0x00, 0x00}, {0xb3, 0x00, 0x00},
{0xb4, 0x00, 0x00}, {0xb5, 0x00, 0x00}, {0xb6, 0x00, 0x00}, {0xb7, 0x00, 0x00},
{0xb8, 0x04, 0x04}, {0xb9, 0x00, 0x00}, {0xba, 0x00, 0x00}, {0xbb, 0x01, 0x01},
{0xbc, 0xA0, 0xA0}, {0xbd, 0x00, 0x00}, {0xbe, 0x00, 0x00}, {0xbf, 0x00, 0x00},
{0xc0, 0x00, 0x00}, {0xc1, 0x00, 0x00}, {0xc2, 0x00, 0x00}, {0xc3, 0x00, 0x00},
{0xc4, 0x00, 0x00}, {0xc5, 0x00, 0x00}, {0xc6, 0x00, 0x00}, {0xc7, 0x00, 0x00},
{0xc8, 0x20, 0x20}, {0xc9, 0x00, 0x00}, {0xca, 0x00, 0x00}, {0xcb, 0x00, 0x00},
{0xcc, 0x00, 0x00}, {0xcd, 0x00, 0x00}, {0xce, 0x00, 0x00}, {0xcf, 0x40, 0x00},
{0xd0, 0x00, 0x00}, {0xd1, 0x00, 0x00}, {0xd2, 0x00, 0x00}, {0xd3, 0x00, 0x00},
{0xd4, 0x65, 0x65}, {0xd5, 0x00, 0x00}, {0xd6, 0x00, 0x00}, {0xd7, 0x00, 0x00},
{0xd8, 0x00, 0x00}, {0xd9, 0x00, 0x00}, {0xda, 0x84, 0x84}, {0xdb, 0x80, 0x80},
{0xdc, 0x21, 0x21}, {0xdd, 0x17, 0x17}, {0xde, 0x0D, 0x0D}, {0xdf, 0x05, 0x05},
{0xe0, 0x4B, 0x4B}, {0xe1, 0x49, 0x49}, {0xe2, 0x30, 0x30}, {0xe3, 0x17, 0x17},
{0xe4, 0x23, 0x23}, {0xe5, 0x19, 0x19}, {0xe6, 0x0F, 0x0F}, {0xe7, 0x08, 0x08},
{0xe8, 0x4B, 0x4B}, {0xe9, 0x32, 0x32}, {0xea, 0x19, 0x19}, {0xeb, 0x66, 0x66},
{0xec, 0x06, 0x06}, {0xed, 0x24, 0x24}, {0xee, 0x00, 0x00}, {0xef, 0x00, 0x00},
{0xf0, 0x40, 0x40}, {0xf1, 0x07, 0x07}, {0xf2, 0x00, 0x00}, {0xf3, 0x00, 0x00},
{0xf4, 0x00, 0x00}, {0xf5, 0x00, 0x00}, {0xf6, 0x00, 0x00},
};
#endif