Don't power on SERIAL in the Srf's board_init
This commit is contained in:
parent
00a6c31158
commit
7a189d010b
|
@ -45,29 +45,15 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#define PRCM_DOMAINS (PRCM_DOMAIN_RFCORE | PRCM_DOMAIN_SERIAL | \
|
|
||||||
PRCM_DOMAIN_PERIPH | PRCM_DOMAIN_CPU | \
|
|
||||||
PRCM_DOMAIN_SYSBUS | PRCM_DOMAIN_VIMS)
|
|
||||||
/*---------------------------------------------------------------------------*/
|
|
||||||
#define LPM_DOMAINS (PRCM_DOMAIN_SERIAL | PRCM_DOMAIN_PERIPH)
|
|
||||||
/*---------------------------------------------------------------------------*/
|
|
||||||
static void
|
static void
|
||||||
power_domains_on(void)
|
wakeup_handler(void)
|
||||||
{
|
{
|
||||||
/* Turn on relevant power domains */
|
/* Turn on the PERIPH PD */
|
||||||
ti_lib_prcm_power_domain_on(LPM_DOMAINS);
|
ti_lib_prcm_power_domain_on(PRCM_DOMAIN_PERIPH);
|
||||||
|
while((ti_lib_prcm_power_domain_status(PRCM_DOMAIN_PERIPH)
|
||||||
/* Wait for domains to power on */
|
|
||||||
while((ti_lib_prcm_power_domain_status(LPM_DOMAINS)
|
|
||||||
!= PRCM_DOMAIN_POWER_ON));
|
!= PRCM_DOMAIN_POWER_ON));
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static void
|
|
||||||
lpm_wakeup_handler(void)
|
|
||||||
{
|
|
||||||
power_domains_on();
|
|
||||||
}
|
|
||||||
/*---------------------------------------------------------------------------*/
|
|
||||||
/*
|
/*
|
||||||
* Declare a data structure to register with LPM.
|
* Declare a data structure to register with LPM.
|
||||||
* We don't care about what power mode we'll drop to, we don't care about
|
* We don't care about what power mode we'll drop to, we don't care about
|
||||||
|
@ -81,12 +67,8 @@ board_init()
|
||||||
{
|
{
|
||||||
uint8_t int_disabled = ti_lib_int_master_disable();
|
uint8_t int_disabled = ti_lib_int_master_disable();
|
||||||
|
|
||||||
/* Turn on all power domains */
|
/* Turn on relevant PDs */
|
||||||
ti_lib_prcm_power_domain_on(PRCM_DOMAINS);
|
wakeup_handler();
|
||||||
|
|
||||||
/* Wait for power on domains */
|
|
||||||
while((ti_lib_prcm_power_domain_status(PRCM_DOMAINS)
|
|
||||||
!= PRCM_DOMAIN_POWER_ON));
|
|
||||||
|
|
||||||
/* Configure all clock domains to run at full speed */
|
/* Configure all clock domains to run at full speed */
|
||||||
ti_lib_prcm_clock_configure_set(PRCM_DOMAIN_SYSBUS | PRCM_DOMAIN_CPU |
|
ti_lib_prcm_clock_configure_set(PRCM_DOMAIN_SYSBUS | PRCM_DOMAIN_CPU |
|
||||||
|
|
Loading…
Reference in a new issue