1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/include/jz4730_compat.h Tue Jun 09 23:55:00 2015 +0200
1.3 @@ -0,0 +1,40 @@
1.4 +/*
1.5 + * Compatibility definitions for using jz4740 code with the jz4730
1.6 + *
1.7 + * Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
1.8 + *
1.9 + * This program is free software; you can redistribute it and/or
1.10 + * modify it under the terms of the GNU General Public License
1.11 + * as published by the Free Software Foundation; either version
1.12 + * 3 of the License, or (at your option) any later version.
1.13 + *
1.14 + * This program is distributed in the hope that it will be useful,
1.15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.17 + * GNU General Public License for more details.
1.18 + *
1.19 + * You should have received a copy of the GNU General Public License
1.20 + * along with this program; if not, write to the Free Software
1.21 + * Foundation, Inc., 51 Franklin Street, Fifth Floor,
1.22 + * Boston, MA 02110-1301, USA
1.23 + */
1.24 +
1.25 +#ifndef __JZ4730_COMPAT_H__
1.26 +#define __JZ4730_COMPAT_H__
1.27 +
1.28 +#define REG_CPM_CPCCR REG_CPM_CFCR
1.29 +#define REG_CPM_CPPCR REG_CPM_PLCR1
1.30 +
1.31 +#define CPM_CPCCR_CDIV_BIT CPM_CFCR_IFR_BIT
1.32 +#define CPM_CPCCR_HDIV_BIT CPM_CFCR_SFR_BIT
1.33 +#define CPM_CPCCR_PDIV_BIT CPM_CFCR_PFR_BIT
1.34 +#define CPM_CPCCR_MDIV_BIT CPM_CFCR_LFR_BIT
1.35 +#define CPM_CPCCR_LDIV_BIT CPM_CFCR_MFR_BIT
1.36 +
1.37 +#define CPM_CPPCR_PLLM_BIT CPM_PLCR1_PLL1FD_BIT
1.38 +#define CPM_CPPCR_PLLN_BIT CPM_PLCR1_PLL1RD_BIT
1.39 +#define CPM_CPPCR_PLLOD_BIT CPM_PLCR1_PLL1OD_BIT
1.40 +#define CPM_CPPCR_PLLST_BIT CPM_PLCR1_PLL1ST_BIT
1.41 +#define CPM_CPPCR_PLLEN CPM_PLCR1_PLL1EN
1.42 +
1.43 +#endif /* __JZ4730_COMPAT_H__ */