]> git.sur5r.net Git - u-boot/commitdiff
Blackfin: unify duplicate CPU port definitions
authorMike Frysinger <vapier@gentoo.org>
Sat, 7 Feb 2009 10:25:35 +0000 (05:25 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 23 Mar 2009 19:14:53 +0000 (15:14 -0400)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
16 files changed:
include/asm-blackfin/mach-bf527/ports.h
include/asm-blackfin/mach-bf533/ports.h
include/asm-blackfin/mach-bf537/ports.h
include/asm-blackfin/mach-bf548/ports.h
include/asm-blackfin/mach-bf561/def_local.h
include/asm-blackfin/mach-bf561/ports.h [new file with mode: 0644]
include/asm-blackfin/mach-common/bits/ports-a.h [new file with mode: 0644]
include/asm-blackfin/mach-common/bits/ports-b.h [new file with mode: 0644]
include/asm-blackfin/mach-common/bits/ports-c.h [new file with mode: 0644]
include/asm-blackfin/mach-common/bits/ports-d.h [new file with mode: 0644]
include/asm-blackfin/mach-common/bits/ports-e.h [new file with mode: 0644]
include/asm-blackfin/mach-common/bits/ports-f.h [new file with mode: 0644]
include/asm-blackfin/mach-common/bits/ports-g.h [new file with mode: 0644]
include/asm-blackfin/mach-common/bits/ports-h.h [new file with mode: 0644]
include/asm-blackfin/mach-common/bits/ports-i.h [new file with mode: 0644]
include/asm-blackfin/mach-common/bits/ports-j.h [new file with mode: 0644]

index c32d69fe2ff233491c351969ba52adb4cc41f1fc..e6b1df87087cd3e03bc203a861ea0985a9ac7a3f 100644 (file)
 #define PORT_x_MUX_7_FUNC_3    (PORT_x_MUX_FUNC_3 << 14)
 #define PORT_x_MUX_7_FUNC_4    (PORT_x_MUX_FUNC_4 << 14)
 
-/* Port F Masks */
-#define PF0                    0x0001
-#define PF1                    0x0002
-#define PF2                    0x0004
-#define PF3                    0x0008
-#define PF4                    0x0010
-#define PF5                    0x0020
-#define PF6                    0x0040
-#define PF7                    0x0080
-#define PF8                    0x0100
-#define PF9                    0x0200
-#define PF10                   0x0400
-#define PF11                   0x0800
-#define PF12                   0x1000
-#define PF13                   0x2000
-#define PF14                   0x4000
-#define PF15                   0x8000
-
-/* Port G Masks */
-#define PG0                    0x0001
-#define PG1                    0x0002
-#define PG2                    0x0004
-#define PG3                    0x0008
-#define PG4                    0x0010
-#define PG5                    0x0020
-#define PG6                    0x0040
-#define PG7                    0x0080
-#define PG8                    0x0100
-#define PG9                    0x0200
-#define PG10                   0x0400
-#define PG11                   0x0800
-#define PG12                   0x1000
-#define PG13                   0x2000
-#define PG14                   0x4000
-#define PG15                   0x8000
-
-/* Port H Masks */
-#define PH0                    0x0001
-#define PH1                    0x0002
-#define PH2                    0x0004
-#define PH3                    0x0008
-#define PH4                    0x0010
-#define PH5                    0x0020
-#define PH6                    0x0040
-#define PH7                    0x0080
-#define PH8                    0x0100
-#define PH9                    0x0200
-#define PH10                   0x0400
-#define PH11                   0x0800
-#define PH12                   0x1000
-#define PH13                   0x2000
-#define PH14                   0x4000
-#define PH15                   0x8000
-
-/* Port J Masks */
-#define PJ0                    0x0001
-#define PJ1                    0x0002
-#define PJ2                    0x0004
-#define PJ3                    0x0008
-#define PJ4                    0x0010
-#define PJ5                    0x0020
-#define PJ6                    0x0040
-#define PJ7                    0x0080
-#define PJ8                    0x0100
-#define PJ9                    0x0200
-#define PJ10                   0x0400
-#define PJ11                   0x0800
-#define PJ12                   0x1000
-#define PJ13                   0x2000
-#define PJ14                   0x4000
-#define PJ15                   0x8000
+#include "../mach-common/bits/ports-f.h"
+#include "../mach-common/bits/ports-g.h"
+#include "../mach-common/bits/ports-h.h"
+#include "../mach-common/bits/ports-j.h"
 
 #endif
index 79bc54d38473c2307f402285fc8a6558cee1e35c..512d6df0256f9438c464934419002837e0bf1933 100644 (file)
@@ -5,22 +5,6 @@
 #ifndef __BFIN_PERIPHERAL_PORT__
 #define __BFIN_PERIPHERAL_PORT__
 
-/* Port F Masks */
-#define PF0                    0x0001
-#define PF1                    0x0002
-#define PF2                    0x0004
-#define PF3                    0x0008
-#define PF4                    0x0010
-#define PF5                    0x0020
-#define PF6                    0x0040
-#define PF7                    0x0080
-#define PF8                    0x0100
-#define PF9                    0x0200
-#define PF10                   0x0400
-#define PF11                   0x0800
-#define PF12                   0x1000
-#define PF13                   0x2000
-#define PF14                   0x4000
-#define PF15                   0x8000
+#include "../mach-common/bits/ports-f.h"
 
 #endif
index cc28ba36190c09e324de7addd7913a7529fe6318..2f6293409f5a0d94488ed2efe3dcb0ce532fda3a 100644 (file)
 #define PGRE                   0x0400
 #define PGTE                   0x0800
 
-/* Port F Masks */
-#define PF0                    0x0001
-#define PF1                    0x0002
-#define PF2                    0x0004
-#define PF3                    0x0008
-#define PF4                    0x0010
-#define PF5                    0x0020
-#define PF6                    0x0040
-#define PF7                    0x0080
-#define PF8                    0x0100
-#define PF9                    0x0200
-#define PF10                   0x0400
-#define PF11                   0x0800
-#define PF12                   0x1000
-#define PF13                   0x2000
-#define PF14                   0x4000
-#define PF15                   0x8000
-
-/* Port G Masks */
-#define PG0                    0x0001
-#define PG1                    0x0002
-#define PG2                    0x0004
-#define PG3                    0x0008
-#define PG4                    0x0010
-#define PG5                    0x0020
-#define PG6                    0x0040
-#define PG7                    0x0080
-#define PG8                    0x0100
-#define PG9                    0x0200
-#define PG10                   0x0400
-#define PG11                   0x0800
-#define PG12                   0x1000
-#define PG13                   0x2000
-#define PG14                   0x4000
-#define PG15                   0x8000
-
-/* Port H Masks */
-#define PH0                    0x0001
-#define PH1                    0x0002
-#define PH2                    0x0004
-#define PH3                    0x0008
-#define PH4                    0x0010
-#define PH5                    0x0020
-#define PH6                    0x0040
-#define PH7                    0x0080
-#define PH8                    0x0100
-#define PH9                    0x0200
-#define PH10                   0x0400
-#define PH11                   0x0800
-#define PH12                   0x1000
-#define PH13                   0x2000
-#define PH14                   0x4000
-#define PH15                   0x8000
+#include "../mach-common/bits/ports-f.h"
+#include "../mach-common/bits/ports-g.h"
+#include "../mach-common/bits/ports-h.h"
 
 #endif
index 5f0e45ef5917e1e7c66ee0d78e11cc7b54d4bdc4..50054f3f1994a0849e8798ac6ec1eb3b002900db 100644 (file)
 #define PORT_x_MUX_15_FUNC_3   (PORT_x_MUX_FUNC_3 << 30)
 #define PORT_x_MUX_15_FUNC_4   (PORT_x_MUX_FUNC_4 << 30)
 
-/* Port A Masks */
-#define PA0                    0x0001
-#define PA1                    0x0002
-#define PA2                    0x0004
-#define PA3                    0x0008
-#define PA4                    0x0010
-#define PA5                    0x0020
-#define PA6                    0x0040
-#define PA7                    0x0080
-#define PA8                    0x0100
-#define PA9                    0x0200
-#define PA10                   0x0400
-#define PA11                   0x0800
-#define PA12                   0x1000
-#define PA13                   0x2000
-#define PA14                   0x4000
-#define PA15                   0x8000
-
-/* Port B Masks */
-#define PB0                    0x0001
-#define PB1                    0x0002
-#define PB2                    0x0004
-#define PB3                    0x0008
-#define PB4                    0x0010
-#define PB5                    0x0020
-#define PB6                    0x0040
-#define PB7                    0x0080
-#define PB8                    0x0100
-#define PB9                    0x0200
-#define PB10                   0x0400
-#define PB11                   0x0800
-#define PB12                   0x1000
-#define PB13                   0x2000
-#define PB14                   0x4000
-#define PB15                   0x8000
-
-/* Port C Masks */
-#define PC0                    0x0001
-#define PC1                    0x0002
-#define PC2                    0x0004
-#define PC3                    0x0008
-#define PC4                    0x0010
-#define PC5                    0x0020
-#define PC6                    0x0040
-#define PC7                    0x0080
-#define PC8                    0x0100
-#define PC9                    0x0200
-#define PC10                   0x0400
-#define PC11                   0x0800
-#define PC12                   0x1000
-#define PC13                   0x2000
-#define PC14                   0x4000
-#define PC15                   0x8000
-
-/* Port F Masks */
-#define PD0                    0x0001
-#define PD1                    0x0002
-#define PD2                    0x0004
-#define PD3                    0x0008
-#define PD4                    0x0010
-#define PD5                    0x0020
-#define PD6                    0x0040
-#define PD7                    0x0080
-#define PD8                    0x0100
-#define PD9                    0x0200
-#define PD10                   0x0400
-#define PD11                   0x0800
-#define PD12                   0x1000
-#define PD13                   0x2000
-#define PD14                   0x4000
-#define PD15                   0x8000
-
-/* Port F Masks */
-#define PE0                    0x0001
-#define PE1                    0x0002
-#define PE2                    0x0004
-#define PE3                    0x0008
-#define PE4                    0x0010
-#define PE5                    0x0020
-#define PE6                    0x0040
-#define PE7                    0x0080
-#define PE8                    0x0100
-#define PE9                    0x0200
-#define PE10                   0x0400
-#define PE11                   0x0800
-#define PE12                   0x1000
-#define PE13                   0x2000
-#define PE14                   0x4000
-#define PE15                   0x8000
-
-/* Port F Masks */
-#define PF0                    0x0001
-#define PF1                    0x0002
-#define PF2                    0x0004
-#define PF3                    0x0008
-#define PF4                    0x0010
-#define PF5                    0x0020
-#define PF6                    0x0040
-#define PF7                    0x0080
-#define PF8                    0x0100
-#define PF9                    0x0200
-#define PF10                   0x0400
-#define PF11                   0x0800
-#define PF12                   0x1000
-#define PF13                   0x2000
-#define PF14                   0x4000
-#define PF15                   0x8000
-
-/* Port G Masks */
-#define PG0                    0x0001
-#define PG1                    0x0002
-#define PG2                    0x0004
-#define PG3                    0x0008
-#define PG4                    0x0010
-#define PG5                    0x0020
-#define PG6                    0x0040
-#define PG7                    0x0080
-#define PG8                    0x0100
-#define PG9                    0x0200
-#define PG10                   0x0400
-#define PG11                   0x0800
-#define PG12                   0x1000
-#define PG13                   0x2000
-#define PG14                   0x4000
-#define PG15                   0x8000
-
-/* Port H Masks */
-#define PH0                    0x0001
-#define PH1                    0x0002
-#define PH2                    0x0004
-#define PH3                    0x0008
-#define PH4                    0x0010
-#define PH5                    0x0020
-#define PH6                    0x0040
-#define PH7                    0x0080
-#define PH8                    0x0100
-#define PH9                    0x0200
-#define PH10                   0x0400
-#define PH11                   0x0800
-#define PH12                   0x1000
-#define PH13                   0x2000
-#define PH14                   0x4000
-#define PH15                   0x8000
-
-/* Port I Masks */
-#define PI0                    0x0001
-#define PI1                    0x0002
-#define PI2                    0x0004
-#define PI3                    0x0008
-#define PI4                    0x0010
-#define PI5                    0x0020
-#define PI6                    0x0040
-#define PI7                    0x0080
-#define PI8                    0x0100
-#define PI9                    0x0200
-#define PI10                   0x0400
-#define PI11                   0x0800
-#define PI12                   0x1000
-#define PI13                   0x2000
-#define PI14                   0x4000
-#define PI15                   0x8000
-
-/* Port I Masks */
-#define PJ0                    0x0001
-#define PJ1                    0x0002
-#define PJ2                    0x0004
-#define PJ3                    0x0008
-#define PJ4                    0x0010
-#define PJ5                    0x0020
-#define PJ6                    0x0040
-#define PJ7                    0x0080
-#define PJ8                    0x0100
-#define PJ9                    0x0200
-#define PJ10                   0x0400
-#define PJ11                   0x0800
-#define PJ12                   0x1000
-#define PJ13                   0x2000
-#define PJ14                   0x4000
-#define PJ15                   0x8000
+#include "../mach-common/bits/ports-a.h"
+#include "../mach-common/bits/ports-b.h"
+#include "../mach-common/bits/ports-c.h"
+#include "../mach-common/bits/ports-d.h"
+#include "../mach-common/bits/ports-e.h"
+#include "../mach-common/bits/ports-f.h"
+#include "../mach-common/bits/ports-g.h"
+#include "../mach-common/bits/ports-h.h"
+#include "../mach-common/bits/ports-i.h"
+#include "../mach-common/bits/ports-j.h"
 
 #endif
index 3ddd689c5d70b78930a5755857f16eed9c9faff2..597dcecd8f0b0aad63c0a99ffd30ead82f6d928d 100644 (file)
@@ -8,3 +8,5 @@
 #define bfin_write_WDOG_CNT(val) bfin_write_WDOGA_CNT(val)
 #define bfin_write_WDOG_CTL(val) bfin_write_WDOGA_CTL(val)
 #define bfin_write_WDOG_STAT(val) bfin_write_WDOGA_STAT(val)
+
+#include "ports.h"
diff --git a/include/asm-blackfin/mach-bf561/ports.h b/include/asm-blackfin/mach-bf561/ports.h
new file mode 100644 (file)
index 0000000..194d4a3
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * Port Masks
+ */
+
+#ifndef __BFIN_PERIPHERAL_PORT__
+#define __BFIN_PERIPHERAL_PORT__
+
+#include "../mach-common/bits/ports-f.h"
+
+/* The non-standard PF16+ */
+#define PF16           (1 << 0)
+#define PF17           (1 << 1)
+#define PF18           (1 << 2)
+#define PF19           (1 << 3)
+#define PF20           (1 << 4)
+#define PF21           (1 << 5)
+#define PF22           (1 << 6)
+#define PF23           (1 << 7)
+#define PF24           (1 << 8)
+#define PF25           (1 << 9)
+#define PF26           (1 << 10)
+#define PF27           (1 << 11)
+#define PF28           (1 << 12)
+#define PF29           (1 << 13)
+#define PF30           (1 << 14)
+#define PF31           (1 << 15)
+#define PF32           (1 << 0)
+#define PF33           (1 << 1)
+#define PF34           (1 << 2)
+#define PF35           (1 << 3)
+#define PF36           (1 << 4)
+#define PF37           (1 << 5)
+#define PF38           (1 << 6)
+#define PF39           (1 << 7)
+#define PF40           (1 << 8)
+#define PF41           (1 << 9)
+#define PF42           (1 << 10)
+#define PF43           (1 << 11)
+#define PF44           (1 << 12)
+#define PF45           (1 << 13)
+#define PF46           (1 << 14)
+#define PF47           (1 << 15)
+
+#endif
diff --git a/include/asm-blackfin/mach-common/bits/ports-a.h b/include/asm-blackfin/mach-common/bits/ports-a.h
new file mode 100644 (file)
index 0000000..9f78a76
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Port A Masks
+ */
+
+#ifndef __BFIN_PERIPHERAL_PORT_A__
+#define __BFIN_PERIPHERAL_PORT_A__
+
+#define PA0            (1 << 0)
+#define PA1            (1 << 1)
+#define PA2            (1 << 2)
+#define PA3            (1 << 3)
+#define PA4            (1 << 4)
+#define PA5            (1 << 5)
+#define PA6            (1 << 6)
+#define PA7            (1 << 7)
+#define PA8            (1 << 8)
+#define PA9            (1 << 9)
+#define PA10           (1 << 10)
+#define PA11           (1 << 11)
+#define PA12           (1 << 12)
+#define PA13           (1 << 13)
+#define PA14           (1 << 14)
+#define PA15           (1 << 15)
+
+#endif
diff --git a/include/asm-blackfin/mach-common/bits/ports-b.h b/include/asm-blackfin/mach-common/bits/ports-b.h
new file mode 100644 (file)
index 0000000..b81702f
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Port B Masks
+ */
+
+#ifndef __BFIN_PERIPHERAL_PORT_B__
+#define __BFIN_PERIPHERAL_PORT_B__
+
+#define PB0            (1 << 0)
+#define PB1            (1 << 1)
+#define PB2            (1 << 2)
+#define PB3            (1 << 3)
+#define PB4            (1 << 4)
+#define PB5            (1 << 5)
+#define PB6            (1 << 6)
+#define PB7            (1 << 7)
+#define PB8            (1 << 8)
+#define PB9            (1 << 9)
+#define PB10           (1 << 10)
+#define PB11           (1 << 11)
+#define PB12           (1 << 12)
+#define PB13           (1 << 13)
+#define PB14           (1 << 14)
+#define PB15           (1 << 15)
+
+#endif
diff --git a/include/asm-blackfin/mach-common/bits/ports-c.h b/include/asm-blackfin/mach-common/bits/ports-c.h
new file mode 100644 (file)
index 0000000..3cc665e
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Port C Masks
+ */
+
+#ifndef __BFIN_PERIPHERAL_PORT_C__
+#define __BFIN_PERIPHERAL_PORT_C__
+
+#define PC0            (1 << 0)
+#define PC1            (1 << 1)
+#define PC2            (1 << 2)
+#define PC3            (1 << 3)
+#define PC4            (1 << 4)
+#define PC5            (1 << 5)
+#define PC6            (1 << 6)
+#define PC7            (1 << 7)
+#define PC8            (1 << 8)
+#define PC9            (1 << 9)
+#define PC10           (1 << 10)
+#define PC11           (1 << 11)
+#define PC12           (1 << 12)
+#define PC13           (1 << 13)
+#define PC14           (1 << 14)
+#define PC15           (1 << 15)
+
+#endif
diff --git a/include/asm-blackfin/mach-common/bits/ports-d.h b/include/asm-blackfin/mach-common/bits/ports-d.h
new file mode 100644 (file)
index 0000000..868c6a0
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Port D Masks
+ */
+
+#ifndef __BFIN_PERIPHERAL_PORT_D__
+#define __BFIN_PERIPHERAL_PORT_D__
+
+#define PD0            (1 << 0)
+#define PD1            (1 << 1)
+#define PD2            (1 << 2)
+#define PD3            (1 << 3)
+#define PD4            (1 << 4)
+#define PD5            (1 << 5)
+#define PD6            (1 << 6)
+#define PD7            (1 << 7)
+#define PD8            (1 << 8)
+#define PD9            (1 << 9)
+#define PD10           (1 << 10)
+#define PD11           (1 << 11)
+#define PD12           (1 << 12)
+#define PD13           (1 << 13)
+#define PD14           (1 << 14)
+#define PD15           (1 << 15)
+
+#endif
diff --git a/include/asm-blackfin/mach-common/bits/ports-e.h b/include/asm-blackfin/mach-common/bits/ports-e.h
new file mode 100644 (file)
index 0000000..c88b0d0
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Port E Masks
+ */
+
+#ifndef __BFIN_PERIPHERAL_PORT_E__
+#define __BFIN_PERIPHERAL_PORT_E__
+
+#define PE0            (1 << 0)
+#define PE1            (1 << 1)
+#define PE2            (1 << 2)
+#define PE3            (1 << 3)
+#define PE4            (1 << 4)
+#define PE5            (1 << 5)
+#define PE6            (1 << 6)
+#define PE7            (1 << 7)
+#define PE8            (1 << 8)
+#define PE9            (1 << 9)
+#define PE10           (1 << 10)
+#define PE11           (1 << 11)
+#define PE12           (1 << 12)
+#define PE13           (1 << 13)
+#define PE14           (1 << 14)
+#define PE15           (1 << 15)
+
+#endif
diff --git a/include/asm-blackfin/mach-common/bits/ports-f.h b/include/asm-blackfin/mach-common/bits/ports-f.h
new file mode 100644 (file)
index 0000000..d6af206
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Port F Masks
+ */
+
+#ifndef __BFIN_PERIPHERAL_PORT_F__
+#define __BFIN_PERIPHERAL_PORT_F__
+
+#define PF0            (1 << 0)
+#define PF1            (1 << 1)
+#define PF2            (1 << 2)
+#define PF3            (1 << 3)
+#define PF4            (1 << 4)
+#define PF5            (1 << 5)
+#define PF6            (1 << 6)
+#define PF7            (1 << 7)
+#define PF8            (1 << 8)
+#define PF9            (1 << 9)
+#define PF10           (1 << 10)
+#define PF11           (1 << 11)
+#define PF12           (1 << 12)
+#define PF13           (1 << 13)
+#define PF14           (1 << 14)
+#define PF15           (1 << 15)
+
+#endif
diff --git a/include/asm-blackfin/mach-common/bits/ports-g.h b/include/asm-blackfin/mach-common/bits/ports-g.h
new file mode 100644 (file)
index 0000000..09355d3
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Port G Masks
+ */
+
+#ifndef __BFIN_PERIPHERAL_PORT_G__
+#define __BFIN_PERIPHERAL_PORT_G__
+
+#define PG0            (1 << 0)
+#define PG1            (1 << 1)
+#define PG2            (1 << 2)
+#define PG3            (1 << 3)
+#define PG4            (1 << 4)
+#define PG5            (1 << 5)
+#define PG6            (1 << 6)
+#define PG7            (1 << 7)
+#define PG8            (1 << 8)
+#define PG9            (1 << 9)
+#define PG10           (1 << 10)
+#define PG11           (1 << 11)
+#define PG12           (1 << 12)
+#define PG13           (1 << 13)
+#define PG14           (1 << 14)
+#define PG15           (1 << 15)
+
+#endif
diff --git a/include/asm-blackfin/mach-common/bits/ports-h.h b/include/asm-blackfin/mach-common/bits/ports-h.h
new file mode 100644 (file)
index 0000000..fa3910c
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Port H Masks
+ */
+
+#ifndef __BFIN_PERIPHERAL_PORT_H__
+#define __BFIN_PERIPHERAL_PORT_H__
+
+#define PH0            (1 << 0)
+#define PH1            (1 << 1)
+#define PH2            (1 << 2)
+#define PH3            (1 << 3)
+#define PH4            (1 << 4)
+#define PH5            (1 << 5)
+#define PH6            (1 << 6)
+#define PH7            (1 << 7)
+#define PH8            (1 << 8)
+#define PH9            (1 << 9)
+#define PH10           (1 << 10)
+#define PH11           (1 << 11)
+#define PH12           (1 << 12)
+#define PH13           (1 << 13)
+#define PH14           (1 << 14)
+#define PH15           (1 << 15)
+
+#endif
diff --git a/include/asm-blackfin/mach-common/bits/ports-i.h b/include/asm-blackfin/mach-common/bits/ports-i.h
new file mode 100644 (file)
index 0000000..f176f08
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Port I Masks
+ */
+
+#ifndef __BFIN_PERIPHERAL_PORT_I__
+#define __BFIN_PERIPHERAL_PORT_I__
+
+#define PI0            (1 << 0)
+#define PI1            (1 << 1)
+#define PI2            (1 << 2)
+#define PI3            (1 << 3)
+#define PI4            (1 << 4)
+#define PI5            (1 << 5)
+#define PI6            (1 << 6)
+#define PI7            (1 << 7)
+#define PI8            (1 << 8)
+#define PI9            (1 << 9)
+#define PI10           (1 << 10)
+#define PI11           (1 << 11)
+#define PI12           (1 << 12)
+#define PI13           (1 << 13)
+#define PI14           (1 << 14)
+#define PI15           (1 << 15)
+
+#endif
diff --git a/include/asm-blackfin/mach-common/bits/ports-j.h b/include/asm-blackfin/mach-common/bits/ports-j.h
new file mode 100644 (file)
index 0000000..924123e
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Port J Masks
+ */
+
+#ifndef __BFIN_PERIPHERAL_PORT_J__
+#define __BFIN_PERIPHERAL_PORT_J__
+
+#define PJ0            (1 << 0)
+#define PJ1            (1 << 1)
+#define PJ2            (1 << 2)
+#define PJ3            (1 << 3)
+#define PJ4            (1 << 4)
+#define PJ5            (1 << 5)
+#define PJ6            (1 << 6)
+#define PJ7            (1 << 7)
+#define PJ8            (1 << 8)
+#define PJ9            (1 << 9)
+#define PJ10           (1 << 10)
+#define PJ11           (1 << 11)
+#define PJ12           (1 << 12)
+#define PJ13           (1 << 13)
+#define PJ14           (1 << 14)
+#define PJ15           (1 << 15)
+
+#endif