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 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 9 * 3 of the License, or (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, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * Boston, MA 02110-1301, USA 20 */ 21 22 #ifndef __JZ4730_COMPAT_H__ 23 #define __JZ4730_COMPAT_H__ 24 25 #define REG_CPM_CPCCR REG_CPM_CFCR 26 #define REG_CPM_CPPCR REG_CPM_PLCR1 27 28 #define CPM_CPCCR_CDIV_BIT CPM_CFCR_IFR_BIT 29 #define CPM_CPCCR_HDIV_BIT CPM_CFCR_SFR_BIT 30 #define CPM_CPCCR_PDIV_BIT CPM_CFCR_PFR_BIT 31 #define CPM_CPCCR_MDIV_BIT CPM_CFCR_LFR_BIT 32 #define CPM_CPCCR_LDIV_BIT CPM_CFCR_MFR_BIT 33 34 #define CPM_CPPCR_PLLM_BIT CPM_PLCR1_PLL1FD_BIT 35 #define CPM_CPPCR_PLLN_BIT CPM_PLCR1_PLL1RD_BIT 36 #define CPM_CPPCR_PLLOD_BIT CPM_PLCR1_PLL1OD_BIT 37 #define CPM_CPPCR_PLLST_BIT CPM_PLCR1_PLL1ST_BIT 38 #define CPM_CPPCR_PLLEN CPM_PLCR1_PLL1EN 39 40 #endif /* __JZ4730_COMPAT_H__ */