/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************/ /* * nettel.h -- Lineo (formerly Moreton Bay) NETtel support. * * (C) Copyright 1999-2000, Moreton Bay (www.moretonbay.com) * (C) Copyright 2000-2001, Lineo Inc. (www.lineo.com) * (C) Copyright 2001-2002, SnapGear Inc., (www.snapgear.com) */ /****************************************************************************/ #ifndef nettel_h #define nettel_h /****************************************************************************/ /****************************************************************************/ #ifdef CONFIG_NETtel /****************************************************************************/ #ifdef CONFIG_COLDFIRE #include <asm/coldfire.h> #include <asm/mcfsim.h> #include <asm/io.h> #endif /*---------------------------------------------------------------------------*/ #if defined(CONFIG_M5307) /* * NETtel/5307 based hardware first. DTR/DCD lines are wired to * GPIO lines. Most of the LED's are driver through a latch * connected to CS2. */ #define MCFPP_DCD1 0x0001 #define MCFPP_DCD0 0x0002 #define MCFPP_DTR1 0x0004 #define MCFPP_DTR0 0x0008 #define NETtel_LEDADDR 0x30400000 #ifndef __ASSEMBLY__ extern volatile unsigned short ppdata; /* * These functions defined to give quasi generic access to the * PPIO bits used for DTR/DCD. */
static __inline__ unsigned int mcf_getppdata(void) { volatile unsigned short *pp; pp = (volatile unsigned short *) MCFSIM_PADAT; return((unsigned int) *pp); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alan Cox | 36 | 100.00% | 1 | 100.00% |
Total | 36 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Alan Cox | 47 | 100.00% | 1 | 100.00% |
Total | 47 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Alan Cox | 12 | 75.00% | 1 | 50.00% |
Greg Ungerer | 4 | 25.00% | 1 | 50.00% |
Total | 16 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Alan Cox | 24 | 75.00% | 1 | 33.33% |
Greg Ungerer | 8 | 25.00% | 2 | 66.67% |
Total | 32 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Alan Cox | 240 | 93.75% | 1 | 25.00% |
Greg Ungerer | 15 | 5.86% | 2 | 50.00% |
Greg Kroah-Hartman | 1 | 0.39% | 1 | 25.00% |
Total | 256 | 100.00% | 4 | 100.00% |