OpenBIC
OpenSource Bridge-IC
plat_init.c File Reference
#include "hal_gpio.h"
#include "util_sys.h"
#include "plat_class.h"
#include "plat_gpio.h"
#include "plat_mctp.h"
#include "plat_ssif.h"
#include "plat_sensor_table.h"
#include "plat_power_status.h"
#include "plat_fru.h"
#include "plat_spi.h"
#include "util_worker.h"
#include "power_status.h"
#include <stdio.h>
#include <stdlib.h>
#include "libutil.h"
#include <logging/log.h>
Include dependency graph for plat_init.c:

Macros

#define DEF_PROJ_GPIO_PRIORITY   78
 

Functions

 LOG_MODULE_REGISTER (plat_init)
 
void pal_pre_init ()
 
void pal_post_init ()
 
void pal_device_init ()
 
void pal_set_sys_status ()
 
 DEVICE_DEFINE (PRE_DEF_PROJ_GPIO, "PRE_DEF_PROJ_GPIO_NAME", &gpio_init, NULL, NULL, NULL, POST_KERNEL, DEF_PROJ_GPIO_PRIORITY, NULL)
 

Variables

SCU_CFG scu_cfg []
 

Macro Definition Documentation

◆ DEF_PROJ_GPIO_PRIORITY

#define DEF_PROJ_GPIO_PRIORITY   78

Function Documentation

◆ DEVICE_DEFINE()

DEVICE_DEFINE ( PRE_DEF_PROJ_GPIO  ,
"PRE_DEF_PROJ_GPIO_NAME"  ,
gpio_init,
NULL  ,
NULL  ,
NULL  ,
POST_KERNEL  ,
DEF_PROJ_GPIO_PRIORITY  ,
NULL   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_init  )

◆ pal_device_init()

void pal_device_init ( )
Here is the call graph for this function:

◆ pal_post_init()

void pal_post_init ( )
Here is the call graph for this function:

◆ pal_pre_init()

void pal_pre_init ( )
Here is the call graph for this function:

◆ pal_set_sys_status()

void pal_set_sys_status ( )
Here is the call graph for this function:

Variable Documentation

◆ scu_cfg

SCU_CFG scu_cfg[]
Initial value:
= {
{ 0x7e6e2610, 0xFFFFFFFF },
{ 0x7e6e2614, 0xFFFFFFFF },
{ 0x7e6e2618, 0xDF000000 },
{ 0x7e6e261c, 0x0000007A },
{ 0x7e6e2630, 0xFF000000 },
{ 0x7e6e2634, 0x000000FF },
}