blob: 18dc638e8bb508b0943788b67a01891ed37af153 [file] [log] [blame]
#include <common.h>
const int pwm_cal_voltage_table[][2] = {
{ 0x1c0000, 860},
{ 0x1b0001, 870},
{ 0x1a0002, 880},
{ 0x190003, 890},
{ 0x180004, 900},
{ 0x170005, 910},
{ 0x160006, 920},
{ 0x150007, 930},
{ 0x140008, 940},
{ 0x130009, 950},
{ 0x12000a, 960},
{ 0x11000b, 970},
{ 0x10000c, 980},
{ 0x0f000d, 990},
{ 0x0e000e, 1000},
{ 0x0d000f, 1010},
{ 0x0c0010, 1020},
{ 0x0b0011, 1030},
{ 0x0a0012, 1040},
{ 0x090013, 1050},
{ 0x080014, 1060},
{ 0x070015, 1070},
{ 0x060016, 1080},
{ 0x050017, 1090},
{ 0x040018, 1100},
{ 0x030019, 1110},
{ 0x02001a, 1120},
{ 0x01001b, 1130},
{ 0x00001c, 1140}
};
const int pwm_cal_voltage_table_ee[][2] = {
{ 0x1c0000, 810},
{ 0x1b0001, 820},
{ 0x1a0002, 830},
{ 0x190003, 840},
{ 0x180004, 850},
{ 0x170005, 860},
{ 0x160006, 870},
{ 0x150007, 880},
{ 0x140008, 890},
{ 0x130009, 900},
{ 0x12000a, 910},
{ 0x11000b, 920},
{ 0x10000c, 930},
{ 0x0f000d, 940},
{ 0x0e000e, 950},
{ 0x0d000f, 960},
{ 0x0c0010, 970},
{ 0x0b0011, 980},
{ 0x0a0012, 990},
{ 0x090013, 1000},
{ 0x080014, 1010},
{ 0x070015, 1020},
{ 0x060016, 1030},
{ 0x050017, 1040},
{ 0x040018, 1050},
{ 0x030019, 1060},
{ 0x02001a, 1070},
{ 0x01001b, 1080},
{ 0x00001c, 1090}
};
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
int pwm_cal_voltage_table_size = ARRAY_SIZE(pwm_cal_voltage_table);
int pwm_cal_voltage_table_ee_size = ARRAY_SIZE(pwm_cal_voltage_table_ee);