battery: Add Samsung battery driver.

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
samsung-battery: Delete shit file

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
samsung_battery: Define missing macros.

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
samsung_battery: Change deprecated set_irq functions.

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
samsung_battery: Add get_average_adc_value()

EXPORT_SYMBOL because it is used by Plsensor too and may be needed in future.

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
samsung_battery: Add omap3-gptimer12 interface.

Required for the battery driver.
Apparently, it is not a part of the original OMAP3 code.
Was added by Samsung in 2.6.35 too.

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
samsung_battery: Add omap3-gptimer12 interface (part 2)

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
prm2xxx_3xxx: Helper functions for gptimer12.

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
samsung_battery: charger_max8845: Comment out omap_set_gpio_dataout_in_sleep()

FIXME: Fix it for later.

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
latona: Add battery driver platform data and latona_battery_init()

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
latona: Add Fuelgauge I2C info to bus3_info.

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
gptimer12: Request battery_timer with omap_dm_timer_request()

Since omap_dm_timer_request_specific(12) returns NULL and causes Kernel panic.

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
i2c: Add GPIO I2C Bit bang Protocol

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
samsung_battery, i2c-omap-gpio: Fix header paths.

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
[1/3] twl4030-madc: copy the device pointer

Fixes: (NULL device *): conversion timeout!

Original Patch: https://patchwork.kernel.org/patch/1055672/

Signed-off-by: AdiPat <adithemagnificent@gmail.com>
[2/3] twl4030-madc: turn on the MADC clock

Fixes issue with battery_monitor.c and the following error:

-> twl4030_madc twl4030_madc: conversion timeout!

Original Patch: https://patchwork.kernel.org/patch/1055682/

Signed-off-by: AdiPat <adithemagnificent@gmail.com>