18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Platform data for MAX9768 38c2ecf20Sopenharmony_ci * Copyright (C) 2011, 2012 by Wolfram Sang, Pengutronix e.K. 48c2ecf20Sopenharmony_ci * same licence as the driver 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef __SOUND_MAX9768_PDATA_H__ 88c2ecf20Sopenharmony_ci#define __SOUND_MAX9768_PDATA_H__ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/** 118c2ecf20Sopenharmony_ci * struct max9768_pdata - optional platform specific MAX9768 configuration 128c2ecf20Sopenharmony_ci * @shdn_gpio: GPIO to SHDN pin. If not valid, pin must be hardwired HIGH 138c2ecf20Sopenharmony_ci * @mute_gpio: GPIO to MUTE pin. If not valid, control for mute won't be added 148c2ecf20Sopenharmony_ci * @flags: configuration flags, e.g. set classic PWM mode (check datasheet 158c2ecf20Sopenharmony_ci * regarding "filterless modulation" which is default). 168c2ecf20Sopenharmony_ci */ 178c2ecf20Sopenharmony_cistruct max9768_pdata { 188c2ecf20Sopenharmony_ci int shdn_gpio; 198c2ecf20Sopenharmony_ci int mute_gpio; 208c2ecf20Sopenharmony_ci unsigned flags; 218c2ecf20Sopenharmony_ci#define MAX9768_FLAG_CLASSIC_PWM (1 << 0) 228c2ecf20Sopenharmony_ci}; 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#endif /* __SOUND_MAX9768_PDATA_H__*/ 25