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