paul@43 | 1 | /* |
paul@63 | 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@63 | 6 | * This program is free software: you can redistribute it and/or modify |
paul@63 | 7 | * it under the terms of the GNU General Public License as published by |
paul@63 | 8 | * the Free Software Foundation, either version 3 of the License, or |
paul@63 | 9 | * (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@63 | 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
paul@43 | 18 | */ |
paul@43 | 19 | |
paul@43 | 20 | #ifndef __JZ4730_COMPAT_H__ |
paul@43 | 21 | #define __JZ4730_COMPAT_H__ |
paul@43 | 22 | |
paul@43 | 23 | #define REG_CPM_CPCCR REG_CPM_CFCR |
paul@43 | 24 | #define REG_CPM_CPPCR REG_CPM_PLCR1 |
paul@43 | 25 | |
paul@74 | 26 | #define CPM_CPCCR_CE CPM_CFCR_UPE |
paul@43 | 27 | #define CPM_CPCCR_CDIV_BIT CPM_CFCR_IFR_BIT |
paul@43 | 28 | #define CPM_CPCCR_HDIV_BIT CPM_CFCR_SFR_BIT |
paul@43 | 29 | #define CPM_CPCCR_PDIV_BIT CPM_CFCR_PFR_BIT |
paul@43 | 30 | #define CPM_CPCCR_MDIV_BIT CPM_CFCR_LFR_BIT |
paul@43 | 31 | #define CPM_CPCCR_LDIV_BIT CPM_CFCR_MFR_BIT |
paul@43 | 32 | |
paul@43 | 33 | #define CPM_CPPCR_PLLM_BIT CPM_PLCR1_PLL1FD_BIT |
paul@43 | 34 | #define CPM_CPPCR_PLLN_BIT CPM_PLCR1_PLL1RD_BIT |
paul@43 | 35 | #define CPM_CPPCR_PLLOD_BIT CPM_PLCR1_PLL1OD_BIT |
paul@43 | 36 | #define CPM_CPPCR_PLLST_BIT CPM_PLCR1_PLL1ST_BIT |
paul@43 | 37 | #define CPM_CPPCR_PLLEN CPM_PLCR1_PLL1EN |
paul@43 | 38 | |
paul@74 | 39 | #define __cpm_set_ldiv __cpm_set_lcdclk_div |
paul@74 | 40 | |
paul@43 | 41 | #endif /* __JZ4730_COMPAT_H__ */ |