ARM: tegra: TN8: add INI data for max17048
Venkat Reddy Talla [Thu, 5 Sep 2013 11:47:15 +0000 (16:47 +0530)]
Bug 1339831

Change-Id: Id31c75e4d092cdb57a07b8b5bf1286227b3c49cb
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/270809
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

arch/arm/mach-tegra/battery-ini-model-data.h

index 5a293a1..c55b38e 100644 (file)
 #include <linux/power/max17042_battery.h>
 
 /*
+ * Battery model data for YOKU 4100mA for MAX17048 for TN8.
+ * System shutdown voltage: 3.0V
+ * INI Files: 1283683
+ */
+static struct max17048_battery_model __maybe_unused
+                       tn8_yoku_4100mA_max17048_battery = {
+       .rcomp          = 57,
+       .soccheck_A     = 119,
+       .soccheck_B     = 121,
+       .bits           = 18,
+       .alert_threshold = 0x00,
+       .one_percent_alerts = 0x40,
+       .alert_on_reset = 0x40,
+       .rcomp_seg      = 0x0200,
+       .hibernate      = 0x3080,
+       .vreset         = 0x3c96,
+       .valert         = 0x00ff,
+       .ocvtest        = 55952,
+       .data_tbl = {
+               0x98, 0x80, 0xB3, 0x50, 0xB7, 0x90, 0xB9, 0x00,
+               0xBA, 0x70, 0xBC, 0x10, 0xBC, 0x50, 0xBC, 0xA0,
+               0xBD, 0x20, 0xBE, 0x30, 0xBF, 0x40, 0xC2, 0xF0,
+               0xC4, 0x20, 0xC7, 0xE0, 0xCB, 0xF0, 0xD0, 0x90,
+               0x00, 0x40, 0x06, 0x70, 0x0E, 0x50, 0x12, 0x00,
+               0x18, 0xD0, 0x33, 0x10, 0x31, 0x40, 0x35, 0xD0,
+               0x18, 0xD0, 0x19, 0x00, 0x0B, 0xF0, 0x0C, 0x10,
+               0x0D, 0x10, 0x07, 0x90, 0x08, 0x00, 0x08, 0x00,
+       },
+};
+
+/*
  * Battery model data for YOKU 4100mA for MAX17048 for Macallan.
  * System shutdown voltage: 3.0V
  * INI Files: 1283683