blob: 56f3d0f011fe9f10a0dd52456816a4a705767532 [file] [log] [blame]
Angel Ponsf23ae0b2020-04-02 23:48:12 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Gabe Black3c7e9392013-05-26 07:15:57 -07002
Sam Lewisad7b2e22020-08-03 20:18:29 +10003#ifndef __SOC_TI_AM335X_DMTIMER_H__
4#define __SOC_TI_AM335X_DMTIMER_H__
Gabe Black3c7e9392013-05-26 07:15:57 -07005
6#include <stdint.h>
7
Sam Lewisfde084b2020-08-04 19:47:50 +10008#define M_OSC_MHZ (24)
Gabe Black3c7e9392013-05-26 07:15:57 -07009
Sam Lewisfde084b2020-08-04 19:47:50 +100010struct am335x_dmtimer {
11 uint32_t tidr;
12 uint8_t res1[12];
13 uint32_t tiocp_cfg;
14 uint8_t res2[12];
15 uint32_t irq_eoi;
16 uint32_t irqstatus_raw;
17 uint32_t irqstatus;
18 uint32_t irqenable_set;
19 uint32_t irqenable_clr;
20 uint32_t irqwakeen;
21 uint32_t tclr;
22 uint32_t tcrr;
23 uint32_t tldr;
24 uint32_t ttgr;
25 uint32_t twps;
26 uint32_t tmar;
27 uint32_t tcar1;
28 uint32_t tsicr;
29 uint32_t tcar2;
30};
31
32#define TCLR_ST (0x01 << 0)
33#define TCLR_AR (0x01 << 1)
34
35#define DMTIMER_2 (0x48040000)
Gabe Black3c7e9392013-05-26 07:15:57 -070036
37#endif