aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sh/Kconfig.debug2
-rw-r--r--arch/sh/boards/se/770x/irq.c32
-rw-r--r--arch/sh/boards/se/770x/setup.c2
-rw-r--r--arch/sh/configs/se7705_defconfig106
-rw-r--r--arch/sh/kernel/cpu/irq/Makefile2
-rw-r--r--arch/sh/kernel/cpu/irq/pint.c56
-rw-r--r--arch/sh/kernel/cpu/sh3/setup-sh7705.c54
-rw-r--r--arch/sh/mm/Kconfig1
-rw-r--r--include/asm-sh/se.h5
9 files changed, 215 insertions, 45 deletions
diff --git a/arch/sh/Kconfig.debug b/arch/sh/Kconfig.debug
index be60def6f306..b56307294b67 100644
--- a/arch/sh/Kconfig.debug
+++ b/arch/sh/Kconfig.debug
@@ -33,7 +33,7 @@ config EARLY_SCIF_CONSOLE_PORT
33 default "0xffe00000" if CPU_SUBTYPE_SH7780 33 default "0xffe00000" if CPU_SUBTYPE_SH7780
34 default "0xfffe9800" if CPU_SUBTYPE_SH7206 34 default "0xfffe9800" if CPU_SUBTYPE_SH7206
35 default "0xf8420000" if CPU_SUBTYPE_SH7619 35 default "0xf8420000" if CPU_SUBTYPE_SH7619
36 default "0xa4400000" if CPU_SUBTYPE_SH7712 36 default "0xa4400000" if CPU_SUBTYPE_SH7712 || CPU_SUBTYPE_SH7705
37 default "0xffe80000" if CPU_SH4 37 default "0xffe80000" if CPU_SH4
38 38
39config EARLY_PRINTK 39config EARLY_PRINTK
diff --git a/arch/sh/boards/se/770x/irq.c b/arch/sh/boards/se/770x/irq.c
index 59cdffa13964..c8eccff77a04 100644
--- a/arch/sh/boards/se/770x/irq.c
+++ b/arch/sh/boards/se/770x/irq.c
@@ -65,24 +65,24 @@ static struct ipr_data se770x_ipr_map[] = {
65 * 8: rtc 65 * 8: rtc
66 * 12: mouse 66 * 12: mouse
67 * 14: ide0 67 * 14: ide0
68 */ 68 */
69#if defined(CONFIG_CPU_SUBTYPE_SH7705) 69#if defined(CONFIG_CPU_SUBTYPE_SH7705)
70 /* This is default value */ 70 /* This is default value */
71 { 0xf-0x2, 0, 8, 0x2 , BCR_ILCRA}, 71 { 13, 0, 8, 0x0f-13 ,BCR_ILCRA},
72 { 0xf-0xa, 0, 4, 0xa , BCR_ILCRA}, 72 { 5 , 0, 4, 0x0f- 5 ,BCR_ILCRA},
73 { 0xf-0x5, 0, 0, 0x5 , BCR_ILCRB}, 73 { 10, 0, 0, 0x0f-10, BCR_ILCRB},
74 { 0xf-0x8, 0, 4, 0x8 , BCR_ILCRC}, 74 { 7 , 0, 4, 0x0f- 7, BCR_ILCRC},
75 { 0xf-0xc, 0, 0, 0xc , BCR_ILCRC}, 75 { 3 , 0, 0, 0x0f- 3, BCR_ILCRC},
76 { 0xf-0xe, 0, 12, 0xe , BCR_ILCRD}, 76 { 1 , 0, 12, 0x0f- 1, BCR_ILCRD},
77 { 0xf-0x3, 0, 4, 0x3 , BCR_ILCRD}, /* LAN */ 77 { 12, 0, 4, 0x0f-12, BCR_ILCRD}, /* LAN */
78 { 0xf-0xd, 0, 8, 0xd , BCR_ILCRE}, 78 { 2 , 0, 8, 0x0f- 2, BCR_ILCRE}, /* PCIRQ2 */
79 { 0xf-0x9, 0, 4, 0x9 , BCR_ILCRE}, 79 { 6 , 0, 4, 0x0f- 6, BCR_ILCRE}, /* PCIRQ1 */
80 { 0xf-0x1, 0, 0, 0x1 , BCR_ILCRE}, 80 { 14, 0, 0, 0x0f-14, BCR_ILCRE}, /* PCIRQ0 */
81 { 0xf-0xf, 0, 12, 0xf , BCR_ILCRF}, 81 { 0 , 0, 12, 0x0f , BCR_ILCRF},
82 { 0xf-0xb, 0, 4, 0xb , BCR_ILCRF}, 82 { 4 , 0, 4, 0x0f- 4, BCR_ILCRF},
83 { 0xf-0x7, 0, 12, 0x7 , BCR_ILCRG}, 83 { 8 , 0, 12, 0x0f- 8, BCR_ILCRG},
84 { 0xf-0x6, 0, 8, 0x6 , BCR_ILCRG}, 84 { 9 , 0, 8, 0x0f- 9, BCR_ILCRG},
85 { 0xf-0x4, 0, 4, 0x4 , BCR_ILCRG}, 85 { 11, 0, 4, 0x0f-11, BCR_ILCRG},
86#else 86#else
87 { 14, 0, 8, 0x0f-14 ,BCR_ILCRA}, 87 { 14, 0, 8, 0x0f-14 ,BCR_ILCRA},
88 { 12, 0, 4, 0x0f-12 ,BCR_ILCRA}, 88 { 12, 0, 4, 0x0f-12 ,BCR_ILCRA},
diff --git a/arch/sh/boards/se/770x/setup.c b/arch/sh/boards/se/770x/setup.c
index f1c7c8d9fdd2..17a2631de3ba 100644
--- a/arch/sh/boards/se/770x/setup.c
+++ b/arch/sh/boards/se/770x/setup.c
@@ -76,7 +76,7 @@ static struct resource cf_ide_resources[] = {
76 .flags = IORESOURCE_MEM, 76 .flags = IORESOURCE_MEM,
77 }, 77 },
78 [2] = { 78 [2] = {
79 .start = 7, 79 .start = IRQ_CFCARD,
80 .flags = IORESOURCE_IRQ, 80 .flags = IORESOURCE_IRQ,
81 }, 81 },
82}; 82};
diff --git a/arch/sh/configs/se7705_defconfig b/arch/sh/configs/se7705_defconfig
index 06ebd6ec0cdb..87ae5c1f8629 100644
--- a/arch/sh/configs/se7705_defconfig
+++ b/arch/sh/configs/se7705_defconfig
@@ -1,15 +1,21 @@
1# 1#
2# Automatically generated make config: don't edit 2# Automatically generated make config: don't edit
3# Linux kernel version: 2.6.18 3# Linux kernel version: 2.6.21-rc5
4# Tue Oct 3 12:03:04 2006 4# Thu Apr 26 09:16:31 2007
5# 5#
6CONFIG_SUPERH=y 6CONFIG_SUPERH=y
7CONFIG_RWSEM_GENERIC_SPINLOCK=y 7CONFIG_RWSEM_GENERIC_SPINLOCK=y
8CONFIG_GENERIC_BUG=y
8CONFIG_GENERIC_FIND_NEXT_BIT=y 9CONFIG_GENERIC_FIND_NEXT_BIT=y
9CONFIG_GENERIC_HWEIGHT=y 10CONFIG_GENERIC_HWEIGHT=y
10CONFIG_GENERIC_HARDIRQS=y 11CONFIG_GENERIC_HARDIRQS=y
11CONFIG_GENERIC_IRQ_PROBE=y 12CONFIG_GENERIC_IRQ_PROBE=y
12CONFIG_GENERIC_CALIBRATE_DELAY=y 13CONFIG_GENERIC_CALIBRATE_DELAY=y
14# CONFIG_GENERIC_TIME is not set
15CONFIG_STACKTRACE_SUPPORT=y
16CONFIG_LOCKDEP_SUPPORT=y
17# CONFIG_ARCH_HAS_ILOG2_U32 is not set
18# CONFIG_ARCH_HAS_ILOG2_U64 is not set
13CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" 19CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
14 20
15# 21#
@@ -33,7 +39,9 @@ CONFIG_LOCALVERSION_AUTO=y
33# CONFIG_UTS_NS is not set 39# CONFIG_UTS_NS is not set
34# CONFIG_AUDIT is not set 40# CONFIG_AUDIT is not set
35# CONFIG_IKCONFIG is not set 41# CONFIG_IKCONFIG is not set
42CONFIG_SYSFS_DEPRECATED=y
36# CONFIG_RELAY is not set 43# CONFIG_RELAY is not set
44CONFIG_BLK_DEV_INITRD=y
37CONFIG_INITRAMFS_SOURCE="" 45CONFIG_INITRAMFS_SOURCE=""
38# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set 46# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
39CONFIG_SYSCTL=y 47CONFIG_SYSCTL=y
@@ -91,27 +99,30 @@ CONFIG_DEFAULT_IOSCHED="anticipatory"
91CONFIG_SOLUTION_ENGINE=y 99CONFIG_SOLUTION_ENGINE=y
92CONFIG_SH_SOLUTION_ENGINE=y 100CONFIG_SH_SOLUTION_ENGINE=y
93# CONFIG_SH_7751_SOLUTION_ENGINE is not set 101# CONFIG_SH_7751_SOLUTION_ENGINE is not set
102# CONFIG_SH_7780_SOLUTION_ENGINE is not set
94# CONFIG_SH_7300_SOLUTION_ENGINE is not set 103# CONFIG_SH_7300_SOLUTION_ENGINE is not set
95# CONFIG_SH_7343_SOLUTION_ENGINE is not set 104# CONFIG_SH_7343_SOLUTION_ENGINE is not set
96# CONFIG_SH_73180_SOLUTION_ENGINE is not set 105# CONFIG_SH_73180_SOLUTION_ENGINE is not set
106# CONFIG_SH_7722_SOLUTION_ENGINE is not set
97# CONFIG_SH_7751_SYSTEMH is not set 107# CONFIG_SH_7751_SYSTEMH is not set
98# CONFIG_SH_HP6XX is not set 108# CONFIG_SH_HP6XX is not set
99# CONFIG_SH_EC3104 is not set
100# CONFIG_SH_SATURN is not set 109# CONFIG_SH_SATURN is not set
101# CONFIG_SH_DREAMCAST is not set 110# CONFIG_SH_DREAMCAST is not set
102# CONFIG_SH_BIGSUR is not set
103# CONFIG_SH_MPC1211 is not set 111# CONFIG_SH_MPC1211 is not set
104# CONFIG_SH_SH03 is not set 112# CONFIG_SH_SH03 is not set
105# CONFIG_SH_SECUREEDGE5410 is not set 113# CONFIG_SH_SECUREEDGE5410 is not set
106# CONFIG_SH_HS7751RVOIP is not set 114# CONFIG_SH_HS7751RVOIP is not set
107# CONFIG_SH_7710VOIPGW is not set 115# CONFIG_SH_7710VOIPGW is not set
108# CONFIG_SH_RTS7751R2D is not set 116# CONFIG_SH_RTS7751R2D is not set
109# CONFIG_SH_R7780RP is not set 117# CONFIG_SH_HIGHLANDER is not set
110# CONFIG_SH_EDOSK7705 is not set 118# CONFIG_SH_EDOSK7705 is not set
111# CONFIG_SH_SH4202_MICRODEV is not set 119# CONFIG_SH_SH4202_MICRODEV is not set
112# CONFIG_SH_LANDISK is not set 120# CONFIG_SH_LANDISK is not set
113# CONFIG_SH_TITAN is not set 121# CONFIG_SH_TITAN is not set
114# CONFIG_SH_SHMIN is not set 122# CONFIG_SH_SHMIN is not set
123# CONFIG_SH_7206_SOLUTION_ENGINE is not set
124# CONFIG_SH_7619_SOLUTION_ENGINE is not set
125# CONFIG_SH_LBOX_RE2 is not set
115# CONFIG_SH_UNKNOWN is not set 126# CONFIG_SH_UNKNOWN is not set
116 127
117# 128#
@@ -123,6 +134,12 @@ CONFIG_CPU_SH3=y
123# SH-2 Processor Support 134# SH-2 Processor Support
124# 135#
125# CONFIG_CPU_SUBTYPE_SH7604 is not set 136# CONFIG_CPU_SUBTYPE_SH7604 is not set
137# CONFIG_CPU_SUBTYPE_SH7619 is not set
138
139#
140# SH-2A Processor Support
141#
142# CONFIG_CPU_SUBTYPE_SH7206 is not set
126 143
127# 144#
128# SH-3 Processor Support 145# SH-3 Processor Support
@@ -134,6 +151,7 @@ CONFIG_CPU_SUBTYPE_SH7705=y
134# CONFIG_CPU_SUBTYPE_SH7708 is not set 151# CONFIG_CPU_SUBTYPE_SH7708 is not set
135# CONFIG_CPU_SUBTYPE_SH7709 is not set 152# CONFIG_CPU_SUBTYPE_SH7709 is not set
136# CONFIG_CPU_SUBTYPE_SH7710 is not set 153# CONFIG_CPU_SUBTYPE_SH7710 is not set
154# CONFIG_CPU_SUBTYPE_SH7712 is not set
137 155
138# 156#
139# SH-4 Processor Support 157# SH-4 Processor Support
@@ -158,12 +176,14 @@ CONFIG_CPU_SUBTYPE_SH7705=y
158# 176#
159# CONFIG_CPU_SUBTYPE_SH7770 is not set 177# CONFIG_CPU_SUBTYPE_SH7770 is not set
160# CONFIG_CPU_SUBTYPE_SH7780 is not set 178# CONFIG_CPU_SUBTYPE_SH7780 is not set
179# CONFIG_CPU_SUBTYPE_SH7785 is not set
161 180
162# 181#
163# SH4AL-DSP Processor Support 182# SH4AL-DSP Processor Support
164# 183#
165# CONFIG_CPU_SUBTYPE_SH73180 is not set 184# CONFIG_CPU_SUBTYPE_SH73180 is not set
166# CONFIG_CPU_SUBTYPE_SH7343 is not set 185# CONFIG_CPU_SUBTYPE_SH7343 is not set
186# CONFIG_CPU_SUBTYPE_SH7722 is not set
167 187
168# 188#
169# Memory management options 189# Memory management options
@@ -173,6 +193,11 @@ CONFIG_PAGE_OFFSET=0x80000000
173CONFIG_MEMORY_START=0x0c000000 193CONFIG_MEMORY_START=0x0c000000
174CONFIG_MEMORY_SIZE=0x02000000 194CONFIG_MEMORY_SIZE=0x02000000
175CONFIG_VSYSCALL=y 195CONFIG_VSYSCALL=y
196CONFIG_ARCH_FLATMEM_ENABLE=y
197CONFIG_ARCH_POPULATES_NODE_MAP=y
198CONFIG_PAGE_SIZE_4KB=y
199# CONFIG_PAGE_SIZE_8KB is not set
200# CONFIG_PAGE_SIZE_64KB is not set
176CONFIG_SELECT_MEMORY_MODEL=y 201CONFIG_SELECT_MEMORY_MODEL=y
177CONFIG_FLATMEM_MANUAL=y 202CONFIG_FLATMEM_MANUAL=y
178# CONFIG_DISCONTIGMEM_MANUAL is not set 203# CONFIG_DISCONTIGMEM_MANUAL is not set
@@ -182,6 +207,7 @@ CONFIG_FLAT_NODE_MEM_MAP=y
182# CONFIG_SPARSEMEM_STATIC is not set 207# CONFIG_SPARSEMEM_STATIC is not set
183CONFIG_SPLIT_PTLOCK_CPUS=4 208CONFIG_SPLIT_PTLOCK_CPUS=4
184# CONFIG_RESOURCES_64BIT is not set 209# CONFIG_RESOURCES_64BIT is not set
210CONFIG_ZONE_DMA_FLAG=0
185 211
186# 212#
187# Cache configuration 213# Cache configuration
@@ -190,23 +216,31 @@ CONFIG_SH7705_CACHE_32KB=y
190# CONFIG_SH_DIRECT_MAPPED is not set 216# CONFIG_SH_DIRECT_MAPPED is not set
191# CONFIG_SH_WRITETHROUGH is not set 217# CONFIG_SH_WRITETHROUGH is not set
192# CONFIG_SH_OCRAM is not set 218# CONFIG_SH_OCRAM is not set
193# CONFIG_CF_ENABLER is not set 219CONFIG_CF_ENABLER=y
220# CONFIG_CF_AREA5 is not set
221CONFIG_CF_AREA6=y
222# CONFIG_CF_AREA4 is not set
223CONFIG_CF_BASE_ADDR=0xb8000000
194 224
195# 225#
196# Processor features 226# Processor features
197# 227#
198CONFIG_CPU_LITTLE_ENDIAN=y 228CONFIG_CPU_LITTLE_ENDIAN=y
229# CONFIG_CPU_BIG_ENDIAN is not set
199# CONFIG_SH_FPU_EMU is not set 230# CONFIG_SH_FPU_EMU is not set
200# CONFIG_SH_DSP is not set 231# CONFIG_SH_DSP is not set
201# CONFIG_SH_ADC is not set 232# CONFIG_SH_ADC is not set
202CONFIG_CPU_HAS_INTEVT=y 233CONFIG_CPU_HAS_INTEVT=y
203CONFIG_CPU_HAS_PINT_IRQ=y 234CONFIG_CPU_HAS_PINT_IRQ=y
235CONFIG_CPU_HAS_IPR_IRQ=y
204CONFIG_CPU_HAS_SR_RB=y 236CONFIG_CPU_HAS_SR_RB=y
205 237
206# 238#
207# Timer support 239# Timer and clock configuration
208# 240#
209CONFIG_SH_TMU=y 241CONFIG_SH_TMU=y
242CONFIG_SH_TIMER_IRQ=16
243# CONFIG_NO_IDLE_HZ is not set
210CONFIG_SH_PCLK_FREQ=33333333 244CONFIG_SH_PCLK_FREQ=33333333
211 245
212# 246#
@@ -223,13 +257,19 @@ CONFIG_SH_PCLK_FREQ=33333333
223# Companion Chips 257# Companion Chips
224# 258#
225# CONFIG_HD6446X_SERIES is not set 259# CONFIG_HD6446X_SERIES is not set
260
261#
262# Additional SuperH Device Drivers
263#
226CONFIG_HEARTBEAT=y 264CONFIG_HEARTBEAT=y
265# CONFIG_PUSH_SWITCH is not set
227 266
228# 267#
229# Kernel features 268# Kernel features
230# 269#
231# CONFIG_HZ_100 is not set 270# CONFIG_HZ_100 is not set
232CONFIG_HZ_250=y 271CONFIG_HZ_250=y
272# CONFIG_HZ_300 is not set
233# CONFIG_HZ_1000 is not set 273# CONFIG_HZ_1000 is not set
234CONFIG_HZ=250 274CONFIG_HZ=250
235# CONFIG_KEXEC is not set 275# CONFIG_KEXEC is not set
@@ -287,6 +327,7 @@ CONFIG_UNIX=y
287CONFIG_XFRM=y 327CONFIG_XFRM=y
288# CONFIG_XFRM_USER is not set 328# CONFIG_XFRM_USER is not set
289# CONFIG_XFRM_SUB_POLICY is not set 329# CONFIG_XFRM_SUB_POLICY is not set
330# CONFIG_XFRM_MIGRATE is not set
290# CONFIG_NET_KEY is not set 331# CONFIG_NET_KEY is not set
291CONFIG_INET=y 332CONFIG_INET=y
292# CONFIG_IP_MULTICAST is not set 333# CONFIG_IP_MULTICAST is not set
@@ -307,11 +348,13 @@ CONFIG_IP_PNP_RARP=y
307# CONFIG_INET_TUNNEL is not set 348# CONFIG_INET_TUNNEL is not set
308CONFIG_INET_XFRM_MODE_TRANSPORT=y 349CONFIG_INET_XFRM_MODE_TRANSPORT=y
309CONFIG_INET_XFRM_MODE_TUNNEL=y 350CONFIG_INET_XFRM_MODE_TUNNEL=y
351CONFIG_INET_XFRM_MODE_BEET=y
310CONFIG_INET_DIAG=y 352CONFIG_INET_DIAG=y
311CONFIG_INET_TCP_DIAG=y 353CONFIG_INET_TCP_DIAG=y
312# CONFIG_TCP_CONG_ADVANCED is not set 354# CONFIG_TCP_CONG_ADVANCED is not set
313CONFIG_TCP_CONG_CUBIC=y 355CONFIG_TCP_CONG_CUBIC=y
314CONFIG_DEFAULT_TCP_CONG="cubic" 356CONFIG_DEFAULT_TCP_CONG="cubic"
357# CONFIG_TCP_MD5SIG is not set
315# CONFIG_IPV6 is not set 358# CONFIG_IPV6 is not set
316# CONFIG_INET6_XFRM_TUNNEL is not set 359# CONFIG_INET6_XFRM_TUNNEL is not set
317# CONFIG_INET6_TUNNEL is not set 360# CONFIG_INET6_TUNNEL is not set
@@ -388,6 +431,7 @@ CONFIG_MTD_PARTITIONS=y
388# User Modules And Translation Layers 431# User Modules And Translation Layers
389# 432#
390CONFIG_MTD_CHAR=y 433CONFIG_MTD_CHAR=y
434CONFIG_MTD_BLKDEVS=y
391CONFIG_MTD_BLOCK=y 435CONFIG_MTD_BLOCK=y
392# CONFIG_FTL is not set 436# CONFIG_FTL is not set
393# CONFIG_NFTL is not set 437# CONFIG_NFTL is not set
@@ -461,6 +505,7 @@ CONFIG_MTD_CFI_UTIL=y
461# 505#
462# Plug and Play support 506# Plug and Play support
463# 507#
508# CONFIG_PNPACPI is not set
464 509
465# 510#
466# Block devices 511# Block devices
@@ -472,11 +517,14 @@ CONFIG_BLK_DEV_RAM=y
472CONFIG_BLK_DEV_RAM_COUNT=16 517CONFIG_BLK_DEV_RAM_COUNT=16
473CONFIG_BLK_DEV_RAM_SIZE=8192 518CONFIG_BLK_DEV_RAM_SIZE=8192
474CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 519CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024
475CONFIG_BLK_DEV_INITRD=y
476# CONFIG_CDROM_PKTCDVD is not set 520# CONFIG_CDROM_PKTCDVD is not set
477# CONFIG_ATA_OVER_ETH is not set 521# CONFIG_ATA_OVER_ETH is not set
478 522
479# 523#
524# Misc devices
525#
526
527#
480# ATA/ATAPI/MFM/RLL support 528# ATA/ATAPI/MFM/RLL support
481# 529#
482# CONFIG_IDE is not set 530# CONFIG_IDE is not set
@@ -649,17 +697,12 @@ CONFIG_HW_RANDOM=y
649# CONFIG_GEN_RTC is not set 697# CONFIG_GEN_RTC is not set
650# CONFIG_DTLK is not set 698# CONFIG_DTLK is not set
651# CONFIG_R3964 is not set 699# CONFIG_R3964 is not set
652
653#
654# Ftape, the floppy tape device driver
655#
656# CONFIG_RAW_DRIVER is not set 700# CONFIG_RAW_DRIVER is not set
657 701
658# 702#
659# TPM devices 703# TPM devices
660# 704#
661# CONFIG_TCG_TPM is not set 705# CONFIG_TCG_TPM is not set
662# CONFIG_TELCLOCK is not set
663 706
664# 707#
665# I2C support 708# I2C support
@@ -675,6 +718,7 @@ CONFIG_HW_RANDOM=y
675# 718#
676# Dallas's 1-wire bus 719# Dallas's 1-wire bus
677# 720#
721# CONFIG_W1 is not set
678 722
679# 723#
680# Hardware Monitoring support 724# Hardware Monitoring support
@@ -683,18 +727,19 @@ CONFIG_HWMON=y
683# CONFIG_HWMON_VID is not set 727# CONFIG_HWMON_VID is not set
684# CONFIG_SENSORS_ABITUGURU is not set 728# CONFIG_SENSORS_ABITUGURU is not set
685# CONFIG_SENSORS_F71805F is not set 729# CONFIG_SENSORS_F71805F is not set
730# CONFIG_SENSORS_PC87427 is not set
686# CONFIG_SENSORS_VT1211 is not set 731# CONFIG_SENSORS_VT1211 is not set
687# CONFIG_HWMON_DEBUG_CHIP is not set 732# CONFIG_HWMON_DEBUG_CHIP is not set
688 733
689# 734#
690# Misc devices 735# Multifunction device drivers
691# 736#
737# CONFIG_MFD_SM501 is not set
692 738
693# 739#
694# Multimedia devices 740# Multimedia devices
695# 741#
696# CONFIG_VIDEO_DEV is not set 742# CONFIG_VIDEO_DEV is not set
697CONFIG_VIDEO_V4L2=y
698 743
699# 744#
700# Digital Video Broadcasting Devices 745# Digital Video Broadcasting Devices
@@ -704,7 +749,7 @@ CONFIG_VIDEO_V4L2=y
704# 749#
705# Graphics support 750# Graphics support
706# 751#
707CONFIG_FIRMWARE_EDID=y 752# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
708# CONFIG_FB is not set 753# CONFIG_FB is not set
709 754
710# 755#
@@ -713,6 +758,12 @@ CONFIG_FIRMWARE_EDID=y
713# CONFIG_SOUND is not set 758# CONFIG_SOUND is not set
714 759
715# 760#
761# HID Devices
762#
763CONFIG_HID=y
764# CONFIG_HID_DEBUG is not set
765
766#
716# USB support 767# USB support
717# 768#
718# CONFIG_USB_ARCH_HAS_HCD is not set 769# CONFIG_USB_ARCH_HAS_HCD is not set
@@ -773,16 +824,26 @@ CONFIG_FIRMWARE_EDID=y
773# 824#
774 825
775# 826#
827# Auxiliary Display support
828#
829
830#
831# Virtualization
832#
833
834#
776# File systems 835# File systems
777# 836#
778CONFIG_EXT2_FS=y 837CONFIG_EXT2_FS=y
779# CONFIG_EXT2_FS_XATTR is not set 838# CONFIG_EXT2_FS_XATTR is not set
780# CONFIG_EXT2_FS_XIP is not set 839# CONFIG_EXT2_FS_XIP is not set
781# CONFIG_EXT3_FS is not set 840# CONFIG_EXT3_FS is not set
841# CONFIG_EXT4DEV_FS is not set
782# CONFIG_REISERFS_FS is not set 842# CONFIG_REISERFS_FS is not set
783# CONFIG_JFS_FS is not set 843# CONFIG_JFS_FS is not set
784# CONFIG_FS_POSIX_ACL is not set 844# CONFIG_FS_POSIX_ACL is not set
785# CONFIG_XFS_FS is not set 845# CONFIG_XFS_FS is not set
846# CONFIG_GFS2_FS is not set
786# CONFIG_MINIX_FS is not set 847# CONFIG_MINIX_FS is not set
787# CONFIG_ROMFS_FS is not set 848# CONFIG_ROMFS_FS is not set
788CONFIG_INOTIFY=y 849CONFIG_INOTIFY=y
@@ -828,7 +889,6 @@ CONFIG_RAMFS=y
828# CONFIG_BEFS_FS is not set 889# CONFIG_BEFS_FS is not set
829# CONFIG_BFS_FS is not set 890# CONFIG_BFS_FS is not set
830# CONFIG_EFS_FS is not set 891# CONFIG_EFS_FS is not set
831# CONFIG_JFFS_FS is not set
832CONFIG_JFFS2_FS=y 892CONFIG_JFFS2_FS=y
833CONFIG_JFFS2_FS_DEBUG=0 893CONFIG_JFFS2_FS_DEBUG=0
834CONFIG_JFFS2_FS_WRITEBUFFER=y 894CONFIG_JFFS2_FS_WRITEBUFFER=y
@@ -878,6 +938,10 @@ CONFIG_MSDOS_PARTITION=y
878# CONFIG_NLS is not set 938# CONFIG_NLS is not set
879 939
880# 940#
941# Distributed Lock Manager
942#
943
944#
881# Profiling support 945# Profiling support
882# 946#
883# CONFIG_PROFILING is not set 947# CONFIG_PROFILING is not set
@@ -885,15 +949,18 @@ CONFIG_MSDOS_PARTITION=y
885# 949#
886# Kernel hacking 950# Kernel hacking
887# 951#
952CONFIG_TRACE_IRQFLAGS_SUPPORT=y
888# CONFIG_PRINTK_TIME is not set 953# CONFIG_PRINTK_TIME is not set
889CONFIG_ENABLE_MUST_CHECK=y 954CONFIG_ENABLE_MUST_CHECK=y
890# CONFIG_MAGIC_SYSRQ is not set 955# CONFIG_MAGIC_SYSRQ is not set
891# CONFIG_UNUSED_SYMBOLS is not set 956# CONFIG_UNUSED_SYMBOLS is not set
957# CONFIG_HEADERS_CHECK is not set
892# CONFIG_DEBUG_KERNEL is not set 958# CONFIG_DEBUG_KERNEL is not set
893CONFIG_LOG_BUF_SHIFT=14 959CONFIG_LOG_BUF_SHIFT=14
894# CONFIG_DEBUG_BUGVERBOSE is not set 960# CONFIG_DEBUG_BUGVERBOSE is not set
895# CONFIG_SH_STANDARD_BIOS is not set 961# CONFIG_SH_STANDARD_BIOS is not set
896# CONFIG_KGDB is not set 962# CONFIG_EARLY_SCIF_CONSOLE is not set
963# CONFIG_SH_KGDB is not set
897 964
898# 965#
899# Security options 966# Security options
@@ -908,6 +975,7 @@ CONFIG_LOG_BUF_SHIFT=14
908# 975#
909# Library routines 976# Library routines
910# 977#
978CONFIG_BITREVERSE=y
911CONFIG_CRC_CCITT=y 979CONFIG_CRC_CCITT=y
912# CONFIG_CRC16 is not set 980# CONFIG_CRC16 is not set
913CONFIG_CRC32=y 981CONFIG_CRC32=y
@@ -915,3 +983,5 @@ CONFIG_CRC32=y
915CONFIG_ZLIB_INFLATE=y 983CONFIG_ZLIB_INFLATE=y
916CONFIG_ZLIB_DEFLATE=y 984CONFIG_ZLIB_DEFLATE=y
917CONFIG_PLIST=y 985CONFIG_PLIST=y
986CONFIG_HAS_IOMEM=y
987CONFIG_HAS_IOPORT=y
diff --git a/arch/sh/kernel/cpu/irq/Makefile b/arch/sh/kernel/cpu/irq/Makefile
index 0049d217561a..1c23308cfc25 100644
--- a/arch/sh/kernel/cpu/irq/Makefile
+++ b/arch/sh/kernel/cpu/irq/Makefile
@@ -4,6 +4,6 @@
4obj-y += imask.o 4obj-y += imask.o
5 5
6obj-$(CONFIG_CPU_HAS_IPR_IRQ) += ipr.o 6obj-$(CONFIG_CPU_HAS_IPR_IRQ) += ipr.o
7obj-$(CONFIG_CPU_HAS_PINT_IRQ) += pint.o 7obj-$(CONFIG_CPU_HAS_PINT_IRQ) += pint.o
8obj-$(CONFIG_CPU_HAS_MASKREG_IRQ) += maskreg.o 8obj-$(CONFIG_CPU_HAS_MASKREG_IRQ) += maskreg.o
9obj-$(CONFIG_CPU_HAS_INTC2_IRQ) += intc2.o 9obj-$(CONFIG_CPU_HAS_INTC2_IRQ) += intc2.o
diff --git a/arch/sh/kernel/cpu/irq/pint.c b/arch/sh/kernel/cpu/irq/pint.c
index f60007783a21..67602685df1a 100644
--- a/arch/sh/kernel/cpu/irq/pint.c
+++ b/arch/sh/kernel/cpu/irq/pint.c
@@ -18,6 +18,58 @@
18#include <asm/io.h> 18#include <asm/io.h>
19#include <asm/machvec.h> 19#include <asm/machvec.h>
20 20
21#if defined(CONFIG_CPU_SUBTYPE_SH7705)
22#define INTC_INTER 0xA4000014UL
23#define INTC_IPRD 0xA4000018UL
24#define INTC_ICR2 0xA4000012UL
25
26/* PFC */
27#define PORT_PACR 0xA4000100UL
28#define PORT_PBCR 0xA4000102UL
29#define PORT_PCCR 0xA4000104UL
30#define PORT_PDCR 0xA4000106UL
31#define PORT_PECR 0xA4000108UL
32#define PORT_PFCR 0xA400010AUL
33#define PORT_PGCR 0xA400010CUL
34#define PORT_PHCR 0xA400010EUL
35#define PORT_PJCR 0xA4000110UL
36#define PORT_PKCR 0xA4000112UL
37#define PORT_PLCR 0xA4000114UL
38#define PORT_PMCR 0xA4000118UL
39#define PORT_PNCR 0xA400011AUL
40#define PORT_PECR2 0xA4050148UL
41#define PORT_PFCR2 0xA405014AUL
42#define PORT_PNCR2 0xA405015AUL
43
44/* I/O port */
45#define PORT_PADR 0xA4000120UL
46#define PORT_PBDR 0xA4000122UL
47#define PORT_PCDR 0xA4000124UL
48#define PORT_PDDR 0xA4000126UL
49#define PORT_PEDR 0xA4000128UL
50#define PORT_PFDR 0xA400012AUL
51#define PORT_PGDR 0xA400012CUL
52#define PORT_PHDR 0xA400012EUL
53#define PORT_PJDR 0xA4000130UL
54#define PORT_PKDR 0xA4000132UL
55#define PORT_PLDR 0xA4000134UL
56#define PORT_PMDR 0xA4000138UL
57#define PORT_PNDR 0xA400013AUL
58
59#define PINT0_IRQ 40
60#define PINT8_IRQ 41
61#define PINT_IRQ_BASE 86
62
63#define PINT0_IPR_ADDR INTC_IPRD
64#define PINT0_IPR_POS 3
65#define PINT0_PRIORITY 2
66
67#define PINT8_IPR_ADDR INTC_IPRD
68#define PINT8_IPR_POS 2
69#define PINT8_PRIORITY 2
70
71#endif /* CONFIG_CPU_SUBTYPE_SH7705 */
72
21static unsigned char pint_map[256]; 73static unsigned char pint_map[256];
22static unsigned long portcr_mask; 74static unsigned long portcr_mask;
23 75
@@ -126,7 +178,7 @@ int ipr_irq_demux(int irq)
126 unsigned long creg, dreg, d, sav; 178 unsigned long creg, dreg, d, sav;
127 179
128 if (irq == PINT0_IRQ) { 180 if (irq == PINT0_IRQ) {
129#if defined(CONFIG_CPU_SUBTYPE_SH7707) 181#if defined(CONFIG_CPU_SUBTYPE_SH7705) || defined(CONFIG_CPU_SUBTYPE_SH7707)
130 creg = PORT_PACR; 182 creg = PORT_PACR;
131 dreg = PORT_PADR; 183 dreg = PORT_PADR;
132#else 184#else
@@ -144,7 +196,7 @@ int ipr_irq_demux(int irq)
144 196
145 return PINT_IRQ_BASE + pint_map[d]; 197 return PINT_IRQ_BASE + pint_map[d];
146 } else if (irq == PINT8_IRQ) { 198 } else if (irq == PINT8_IRQ) {
147#if defined(CONFIG_CPU_SUBTYPE_SH7707) 199#if defined(CONFIG_CPU_SUBTYPE_SH7705) || defined(CONFIG_CPU_SUBTYPE_SH7707)
148 creg = PORT_PBCR; 200 creg = PORT_PBCR;
149 dreg = PORT_PBDR; 201 dreg = PORT_PBDR;
150#else 202#else
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7705.c b/arch/sh/kernel/cpu/sh3/setup-sh7705.c
index a8e41c5241fa..1983fb7ad6ea 100644
--- a/arch/sh/kernel/cpu/sh3/setup-sh7705.c
+++ b/arch/sh/kernel/cpu/sh3/setup-sh7705.c
@@ -2,6 +2,7 @@
2 * SH7705 Setup 2 * SH7705 Setup
3 * 3 *
4 * Copyright (C) 2006 Paul Mundt 4 * Copyright (C) 2006 Paul Mundt
5 * Copyright (C) 2007 Nobuhiro Iwamatsu
5 * 6 *
6 * This file is subject to the terms and conditions of the GNU General Public 7 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive 8 * License. See the file "COPYING" in the main directory of this archive
@@ -14,15 +15,15 @@
14 15
15static struct plat_sci_port sci_platform_data[] = { 16static struct plat_sci_port sci_platform_data[] = {
16 { 17 {
17 .mapbase = 0xa4400000, 18 .mapbase = 0xa4410000,
18 .flags = UPF_BOOT_AUTOCONF, 19 .flags = UPF_BOOT_AUTOCONF,
19 .type = PORT_SCIF, 20 .type = PORT_SCIF,
20 .irqs = { 52, 53, 55, 54 }, 21 .irqs = { 56, 57, 59 },
21 }, { 22 }, {
22 .mapbase = 0xa4410000, 23 .mapbase = 0xa4400000,
23 .flags = UPF_BOOT_AUTOCONF, 24 .flags = UPF_BOOT_AUTOCONF,
24 .type = PORT_SCIF, 25 .type = PORT_SCIF,
25 .irqs = { 56, 57, 59, 58 }, 26 .irqs = { 52, 53, 55 },
26 }, { 27 }, {
27 .flags = 0, 28 .flags = 0,
28 } 29 }
@@ -46,3 +47,48 @@ static int __init sh7705_devices_setup(void)
46 ARRAY_SIZE(sh7705_devices)); 47 ARRAY_SIZE(sh7705_devices));
47} 48}
48__initcall(sh7705_devices_setup); 49__initcall(sh7705_devices_setup);
50
51static struct ipr_data sh7705_ipr_map[] = {
52 /* IRQ, IPR-idx, shift, priority */
53 { 16, 0, 12, 2 }, /* TMU0 TUNI*/
54 { 17, 0, 8, 2 }, /* TMU1 TUNI */
55 { 18, 0, 4, 2 }, /* TMU2 TUNI */
56 { 27, 1, 12, 2 }, /* WDT ITI */
57 { 20, 0, 0, 2 }, /* RTC ATI (alarm) */
58 { 21, 0, 0, 2 }, /* RTC PRI (period) */
59 { 22, 0, 0, 2 }, /* RTC CUI (carry) */
60 { 48, 4, 12, 7 }, /* DMAC DMTE0 */
61 { 49, 4, 12, 7 }, /* DMAC DMTE1 */
62 { 50, 4, 12, 7 }, /* DMAC DMTE2 */
63 { 51, 4, 12, 7 }, /* DMAC DMTE3 */
64 { 52, 4, 8, 3 }, /* SCIF0 ERI */
65 { 53, 4, 8, 3 }, /* SCIF0 RXI */
66 { 55, 4, 8, 3 }, /* SCIF0 TXI */
67 { 56, 4, 4, 3 }, /* SCIF1 ERI */
68 { 57, 4, 4, 3 }, /* SCIF1 RXI */
69 { 59, 4, 4, 3 }, /* SCIF1 TXI */
70};
71
72static unsigned long ipr_offsets[] = {
73 0xFFFFFEE2 /* 0: IPRA */
74, 0xFFFFFEE4 /* 1: IPRB */
75, 0xA4000016 /* 2: IPRC */
76, 0xA4000018 /* 3: IPRD */
77, 0xA400001A /* 4: IPRE */
78, 0xA4080000 /* 5: IPRF */
79, 0xA4080002 /* 6: IPRG */
80, 0xA4080004 /* 7: IPRH */
81};
82
83/* given the IPR index return the address of the IPR register */
84unsigned int map_ipridx_to_addr(int idx)
85{
86 if (idx >= ARRAY_SIZE(ipr_offsets))
87 return 0;
88 return ipr_offsets[idx];
89}
90
91void __init init_IRQ_ipr()
92{
93 make_ipr_irq(sh7705_ipr_map, ARRAY_SIZE(sh7705_ipr_map));
94}
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig
index 5359f3dff93c..12f3d394dc28 100644
--- a/arch/sh/mm/Kconfig
+++ b/arch/sh/mm/Kconfig
@@ -67,6 +67,7 @@ config CPU_SUBTYPE_SH7300
67config CPU_SUBTYPE_SH7705 67config CPU_SUBTYPE_SH7705
68 bool "Support SH7705 processor" 68 bool "Support SH7705 processor"
69 select CPU_SH3 69 select CPU_SH3
70 select CPU_HAS_IPR_IRQ
70 select CPU_HAS_PINT_IRQ 71 select CPU_HAS_PINT_IRQ
71 72
72config CPU_SUBTYPE_SH7706 73config CPU_SUBTYPE_SH7706
diff --git a/include/asm-sh/se.h b/include/asm-sh/se.h
index eeaf5c9124cc..bd2596c014a9 100644
--- a/include/asm-sh/se.h
+++ b/include/asm-sh/se.h
@@ -69,11 +69,12 @@
69#define BCR_ILCRG (PA_BCR + 12) 69#define BCR_ILCRG (PA_BCR + 12)
70 70
71#if defined(CONFIG_CPU_SUBTYPE_SH7705) 71#if defined(CONFIG_CPU_SUBTYPE_SH7705)
72#define IRQ_STNIC 12 72#define IRQ_STNIC 12
73#define IRQ_CFCARD 14
73#else 74#else
74#define IRQ_STNIC 10 75#define IRQ_STNIC 10
76#define IRQ_CFCARD 7
75#endif 77#endif
76#define IRQ_CFCARD 7
77 78
78#define __IO_PREFIX se 79#define __IO_PREFIX se
79#include <asm/io_generic.h> 80#include <asm/io_generic.h>