arch/arm/src/am335x: Changes related to Control Module

This commit is contained in:
Petro Karashchenko
2019-07-09 15:38:38 -06:00
committed by Gregory Nutt
parent eed706d458
commit c9ff188f3e
4 changed files with 257 additions and 259 deletions
+1 -1
View File
@@ -45,7 +45,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "hardware/am335x_control.h"
#include "hardware/am335x_scm.h"
#include "hardware/am335x_gpio.h"
/************************************************************************************
+1 -1
View File
@@ -42,7 +42,7 @@
#include <nuttx/config.h>
#include "hardware/am335x_control.h"
#include "hardware/am335x_scm.h"
#include "hardware/am335x_pinmux.h"
/****************************************************************************
+1 -12
View File
@@ -43,24 +43,13 @@
#include <errno.h>
#include "up_arch.h"
#include "hardware/am335x_memorymap.h"
#include "hardware/am335x_scm.h"
#include "am335x_sysclk.h"
/****************************************************************************
* Pre-processor definitions
****************************************************************************/
/* REVISIT: These belong in a control module register header file */
#define AM335X_SCM_CTRL_STATUS_OFFSET 0x40
#define AM335X_SCM_CTRL_STATUS (AM335X_CONTROL_MODULE_VADDR + AM335X_SCM_CTRL_STATUS_OFFSET)
#define SCM_CTRL_STATUS_SYSBOOT1_SHIFT (22) /* Bits 22-23: Crystal clock frequency selection */
#define SCM_CTRL_STATUS_SYSBOOT1_MASK (3 << SCM_CTRL_STATUS_SYSBOOT1_SHIFT)
# define SCM_CTRL_STATUS_SYSBOOT1_19p2MHZ (0 << SCM_CTRL_STATUS_SYSBOOT1_SHIFT)
# define SCM_CTRL_STATUS_SYSBOOT1_24MHZ (1 << SCM_CTRL_STATUS_SYSBOOT1_SHIFT)
# define SCM_CTRL_STATUS_SYSBOOT1_25MHZ (2 << SCM_CTRL_STATUS_SYSBOOT1_SHIFT)
# define SCM_CTRL_STATUS_SYSBOOT1_26MHZ (3 << SCM_CTRL_STATUS_SYSBOOT1_SHIFT)
/****************************************************************************
* Public Functions
****************************************************************************/