linux/drivers/mfd/twl-core.c
<<
>>
Prefs
   1/*
   2 * twl_core.c - driver for TWL4030/TWL5030/TWL60X0/TPS659x0 PM
   3 * and audio CODEC devices
   4 *
   5 * Copyright (C) 2005-2006 Texas Instruments, Inc.
   6 *
   7 * Modifications to defer interrupt handling to a kernel thread:
   8 * Copyright (C) 2006 MontaVista Software, Inc.
   9 *
  10 * Based on tlv320aic23.c:
  11 * Copyright (c) by Kai Svahn <kai.svahn@nokia.com>
  12 *
  13 * Code cleanup and modifications to IRQ handler.
  14 * by syed khasim <x0khasim@ti.com>
  15 *
  16 * This program is free software; you can redistribute it and/or modify
  17 * it under the terms of the GNU General Public License as published by
  18 * the Free Software Foundation; either version 2 of the License, or
  19 * (at your option) any later version.
  20 *
  21 * This program is distributed in the hope that it will be useful,
  22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  24 * GNU General Public License for more details.
  25 *
  26 * You should have received a copy of the GNU General Public License
  27 * along with this program; if not, write to the Free Software
  28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  29 */
  30
  31#include <linux/init.h>
  32#include <linux/mutex.h>
  33#include <linux/module.h>
  34#include <linux/platform_device.h>
  35#include <linux/clk.h>
  36#include <linux/err.h>
  37#include <linux/device.h>
  38#include <linux/of.h>
  39#include <linux/of_irq.h>
  40#include <linux/of_platform.h>
  41#include <linux/irq.h>
  42#include <linux/irqdomain.h>
  43
  44#include <linux/regulator/machine.h>
  45
  46#include <linux/i2c.h>
  47#include <linux/i2c/twl.h>
  48
  49#include "twl-core.h"
  50
  51/*
  52 * The TWL4030 "Triton 2" is one of a family of a multi-function "Power
  53 * Management and System Companion Device" chips originally designed for
  54 * use in OMAP2 and OMAP 3 based systems.  Its control interfaces use I2C,
  55 * often at around 3 Mbit/sec, including for interrupt handling.
  56 *
  57 * This driver core provides genirq support for the interrupts emitted,
  58 * by the various modules, and exports register access primitives.
  59 *
  60 * FIXME this driver currently requires use of the first interrupt line
  61 * (and associated registers).
  62 */
  63
  64#define DRIVER_NAME                     "twl"
  65
  66/* Triton Core internal information (BTGIN).16.23
  
  
The original LXR softwa9>ibyers/mvers/mfd/http://sourcespage.net/projects/lx h>LXR ssi2un="comme,ersis experi2c_dal #PS_SUBSbyevers/mfd/mailto:lx @ittux.no">lx @ittux.nolass#
lx .ittux.no kindly hostmment"vers/mfd/http://www.redpill-ittpro.no">Redpill Lttpro ASomme,eprovid/twof Lttuxhe LiultalueriveoperT. 6s ser>/*ls sin <1995.