SAMA5D-EK: Correct system timer frequency. Input clock is MCK/2, not MCK
This commit is contained in:
parent
2f3e83e793
commit
ff0de0d603
@ -170,6 +170,7 @@
|
||||
* but not for the SAMA5D3.
|
||||
*/
|
||||
|
||||
#define BOARD_PIT_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
#define BOARD_USART_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
|
||||
/* HSMCI clocking
|
||||
|
@ -128,6 +128,7 @@
|
||||
* but not for the SAMA5D3.
|
||||
*/
|
||||
|
||||
#define BOARD_PIT_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
#define BOARD_USART_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
|
||||
#if defined(CONFIG_SAMA5_EHCI) || defined(CONFIG_SAMA5_OHCI) || \
|
||||
|
@ -127,6 +127,7 @@
|
||||
* but not for the SAMA5D3.
|
||||
*/
|
||||
|
||||
#define BOARD_PIT_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
#define BOARD_USART_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
|
||||
#if defined(CONFIG_SAMA5_EHCI) || defined(CONFIG_SAMA5_OHCI) || \
|
||||
|
@ -66,6 +66,7 @@
|
||||
* but not for the SAMA5D3.
|
||||
*/
|
||||
|
||||
#define BOARD_PIT_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
#define BOARD_USART_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
|
||||
#if defined(CONFIG_SAMA5_EHCI) || defined(CONFIG_SAMA5_OHCI) || \
|
||||
|
@ -170,6 +170,7 @@
|
||||
* but not for the SAMA5D3.
|
||||
*/
|
||||
|
||||
#define BOARD_PIT_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
#define BOARD_USART_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
|
||||
/* HSMCI clocking
|
||||
|
@ -128,6 +128,7 @@
|
||||
* but not for the SAMA5D3.
|
||||
*/
|
||||
|
||||
#define BOARD_PIT_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
#define BOARD_USART_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
|
||||
#if defined(CONFIG_SAMA5_EHCI) || defined(CONFIG_SAMA5_OHCI) || \
|
||||
|
@ -127,7 +127,9 @@
|
||||
* but not for the SAMA5D3.
|
||||
*/
|
||||
|
||||
#define BOARD_PIT_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
#define BOARD_USART_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
|
||||
#if defined(CONFIG_SAMA5_EHCI) || defined(CONFIG_SAMA5_OHCI) || \
|
||||
defined(CONFIG_SAMA5_UDPHS)
|
||||
|
||||
|
@ -66,6 +66,7 @@
|
||||
* but not for the SAMA5D3.
|
||||
*/
|
||||
|
||||
#define BOARD_PIT_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
#define BOARD_USART_FREQUENCY BOARD_MCK_FREQUENCY
|
||||
|
||||
#if defined(CONFIG_SAMA5_EHCI) || defined(CONFIG_SAMA5_OHCI) || \
|
||||
|
@ -169,6 +169,7 @@
|
||||
* REVISIT: I am not sure why this is. Perhaps because of H32MXDIV?
|
||||
*/
|
||||
|
||||
#define BOARD_PIT_FREQUENCY (BOARD_MCK_FREQUENCY >> 1)
|
||||
#define BOARD_USART_FREQUENCY (BOARD_MCK_FREQUENCY >> 1)
|
||||
|
||||
/* HSMCI clocking
|
||||
|
@ -127,6 +127,7 @@
|
||||
* REVISIT: I am not sure why this is. Perhaps because of H32MXDIV?
|
||||
*/
|
||||
|
||||
#define BOARD_PIT_FREQUENCY (BOARD_MCK_FREQUENCY >> 1)
|
||||
#define BOARD_USART_FREQUENCY (BOARD_MCK_FREQUENCY >> 1)
|
||||
|
||||
#if defined(CONFIG_SAMA5_EHCI) || defined(CONFIG_SAMA5_OHCI) || \
|
||||
|
@ -126,6 +126,7 @@
|
||||
* REVISIT: I am not sure why this is. Perhaps because of H32MXDIV?
|
||||
*/
|
||||
|
||||
#define BOARD_PIT_FREQUENCY (BOARD_MCK_FREQUENCY >> 1)
|
||||
#define BOARD_USART_FREQUENCY (BOARD_MCK_FREQUENCY >> 1)
|
||||
|
||||
#if defined(CONFIG_SAMA5_EHCI) || defined(CONFIG_SAMA5_OHCI) || \
|
||||
|
@ -67,6 +67,7 @@
|
||||
* REVISIT: I am not sure why this is. Perhaps because of H32MXDIV?
|
||||
*/
|
||||
|
||||
#define BOARD_PIT_FREQUENCY (BOARD_MCK_FREQUENCY >> 1)
|
||||
#define BOARD_USART_FREQUENCY (BOARD_MCK_FREQUENCY >> 1)
|
||||
|
||||
#if defined(CONFIG_SAMA5_EHCI) || defined(CONFIG_SAMA5_OHCI) || \
|
||||
|
Loading…
Reference in New Issue
Block a user