Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Platform data for MAX9768
0003  * Copyright (C) 2011, 2012 by Wolfram Sang, Pengutronix e.K.
0004  * same licence as the driver
0005  */
0006 
0007 #ifndef __SOUND_MAX9768_PDATA_H__
0008 #define __SOUND_MAX9768_PDATA_H__
0009 
0010 /**
0011  * struct max9768_pdata - optional platform specific MAX9768 configuration
0012  * @shdn_gpio:  GPIO to SHDN pin. If not valid, pin must be hardwired HIGH
0013  * @mute_gpio:  GPIO to MUTE pin. If not valid, control for mute won't be added
0014  * @flags: configuration flags, e.g. set classic PWM mode (check datasheet
0015  *         regarding "filterless modulation" which is default).
0016  */
0017 struct max9768_pdata {
0018     int shdn_gpio;
0019     int mute_gpio;
0020     unsigned flags;
0021 #define MAX9768_FLAG_CLASSIC_PWM    (1 << 0)
0022 };
0023 
0024 #endif /* __SOUND_MAX9768_PDATA_H__*/