FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pmu_dlc.h File Reference

Macros

#define PI_PMU_DLC_PCTRL_ADDR_CHIP_SEL_MASK
 
#define PI_PMU_DLC_PCTRL_ADDR_CHIP_SEL_SHIFT
 
#define PI_PMU_DLC_PCTRL_ADDR_CHIP_SEL(x)
 
#define PI_PMU_DLC_PCTRL_ADDR_REG_MASK
 
#define PI_PMU_DLC_PCTRL_ADDR_REG_SHIFT
 
#define PI_PMU_DLC_PCTRL_ADDR_REG(x)
 
#define PICL_ADDR_WIU
 
#define PICL_ADDR_ICU
 
#define WIU_ISPMR_0
 
#define WIU_ISPMR_1
 
#define WIU_IFR_0
 
#define WIU_IFR_1
 
#define WIU_ICR_0
 
#define WIU_ICR_1
 
#define WIU_ICR_2
 
#define WIU_ICR_3
 
#define WIU_ICR_4
 
#define WIU_ICR_5
 
#define WIU_ICR_6
 
#define WIU_ICR_7
 
#define WIU_ICR_8
 
#define WIU_ICR_9
 
#define WIU_ICR_10
 
#define WIU_ICR_11
 
#define WIU_ICR_12
 
#define WIU_ICR_13
 
#define WIU_ICR_14
 
#define WIU_ICR_15
 
#define ICU_CR
 
#define ICU_MR
 
#define ICU_ISMR
 
#define ICU_DMR_0
 
#define ICU_DMA_1
 

Functions

static void pmu_dlc_dlc_pctrl_set (uint32_t value)
 
static uint32_t pmu_dlc_dlc_pctrl_get (void)
 
static uint32_t pmu_dlc_dlc_prdata_get (void)
 
static uint32_t pmu_dlc_dlc_sr_get (void)
 
static void pmu_dlc_dlc_imr_set (uint32_t value)
 
static uint32_t pmu_dlc_dlc_imr_get (void)
 
static void pmu_dlc_dlc_ifr_set (uint32_t value)
 
static uint32_t pmu_dlc_dlc_ifr_get (void)
 
static void pmu_dlc_dlc_ioifr_set (uint32_t value)
 
static uint32_t pmu_dlc_dlc_ioifr_get (void)
 
static void pmu_dlc_dlc_idifr_set (uint32_t value)
 
static uint32_t pmu_dlc_dlc_idifr_get (void)
 
static void pmu_dlc_dlc_imcifr_set (uint32_t value)
 
static uint32_t pmu_dlc_dlc_imcifr_get (void)
 
static void hal_pmu_dlc_pctrl_set (uint16_t paddr, uint8_t is_read, uint16_t pwdata)
 
static uint8_t hal_pmu_dlc_pctrl_busy_get (void)
 
static uint32_t hal_pmu_dlc_prdata_get (void)
 
static uint32_t hal_pmu_dlc_status_get (void)
 
static uint8_t hal_pmu_dlc_picl_busy_get (void)
 
static uint8_t hal_pmu_dlc_scu_busy_get (void)
 
static uint32_t hal_pmu_dlc_imr_mask_get (void)
 
static void hal_pmu_dlc_imr_mask_set (uint32_t mask)
 
static uint32_t hal_pmu_dlc_ifr_get (void)
 
static void hal_pmu_dlc_ifr_mask_clear (uint32_t mask)
 
static uint32_t hal_pmu_dlc_ioifr_get (void)
 
static uint32_t hal_pmu_dlc_idifr_get (void)
 
static uint32_t hal_pmu_dlc_imcifr_get (void)
 

Macro Definition Documentation

#define ICU_CR
#define ICU_DMA_1
#define ICU_DMR_0
#define ICU_ISMR
#define ICU_MR
#define PI_PMU_DLC_PCTRL_ADDR_CHIP_SEL (   x)
#define PI_PMU_DLC_PCTRL_ADDR_CHIP_SEL_MASK

addr[9:0] = [CHIP_SEL_ADDR[4:0] | REG_ADDR[4:0]] DLC_PCTRL.addr = addr

#define PI_PMU_DLC_PCTRL_ADDR_CHIP_SEL_SHIFT
#define PI_PMU_DLC_PCTRL_ADDR_REG (   x)
#define PI_PMU_DLC_PCTRL_ADDR_REG_MASK
#define PI_PMU_DLC_PCTRL_ADDR_REG_SHIFT
#define PICL_ADDR_ICU
#define PICL_ADDR_WIU
#define WIU_ICR_0
#define WIU_ICR_1
#define WIU_ICR_10
#define WIU_ICR_11
#define WIU_ICR_12
#define WIU_ICR_13
#define WIU_ICR_14
#define WIU_ICR_15
#define WIU_ICR_2
#define WIU_ICR_3
#define WIU_ICR_4
#define WIU_ICR_5
#define WIU_ICR_6
#define WIU_ICR_7
#define WIU_ICR_8
#define WIU_ICR_9
#define WIU_IFR_0
#define WIU_IFR_1
#define WIU_ISPMR_0
#define WIU_ISPMR_1

Function Documentation

static uint32_t hal_pmu_dlc_idifr_get ( void  )
inlinestatic

References pmu_dlc.

Referenced by __pi_pmu_regulator_state_change().

static uint32_t hal_pmu_dlc_ifr_get ( void  )
inlinestatic

DLC_IFR.

References pmu_dlc_dlc_ifr_get().

Referenced by __pi_pmu_regulator_state_change().

static void hal_pmu_dlc_ifr_mask_clear ( uint32_t  mask)
inlinestatic
static uint32_t hal_pmu_dlc_imcifr_get ( void  )
inlinestatic

References pmu_dlc.

Referenced by __pi_pmu_regulator_state_change().

static uint32_t hal_pmu_dlc_imr_mask_get ( void  )
inlinestatic

DLC_IMR.

References pmu_dlc_dlc_imr_get().

static void hal_pmu_dlc_imr_mask_set ( uint32_t  mask)
inlinestatic

References pmu_dlc_dlc_imr_set().

Referenced by __pi_pmu_init().

static uint32_t hal_pmu_dlc_ioifr_get ( void  )
inlinestatic

References pmu_dlc.

Referenced by __pi_pmu_regulator_state_change().

static uint8_t hal_pmu_dlc_pctrl_busy_get ( void  )
inlinestatic
static void hal_pmu_dlc_pctrl_set ( uint16_t  paddr,
uint8_t  is_read,
uint16_t  pwdata 
)
inlinestatic
static uint8_t hal_pmu_dlc_picl_busy_get ( void  )
inlinestatic
static uint32_t hal_pmu_dlc_prdata_get ( void  )
inlinestatic

DLC_PRDATA.

References pmu_dlc_dlc_prdata_get().

static uint8_t hal_pmu_dlc_scu_busy_get ( void  )
inlinestatic
static uint32_t hal_pmu_dlc_status_get ( void  )
inlinestatic

DLC_SR.

References pmu_dlc_dlc_sr_get().

static uint32_t pmu_dlc_dlc_idifr_get ( void  )
inlinestatic

References hal_read32(), and pmu_dlc.

static void pmu_dlc_dlc_idifr_set ( uint32_t  value)
inlinestatic

DLC_IDIFR register.

References hal_write32(), and pmu_dlc.

static uint32_t pmu_dlc_dlc_ifr_get ( void  )
inlinestatic

References hal_read32(), and pmu_dlc.

Referenced by hal_pmu_dlc_ifr_get().

static void pmu_dlc_dlc_ifr_set ( uint32_t  value)
inlinestatic

DLC_IFR register.

References hal_write32(), and pmu_dlc.

Referenced by hal_pmu_dlc_ifr_mask_clear().

static uint32_t pmu_dlc_dlc_imcifr_get ( void  )
inlinestatic

References hal_read32(), and pmu_dlc.

static void pmu_dlc_dlc_imcifr_set ( uint32_t  value)
inlinestatic

DLC_IMCIFR register.

References hal_write32(), and pmu_dlc.

static uint32_t pmu_dlc_dlc_imr_get ( void  )
inlinestatic

References hal_read32(), and pmu_dlc.

Referenced by hal_pmu_dlc_imr_mask_get().

static void pmu_dlc_dlc_imr_set ( uint32_t  value)
inlinestatic

DLC_IMR register.

References hal_write32(), and pmu_dlc.

Referenced by hal_pmu_dlc_imr_mask_set().

static uint32_t pmu_dlc_dlc_ioifr_get ( void  )
inlinestatic

References hal_read32(), and pmu_dlc.

static void pmu_dlc_dlc_ioifr_set ( uint32_t  value)
inlinestatic

DLC_IOIFR register.

References hal_write32(), and pmu_dlc.

static uint32_t pmu_dlc_dlc_pctrl_get ( void  )
inlinestatic

References hal_read32(), and pmu_dlc.

Referenced by hal_pmu_dlc_pctrl_busy_get().

static void pmu_dlc_dlc_pctrl_set ( uint32_t  value)
inlinestatic

DLC_PCTRL register.

References hal_write32(), and pmu_dlc.

Referenced by hal_pmu_dlc_pctrl_set().

static uint32_t pmu_dlc_dlc_prdata_get ( void  )
inlinestatic

DLC_PRDATA register.

References hal_read32(), and pmu_dlc.

Referenced by hal_pmu_dlc_prdata_get().

static uint32_t pmu_dlc_dlc_sr_get ( void  )
inlinestatic