eeprom: support any 24Cx EEPROM configuration

Add `mode' argument to `eeprom_init' to specify the kind of
EEPROM to use.  This is then searched in a table with
corresponding EEPROM size, default page size (can be overridden
with _set_page_size) and offset (data address) size (1 or 2
bytes).  The implementation now has a dynamic sizes for the data,
page, and offset.

Tested with Microchip 24LC01 "24c01" and 24LC256 "24c256" only.
fix Doxygen build

* document `min' macro
* fix typo in `eeprom_get_size'
i2cdev: read bus from config file if not provided

If the caller passes NULL for the bus path, look in the
config file for the `i2c-bus' value.  Return an error if
not found.  Remove PLHW_DEF_I2C_BUS from libplhw.h as it
doesn't make any sense why this should be the default.

+ tidy-up error handling

Signed-off-by: Guillaume Tucker <guillaume.tucker@plasticlogic.com>
i2cdev: add i2cdev_get_config_addr

* add i2cdev_get_config_addr to search for an I2C address in a
  config file using the provided plconfig instance

* check the I2C address is within the valid I2C range; if not, a
  warning message is printed and the default value is returned

* add PLHW_NO_I2C_ADDR to libplhw.h to be used when the I2C
  address of a device is not known to the caller and it needs to
  be retrieved from the config file

Note: The I2C address is expected to be hexadecimal 7-bit number
      in the config file.

Signed-off-by: Guillaume Tucker <guillaume.tucker@plasticlogic.com>

Conflicts:

	libplhw.h
hvpmic: read I2C address from config file

If the caller passes PLHW_NO_I2C_ADDR, try to read the I2C
address using plconfig.  The default HVPMIC I2C address is
now removed from the public API.

+ tidy-up error handling

Signed-off-by: Guillaume Tucker <guillaume.tucker@plasticlogic.com>
dac5820: read I2C address from config file

If the caller passes PLHW_NO_I2C_ADDR, try to read the I2C
address using plconfig.  The default DAC I2C address is now
removed from the public API.

+ tidy-up error handling

Signed-off-by: Guillaume Tucker <guillaume.tucker@plasticlogic.com>
adc11607: read I2C address from config file

If the caller passes PLHW_NO_I2C_ADDR, try to read the I2C
address using plconfig.  The default ADC I2C address is now
removed from the public API.

+ tidy-up error handling

Signed-off-by: Guillaume Tucker <guillaume.tucker@plasticlogic.com>
pbtn: read I2C address from config file

If the caller passes PLHW_NO_I2C_ADDR, try to read the I2C
address using plconfig.  The default push-button GPIO expander
I2C address is now removed from the public API.

+ tidy-up error handling

Signed-off-by: Guillaume Tucker <guillaume.tucker@plasticlogic.com>
eeprom: remove default I2C address

It is now required to pass an I2C address to eeprom_init.
There is no hard-coded default I2C address and it is
currently not read from the config file.
cpld: read the I2C address from the config file

If the caller passes PLHW_NO_I2C_ADDR, try to read the I2C
address using plconfig.  The default CPLD I2C address is now
removed from the public API.

+ tidy-up error handling
i2cdev: print error message when no I2C bus specified
remove log.h and use plsdk/log.h instead
Android.mk: add include path to libplutil
dac5820, adc11607: rename configuration keys with part number

Adjust I2C address configuration keys for consistency.

* rename DAC11607-address to MAX116xx-address
* rename ADC5820-address to MAX5820-address
Android.mk: fix include path to libplutil
ChangeLog v1.0 -> v1.1