12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- /*
- * OMAP3/OMAP4 Voltage Management Routines
- *
- * Author: Thara Gopinath <thara@ti.com>
- *
- * Copyright (C) 2007 Texas Instruments, Inc.
- * Rajendra Nayak <rnayak@ti.com>
- * Lesly A M <x0080970@ti.com>
- *
- * Copyright (C) 2008, 2011 Nokia Corporation
- * Kalle Jokiniemi
- * Paul Walmsley
- *
- * Copyright (C) 2010 Texas Instruments, Inc.
- * Thara Gopinath <thara@ti.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
- #include <linux/delay.h>
- #include <linux/io.h>
- #include <linux/err.h>
- #include <linux/export.h>
- #include <linux/debugfs.h>
- #include <linux/slab.h>
- #include <linux/clk.h>
- #include "common.h"
- #include "prm-regbits-34xx.h"
- #include "prm-regbits-44xx.h"
- #include "prm44xx.h"
- #include "prcm44xx.h"
- #include "prminst44xx.h"
- #include "control.h"
- #include "voltage.h"
- #include "powerdomain.h"
- #include "vc.h"
- #include "vp.h"
- static LIST_HEAD(voltdm_list);
- /* Public functions */
- /**
- * voltdm_get_voltage() - Gets the current non-auto-compensated voltage
- * @voltdm: pointer to the voltdm for which current voltage info is needed
- *
- * API to get the current non-auto-compensated voltage for a voltage domain.
- * Returns 0 in case of error else returns the current voltage.
- */
- unsigned long voltdm_get_voltage(struct voltagedomain *voltdm)
|