1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun /****************************************************************************/ 3*4882a593Smuzhiyun 4*4882a593Smuzhiyun /* 5*4882a593Smuzhiyun * coldfire.h -- Motorola ColdFire CPU sepecific defines 6*4882a593Smuzhiyun * 7*4882a593Smuzhiyun * (C) Copyright 1999-2006, Greg Ungerer (gerg@snapgear.com) 8*4882a593Smuzhiyun * (C) Copyright 2000, Lineo (www.lineo.com) 9*4882a593Smuzhiyun */ 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun /****************************************************************************/ 12*4882a593Smuzhiyun #ifndef coldfire_h 13*4882a593Smuzhiyun #define coldfire_h 14*4882a593Smuzhiyun /****************************************************************************/ 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun /* 18*4882a593Smuzhiyun * Define master clock frequency. This is done at config time now. 19*4882a593Smuzhiyun * No point enumerating dozens of possible clock options here. And 20*4882a593Smuzhiyun * in any case new boards come along from time to time that have yet 21*4882a593Smuzhiyun * another different clocking frequency. 22*4882a593Smuzhiyun */ 23*4882a593Smuzhiyun #ifdef CONFIG_CLOCK_FREQ 24*4882a593Smuzhiyun #define MCF_CLK CONFIG_CLOCK_FREQ 25*4882a593Smuzhiyun #else 26*4882a593Smuzhiyun #error "Don't know what your ColdFire CPU clock frequency is??" 27*4882a593Smuzhiyun #endif 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun /* 30*4882a593Smuzhiyun * Define the processor internal peripherals base address. 31*4882a593Smuzhiyun * 32*4882a593Smuzhiyun * The majority of ColdFire parts use an MBAR register to set 33*4882a593Smuzhiyun * the base address. Some have an IPSBAR register instead, and it 34*4882a593Smuzhiyun * has slightly different rules on its size and alignment. Some 35*4882a593Smuzhiyun * parts have fixed addresses and the internal peripherals cannot 36*4882a593Smuzhiyun * be relocated in the CPU address space. 37*4882a593Smuzhiyun * 38*4882a593Smuzhiyun * The value of MBAR or IPSBAR is config time selectable, we no 39*4882a593Smuzhiyun * longer hard define it here. No MBAR or IPSBAR will be defined if 40*4882a593Smuzhiyun * this part has a fixed peripheral address map. 41*4882a593Smuzhiyun */ 42*4882a593Smuzhiyun #ifdef CONFIG_MBAR 43*4882a593Smuzhiyun #define MCF_MBAR CONFIG_MBAR 44*4882a593Smuzhiyun #endif 45*4882a593Smuzhiyun #ifdef CONFIG_IPSBAR 46*4882a593Smuzhiyun #define MCF_IPSBAR CONFIG_IPSBAR 47*4882a593Smuzhiyun #endif 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun /****************************************************************************/ 50*4882a593Smuzhiyun #endif /* coldfire_h */ 51