Linux 运用debugfs调试方法(二)

2014-11-24 07:34:55 · 作者: · 浏览: 7
hip->dent,

(void *)CHG_VBAT_DET, _fops);

debugfs_create_file("CHG_IBAT_MAX", 0644, chip->dent,

(void *)CHG_IBAT_MAX, _fops);

debugfs_create_file("CHG_IBAT_SAFE", 0644, chip->dent,

(void *)CHG_IBAT_SAFE, _fops);

debugfs_create_file("CHG_VIN_MIN", 0644, chip->dent,

(void *)CHG_VIN_MIN, _fops);

debugfs_create_file("CHG_VTRICKLE", 0644, chip->dent,

(void *)CHG_VTRICKLE, _fops);

debugfs_create_file("CHG_ITRICKLE", 0644, chip->dent,

(void *)CHG_ITRICKLE, _fops);

debugfs_create_file("CHG_ITERM", 0644, chip->dent,

(void *)CHG_ITERM, _fops);

debugfs_create_file("CHG_TCHG_MAX", 0644, chip->dent,

(void *)CHG_TCHG_MAX, _fops);

debugfs_create_file("CHG_TWDOG", 0644, chip->dent,

(void *)CHG_TWDOG, _fops);

debugfs_create_file("CHG_TEMP_THRESH", 0644, chip->dent,

(void *)CHG_TEMP_THRESH, _fops);

debugfs_create_file("CHG_COMP_OVR", 0644, chip->dent,

(void *)CHG_COMP_OVR, _fops);

debugfs_create_file("CHG_BUCK_CTRL_TEST1", 0644, chip->dent,

(void *)CHG_BUCK_CTRL_TEST1, _fops);

debugfs_create_file("CHG_BUCK_CTRL_TEST2", 0644, chip->dent,

(void *)CHG_BUCK_CTRL_TEST2, _fops);

debugfs_create_file("CHG_BUCK_CTRL_TEST3", 0644, chip->dent,

(void *)CHG_BUCK_CTRL_TEST3, _fops);

debugfs_create_file("CHG_TEST", 0644, chip->dent,

(void *)CHG_TEST, _fops);


debugfs_create_file("FSM_STATE", 0644, chip->dent, NULL,

&fsm_fops);


debugfs_create_file("REGULATION_LOOP_CONTROL", 0644, chip->dent, NULL,

_loop_fops);


debugfs_create_file("BAT_WARM_ZONE", 0644, chip->dent,

(void *)BAT_WARM_ZONE, &warm_cool_fops);

debugfs_create_file("BAT_COOL_ZONE", 0644, chip->dent,

(void *)BAT_COOL_ZONE, &warm_cool_fops);


for (i = 0; i < ARRAY_SIZE(chg_irq_data); i++) {

if (chip->pmic_chg_irq[chg_irq_data[i].irq_id])

debugfs_create_file(chg_irq_data[i].name, 0444,

chip->dent,

(void *)chg_irq_data[i].irq_id,

&rt_fops);

}

}