Commit bd5d1901 authored by Deepak Saxena's avatar Deepak Saxena Committed by Russell King

[ARM PATCH] 1621/1: IOP3xx CPU detection (cleaned up)

Patch from Deepak Saxena

Removes extraneous bits that belong to separate IOP3xx PCI cleanup patch
Supersedes 1618/1
parent f74cf592
...@@ -11,6 +11,14 @@ ...@@ -11,6 +11,14 @@
#ifndef _IOP310_HW_H_ #ifndef _IOP310_HW_H_
#define _IOP310_HW_H_ #define _IOP310_HW_H_
/*
* This is needed for mixed drivers that need to work on all
* IOP3xx variants but behave slightly differently on each.
*/
#ifndef __ASSEMBLY__
#define iop_is_310() ((processor_id & 0xffffe3f0) == 0x69052000)
#endif
/* /*
* IOP310 I/O and Mem space regions for PCI autoconfiguration * IOP310 I/O and Mem space regions for PCI autoconfiguration
*/ */
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
#define _IOP321_HW_H_ #define _IOP321_HW_H_
/*
* This is needed for mixed drivers that need to work on all
* IOP3xx variants but behave slightly differently on each.
*/
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#define iop_is_321() ((processor_id & 0xfffff7e0) == 0x69052420) #define iop_is_321() ((processor_id & 0xfffff7e0) == 0x69052420)
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment