Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Łukasz Majewski | fc0111c | 2012-11-13 03:22:03 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2012 Samsung Electronics |
| 4 | * Lukasz Majewski <l.majewski@samsung.com> |
Łukasz Majewski | fc0111c | 2012-11-13 03:22:03 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __FG_BATTERY_CELL_PARAMS_H_ |
| 8 | #define __FG_BATTERY_CELL_PARAMS_H_ |
| 9 | |
Tom Rini | 893cd41 | 2022-06-10 22:59:33 -0400 | [diff] [blame] | 10 | #if defined(CONFIG_POWER_FG_MAX17042) && defined(CONFIG_TARGET_TRATS) |
Łukasz Majewski | fc0111c | 2012-11-13 03:22:03 +0000 | [diff] [blame] | 11 | |
| 12 | /* Cell characteristics - Exynos4 TRATS development board */ |
| 13 | /* Shall be written to addr 0x80h */ |
| 14 | u16 cell_character0[16] = { |
| 15 | 0xA2A0, |
| 16 | 0xB6E0, |
| 17 | 0xB850, |
| 18 | 0xBAD0, |
| 19 | 0xBB20, |
| 20 | 0xBB70, |
| 21 | 0xBBC0, |
| 22 | 0xBC20, |
| 23 | 0xBC80, |
| 24 | 0xBCE0, |
| 25 | 0xBD80, |
| 26 | 0xBE20, |
| 27 | 0xC090, |
| 28 | 0xC420, |
| 29 | 0xC910, |
| 30 | 0xD070 |
| 31 | }; |
| 32 | |
| 33 | /* Shall be written to addr 0x90h */ |
| 34 | u16 cell_character1[16] = { |
| 35 | 0x0090, |
| 36 | 0x1A50, |
| 37 | 0x02F0, |
| 38 | 0x2060, |
| 39 | 0x2060, |
| 40 | 0x2E60, |
| 41 | 0x26A0, |
| 42 | 0x2DB0, |
| 43 | 0x2DB0, |
| 44 | 0x1870, |
| 45 | 0x2A20, |
| 46 | 0x16F0, |
| 47 | 0x08F0, |
| 48 | 0x0D40, |
| 49 | 0x08C0, |
| 50 | 0x08C0 |
| 51 | }; |
| 52 | |
| 53 | /* Shall be written to addr 0xA0h */ |
| 54 | u16 cell_character2[16] = { |
| 55 | 0x0100, |
| 56 | 0x0100, |
| 57 | 0x0100, |
| 58 | 0x0100, |
| 59 | 0x0100, |
| 60 | 0x0100, |
| 61 | 0x0100, |
| 62 | 0x0100, |
| 63 | 0x0100, |
| 64 | 0x0100, |
| 65 | 0x0100, |
| 66 | 0x0100, |
| 67 | 0x0100, |
| 68 | 0x0100, |
| 69 | 0x0100, |
| 70 | 0x0100 |
| 71 | }; |
| 72 | #endif |
| 73 | #endif /* __FG_BATTERY_CELL_PARAMS_H_ */ |