mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 04:32:03 +00:00
3cc7298694
Several forthcoming Wolfson devices are based on a common platform known as Arizona allowing a great deal of reuse of driver code. This patch adds core support for these devices. In order to handle systems which do not use the generic clock API a simple wrapper for the 32kHz clock domain in the devices is provided. Once the generic clock API is widely available this code will be moved over to use that. For simplicity some WM5102 specific code is included in the core driver, the effort involved in splitting the device out isn't worth it. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
34 lines
902 B
C
34 lines
902 B
C
/*
|
|
* wm5102.h -- WM5102 MFD internals
|
|
*
|
|
* Copyright 2012 Wolfson Microelectronics plc
|
|
*
|
|
* Author: Mark Brown <broonie@opensource.wolfsonmicro.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.
|
|
*/
|
|
|
|
#ifndef _WM5102_H
|
|
#define _WM5102_H
|
|
|
|
#include <linux/regmap.h>
|
|
#include <linux/pm.h>
|
|
|
|
struct wm_arizona;
|
|
|
|
extern const struct regmap_config wm5102_i2c_regmap;
|
|
extern const struct regmap_config wm5102_spi_regmap;
|
|
extern const struct dev_pm_ops arizona_pm_ops;
|
|
|
|
extern const struct regmap_irq_chip wm5102_aod;
|
|
extern const struct regmap_irq_chip wm5102_irq;
|
|
|
|
int arizona_dev_init(struct arizona *arizona);
|
|
int arizona_dev_exit(struct arizona *arizona);
|
|
int arizona_irq_init(struct arizona *arizona);
|
|
int arizona_irq_exit(struct arizona *arizona);
|
|
|
|
#endif
|