1 /* 2 * Compatibility definitions for using jz4740 code with the jz4730. 3 * 4 * Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk> 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef __JZ4730_COMPAT_H__ 21 #define __JZ4730_COMPAT_H__ 22 23 #define REG_CPM_CPCCR REG_CPM_CFCR 24 #define REG_CPM_CPPCR REG_CPM_PLCR1 25 26 #define CPM_CPCCR_CDIV_BIT CPM_CFCR_IFR_BIT 27 #define CPM_CPCCR_HDIV_BIT CPM_CFCR_SFR_BIT 28 #define CPM_CPCCR_PDIV_BIT CPM_CFCR_PFR_BIT 29 #define CPM_CPCCR_MDIV_BIT CPM_CFCR_LFR_BIT 30 #define CPM_CPCCR_LDIV_BIT CPM_CFCR_MFR_BIT 31 32 #define CPM_CPPCR_PLLM_BIT CPM_PLCR1_PLL1FD_BIT 33 #define CPM_CPPCR_PLLN_BIT CPM_PLCR1_PLL1RD_BIT 34 #define CPM_CPPCR_PLLOD_BIT CPM_PLCR1_PLL1OD_BIT 35 #define CPM_CPPCR_PLLST_BIT CPM_PLCR1_PLL1ST_BIT 36 #define CPM_CPPCR_PLLEN CPM_PLCR1_PLL1EN 37 38 #endif /* __JZ4730_COMPAT_H__ */