18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * PQ2/mpc8260 board-specific stuff 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * A collection of structures, addresses, and values associated with 68c2ecf20Sopenharmony_ci * the Freescale MPC8260ADS/MPC8266ADS-PCI boards. 78c2ecf20Sopenharmony_ci * Copied from the RPX-Classic and SBS8260 stuff. 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * Author: Vitaly Bordug <vbordug@ru.mvista.com> 108c2ecf20Sopenharmony_ci * 118c2ecf20Sopenharmony_ci * Originally written by Dan Malek for Motorola MPC8260 family 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci * Copyright (c) 2001 Dan Malek <dan@embeddedalley.com> 148c2ecf20Sopenharmony_ci * Copyright (c) 2006 MontaVista Software, Inc. 158c2ecf20Sopenharmony_ci */ 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#ifdef __KERNEL__ 188c2ecf20Sopenharmony_ci#ifndef __MACH_ADS8260_DEFS 198c2ecf20Sopenharmony_ci#define __MACH_ADS8260_DEFS 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#include <linux/seq_file.h> 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci/* The ADS8260 has 16, 32-bit wide control/status registers, accessed 248c2ecf20Sopenharmony_ci * only on word boundaries. 258c2ecf20Sopenharmony_ci * Not all are used (yet), or are interesting to us (yet). 268c2ecf20Sopenharmony_ci */ 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci/* Things of interest in the CSR. 298c2ecf20Sopenharmony_ci */ 308c2ecf20Sopenharmony_ci#define BCSR0_LED0 ((uint)0x02000000) /* 0 == on */ 318c2ecf20Sopenharmony_ci#define BCSR0_LED1 ((uint)0x01000000) /* 0 == on */ 328c2ecf20Sopenharmony_ci#define BCSR1_FETHIEN ((uint)0x08000000) /* 0 == enable*/ 338c2ecf20Sopenharmony_ci#define BCSR1_FETH_RST ((uint)0x04000000) /* 0 == reset */ 348c2ecf20Sopenharmony_ci#define BCSR1_RS232_EN1 ((uint)0x02000000) /* 0 ==enable */ 358c2ecf20Sopenharmony_ci#define BCSR1_RS232_EN2 ((uint)0x01000000) /* 0 ==enable */ 368c2ecf20Sopenharmony_ci#define BCSR3_FETHIEN2 ((uint)0x10000000) /* 0 == enable*/ 378c2ecf20Sopenharmony_ci#define BCSR3_FETH2_RST ((uint)0x80000000) /* 0 == reset */ 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ci#endif /* __MACH_ADS8260_DEFS */ 408c2ecf20Sopenharmony_ci#endif /* __KERNEL__ */ 41