18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/****************************************************************************/ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci/* 58c2ecf20Sopenharmony_ci * mcfslt.h -- ColdFire internal Slice (SLT) timer support defines. 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * (C) Copyright 2004, Greg Ungerer (gerg@snapgear.com) 88c2ecf20Sopenharmony_ci * (C) Copyright 2009, Philippe De Muyter (phdm@macqel.be) 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/****************************************************************************/ 128c2ecf20Sopenharmony_ci#ifndef mcfslt_h 138c2ecf20Sopenharmony_ci#define mcfslt_h 148c2ecf20Sopenharmony_ci/****************************************************************************/ 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci/* 178c2ecf20Sopenharmony_ci * Define the SLT timer register set addresses. 188c2ecf20Sopenharmony_ci */ 198c2ecf20Sopenharmony_ci#define MCFSLT_STCNT 0x00 /* Terminal count */ 208c2ecf20Sopenharmony_ci#define MCFSLT_SCR 0x04 /* Control */ 218c2ecf20Sopenharmony_ci#define MCFSLT_SCNT 0x08 /* Current count */ 228c2ecf20Sopenharmony_ci#define MCFSLT_SSR 0x0C /* Status */ 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci/* 258c2ecf20Sopenharmony_ci * Bit definitions for the SCR control register. 268c2ecf20Sopenharmony_ci */ 278c2ecf20Sopenharmony_ci#define MCFSLT_SCR_RUN 0x04000000 /* Run mode (continuous) */ 288c2ecf20Sopenharmony_ci#define MCFSLT_SCR_IEN 0x02000000 /* Interrupt enable */ 298c2ecf20Sopenharmony_ci#define MCFSLT_SCR_TEN 0x01000000 /* Timer enable */ 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci/* 328c2ecf20Sopenharmony_ci * Bit definitions for the SSR status register. 338c2ecf20Sopenharmony_ci */ 348c2ecf20Sopenharmony_ci#define MCFSLT_SSR_BE 0x02000000 /* Bus error condition */ 358c2ecf20Sopenharmony_ci#define MCFSLT_SSR_TE 0x01000000 /* Timeout condition */ 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci/****************************************************************************/ 388c2ecf20Sopenharmony_ci#endif /* mcfslt_h */ 39