SAMA5D-EK: Correct system timer frequency. Input clock is MCK/2, not MCK

This commit is contained in:
Gregory Nutt 2014-07-29 07:12:36 -06:00
parent 2f3e83e793
commit ff0de0d603
12 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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) || \

View File

@ -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) || \

View File

@ -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) || \

View File

@ -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

View File

@ -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) || \

View File

@ -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)

View File

@ -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) || \

View File

@ -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

View File

@ -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) || \

View File

@ -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) || \

View File

@ -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) || \