diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-20 13:12:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-20 13:12:29 -0400 |
commit | 5ca08a82a75c9109f8207cbcbef8705334b4713a (patch) | |
tree | 5829fcfb3c79b28f80308d19ea11eb64d6d416e5 | |
parent | f4d03bd143c628b00f66cc2ec2c013767bdd1518 (diff) | |
parent | 6e4206136faa9a4d588946dfa604e1d989a9b3b6 (diff) |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
Pull m68k fixes from Greg Ungerer:
"Nothing big, spelling fixes and fix/cleanup for ColdFire eth device setup"
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
m68knommu: fix fec setup warning for ColdFire 5271 builds
m68knommu: ColdFire 5271 only has a single FEC controller
m68k: Fix trivial typos in comments
-rw-r--r-- | arch/m68k/coldfire/m527x.c | 3 | ||||
-rw-r--r-- | arch/m68k/include/asm/m527xsim.h | 2 | ||||
-rw-r--r-- | arch/m68k/include/asm/m68360_pram.h | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/arch/m68k/coldfire/m527x.c b/arch/m68k/coldfire/m527x.c index 2ba470735bed..c0b3e28f91df 100644 --- a/arch/m68k/coldfire/m527x.c +++ b/arch/m68k/coldfire/m527x.c | |||
@@ -92,7 +92,6 @@ static void __init m527x_uarts_init(void) | |||
92 | 92 | ||
93 | static void __init m527x_fec_init(void) | 93 | static void __init m527x_fec_init(void) |
94 | { | 94 | { |
95 | u16 par; | ||
96 | u8 v; | 95 | u8 v; |
97 | 96 | ||
98 | /* Set multi-function pins to ethernet mode for fec0 */ | 97 | /* Set multi-function pins to ethernet mode for fec0 */ |
@@ -100,6 +99,8 @@ static void __init m527x_fec_init(void) | |||
100 | v = readb(MCFGPIO_PAR_FECI2C); | 99 | v = readb(MCFGPIO_PAR_FECI2C); |
101 | writeb(v | 0xf0, MCFGPIO_PAR_FECI2C); | 100 | writeb(v | 0xf0, MCFGPIO_PAR_FECI2C); |
102 | #else | 101 | #else |
102 | u16 par; | ||
103 | |||
103 | par = readw(MCFGPIO_PAR_FECI2C); | 104 | par = readw(MCFGPIO_PAR_FECI2C); |
104 | writew(par | 0xf00, MCFGPIO_PAR_FECI2C); | 105 | writew(par | 0xf00, MCFGPIO_PAR_FECI2C); |
105 | v = readb(MCFGPIO_PAR_FEC0HL); | 106 | v = readb(MCFGPIO_PAR_FEC0HL); |
diff --git a/arch/m68k/include/asm/m527xsim.h b/arch/m68k/include/asm/m527xsim.h index 1bebbe78055a..2c648a043f24 100644 --- a/arch/m68k/include/asm/m527xsim.h +++ b/arch/m68k/include/asm/m527xsim.h | |||
@@ -103,8 +103,10 @@ | |||
103 | */ | 103 | */ |
104 | #define MCFFEC_BASE0 (MCF_IPSBAR + 0x1000) | 104 | #define MCFFEC_BASE0 (MCF_IPSBAR + 0x1000) |
105 | #define MCFFEC_SIZE0 0x800 | 105 | #define MCFFEC_SIZE0 0x800 |
106 | #ifdef CONFIG_M5275 | ||
106 | #define MCFFEC_BASE1 (MCF_IPSBAR + 0x1800) | 107 | #define MCFFEC_BASE1 (MCF_IPSBAR + 0x1800) |
107 | #define MCFFEC_SIZE1 0x800 | 108 | #define MCFFEC_SIZE1 0x800 |
109 | #endif | ||
108 | 110 | ||
109 | /* | 111 | /* |
110 | * QSPI module. | 112 | * QSPI module. |
diff --git a/arch/m68k/include/asm/m68360_pram.h b/arch/m68k/include/asm/m68360_pram.h index e6088bbce93d..c0cbd96f09bc 100644 --- a/arch/m68k/include/asm/m68360_pram.h +++ b/arch/m68k/include/asm/m68360_pram.h | |||
@@ -170,7 +170,7 @@ struct uart_pram { | |||
170 | unsigned short frmer; /* Rx framing error counter */ | 170 | unsigned short frmer; /* Rx framing error counter */ |
171 | unsigned short nosec; /* Rx noise counter */ | 171 | unsigned short nosec; /* Rx noise counter */ |
172 | unsigned short brkec; /* Rx break character counter */ | 172 | unsigned short brkec; /* Rx break character counter */ |
173 | unsigned short brkln; /* Reaceive break length */ | 173 | unsigned short brkln; /* Receive break length */ |
174 | 174 | ||
175 | unsigned short uaddr1; /* address character 1 */ | 175 | unsigned short uaddr1; /* address character 1 */ |
176 | unsigned short uaddr2; /* address character 2 */ | 176 | unsigned short uaddr2; /* address character 2 */ |
@@ -338,7 +338,7 @@ struct ethernet_pram { | |||
338 | unsigned long c_pres; /* preset CRC */ | 338 | unsigned long c_pres; /* preset CRC */ |
339 | unsigned long c_mask; /* constant mask for CRC */ | 339 | unsigned long c_mask; /* constant mask for CRC */ |
340 | unsigned long crcec; /* CRC error counter */ | 340 | unsigned long crcec; /* CRC error counter */ |
341 | unsigned long alec; /* alighnment error counter */ | 341 | unsigned long alec; /* alignment error counter */ |
342 | unsigned long disfc; /* discard frame counter */ | 342 | unsigned long disfc; /* discard frame counter */ |
343 | unsigned short pads; /* short frame PAD characters */ | 343 | unsigned short pads; /* short frame PAD characters */ |
344 | unsigned short ret_lim; /* retry limit threshold */ | 344 | unsigned short ret_lim; /* retry limit threshold */ |