mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 10:17:48 +07:00
ce3de78a1c
The reality is that you do not need the abiltity to configure the clock divider for ColdFire CPUs. It is a fixed ratio on any given ColdFire family member. It is not the same for all ColdFire parts, but it is always the same in a model range. So hard define the divider for each supported ColdFire CPU type and remove the Kconfig option. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
50 lines
1.6 KiB
C
50 lines
1.6 KiB
C
/****************************************************************************/
|
|
|
|
/*
|
|
* coldfire.h -- Motorola ColdFire CPU sepecific defines
|
|
*
|
|
* (C) Copyright 1999-2006, Greg Ungerer (gerg@snapgear.com)
|
|
* (C) Copyright 2000, Lineo (www.lineo.com)
|
|
*/
|
|
|
|
/****************************************************************************/
|
|
#ifndef coldfire_h
|
|
#define coldfire_h
|
|
/****************************************************************************/
|
|
|
|
|
|
/*
|
|
* Define master clock frequency. This is done at config time now.
|
|
* No point enumerating dozens of possible clock options here. And
|
|
* in any case new boards come along from time to time that have yet
|
|
* another different clocking frequency.
|
|
*/
|
|
#ifdef CONFIG_CLOCK_SET
|
|
#define MCF_CLK CONFIG_CLOCK_FREQ
|
|
#else
|
|
#error "Don't know what your ColdFire CPU clock frequency is??"
|
|
#endif
|
|
|
|
/*
|
|
* Define the processor internal peripherals base address.
|
|
*
|
|
* The majority of ColdFire parts use an MBAR register to set
|
|
* the base address. Some have an IPSBAR register instead, and it
|
|
* has slightly different rules on its size and alignment. Some
|
|
* parts have fixed addresses and the internal peripherals cannot
|
|
* be relocated in the CPU address space.
|
|
*
|
|
* The value of MBAR or IPSBAR is config time selectable, we no
|
|
* longer hard define it here. No MBAR or IPSBAR will be defined if
|
|
* this part has a fixed peripheral address map.
|
|
*/
|
|
#ifdef CONFIG_MBAR
|
|
#define MCF_MBAR CONFIG_MBAR
|
|
#endif
|
|
#ifdef CONFIG_IPSBAR
|
|
#define MCF_IPSBAR CONFIG_IPSBAR
|
|
#endif
|
|
|
|
/****************************************************************************/
|
|
#endif /* coldfire_h */
|