static int setup_platform_pmu_init_data(struct device_node *node, struct amlogic_pmu_init *pdata)
{
    if (setup_supply_data(node, pdata)) {
        return  -EINVAL;
    }

    return 0;
}
예제 #2
0
static int setup_platform_pmu_init_data(struct device_node *node, struct ricoh_pmu_init_data *pdata)
{
    if (setup_supply_data(node, pdata)) {
        return  -EINVAL;
    }
#if 0                                       // not used right now
    /*
     * if there are not assigned propertys of dc2/dc3 voltage, just leave them to
     * default value.
     */
    if (buck2) {
        PARSE_UINT32_PROPERTY(node, "ddr_voltage", tmp, setup1);
        buck2->constraints.state_standby.uV = tmp;
    }
setup1:
    if (buck3) {
        PARSE_UINT32_PROPERTY(node, "vddao_voltage", tmp, setup2);
        buck3->constraints.state_standby.uV = tmp;
    }
setup2:
#endif

    return 0;
}