blob: f7fa004efd025b925ada2a6b5f8844c2c833de1e [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/*
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_PIANOSA__
25#define __H_ACM_PIANOSA__
26
27#include "acm_ach.h"
28
29#define NUM_OF_REGS (sizeof(reg_cache)/sizeof(reg_cache[0]))
30#define PIANOSA_ID_REG 0
31
32typedef struct {
33 unsigned char reg_index;
34 unsigned char reg_default;
35 unsigned char reg_value;
36// Field of reg_prior represent when will this register be reset;
37// 0x00 --- with this value, the register will not be reset,
38// 0x01~0xff --- with these values, the register will be reset with ascending sequence;
39// If someone would like to modify the resetting sequences in the table,
40// only need to modify this field in reg_cache.
41 unsigned char reg_prior;
42} Pianosa_RegisterCache;
43
44static Pianosa_RegisterCache reg_cache[] = {
45#ifdef CODEC_ELBA
46 {0x48, 0x00, 0x00, 0x01}, {0x61, 0xCE, 0xCE, 0x01}, {0x62, 0x30, 0x30, 0x01}
47#endif
48#ifdef CODEC_GELATO
49 {0x52, 0x00, 0x00, 0x01}
50#endif
51};
52
53#endif