OpenBIC
OpenSource Bridge-IC
plat_init.c File Reference
#include "hal_gpio.h"
#include "power_status.h"
#include "rg3mxxb12.h"
#include "p3h284x.h"
#include "plat_gpio.h"
#include "plat_class.h"
#include "plat_i2c.h"
#include "plat_isr.h"
#include "plat_power_seq.h"
Include dependency graph for plat_init.c:

Macros

#define DEF_PLAT_CONFIG_PRIORITY   77
 
#define DEF_PROJ_GPIO_PRIORITY   78
 

Functions

void pal_pre_init ()
 
 DEVICE_DEFINE (PRE_DEF_PLAT_CONFIG, "PRE_DEF_PLATFOMR", &init_platform_config, NULL, NULL, NULL, POST_KERNEL, DEF_PLAT_CONFIG_PRIORITY, NULL)
 
 DEVICE_DEFINE (PRE_DEF_PROJ_GPIO, "PRE_DEF_PROJ_GPIO_NAME", &gpio_init, NULL, NULL, NULL, POST_KERNEL, DEF_PROJ_GPIO_PRIORITY, NULL)
 
void pal_set_sys_status ()
 

Variables

SCU_CFG opa_scu_cfg []
 
SCU_CFG opb_scu_cfg []
 

Macro Definition Documentation

◆ DEF_PLAT_CONFIG_PRIORITY

#define DEF_PLAT_CONFIG_PRIORITY   77

◆ DEF_PROJ_GPIO_PRIORITY

#define DEF_PROJ_GPIO_PRIORITY   78

Function Documentation

◆ DEVICE_DEFINE() [1/2]

DEVICE_DEFINE ( PRE_DEF_PLAT_CONFIG  ,
"PRE_DEF_PLATFOMR"  ,
init_platform_config,
NULL  ,
NULL  ,
NULL  ,
POST_KERNEL  ,
DEF_PLAT_CONFIG_PRIORITY  ,
NULL   
)

◆ DEVICE_DEFINE() [2/2]

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

◆ 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

◆ opa_scu_cfg

SCU_CFG opa_scu_cfg[]
Initial value:
= {
{ 0x7e6e2610, 0xffffffff },
{ 0x7e6e2614, 0xffffffff },
{ 0x7e6e2618, 0xffffffff },
{ 0x7e6e261c, 0xffffffff },
{ 0x7e78001c, 0x5000010f },
{ 0x7e78003c, 0x0000007f },
{ 0x7e7800ac, 0x1c000000 },
}

◆ opb_scu_cfg

SCU_CFG opb_scu_cfg[]
Initial value:
= {
{ 0x7e6e2610, 0xffffffff },
{ 0x7e6e2614, 0xffffffff },
{ 0x7e6e2618, 0xffffffff },
{ 0x7e6e261c, 0xffffffff },
{ 0x7e78001c, 0xc000001f },
{ 0x7e78003c, 0x000000ff },
{ 0x7e7800ac, 0x7c000000 },
}