1.1 --- a/include/jz4740.h Sat Jun 06 18:03:55 2015 +0200
1.2 +++ b/include/jz4740.h Sat Jun 06 23:29:51 2015 +0200
1.3 @@ -3214,12 +3214,18 @@
1.4 #define __cpm_suspend_usbphy() (REG_CPM_SCR |= CPM_SCR_USBPHY_DISABLE)
1.5 #define __cpm_enable_osc_in_sleep() (REG_CPM_SCR |= CPM_SCR_OSC_ENABLE)
1.6
1.7 +/* NOTE: Independent of usbboot parameters. */
1.8 +
1.9 +#define CONFIG_SYS_CPU_SPEED 336000000 /* CPU clock: 336 MHz */
1.10 +#define CONFIG_SYS_EXTAL 12000000 /* EXTAL freq: 12 MHz */
1.11 +#define CONFIG_SYS_HZ (CONFIG_SYS_EXTAL / 256) /* incrementer freq */
1.12
1.13 #ifdef CONFIG_SYS_EXTAL
1.14 #define JZ_EXTAL CONFIG_SYS_EXTAL
1.15 #else
1.16 #define JZ_EXTAL 3686400
1.17 #endif
1.18 +
1.19 #define JZ_EXTAL2 32768 /* RTC clock */
1.20
1.21 /* PLL output frequency */