blob: 58b29b59878553eba2f493e2314d48596061579c [file] [log] [blame]
Alex Deucher9e05fa12013-01-24 10:06:33 -05001/*
2 * Copyright 2012 Advanced Micro Devices, Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 *
22 * Authors: Alex Deucher
23 */
24#ifndef __CIK_REG_H__
25#define __CIK_REG_H__
26
27#define CIK_DC_GPIO_HPD_MASK 0x65b0
28#define CIK_DC_GPIO_HPD_A 0x65b4
29#define CIK_DC_GPIO_HPD_EN 0x65b8
30#define CIK_DC_GPIO_HPD_Y 0x65bc
31
32/* CUR blocks at 0x6998, 0x7598, 0x10198, 0x10d98, 0x11998, 0x12598 */
33#define CIK_CUR_CONTROL 0x6998
34# define CIK_CURSOR_EN (1 << 0)
35# define CIK_CURSOR_MODE(x) (((x) & 0x3) << 8)
36# define CIK_CURSOR_MONO 0
37# define CIK_CURSOR_24_1 1
38# define CIK_CURSOR_24_8_PRE_MULT 2
39# define CIK_CURSOR_24_8_UNPRE_MULT 3
40# define CIK_CURSOR_2X_MAGNIFY (1 << 16)
41# define CIK_CURSOR_FORCE_MC_ON (1 << 20)
42# define CIK_CURSOR_URGENT_CONTROL(x) (((x) & 0x7) << 24)
43# define CIK_CURSOR_URGENT_ALWAYS 0
44# define CIK_CURSOR_URGENT_1_8 1
45# define CIK_CURSOR_URGENT_1_4 2
46# define CIK_CURSOR_URGENT_3_8 3
47# define CIK_CURSOR_URGENT_1_2 4
48#define CIK_CUR_SURFACE_ADDRESS 0x699c
49# define CIK_CUR_SURFACE_ADDRESS_MASK 0xfffff000
50#define CIK_CUR_SIZE 0x69a0
51#define CIK_CUR_SURFACE_ADDRESS_HIGH 0x69a4
52#define CIK_CUR_POSITION 0x69a8
53#define CIK_CUR_HOT_SPOT 0x69ac
54#define CIK_CUR_COLOR1 0x69b0
55#define CIK_CUR_COLOR2 0x69b4
56#define CIK_CUR_UPDATE 0x69b8
57# define CIK_CURSOR_UPDATE_PENDING (1 << 0)
58# define CIK_CURSOR_UPDATE_TAKEN (1 << 1)
59# define CIK_CURSOR_UPDATE_LOCK (1 << 16)
60# define CIK_CURSOR_DISABLE_MULTIPLE_UPDATE (1 << 24)
61
62#define CIK_ALPHA_CONTROL 0x6af0
63# define CIK_CURSOR_ALPHA_BLND_ENA (1 << 1)
64
Alex Deucherd798f2f2012-07-11 18:02:10 -040065#define CIK_LB_DATA_FORMAT 0x6b00
66# define CIK_INTERLEAVE_EN (1 << 3)
67
Alex Deucher9e05fa12013-01-24 10:06:33 -050068#endif