waterPressureMemoryDefinition.c 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright (C) ST-Ericsson SA 2010
  3. *
  4. * License Terms: GNU General Public License v2
  5. *
  6. * Authors: Sundar Iyer <sundar.iyer@stericsson.com>
  7. * Bengt Jonsson <bengt.g.jonsson@stericsson.com>
  8. *
  9. * MOP500 board specific initialization for regulators
  10. */
  11. #include <linux/kernel.h>
  12. #include <linux/regulator/machine.h>
  13. #include <linux/regulator/ab8500.h>
  14. #include "board-mop500-regulators.h"
  15. static struct regulator_consumer_supply gpio_en_3v3_consumers[] = {
  16. REGULATOR_SUPPLY("vdd33a", "smsc911x.0"),
  17. };
  18. struct regulator_init_data gpio_en_3v3_regulator = {
  19. .constraints = {
  20. .name = "EN-3V3",
  21. .min_uV = 3300000,
  22. .max_uV = 3300000,
  23. .valid_ops_mask = REGULATOR_CHANGE_STATUS,
  24. },
  25. .num_consumer_supplies = ARRAY_SIZE(gpio_en_3v3_consumers),
  26. .consumer_supplies = gpio_en_3v3_consumers,
  27. };
  28. /*
  29. * TPS61052 regulator
  30. */
  31. static struct regulator_consumer_supply tps61052_vaudio_consumers[] = {
  32. /*
  33. * Boost converter supply to raise voltage on audio speaker, this
  34. * is actually connected to three pins, VInVhfL (left amplifier)
  35. * VInVhfR (right amplifier) and VIntDClassInt - all three must
  36. * be connected to the same voltage.
  37. */
  38. REGULATOR_SUPPLY("vintdclassint", "ab8500-codec.0"),
  39. };
  40. struct regulator_init_data tps61052_regulator = {
  41. .constraints = {
  42. .name = "vaudio-hf",
  43. .min_uV = 4500000,
  44. .max_uV = 4500000,
  45. .valid_ops_mask = REGULATOR_CHANGE_STATUS,
  46. },
  47. .num_consumer_supplies = ARRAY_SIZE(tps61052_vaudio_consumers),
  48. .consumer_supplies = tps61052_vaudio_consumers,