unsupported
     ˆÄÅƒí»ÃÁÇ ¥    /* SPDX-License-Identifier: GPL-2.0 */
/*
 * STM32 Low-Power Timer parent driver.
 * Copyright (C) STMicroelectronics 2017
 * Author: Fabrice Gasnier <fabrice.gasnier@st.com>
 * Inspired by Benjamin Gaignard's stm32-timers driver
 */

#ifndef _LINUX_STM32_LPTIMER_H_
#define _LINUX_STM32_LPTIMER_H_

#include <linux/clk.h>
#include <linux/regmap.h>

#define STM32_LPTIM_ISR		0x00	/* Interrupt and Status Reg  */
#define STM32_LPTIM_ICR		0x04	/* Interrupt Clear Reg       */
#define STM32_LPTIM_IER		0x08	/* Interrupt Enable Reg      */
#define STM32_LPTIM_CFGR	0x0C	/* Configuration Reg         */
#define STM32_LPTIM_CR		0x10	/* Control Reg               */
#define STM32_LPTIM_CMP		0x14	/* Compare Reg               */
#define STM32_LPTIM_ARR		0x18	/* Autoreload Reg            */
#define STM32_LPTIM_CNT		0x1C	/* Counter Reg               */

/* STM32_LPTIM_ISR - bit fields */
#define STM32_LPTIM_CMPOK_ARROK		GENMASK(4, 3)
#define STM32_LPTIM_ARROK		BIT(4)
#define STM32_LPTIM_CMPOK		BIT(3)

/* STM32_LPTIM_ICR - bit fields */
#define STM32_LPTIM_ARRMCF		BIT(1)
#define STM32_LPTIM_CMPOKCF_ARROKCF	GENMASK(4, 3)

/* STM32_LPTIM_IER - bit flieds */
#define STM32_LPTIM_ARRMIE	BIT(1)

/* STM32_LPTIM_CR - bit fields */
#define STM32_LPTIM_CNTSTRT	BIT(2)
#define STM32_LPTIM_SNGSTRT	BIT(1)
#define STM32_LPTIM_ENABLE	BIT(0)

/* STM32_LPTIM_CFGR - bit fields */
#define STM32_LPTIM_ENC		BIT(24)
#define STM32_LPTIM_COUNTMODE	BIT(23)
#define STM32_LPTIM_WAVPOL	BIT(21)
#define STM32_LPTIM_PRESC	GENMASK(11, 9)
#define STM32_LPTIM_CKPOL	GENMASK(2, 1)

/* STM32_LPTIM_ARR */
#define STM32_LPTIM_MAX_ARR	0xFFFF

/**
 * struct stm32_lptimer - STM32 Low-Power Timer data assigned by parent device
 * @clk: clock reference for this instance
 * @regmap: register map reference for this instance
 * @has_encoder: indicates this Low-Power Timer supports encoder mode
 */
struct stm32_lptimer {
	struct clk *clk;
	struct regmap *regmap;
	bool has_encoder;
};

#endif
  #   ˆl–Ðz¾”TÜZÔâ‚À¿p.©‹FÿÆ„ hÂÈ ?÷     ELF          >    `!@     @       ÀQ          @ 8  @ !         @       @ @     @ @     Ø      Ø                         @     @                                          @       @     È      È                           @      @     5      5                    0       0@      0@     4      4                   À=      ÀM@     ÀM@     4      p                   Ð=      ÐM@     ÐM@                              8      8@     8@     0       0                    h      h@     h@     D       D              Såtd   8      8@     8@     0       0              Påtd   Ü2      Ü2@     Ü2@     D       D              Qåtd                                                  Råtd   À=      ÀM@     ÀM@     @      @             /lib64/ld-linux-x86-64.so.2               GNU   À          € À                   GNU ‘Ý¼îEüŽ z	—ŸçØävýÌ«         GNU                                   €          fUa9ò‹                        2                                            �                      ’                                                                 ì                      G                     ¤                      Ñ                                             �                      ,                       _                      ×                      ±                      N                     W                                          Ç                      !                     n                      †                      å                      ù                      ¹                      @                     k                     F                      ò                      d                     —      Q@            X      Q@             _ITM_deregisterTMCloneTable __gmon_start__ _ITM_registerTMCloneTable __libc_start_main stderr __vfprintf_chk __stack_chk_fail malloc strcmp puts exit stdin strlen __memcpy_chk strrchr db_env_create db_create fgets __ctype_b_loc strcpy fopen me