diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-09 03:10:14 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-09 03:10:14 -0400 |
| commit | dea77ccdc93448d81e495a57bc1c1e97be4fdfe8 (patch) | |
| tree | a8b0ed4c01332efa9a00b9a810fa4a00b74e5630 | |
| parent | de390bba797aa9a554bc1769b6a8771605854d79 (diff) | |
| parent | 6594b982f6d5f957c8d72de7658bf8e240c7dfca (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/Kconfig | 2 | ||||
| -rw-r--r-- | arch/blackfin/configs/BF533-EZKIT_defconfig | 7 | ||||
| -rw-r--r-- | arch/blackfin/configs/BF609-EZKIT_defconfig | 16 | ||||
| -rw-r--r-- | arch/blackfin/kernel/bfin_gpio.c | 4 | ||||
| -rw-r--r-- | arch/blackfin/kernel/reboot.c | 1 | ||||
| -rw-r--r-- | arch/blackfin/mach-bf537/boards/cm_bf537e.c | 130 | ||||
| -rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 2 | ||||
| -rw-r--r-- | arch/blackfin/mach-bf609/include/mach/defBF609.h | 271 | ||||
| -rw-r--r-- | arch/blackfin/mach-common/cpufreq.c | 9 | ||||
| -rw-r--r-- | arch/blackfin/mach-common/ints-priority.c | 1 | ||||
| -rw-r--r-- | arch/blackfin/mach-common/smp.c | 4 |
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 | ||
| 299 | config BF_REV_0_4 | 299 | config 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 | ||
| 303 | config BF_REV_0_5 | 303 | config 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" | |||
| 52 | CONFIG_MTD=y | 52 | CONFIG_MTD=y |
| 53 | CONFIG_MTD_CHAR=m | 53 | CONFIG_MTD_CHAR=m |
| 54 | CONFIG_MTD_BLOCK=y | 54 | CONFIG_MTD_BLOCK=y |
| 55 | CONFIG_MTD_JEDECPROBE=m | 55 | CONFIG_MTD_JEDECPROBE=y |
| 56 | CONFIG_MTD_CFI_AMDSTD=y | ||
| 56 | CONFIG_MTD_RAM=y | 57 | CONFIG_MTD_RAM=y |
| 57 | CONFIG_MTD_ROM=m | 58 | CONFIG_MTD_ROM=y |
| 58 | CONFIG_MTD_COMPLEX_MAPPINGS=y | 59 | CONFIG_MTD_COMPLEX_MAPPINGS=y |
| 60 | CONFIG_MTD_PHYSMAP=y | ||
| 61 | CONFIG_MTD_PLATRAM=y | ||
| 59 | CONFIG_BLK_DEV_RAM=y | 62 | CONFIG_BLK_DEV_RAM=y |
| 60 | CONFIG_NETDEVICES=y | 63 | CONFIG_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 @@ | |||
| 1 | CONFIG_EXPERIMENTAL=y | 1 | CONFIG_EXPERIMENTAL=y |
| 2 | CONFIG_SYSVIPC=y | 2 | CONFIG_SYSVIPC=y |
| 3 | CONFIG_HIGH_RES_TIMERS=y | ||
| 3 | CONFIG_IKCONFIG=y | 4 | CONFIG_IKCONFIG=y |
| 4 | CONFIG_IKCONFIG_PROC=y | 5 | CONFIG_IKCONFIG_PROC=y |
| 5 | CONFIG_LOG_BUF_SHIFT=14 | 6 | CONFIG_LOG_BUF_SHIFT=14 |
| @@ -24,7 +25,6 @@ CONFIG_BF609=y | |||
| 24 | CONFIG_PINT1_ASSIGN=0x01010000 | 25 | CONFIG_PINT1_ASSIGN=0x01010000 |
| 25 | CONFIG_PINT2_ASSIGN=0x07000101 | 26 | CONFIG_PINT2_ASSIGN=0x07000101 |
| 26 | CONFIG_PINT3_ASSIGN=0x02020303 | 27 | CONFIG_PINT3_ASSIGN=0x02020303 |
| 27 | CONFIG_HIGH_RES_TIMERS=y | ||
| 28 | CONFIG_IP_CHECKSUM_L1=y | 28 | CONFIG_IP_CHECKSUM_L1=y |
| 29 | CONFIG_SYSCALL_TAB_L1=y | 29 | CONFIG_SYSCALL_TAB_L1=y |
| 30 | CONFIG_CPLB_SWITCH_TAB_L1=y | 30 | CONFIG_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 |
| 118 | CONFIG_SND_SOC=m | 118 | CONFIG_SND_SOC=m |
| 119 | CONFIG_SND_BF6XX_I2S=m | ||
| 120 | CONFIG_SND_SOC_BFIN_EVAL_ADAU1X61=m | ||
| 121 | CONFIG_SND_SOC_ALL_CODECS=m | ||
| 122 | CONFIG_USB=y | 119 | CONFIG_USB=y |
| 123 | CONFIG_USB_MUSB_HDRC=y | 120 | CONFIG_USB_MUSB_HDRC=y |
| 124 | CONFIG_USB_MUSB_BLACKFIN=m | 121 | CONFIG_USB_MUSB_BLACKFIN=m |
| @@ -136,7 +133,6 @@ CONFIG_VFAT_FS=y | |||
| 136 | CONFIG_JFFS2_FS=m | 133 | CONFIG_JFFS2_FS=m |
| 137 | CONFIG_UBIFS_FS=m | 134 | CONFIG_UBIFS_FS=m |
| 138 | CONFIG_NFS_FS=m | 135 | CONFIG_NFS_FS=m |
| 139 | CONFIG_NFS_V3=y | ||
| 140 | CONFIG_NLS_CODEPAGE_437=y | 136 | CONFIG_NLS_CODEPAGE_437=y |
| 141 | CONFIG_NLS_ISO8859_1=y | 137 | CONFIG_NLS_ISO8859_1=y |
| 142 | CONFIG_DEBUG_FS=y | 138 | CONFIG_DEBUG_FS=y |
| @@ -149,9 +145,9 @@ CONFIG_DEBUG_BFIN_HWTRACE_COMPRESSION_ONE=y | |||
| 149 | CONFIG_EARLY_PRINTK=y | 145 | CONFIG_EARLY_PRINTK=y |
| 150 | CONFIG_CPLB_INFO=y | 146 | CONFIG_CPLB_INFO=y |
| 151 | CONFIG_BFIN_PSEUDODBG_INSNS=y | 147 | CONFIG_BFIN_PSEUDODBG_INSNS=y |
| 152 | CONFIG_CRYPTO_HMAC=y | 148 | CONFIG_CRYPTO_HMAC=m |
| 153 | CONFIG_CRYPTO_MD4=y | 149 | CONFIG_CRYPTO_MD4=m |
| 154 | CONFIG_CRYPTO_MD5=y | 150 | CONFIG_CRYPTO_MD5=m |
| 155 | CONFIG_CRYPTO_ARC4=y | 151 | CONFIG_CRYPTO_ARC4=m |
| 156 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 152 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
| 157 | CONFIG_CRYPTO_DEV_BFIN_CRC=y | 153 | CONFIG_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) | |||
| 86 | void machine_restart(char *cmd) | 86 | void 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 */ | ||
| 150 | static 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 | |||
| 157 | static 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 | |||
| 170 | static 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 | }, | ||
