void modem_pintrl_debug(int mode)
{
    unsigned int i = 0;    
    unsigned int length = 0;
    struct pintrl_stru *pintrl_stru = NULL;
    struct modem_pintrl_cfg *pintrl_cfg = g_pin_cfg;

    if((MODEM_PIN_INIT != mode) && (MODEM_PIN_NORMAL != mode) && (MODEM_PIN_POWERDOWN != mode))
    {
        ios_print_error("modem pintrl mode is error, mode=%d.\n", mode);
        return ;
    }
    
    length = pintrl_cfg->pintrl_size[mode];
    pintrl_stru = (struct pintrl_stru *)pintrl_cfg->pintrl_addr[mode].addr.low;
    
    ios_print_info("iocfg table length is %d\n", length);
    ios_print_info("  group  pin  iomg  iocg  dir  value\n");
    
    for(i = 0;i < length;i++)
    {
        //pintrl_data_convert(&iocfg_stru, &(iocfg_table[i]));

        ios_print_info("%5d %5d %5d %5d %5d %5d\n", pintrl_stru[i].ugpiog,pintrl_stru[i].ugpio_bit,\
                                                            pintrl_stru[i].iomg_val,pintrl_stru[i].iocg_val,\
                                                            pintrl_stru[i].gpio_dir,pintrl_stru[i].gpio_val);
                                                          

    }

}
void modem_pintrl_debug(int mode)
{
    unsigned int i = 0;    
    unsigned int length = 0;
    struct pintrl_stru *pintrl_stru = NULL;
    struct modem_pintrl_cfg *pintrl_cfg = (struct modem_pintrl_cfg *)SHM_MEM_MODEM_PINTRL_ADDR;    

    if((MODEM_PIN_INIT != mode) && (MODEM_PIN_NORMAL != mode) && (MODEM_PIN_POWERDOWN != mode))
    {
        ios_print_error("modem pintrl mode is error, mode=%d.\n", mode);
        return ;
    }
    
    length = pintrl_cfg->pintrl_size[mode];
    pintrl_stru = pintrl_cfg->pintrl_addr[mode];
    /*ret = modem_pintrl_dts_parse(mode, &iocfg_table, &length);
    if(0 != ret)
    {
        ios_print_error("modem pintrl parse is fail, ret=0x%x mode=%d.\n", ret, mode);
        return;
    }*/
    
    ios_print_info("iocfg table length is %d\n", length);
    ios_print_info("  group  pin  iomg  iocg  dir  value\n");
    
    for(i = 0;i < length;i++)
    {
        //pintrl_data_convert(&iocfg_stru, &(iocfg_table[i]));

        ios_print_info("%5d %5d %5d %5d %5d %5d\n", pintrl_stru[i].ugpiog,pintrl_stru[i].ugpio_bit,\
                                                            pintrl_stru[i].iomg_val,pintrl_stru[i].iocg_val,\
                                                            pintrl_stru[i].gpio_dir,pintrl_stru[i].gpio_val);
                                                          

    }

}