12874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 2f7018c21STomi Valkeinen /* 3f7018c21STomi Valkeinen * drivers/video/geode/video_cs5530.h 4f7018c21STomi Valkeinen * -- CS5530 video device 5f7018c21STomi Valkeinen * 6f7018c21STomi Valkeinen * Copyright (C) 2005 Arcom Control Systems Ltd. 7f7018c21STomi Valkeinen * 8f7018c21STomi Valkeinen * Based on AMD's original 2.4 driver: 9f7018c21STomi Valkeinen * Copyright (C) 2004 Advanced Micro Devices, Inc. 10f7018c21STomi Valkeinen */ 11f7018c21STomi Valkeinen #ifndef __VIDEO_CS5530_H__ 12f7018c21STomi Valkeinen #define __VIDEO_CS5530_H__ 13f7018c21STomi Valkeinen 1416379ad8SJulia Lawall extern const struct geode_vid_ops cs5530_vid_ops; 15f7018c21STomi Valkeinen 16f7018c21STomi Valkeinen /* CS5530 Video device registers */ 17f7018c21STomi Valkeinen 18f7018c21STomi Valkeinen #define CS5530_VIDEO_CONFIG 0x0000 19f7018c21STomi Valkeinen # define CS5530_VCFG_VID_EN 0x00000001 20f7018c21STomi Valkeinen # define CS5530_VCFG_VID_REG_UPDATE 0x00000002 21f7018c21STomi Valkeinen # define CS5530_VCFG_VID_INP_FORMAT 0x0000000C 22f7018c21STomi Valkeinen # define CS5530_VCFG_8_BIT_4_2_0 0x00000004 23f7018c21STomi Valkeinen # define CS5530_VCFG_16_BIT_4_2_0 0x00000008 24f7018c21STomi Valkeinen # define CS5530_VCFG_GV_SEL 0x00000010 25f7018c21STomi Valkeinen # define CS5530_VCFG_CSC_BYPASS 0x00000020 26f7018c21STomi Valkeinen # define CS5530_VCFG_X_FILTER_EN 0x00000040 27f7018c21STomi Valkeinen # define CS5530_VCFG_Y_FILTER_EN 0x00000080 28f7018c21STomi Valkeinen # define CS5530_VCFG_LINE_SIZE_LOWER_MASK 0x0000FF00 29f7018c21STomi Valkeinen # define CS5530_VCFG_INIT_READ_MASK 0x01FF0000 30f7018c21STomi Valkeinen # define CS5530_VCFG_EARLY_VID_RDY 0x02000000 31f7018c21STomi Valkeinen # define CS5530_VCFG_LINE_SIZE_UPPER 0x08000000 32f7018c21STomi Valkeinen # define CS5530_VCFG_4_2_0_MODE 0x10000000 33f7018c21STomi Valkeinen # define CS5530_VCFG_16_BIT_EN 0x20000000 34f7018c21STomi Valkeinen # define CS5530_VCFG_HIGH_SPD_INT 0x40000000 35f7018c21STomi Valkeinen 36f7018c21STomi Valkeinen #define CS5530_DISPLAY_CONFIG 0x0004 37f7018c21STomi Valkeinen # define CS5530_DCFG_DIS_EN 0x00000001 38f7018c21STomi Valkeinen # define CS5530_DCFG_HSYNC_EN 0x00000002 39f7018c21STomi Valkeinen # define CS5530_DCFG_VSYNC_EN 0x00000004 40f7018c21STomi Valkeinen # define CS5530_DCFG_DAC_BL_EN 0x00000008 41f7018c21STomi Valkeinen # define CS5530_DCFG_DAC_PWR_EN 0x00000020 42f7018c21STomi Valkeinen # define CS5530_DCFG_FP_PWR_EN 0x00000040 43f7018c21STomi Valkeinen # define CS5530_DCFG_FP_DATA_EN 0x00000080 44f7018c21STomi Valkeinen # define CS5530_DCFG_CRT_HSYNC_POL 0x00000100 45f7018c21STomi Valkeinen # define CS5530_DCFG_CRT_VSYNC_POL 0x00000200 46f7018c21STomi Valkeinen # define CS5530_DCFG_FP_HSYNC_POL 0x00000400 47f7018c21STomi Valkeinen # define CS5530_DCFG_FP_VSYNC_POL 0x00000800 48f7018c21STomi Valkeinen # define CS5530_DCFG_XGA_FP 0x00001000 49f7018c21STomi Valkeinen # define CS5530_DCFG_FP_DITH_EN 0x00002000 50f7018c21STomi Valkeinen # define CS5530_DCFG_CRT_SYNC_SKW_MASK 0x0001C000 51f7018c21STomi Valkeinen # define CS5530_DCFG_CRT_SYNC_SKW_INIT 0x00010000 52f7018c21STomi Valkeinen # define CS5530_DCFG_PWR_SEQ_DLY_MASK 0x000E0000 53f7018c21STomi Valkeinen # define CS5530_DCFG_PWR_SEQ_DLY_INIT 0x00080000 54f7018c21STomi Valkeinen # define CS5530_DCFG_VG_CK 0x00100000 55f7018c21STomi Valkeinen # define CS5530_DCFG_GV_PAL_BYP 0x00200000 56f7018c21STomi Valkeinen # define CS5530_DCFG_DDC_SCL 0x00400000 57f7018c21STomi Valkeinen # define CS5530_DCFG_DDC_SDA 0x00800000 58f7018c21STomi Valkeinen # define CS5530_DCFG_DDC_OE 0x01000000 59f7018c21STomi Valkeinen # define CS5530_DCFG_16_BIT_EN 0x02000000 60f7018c21STomi Valkeinen 61f7018c21STomi Valkeinen #define CS5530_VIDEO_X_POS 0x0008 62f7018c21STomi Valkeinen #define CS5530_VIDEO_Y_POS 0x000C 63f7018c21STomi Valkeinen #define CS5530_VIDEO_SCALE 0x0010 64f7018c21STomi Valkeinen #define CS5530_VIDEO_COLOR_KEY 0x0014 65f7018c21STomi Valkeinen #define CS5530_VIDEO_COLOR_MASK 0x0018 66f7018c21STomi Valkeinen #define CS5530_PALETTE_ADDRESS 0x001C 67f7018c21STomi Valkeinen #define CS5530_PALETTE_DATA 0x0020 68f7018c21STomi Valkeinen #define CS5530_DOT_CLK_CONFIG 0x0024 69f7018c21STomi Valkeinen #define CS5530_CRCSIG_TFT_TV 0x0028 70f7018c21STomi Valkeinen 71f7018c21STomi Valkeinen #endif /* !__VIDEO_CS5530_H__ */ 72