aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-10-09 03:10:14 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-09 03:10:14 -0400
commitdea77ccdc93448d81e495a57bc1c1e97be4fdfe8 (patch)
treea8b0ed4c01332efa9a00b9a810fa4a00b74e5630
parentde390bba797aa9a554bc1769b6a8771605854d79 (diff)
parent6594b982f6d5f957c8d72de7658bf8e240c7dfca (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lliubbo/blackfin
Pull blackfin update from Bob Liu. * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lliubbo/blackfin: Blackfin: smp: add smp_mb() to keep coherency Blackfin: drop irq enable in init_arch_irq() Blackfin: fix wrong place disabled irq Blackfin: update defconfig for bf609-ezkit Blackfin: add bf548 v0.4 revision Blackfin: bf60x: Add bf608 and bf609 specific perpheral MMRs Blackfin: cpufreq: fix dpm_state_table Blackfin: bfin_gpio: proc: fix return value Blackfin: CM-BF537E: Update SPORT support in board file. Blackfin: bf537: fix lq035 platform device name Blackfin: bf533-ezkit: enable flash drivers by default
-rw-r--r--arch/blackfin/Kconfig2
-rw-r--r--arch/blackfin/configs/BF533-EZKIT_defconfig7
-rw-r--r--arch/blackfin/configs/BF609-EZKIT_defconfig16
-rw-r--r--arch/blackfin/kernel/bfin_gpio.c4
-rw-r--r--arch/blackfin/kernel/reboot.c1
-rw-r--r--arch/blackfin/mach-bf537/boards/cm_bf537e.c130
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c2
-rw-r--r--arch/blackfin/mach-bf609/include/mach/defBF609.h271
-rw-r--r--arch/blackfin/mach-common/cpufreq.c9
-rw-r--r--arch/blackfin/mach-common/ints-priority.c1
-rw-r--r--arch/blackfin/mach-common/smp.c4
11 files changed, 416 insertions, 31 deletions
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig
index c7092e6057c5..99224c4eb86b 100644
--- a/arch/blackfin/Kconfig
+++ b/arch/blackfin/Kconfig
@@ -298,7 +298,7 @@ config BF_REV_0_3
298 298
299config BF_REV_0_4 299config BF_REV_0_4
300 bool "0.4" 300 bool "0.4"
301 depends on (BF561 || BF533 || BF532 || BF531 || BF538 || BF539) 301 depends on (BF561 || BF533 || BF532 || BF531 || BF538 || BF539 || BF54x)
302 302
303config BF_REV_0_5 303config BF_REV_0_5
304 bool "0.5" 304 bool "0.5"
diff --git a/arch/blackfin/configs/BF533-EZKIT_defconfig b/arch/blackfin/configs/BF533-EZKIT_defconfig
index 127f20df75a0..16273a922056 100644
--- a/arch/blackfin/configs/BF533-EZKIT_defconfig
+++ b/arch/blackfin/configs/BF533-EZKIT_defconfig
@@ -52,10 +52,13 @@ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
52CONFIG_MTD=y 52CONFIG_MTD=y
53CONFIG_MTD_CHAR=m 53CONFIG_MTD_CHAR=m
54CONFIG_MTD_BLOCK=y 54CONFIG_MTD_BLOCK=y
55CONFIG_MTD_JEDECPROBE=m 55CONFIG_MTD_JEDECPROBE=y
56CONFIG_MTD_CFI_AMDSTD=y
56CONFIG_MTD_RAM=y 57CONFIG_MTD_RAM=y
57CONFIG_MTD_ROM=m 58CONFIG_MTD_ROM=y
58CONFIG_MTD_COMPLEX_MAPPINGS=y 59CONFIG_MTD_COMPLEX_MAPPINGS=y
60CONFIG_MTD_PHYSMAP=y
61CONFIG_MTD_PLATRAM=y
59CONFIG_BLK_DEV_RAM=y 62CONFIG_BLK_DEV_RAM=y
60CONFIG_NETDEVICES=y 63CONFIG_NETDEVICES=y
61# CONFIG_NET_VENDOR_BROADCOM is not set 64# CONFIG_NET_VENDOR_BROADCOM is not set
diff --git a/arch/blackfin/configs/BF609-EZKIT_defconfig b/arch/blackfin/configs/BF609-EZKIT_defconfig
index f4b02350e415..13eb73231a9a 100644
--- a/arch/blackfin/configs/BF609-EZKIT_defconfig
+++ b/arch/blackfin/configs/BF609-EZKIT_defconfig
@@ -1,5 +1,6 @@
1CONFIG_EXPERIMENTAL=y 1CONFIG_EXPERIMENTAL=y
2CONFIG_SYSVIPC=y 2CONFIG_SYSVIPC=y
3CONFIG_HIGH_RES_TIMERS=y
3CONFIG_IKCONFIG=y 4CONFIG_IKCONFIG=y
4CONFIG_IKCONFIG_PROC=y 5CONFIG_IKCONFIG_PROC=y
5CONFIG_LOG_BUF_SHIFT=14 6CONFIG_LOG_BUF_SHIFT=14
@@ -24,7 +25,6 @@ CONFIG_BF609=y
24CONFIG_PINT1_ASSIGN=0x01010000 25CONFIG_PINT1_ASSIGN=0x01010000
25CONFIG_PINT2_ASSIGN=0x07000101 26CONFIG_PINT2_ASSIGN=0x07000101
26CONFIG_PINT3_ASSIGN=0x02020303 27CONFIG_PINT3_ASSIGN=0x02020303
27CONFIG_HIGH_RES_TIMERS=y
28CONFIG_IP_CHECKSUM_L1=y 28CONFIG_IP_CHECKSUM_L1=y
29CONFIG_SYSCALL_TAB_L1=y 29CONFIG_SYSCALL_TAB_L1=y
30CONFIG_CPLB_SWITCH_TAB_L1=y 30CONFIG_CPLB_SWITCH_TAB_L1=y
@@ -116,9 +116,6 @@ CONFIG_SND_PCM_OSS=m
116# CONFIG_SND_SPI is not set 116# CONFIG_SND_SPI is not set
117# CONFIG_SND_USB is not set 117# CONFIG_SND_USB is not set
118CONFIG_SND_SOC=m 118CONFIG_SND_SOC=m
119CONFIG_SND_BF6XX_I2S=m
120CONFIG_SND_SOC_BFIN_EVAL_ADAU1X61=m
121CONFIG_SND_SOC_ALL_CODECS=m
122CONFIG_USB=y 119CONFIG_USB=y
123CONFIG_USB_MUSB_HDRC=y 120CONFIG_USB_MUSB_HDRC=y
124CONFIG_USB_MUSB_BLACKFIN=m 121CONFIG_USB_MUSB_BLACKFIN=m
@@ -136,7 +133,6 @@ CONFIG_VFAT_FS=y
136CONFIG_JFFS2_FS=m 133CONFIG_JFFS2_FS=m
137CONFIG_UBIFS_FS=m 134CONFIG_UBIFS_FS=m
138CONFIG_NFS_FS=m 135CONFIG_NFS_FS=m
139CONFIG_NFS_V3=y
140CONFIG_NLS_CODEPAGE_437=y 136CONFIG_NLS_CODEPAGE_437=y
141CONFIG_NLS_ISO8859_1=y 137CONFIG_NLS_ISO8859_1=y
142CONFIG_DEBUG_FS=y 138CONFIG_DEBUG_FS=y
@@ -149,9 +145,9 @@ CONFIG_DEBUG_BFIN_HWTRACE_COMPRESSION_ONE=y
149CONFIG_EARLY_PRINTK=y 145CONFIG_EARLY_PRINTK=y
150CONFIG_CPLB_INFO=y 146CONFIG_CPLB_INFO=y
151CONFIG_BFIN_PSEUDODBG_INSNS=y 147CONFIG_BFIN_PSEUDODBG_INSNS=y
152CONFIG_CRYPTO_HMAC=y 148CONFIG_CRYPTO_HMAC=m
153CONFIG_CRYPTO_MD4=y 149CONFIG_CRYPTO_MD4=m
154CONFIG_CRYPTO_MD5=y 150CONFIG_CRYPTO_MD5=m
155CONFIG_CRYPTO_ARC4=y 151CONFIG_CRYPTO_ARC4=m
156# CONFIG_CRYPTO_ANSI_CPRNG is not set 152# CONFIG_CRYPTO_ANSI_CPRNG is not set
157CONFIG_CRYPTO_DEV_BFIN_CRC=y 153CONFIG_CRYPTO_DEV_BFIN_CRC=m
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c
index 83139aaf3072..ed978f1c5cb9 100644
--- a/arch/blackfin/kernel/bfin_gpio.c
+++ b/arch/blackfin/kernel/bfin_gpio.c
@@ -1265,8 +1265,8 @@ static __init int gpio_register_proc(void)
1265{ 1265{
1266 struct proc_dir_entry *proc_gpio; 1266 struct proc_dir_entry *proc_gpio;
1267 1267
1268 proc_gpio = proc_create("gpio", S_IRUGO, NULL, &gpio_proc_ops); 1268 proc_gpio = proc_create("gpio", 0, NULL, &gpio_proc_ops);
1269 return proc_gpio != NULL; 1269 return proc_gpio == NULL;
1270} 1270}
1271__initcall(gpio_register_proc); 1271__initcall(gpio_register_proc);
1272#endif 1272#endif
diff --git a/arch/blackfin/kernel/reboot.c b/arch/blackfin/kernel/reboot.c
index 5272e6eefd92..c4f50a328501 100644
--- a/arch/blackfin/kernel/reboot.c
+++ b/arch/blackfin/kernel/reboot.c
@@ -86,7 +86,6 @@ void native_machine_restart(char *cmd)
86void machine_restart(char *cmd) 86void machine_restart(char *cmd)
87{ 87{
88 native_machine_restart(cmd); 88 native_machine_restart(cmd);
89 local_irq_disable();
90 if (smp_processor_id()) 89 if (smp_processor_id())
91 smp_call_function((void *)bfin_reset, 0, 1); 90 smp_call_function((void *)bfin_reset, 0, 1);
92 else 91 else
diff --git a/arch/blackfin/mach-bf537/boards/cm_bf537e.c b/arch/blackfin/mach-bf537/boards/cm_bf537e.c
index 9408ab56d87f..85e4fc9f9c22 100644
--- a/arch/blackfin/mach-bf537/boards/cm_bf537e.c
+++ b/arch/blackfin/mach-bf537/boards/cm_bf537e.c
@@ -25,6 +25,7 @@
25#include <asm/bfin5xx_spi.h> 25#include <asm/bfin5xx_spi.h>
26#include <asm/portmux.h> 26#include <asm/portmux.h>
27#include <asm/dpmc.h> 27#include <asm/dpmc.h>
28#include <asm/bfin_sport.h>
28 29
29/* 30/*
30 * Name the Board for the /proc/cpuinfo 31 * Name the Board for the /proc/cpuinfo
@@ -143,6 +144,71 @@ static struct platform_device bfin_spi0_device = {
143}; 144};
144#endif /* spi master and devices */ 145#endif /* spi master and devices */
145 146
147#if defined(CONFIG_SPI_BFIN_SPORT) || defined(CONFIG_SPI_BFIN_SPORT_MODULE)
148
149/* SPORT SPI controller data */
150static struct bfin5xx_spi_master bfin_sport_spi0_info = {
151 .num_chipselect = MAX_BLACKFIN_GPIOS,
152 .enable_dma = 0, /* master don't support DMA */
153 .pin_req = {P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_DRPRI,
154 P_SPORT0_RSCLK, P_SPORT0_TFS, P_SPORT0_RFS, 0},
155};
156
157static struct resource bfin_sport_spi0_resource[] = {
158 [0] = {
159 .start = SPORT0_TCR1,
160 .end = SPORT0_TCR1 + 0xFF,
161 .flags = IORESOURCE_MEM,
162 },
163 [1] = {
164 .start = IRQ_SPORT0_ERROR,
165 .end = IRQ_SPORT0_ERROR,
166 .flags = IORESOURCE_IRQ,
167 },
168};
169
170static struct platform_device bfin_sport_spi0_device = {
171 .name = "bfin-sport-spi",
172 .id = 1, /* Bus number */
173 .num_resources = ARRAY_SIZE(bfin_sport_spi0_resource),
174 .resource = bfin_sport_spi0_resource,
175 .dev = {
176 .platform_data = &bfin_sport_spi0_info, /* Passed to driver */
177 },