1.1 --- a/include/jz4730_compat.h Sun Jul 09 19:04:49 2017 +0200
1.2 +++ b/include/jz4730_compat.h Tue Jul 11 00:03:30 2017 +0200
1.3 @@ -1,7 +1,7 @@
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 + * Copyright (C) 2015, 2017 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software: you can redistribute it and/or modify
1.11 * it under the terms of the GNU General Public License as published by
1.12 @@ -20,9 +20,6 @@
1.13 #ifndef __JZ4730_COMPAT_H__
1.14 #define __JZ4730_COMPAT_H__
1.15
1.16 -#define REG_CPM_CPCCR REG_CPM_CFCR
1.17 -#define REG_CPM_CPPCR REG_CPM_PLCR1
1.18 -
1.19 #define CPM_CPCCR_CE CPM_CFCR_UPE
1.20 #define CPM_CPCCR_CDIV_BIT CPM_CFCR_IFR_BIT
1.21 #define CPM_CPCCR_HDIV_BIT CPM_CFCR_SFR_BIT
1.22 @@ -30,12 +27,16 @@
1.23 #define CPM_CPCCR_MDIV_BIT CPM_CFCR_LFR_BIT
1.24 #define CPM_CPCCR_LDIV_BIT CPM_CFCR_MFR_BIT
1.25
1.26 +#define CPM_CPCCR_LDIV_MASK CPM_CFCR_LFR_MASK
1.27 +
1.28 #define CPM_CPPCR_PLLM_BIT CPM_PLCR1_PLL1FD_BIT
1.29 #define CPM_CPPCR_PLLN_BIT CPM_PLCR1_PLL1RD_BIT
1.30 #define CPM_CPPCR_PLLOD_BIT CPM_PLCR1_PLL1OD_BIT
1.31 #define CPM_CPPCR_PLLST_BIT CPM_PLCR1_PLL1ST_BIT
1.32 #define CPM_CPPCR_PLLEN CPM_PLCR1_PLL1EN
1.33
1.34 -#define __cpm_set_ldiv __cpm_set_lcdclk_div
1.35 +#define CPM_CPPCR_PLLM_MASK CPM_PLCR1_PLL1FD_MASK
1.36 +#define CPM_CPPCR_PLLN_MASK CPM_PLCR1_PLL1RD_MASK
1.37 +#define CPM_CPPCR_PLLOD_MASK CPM_PLCR1_PLL1OD_MASK
1.38
1.39 #endif /* __JZ4730_COMPAT_H__ */