1213904Sandreast/* SPDX-License-Identifier: GPL-2.0 */ 2213904Sandreast/****************************************************************************/ 3213904Sandreast 4213904Sandreast/* 5213904Sandreast * mcfslt.h -- ColdFire internal Slice (SLT) timer support defines. 6213904Sandreast * 7213904Sandreast * (C) Copyright 2004, Greg Ungerer (gerg@snapgear.com) 8213904Sandreast * (C) Copyright 2009, Philippe De Muyter (phdm@macqel.be) 9213904Sandreast */ 10213904Sandreast 11213904Sandreast/****************************************************************************/ 12213904Sandreast#ifndef mcfslt_h 13213904Sandreast#define mcfslt_h 14213904Sandreast/****************************************************************************/ 15213904Sandreast 16213904Sandreast/* 17213904Sandreast * Define the SLT timer register set addresses. 18213904Sandreast */ 19213904Sandreast#define MCFSLT_STCNT 0x00 /* Terminal count */ 20213904Sandreast#define MCFSLT_SCR 0x04 /* Control */ 21213904Sandreast#define MCFSLT_SCNT 0x08 /* Current count */ 22213904Sandreast#define MCFSLT_SSR 0x0C /* Status */ 23213904Sandreast 24213904Sandreast/* 25213904Sandreast * Bit definitions for the SCR control register. 26213904Sandreast */ 27213904Sandreast#define MCFSLT_SCR_RUN 0x04000000 /* Run mode (continuous) */ 28213904Sandreast#define MCFSLT_SCR_IEN 0x02000000 /* Interrupt enable */ 29213904Sandreast#define MCFSLT_SCR_TEN 0x01000000 /* Timer enable */ 30213904Sandreast 31213904Sandreast/* 32213904Sandreast * Bit definitions for the SSR status register. 33213904Sandreast */ 34213904Sandreast#define MCFSLT_SSR_BE 0x02000000 /* Bus error condition */ 35213904Sandreast#define MCFSLT_SSR_TE 0x01000000 /* Timeout condition */ 36213904Sandreast 37213904Sandreast/****************************************************************************/ 38213904Sandreast#endif /* mcfslt_h */ 39213904Sandreast