b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * All Rights Reserved |
| 3 | * |
| 4 | * MARVELL CONFIDENTIAL |
| 5 | * Copyright 2012 Marvell International Ltd All Rights Reserved. |
| 6 | * The source code contained or described herein and all documents related to |
| 7 | * the source code ("Material") are owned by Marvell International Ltd or its |
| 8 | * suppliers or licensors. Title to the Material remains with Marvell International Ltd |
| 9 | * or its suppliers and licensors. The Material contains trade secrets and |
| 10 | * proprietary and confidential information of Marvell or its suppliers and |
| 11 | * licensors. The Material is protected by worldwide copyright and trade secret |
| 12 | * laws and treaty provisions. No part of the Material may be used, copied, |
| 13 | * reproduced, modified, published, uploaded, posted, transmitted, distributed, |
| 14 | * or disclosed in any way without Marvell's prior express written permission. |
| 15 | * |
| 16 | * No license under any patent, copyright, trade secret or other intellectual |
| 17 | * property right is granted to or conferred upon you by disclosure or delivery |
| 18 | * of the Materials, either expressly, by implication, inducement, estoppel or |
| 19 | * otherwise. Any license under such intellectual property rights must be |
| 20 | * express and approved by Marvell in writing. |
| 21 | * |
| 22 | */ |
| 23 | |
| 24 | #ifndef __H_ACM_GELATO__ |
| 25 | #define __H_ACM_GELATO__ |
| 26 | |
| 27 | #include "acm_ach.h" |
| 28 | |
| 29 | #define NUM_OF_REGS (sizeof(reg_cache)/sizeof(reg_cache[0])) |
| 30 | #define REG_NUMID_BASE 0 |
| 31 | |
| 32 | typedef struct { |
| 33 | unsigned char reg_index; |
| 34 | unsigned char reg_default; |
| 35 | unsigned short reg_value; |
| 36 | } GELATO_RegisterCache; |
| 37 | |
| 38 | static GELATO_RegisterCache reg_cache[] = { |
| 39 | {0x00, 0x00, 0x00}, {0x01, 0x10, 0x10}, {0x02, 0x66, 0x66}, {0x03, 0x10, 0x10}, |
| 40 | {0x04, 0x06, 0x06}, {0x05, 0x24, 0x24}, {0x06, 0x00, 0x00}, {0x07, 0x00, 0x00}, |
| 41 | {0x08, 0x40, 0x40}, {0x09, 0x07, 0x07}, {0x0a, 0x55, 0x55}, {0x0b, 0x20, 0x20}, |
| 42 | {0x0c, 0x0a, 0x0a}, {0x0d, 0x00, 0x00}, {0x0e, 0x00, 0x00}, {0x0f, 0x00, 0x00}, |
| 43 | {0x10, 0x00, 0x00}, {0x11, 0x01, 0x01}, {0x12, 0x00, 0x00}, {0x13, 0x20, 0x20}, |
| 44 | {0x14, 0x00, 0x00}, {0x15, 0x00, 0x00}, {0x16, 0x03, 0x03}, {0x17, 0x00, 0x00}, |
| 45 | {0x18, 0x00, 0x00}, {0x19, 0xFF, 0xFF}, {0x1a, 0x00, 0x00}, {0x1b, 0x00, 0x00}, |
| 46 | {0x1c, 0x20, 0x20}, {0x1d, 0x00, 0x00}, {0x1e, 0x00, 0x00}, {0x1f, 0x00, 0x00}, |
| 47 | {0x20, 0x00, 0x00}, {0x21, 0x00, 0x00}, {0x22, 0x00, 0x00}, {0x23, 0xEB, 0xEB}, |
| 48 | {0x24, 0xEB, 0xEB}, {0x25, 0x01, 0x01}, {0x26, 0x04, 0x04}, {0x27, 0x00, 0x00}, |
| 49 | {0x28, 0x00, 0x00}, {0x29, 0x80, 0x80}, {0x2a, 0x3F, 0x3F}, {0x2b, 0x00, 0x00}, |
| 50 | {0x2c, 0x00, 0x00}, {0x2d, 0x21, 0x21}, {0x2e, 0x0C, 0x0C}, {0x2f, 0x00, 0x00}, |
| 51 | {0x30, 0x00, 0x00}, {0x31, 0x0C, 0x0C}, {0x32, 0x00, 0x00}, {0x33, 0x00, 0x00}, |
| 52 | {0x34, 0x00, 0x00}, {0x35, 0x00, 0x00}, {0x36, 0x0C, 0x0C}, {0x37, 0x00, 0x00}, |
| 53 | {0x38, 0x00, 0x00}, {0x39, 0x00, 0x00}, {0x3a, 0x00, 0x00}, {0x3b, 0x0C, 0x0C}, |
| 54 | {0x3c, 0x00, 0x00}, {0x3d, 0x00, 0x00}, {0x3e, 0x00, 0x00}, {0x3f, 0x00, 0x00}, |
| 55 | {0x40, 0x0C, 0x0C}, {0x41, 0x00, 0x00}, {0x42, 0x00, 0x00}, {0x43, 0x00, 0x00}, |
| 56 | {0x44, 0x00, 0x00}, {0x45, 0x0C, 0x0C}, {0x46, 0x00, 0x00}, {0x47, 0x00, 0x00}, |
| 57 | {0x48, 0x00, 0x00}, {0x49, 0x00, 0x00}, {0x4a, 0x0C, 0x0C}, {0x4b, 0x00, 0x00}, |
| 58 | {0x4c, 0x00, 0x00}, {0x4d, 0x00, 0x00}, {0x4e, 0x00, 0x00}, {0x4f, 0x0C, 0x0C}, |
| 59 | {0x50, 0x00, 0x00}, {0x51, 0x00, 0x00}, {0x52, 0xF8, 0xF8}, {0x53, 0x07, 0x07}, |
| 60 | {0x54, 0x00, 0x00}, {0x55, 0x00, 0x00}, {0x56, 0x10, 0x10}, {0x57, 0x01, 0x01}, |
| 61 | {0x58, 0x54, 0x54}, {0x59, 0x02, 0x02}, {0x5a, 0xA4, 0xA4}, {0x5b, 0x00, 0x00}, |
| 62 | {0x5c, 0x88, 0x88}, {0x5d, 0x40, 0x40}, {0x5e, 0x40, 0x40}, {0x5f, 0x40, 0x40}, |
| 63 | {0x60, 0x40, 0x40}, {0x61, 0x00, 0x00}, {0x62, 0x00, 0x00}, {0x63, 0x00, 0x00}, |
| 64 | {0x64, 0x00, 0x00}, {0x65, 0x80, 0x80}, {0x66, 0x40, 0x40}, {0x67, 0x40, 0x40}, |
| 65 | {0x68, 0x00, 0x00}, {0x69, 0x00, 0x00}, {0x6a, 0x00, 0x00}, {0x6b, 0x00, 0x00}, |
| 66 | {0x6c, 0x00, 0x00}, {0x6d, 0x70, 0x70}, {0x6e, 0x00, 0x00}, {0x6f, 0x00, 0x00}, // 0x6e, 0x6f are reserved |
| 67 | {0x70, 0x00, 0x00}, {0x71, 0x00, 0x00}, {0x72, 0x00, 0x00}, {0x73, 0xEB, 0xEB}, |
| 68 | {0x74, 0xEB, 0xEB}, {0x75, 0x01, 0x01}, {0x76, 0xF8, 0xF8}, {0x77, 0x07, 0x07}, |
| 69 | {0x78, 0xF4, 0xF4}, {0x79, 0x0B, 0x0B}, {0x7a, 0x00, 0x00}, {0x7b, 0x00, 0x00}, |
| 70 | {0x7c, 0x10, 0x10}, {0x7d, 0x01, 0x01}, {0x7e, 0x54, 0x54}, {0x7f, 0x02, 0x02}, |
| 71 | {0x80, 0xA4, 0xA4}, {0x81, 0x00, 0x00}, {0x82, 0x88, 0x88}, {0x83, 0xB0, 0xB0}, |
| 72 | {0x84, 0x46, 0x46}, {0x85, 0x40, 0x40}, {0x86, 0x40, 0x40}, {0x87, 0x40, 0x40}, |
| 73 | {0x88, 0x40, 0x40}, {0x89, 0x04, 0x04}, {0x8a, 0x00, 0x00}, {0x8b, 0x00, 0x00}, |
| 74 | {0x8c, 0x80, 0x80}, {0x8d, 0x3F, 0x3F}, {0x8e, 0x00, 0x00}, {0x8f, 0x00, 0x00}, |
| 75 | {0x90, 0x21, 0x21}, {0x91, 0x00, 0x00}, {0x92, 0x00, 0x00}, {0x93, 0x00, 0x00}, |
| 76 | {0x94, 0x00, 0x00}, {0x95, 0x00, 0x00}, {0x96, 0x04, 0x04}, {0x97, 0x7F, 0x7F}, |
| 77 | {0x98, 0x40, 0x40}, {0x99, 0x40, 0x40}, {0x9a, 0x00, 0x00}, {0x9b, 0x10, 0x10}, |
| 78 | {0x9c, 0x1A, 0x1A}, {0x9d, 0x7E, 0x7E}, {0x9e, 0x14, 0x14}, {0x9f, 0x3E, 0x3E}, |
| 79 | {0xa0, 0x00, 0x00}, {0xa1, 0x01, 0x01}, {0xa2, 0x00, 0x00}, {0xa3, 0x00, 0x00}, |
| 80 | {0xa4, 0x00, 0x00}, {0xa5, 0x3F, 0x3F}, {0xa6, 0x70, 0x70}, {0xa7, 0x00, 0x00}, |
| 81 | {0xa8, 0x22, 0x22}, {0xa9, 0x00, 0x00}, {0xaa, 0x35, 0x35}, {0xab, 0x00, 0x00}, |
| 82 | {0xac, 0x00, 0x00}, {0xad, 0x00, 0x00}, {0xae, 0x00, 0x00}, {0xaf, 0x00, 0x00}, // 0xaf is reserved |
| 83 | {0xb0, 0x00, 0x00}, {0xb1, 0x00, 0x00}, {0xb2, 0x00, 0x00}, {0xb3, 0x00, 0x00}, |
| 84 | {0xb4, 0x00, 0x00}, {0xb5, 0x00, 0x00}, {0xb6, 0x00, 0x00}, {0xb7, 0x00, 0x00}, |
| 85 | {0xb8, 0x04, 0x04}, {0xb9, 0x00, 0x00}, {0xba, 0x00, 0x00}, {0xbb, 0x01, 0x01}, |
| 86 | {0xbc, 0xA0, 0xA0}, {0xbd, 0x00, 0x00}, {0xbe, 0x00, 0x00}, {0xbf, 0x00, 0x00}, |
| 87 | {0xc0, 0x00, 0x00}, {0xc1, 0x00, 0x00}, {0xc2, 0x00, 0x00}, {0xc3, 0x00, 0x00}, |
| 88 | {0xc4, 0x00, 0x00}, {0xc5, 0x00, 0x00}, {0xc6, 0x00, 0x00}, {0xc7, 0x00, 0x00}, |
| 89 | {0xc8, 0x20, 0x20}, {0xc9, 0x00, 0x00}, {0xca, 0x00, 0x00}, {0xcb, 0x00, 0x00}, |
| 90 | {0xcc, 0x00, 0x00}, {0xcd, 0x00, 0x00}, {0xce, 0x00, 0x00}, {0xcf, 0x40, 0x00}, |
| 91 | {0xd0, 0x00, 0x00}, {0xd1, 0x00, 0x00}, {0xd2, 0x00, 0x00}, {0xd3, 0x00, 0x00}, |
| 92 | {0xd4, 0x65, 0x65}, {0xd5, 0x00, 0x00}, {0xd6, 0x00, 0x00}, {0xd7, 0x00, 0x00}, |
| 93 | {0xd8, 0x00, 0x00}, {0xd9, 0x00, 0x00}, {0xda, 0x84, 0x84}, {0xdb, 0x80, 0x80}, |
| 94 | {0xdc, 0x21, 0x21}, {0xdd, 0x17, 0x17}, {0xde, 0x0D, 0x0D}, {0xdf, 0x05, 0x05}, |
| 95 | {0xe0, 0x4B, 0x4B}, {0xe1, 0x49, 0x49}, {0xe2, 0x30, 0x30}, {0xe3, 0x17, 0x17}, |
| 96 | {0xe4, 0x23, 0x23}, {0xe5, 0x19, 0x19}, {0xe6, 0x0F, 0x0F}, {0xe7, 0x08, 0x08}, |
| 97 | {0xe8, 0x4B, 0x4B}, {0xe9, 0x32, 0x32}, {0xea, 0x19, 0x19}, {0xeb, 0x66, 0x66}, |
| 98 | {0xec, 0x06, 0x06}, {0xed, 0x24, 0x24}, {0xee, 0x00, 0x00}, {0xef, 0x00, 0x00}, |
| 99 | {0xf0, 0x40, 0x40}, {0xf1, 0x07, 0x07}, {0xf2, 0x00, 0x00}, {0xf3, 0x00, 0x00}, |
| 100 | {0xf4, 0x00, 0x00}, {0xf5, 0x00, 0x00}, {0xf6, 0x00, 0x00}, |
| 101 | }; |
| 102 | |
| 103 | #endif |