mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 06:56:49 +07:00
5427828e83
Recent update of asm-powerpc/io.h caused cpm-related stuff to break in the current kernel. Current patch fixes it, as well as other inconsistencies expressed, that do not permit targets from working properly: - Updated dts with a chosen node with interrupt controller, - fixed messed device IDs among CPM2 SoC devices, - corrected odd header name and fixed type in defines, - Added 82xx subdir to the powerpc/platforms Makefile, missed during initial commit, - new solely-powerpc header file for 8260 family (was using one from arch/ppc, this one cleaned up from the extra stuff), in fact for now a placeholder to get the board-specific includes for stuff not yet capable to live with devicetree peeks only - Fixed couple of misprints in reference mpc8272 dts. Signed-off-by: Vitaly Bordug <vbordug@ru.mvista.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
67 lines
2.3 KiB
C
67 lines
2.3 KiB
C
/*
|
|
* PQ2/mpc8260 board-specific stuff
|
|
*
|
|
* A collection of structures, addresses, and values associated with
|
|
* the Freescale MPC8260ADS/MPC8266ADS-PCI boards.
|
|
* Copied from the RPX-Classic and SBS8260 stuff.
|
|
*
|
|
* Author: Vitaly Bordug <vbordug@ru.mvista.com>
|
|
*
|
|
* Originally written by Dan Malek for Motorola MPC8260 family
|
|
*
|
|
* Copyright (c) 2001 Dan Malek <dan@embeddedalley.com>
|
|
* Copyright (c) 2006 MontaVista Software, Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the
|
|
* Free Software Foundation; either version 2 of the License, or (at your
|
|
* option) any later version.
|
|
*/
|
|
|
|
#ifdef __KERNEL__
|
|
#ifndef __MACH_ADS8260_DEFS
|
|
#define __MACH_ADS8260_DEFS
|
|
|
|
#include <linux/seq_file.h>
|
|
#include <asm/ppcboot.h>
|
|
|
|
/* For our show_cpuinfo hooks. */
|
|
#define CPUINFO_VENDOR "Freescale Semiconductor"
|
|
#define CPUINFO_MACHINE "PQ2 ADS PowerPC"
|
|
|
|
/* Backword-compatibility stuff for the drivers */
|
|
#define CPM_MAP_ADDR ((uint)0xf0000000)
|
|
#define CPM_IRQ_OFFSET 0
|
|
|
|
/* The ADS8260 has 16, 32-bit wide control/status registers, accessed
|
|
* only on word boundaries.
|
|
* Not all are used (yet), or are interesting to us (yet).
|
|
*/
|
|
|
|
/* Things of interest in the CSR.
|
|
*/
|
|
#define BCSR0_LED0 ((uint)0x02000000) /* 0 == on */
|
|
#define BCSR0_LED1 ((uint)0x01000000) /* 0 == on */
|
|
#define BCSR1_FETHIEN ((uint)0x08000000) /* 0 == enable*/
|
|
#define BCSR1_FETH_RST ((uint)0x04000000) /* 0 == reset */
|
|
#define BCSR1_RS232_EN1 ((uint)0x02000000) /* 0 ==enable */
|
|
#define BCSR1_RS232_EN2 ((uint)0x01000000) /* 0 ==enable */
|
|
#define BCSR3_FETHIEN2 ((uint)0x10000000) /* 0 == enable*/
|
|
#define BCSR3_FETH2_RST ((uint)0x80000000) /* 0 == reset */
|
|
|
|
/* cpm serial driver works with constants below */
|
|
|
|
#define SIU_INT_SMC1 ((uint)0x04+CPM_IRQ_OFFSET)
|
|
#define SIU_INT_SMC2 ((uint)0x05+CPM_IRQ_OFFSET)
|
|
#define SIU_INT_SCC1 ((uint)0x28+CPM_IRQ_OFFSET)
|
|
#define SIU_INT_SCC2 ((uint)0x29+CPM_IRQ_OFFSET)
|
|
#define SIU_INT_SCC3 ((uint)0x2a+CPM_IRQ_OFFSET)
|
|
#define SIU_INT_SCC4 ((uint)0x2b+CPM_IRQ_OFFSET)
|
|
|
|
void m82xx_pci_init_irq(void);
|
|
void mpc82xx_ads_show_cpuinfo(struct seq_file*);
|
|
void m82xx_calibrate_decr(void);
|
|
|
|
#endif /* __MACH_ADS8260_DEFS */
|
|
#endif /* __KERNEL__ */
|