1 // SPDX-License-Identifier: GPL-2.0-or-later << 2 /* 1 /* 3 * Aztech AZT1605 Driver 2 * Aztech AZT1605 Driver 4 * Copyright (C) 2007,2010 Rene Herman 3 * Copyright (C) 2007,2010 Rene Herman >> 4 * >> 5 * This program is free software: you can redistribute it and/or modify >> 6 * it under the terms of the GNU General Public License as published by >> 7 * the Free Software Foundation, either version 2 of the License, or >> 8 * (at your option) any later version. >> 9 * >> 10 * This program is distributed in the hope that it will be useful, >> 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of >> 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> 13 * GNU General Public License for more details. >> 14 * >> 15 * You should have received a copy of the GNU General Public License >> 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. >> 17 * 5 */ 18 */ 6 19 7 #define AZT1605 20 #define AZT1605 8 21 9 #define CRD_NAME "Aztech AZT1605" 22 #define CRD_NAME "Aztech AZT1605" 10 #define DRV_NAME "AZT1605" 23 #define DRV_NAME "AZT1605" 11 #define DEV_NAME "azt1605" 24 #define DEV_NAME "azt1605" 12 25 13 #define GALAXY_DSP_MAJOR 2 26 #define GALAXY_DSP_MAJOR 2 14 #define GALAXY_DSP_MINOR 1 27 #define GALAXY_DSP_MINOR 1 15 28 16 #define GALAXY_CONFIG_SIZE 3 29 #define GALAXY_CONFIG_SIZE 3 17 30 18 /* 31 /* 19 * 24-bit config register 32 * 24-bit config register 20 */ 33 */ 21 34 22 #define GALAXY_CONFIG_SBA_220 (0 << 35 #define GALAXY_CONFIG_SBA_220 (0 << 0) 23 #define GALAXY_CONFIG_SBA_240 (1 << 36 #define GALAXY_CONFIG_SBA_240 (1 << 0) 24 #define GALAXY_CONFIG_SBA_260 (2 << 37 #define GALAXY_CONFIG_SBA_260 (2 << 0) 25 #define GALAXY_CONFIG_SBA_280 (3 << 38 #define GALAXY_CONFIG_SBA_280 (3 << 0) 26 #define GALAXY_CONFIG_SBA_MASK GALAXY 39 #define GALAXY_CONFIG_SBA_MASK GALAXY_CONFIG_SBA_280 27 40 28 #define GALAXY_CONFIG_MPUA_300 (0 << 41 #define GALAXY_CONFIG_MPUA_300 (0 << 2) 29 #define GALAXY_CONFIG_MPUA_330 (1 << 42 #define GALAXY_CONFIG_MPUA_330 (1 << 2) 30 43 31 #define GALAXY_CONFIG_MPU_ENABLE (1 << 44 #define GALAXY_CONFIG_MPU_ENABLE (1 << 3) 32 45 33 #define GALAXY_CONFIG_GAME_ENABLE (1 << 46 #define GALAXY_CONFIG_GAME_ENABLE (1 << 4) 34 47 35 #define GALAXY_CONFIG_CD_PANASONIC (1 << 48 #define GALAXY_CONFIG_CD_PANASONIC (1 << 5) 36 #define GALAXY_CONFIG_CD_MITSUMI (1 << 49 #define GALAXY_CONFIG_CD_MITSUMI (1 << 6) 37 #define GALAXY_CONFIG_CD_MASK (\ 50 #define GALAXY_CONFIG_CD_MASK (\ 38 GALAXY_CONFIG_CD_PANASONIC | GALAXY_CO 51 GALAXY_CONFIG_CD_PANASONIC | GALAXY_CONFIG_CD_MITSUMI) 39 52 40 #define GALAXY_CONFIG_UNUSED (1 << 53 #define GALAXY_CONFIG_UNUSED (1 << 7) 41 #define GALAXY_CONFIG_UNUSED_MASK GALAXY 54 #define GALAXY_CONFIG_UNUSED_MASK GALAXY_CONFIG_UNUSED 42 55 43 #define GALAXY_CONFIG_SBIRQ_2 (1 << 56 #define GALAXY_CONFIG_SBIRQ_2 (1 << 8) 44 #define GALAXY_CONFIG_SBIRQ_3 (1 << 57 #define GALAXY_CONFIG_SBIRQ_3 (1 << 9) 45 #define GALAXY_CONFIG_SBIRQ_5 (1 << 58 #define GALAXY_CONFIG_SBIRQ_5 (1 << 10) 46 #define GALAXY_CONFIG_SBIRQ_7 (1 << 59 #define GALAXY_CONFIG_SBIRQ_7 (1 << 11) 47 60 48 #define GALAXY_CONFIG_MPUIRQ_2 (1 << 61 #define GALAXY_CONFIG_MPUIRQ_2 (1 << 12) 49 #define GALAXY_CONFIG_MPUIRQ_3 (1 << 62 #define GALAXY_CONFIG_MPUIRQ_3 (1 << 13) 50 #define GALAXY_CONFIG_MPUIRQ_5 (1 << 63 #define GALAXY_CONFIG_MPUIRQ_5 (1 << 14) 51 #define GALAXY_CONFIG_MPUIRQ_7 (1 << 64 #define GALAXY_CONFIG_MPUIRQ_7 (1 << 15) 52 65 53 #define GALAXY_CONFIG_WSSA_530 (0 << 66 #define GALAXY_CONFIG_WSSA_530 (0 << 16) 54 #define GALAXY_CONFIG_WSSA_604 (1 << 67 #define GALAXY_CONFIG_WSSA_604 (1 << 16) 55 #define GALAXY_CONFIG_WSSA_E80 (2 << 68 #define GALAXY_CONFIG_WSSA_E80 (2 << 16) 56 #define GALAXY_CONFIG_WSSA_F40 (3 << 69 #define GALAXY_CONFIG_WSSA_F40 (3 << 16) 57 70 58 #define GALAXY_CONFIG_WSS_ENABLE (1 << 71 #define GALAXY_CONFIG_WSS_ENABLE (1 << 18) 59 72 60 #define GALAXY_CONFIG_CDIRQ_11 (1 << 73 #define GALAXY_CONFIG_CDIRQ_11 (1 << 19) 61 #define GALAXY_CONFIG_CDIRQ_12 (1 << 74 #define GALAXY_CONFIG_CDIRQ_12 (1 << 20) 62 #define GALAXY_CONFIG_CDIRQ_15 (1 << 75 #define GALAXY_CONFIG_CDIRQ_15 (1 << 21) 63 #define GALAXY_CONFIG_CDIRQ_MASK (\ 76 #define GALAXY_CONFIG_CDIRQ_MASK (\ 64 GALAXY_CONFIG_CDIRQ_11 | GALAXY_CONFIG 77 GALAXY_CONFIG_CDIRQ_11 | GALAXY_CONFIG_CDIRQ_12 |\ 65 GALAXY_CONFIG_CDIRQ_15) 78 GALAXY_CONFIG_CDIRQ_15) 66 79 67 #define GALAXY_CONFIG_CDDMA_DISABLE (0 << 80 #define GALAXY_CONFIG_CDDMA_DISABLE (0 << 22) 68 #define GALAXY_CONFIG_CDDMA_0 (1 << 81 #define GALAXY_CONFIG_CDDMA_0 (1 << 22) 69 #define GALAXY_CONFIG_CDDMA_1 (2 << 82 #define GALAXY_CONFIG_CDDMA_1 (2 << 22) 70 #define GALAXY_CONFIG_CDDMA_3 (3 << 83 #define GALAXY_CONFIG_CDDMA_3 (3 << 22) 71 #define GALAXY_CONFIG_CDDMA_MASK GALAXY 84 #define GALAXY_CONFIG_CDDMA_MASK GALAXY_CONFIG_CDDMA_3 72 85 73 #define GALAXY_CONFIG_MASK (\ 86 #define GALAXY_CONFIG_MASK (\ 74 GALAXY_CONFIG_SBA_MASK | GALAXY_CONFIG 87 GALAXY_CONFIG_SBA_MASK | GALAXY_CONFIG_CD_MASK |\ 75 GALAXY_CONFIG_UNUSED_MASK | GALAXY_CON 88 GALAXY_CONFIG_UNUSED_MASK | GALAXY_CONFIG_CDIRQ_MASK |\ 76 GALAXY_CONFIG_CDDMA_MASK) 89 GALAXY_CONFIG_CDDMA_MASK) 77 90 78 #include "galaxy.c" 91 #include "galaxy.c" 79 92
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.