Don't fire-up SERIAL automatically
This commit is contained in:
parent
34be012661
commit
6611acadc7
1 changed files with 3 additions and 5 deletions
|
@ -46,18 +46,16 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
/*---------------------------------------------------------------------------*/
|
|
||||||
#define PRCM_DOMAINS (PRCM_DOMAIN_SERIAL | PRCM_DOMAIN_PERIPH)
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
power_domains_on(void)
|
power_domains_on(void)
|
||||||
{
|
{
|
||||||
/* Turn on relevant power domains */
|
/* Turn on the PERIPH PD */
|
||||||
ti_lib_prcm_power_domain_on(PRCM_DOMAINS);
|
ti_lib_prcm_power_domain_on(PRCM_DOMAIN_PERIPH);
|
||||||
|
|
||||||
/* Wait for domains to power on */
|
/* Wait for domains to power on */
|
||||||
while((ti_lib_prcm_power_domain_status(PRCM_DOMAINS)
|
while((ti_lib_prcm_power_domain_status(PRCM_DOMAIN_PERIPH)
|
||||||
!= PRCM_DOMAIN_POWER_ON));
|
!= PRCM_DOMAIN_POWER_ON));
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue