linux/drivers/iio/dac/stm32-dac-core.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * This file is part of STM32 DAC driver
 *
 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved
 * Author: Fabrice Gasnier <[email protected]>.
 */

#ifndef __STM32_DAC_CORE_H
#define __STM32_DAC_CORE_H

#include <linux/regmap.h>

/* STM32 DAC registers */
#define STM32_DAC_CR
#define STM32_DAC_DHR12R1
#define STM32_DAC_DHR12R2
#define STM32_DAC_DOR1
#define STM32_DAC_DOR2

/* STM32_DAC_CR bit fields */
#define STM32_DAC_CR_EN1
#define STM32H7_DAC_CR_HFSEL
#define STM32_DAC_CR_EN2

/**
 * struct stm32_dac_common - stm32 DAC driver common data (for all instances)
 * @regmap: DAC registers shared via regmap
 * @vref_mv: reference voltage (mv)
 * @hfsel: high speed bus clock selected
 */
struct stm32_dac_common {};

#endif