xref: /kernel/linux/linux-6.6/include/sound/max9768.h (revision 62306a36)
162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * Platform data for MAX9768
362306a36Sopenharmony_ci * Copyright (C) 2011, 2012 by Wolfram Sang, Pengutronix e.K.
462306a36Sopenharmony_ci * same licence as the driver
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#ifndef __SOUND_MAX9768_PDATA_H__
862306a36Sopenharmony_ci#define __SOUND_MAX9768_PDATA_H__
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci/**
1162306a36Sopenharmony_ci * struct max9768_pdata - optional platform specific MAX9768 configuration
1262306a36Sopenharmony_ci * @shdn_gpio:	GPIO to SHDN pin. If not valid, pin must be hardwired HIGH
1362306a36Sopenharmony_ci * @mute_gpio:	GPIO to MUTE pin. If not valid, control for mute won't be added
1462306a36Sopenharmony_ci * @flags: configuration flags, e.g. set classic PWM mode (check datasheet
1562306a36Sopenharmony_ci *         regarding "filterless modulation" which is default).
1662306a36Sopenharmony_ci */
1762306a36Sopenharmony_cistruct max9768_pdata {
1862306a36Sopenharmony_ci	int shdn_gpio;
1962306a36Sopenharmony_ci	int mute_gpio;
2062306a36Sopenharmony_ci	unsigned flags;
2162306a36Sopenharmony_ci#define MAX9768_FLAG_CLASSIC_PWM	(1 << 0)
2262306a36Sopenharmony_ci};
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci#endif /* __SOUND_MAX9768_PDATA_H__*/
25