mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
arch/arm/src/am335x: Changes related to Control Module
This commit is contained in:
committed by
Gregory Nutt
parent
eed706d458
commit
c9ff188f3e
@@ -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"
|
||||
|
||||
/************************************************************************************
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "hardware/am335x_control.h"
|
||||
#include "hardware/am335x_scm.h"
|
||||
#include "hardware/am335x_pinmux.h"
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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
|
||||
****************************************************************************/
|
||||
|
||||
+254
-245
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user