sprayTerminalOperation.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * OMAP3/OMAP4 Voltage Management Routines
  3. *
  4. * Author: Thara Gopinath <thara@ti.com>
  5. *
  6. * Copyright (C) 2007 Texas Instruments, Inc.
  7. * Rajendra Nayak <rnayak@ti.com>
  8. * Lesly A M <x0080970@ti.com>
  9. *
  10. * Copyright (C) 2008, 2011 Nokia Corporation
  11. * Kalle Jokiniemi
  12. * Paul Walmsley
  13. *
  14. * Copyright (C) 2010 Texas Instruments, Inc.
  15. * Thara Gopinath <thara@ti.com>
  16. *
  17. * This program is free software; you can redistribute it and/or modify
  18. * it under the terms of the GNU General Public License version 2 as
  19. * published by the Free Software Foundation.
  20. */
  21. #include <linux/delay.h>
  22. #include <linux/io.h>
  23. #include <linux/err.h>
  24. #include <linux/export.h>
  25. #include <linux/debugfs.h>
  26. #include <linux/slab.h>
  27. #include <linux/clk.h>
  28. #include "common.h"
  29. #include "prm-regbits-34xx.h"
  30. #include "prm-regbits-44xx.h"
  31. #include "prm44xx.h"
  32. #include "prcm44xx.h"
  33. #include "prminst44xx.h"
  34. #include "control.h"
  35. #include "voltage.h"
  36. #include "powerdomain.h"
  37. #include "vc.h"
  38. #include "vp.h"
  39. static LIST_HEAD(voltdm_list);
  40. /* Public functions */
  41. /**
  42. * voltdm_get_voltage() - Gets the current non-auto-compensated voltage
  43. * @voltdm: pointer to the voltdm for which current voltage info is needed
  44. *
  45. * API to get the current non-auto-compensated voltage for a voltage domain.
  46. * Returns 0 in case of error else returns the current voltage.
  47. */
  48. unsigned long voltdm_get_voltage(struct voltagedomain *voltdm)