Skip to content

Commit dea77cc

Browse files
committed
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
2 parents de390bb + 6594b98 commit dea77cc

11 files changed

Lines changed: 416 additions & 31 deletions

File tree

‎arch/blackfin/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ config BF_REV_0_3
298298

299299
config BF_REV_0_4
300300
bool "0.4"
301-
depends on (BF561 || BF533 || BF532 || BF531 || BF538 || BF539)
301+
depends on (BF561 || BF533 || BF532 || BF531 || BF538 || BF539 || BF54x)
302302

303303
config BF_REV_0_5
304304
bool "0.5"

‎arch/blackfin/configs/BF533-EZKIT_defconfig‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,13 @@ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
5252
CONFIG_MTD=y
5353
CONFIG_MTD_CHAR=m
5454
CONFIG_MTD_BLOCK=y
55-
CONFIG_MTD_JEDECPROBE=m
55+
CONFIG_MTD_JEDECPROBE=y
56+
CONFIG_MTD_CFI_AMDSTD=y
5657
CONFIG_MTD_RAM=y
57-
CONFIG_MTD_ROM=m
58+
CONFIG_MTD_ROM=y
5859
CONFIG_MTD_COMPLEX_MAPPINGS=y
60+
CONFIG_MTD_PHYSMAP=y
61+
CONFIG_MTD_PLATRAM=y
5962
CONFIG_BLK_DEV_RAM=y
6063
CONFIG_NETDEVICES=y
6164
# CONFIG_NET_VENDOR_BROADCOM is not set

‎arch/blackfin/configs/BF609-EZKIT_defconfig‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
CONFIG_EXPERIMENTAL=y
22
CONFIG_SYSVIPC=y
3+
CONFIG_HIGH_RES_TIMERS=y
34
CONFIG_IKCONFIG=y
45
CONFIG_IKCONFIG_PROC=y
56
CONFIG_LOG_BUF_SHIFT=14
@@ -24,7 +25,6 @@ CONFIG_BF609=y
2425
CONFIG_PINT1_ASSIGN=0x01010000
2526
CONFIG_PINT2_ASSIGN=0x07000101
2627
CONFIG_PINT3_ASSIGN=0x02020303
27-
CONFIG_HIGH_RES_TIMERS=y
2828
CONFIG_IP_CHECKSUM_L1=y
2929
CONFIG_SYSCALL_TAB_L1=y
3030
CONFIG_CPLB_SWITCH_TAB_L1=y
@@ -116,9 +116,6 @@ CONFIG_SND_PCM_OSS=m
116116
# CONFIG_SND_SPI is not set
117117
# CONFIG_SND_USB is not set
118118
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
122119
CONFIG_USB=y
123120
CONFIG_USB_MUSB_HDRC=y
124121
CONFIG_USB_MUSB_BLACKFIN=m
@@ -136,7 +133,6 @@ CONFIG_VFAT_FS=y
136133
CONFIG_JFFS2_FS=m
137134
CONFIG_UBIFS_FS=m
138135
CONFIG_NFS_FS=m
139-
CONFIG_NFS_V3=y
140136
CONFIG_NLS_CODEPAGE_437=y
141137
CONFIG_NLS_ISO8859_1=y
142138
CONFIG_DEBUG_FS=y
@@ -149,9 +145,9 @@ CONFIG_DEBUG_BFIN_HWTRACE_COMPRESSION_ONE=y
149145
CONFIG_EARLY_PRINTK=y
150146
CONFIG_CPLB_INFO=y
151147
CONFIG_BFIN_PSEUDODBG_INSNS=y
152-
CONFIG_CRYPTO_HMAC=y
153-
CONFIG_CRYPTO_MD4=y
154-
CONFIG_CRYPTO_MD5=y
155-
CONFIG_CRYPTO_ARC4=y
148+
CONFIG_CRYPTO_HMAC=m
149+
CONFIG_CRYPTO_MD4=m
150+
CONFIG_CRYPTO_MD5=m
151+
CONFIG_CRYPTO_ARC4=m
156152
# CONFIG_CRYPTO_ANSI_CPRNG is not set
157-
CONFIG_CRYPTO_DEV_BFIN_CRC=y
153+
CONFIG_CRYPTO_DEV_BFIN_CRC=m

‎arch/blackfin/kernel/bfin_gpio.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,8 +1265,8 @@ static __init int gpio_register_proc(void)
12651265
{
12661266
struct proc_dir_entry *proc_gpio;
12671267

1268-
proc_gpio = proc_create("gpio", S_IRUGO, NULL, &gpio_proc_ops);
1269-
return proc_gpio != NULL;
1268+
proc_gpio = proc_create("gpio", 0, NULL, &gpio_proc_ops);
1269+
return proc_gpio == NULL;
12701270
}
12711271
__initcall(gpio_register_proc);
12721272
#endif

‎arch/blackfin/kernel/reboot.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ void native_machine_restart(char *cmd)
8686
void machine_restart(char *cmd)
8787
{
8888
native_machine_restart(cmd);
89-
local_irq_disable();
9089
if (smp_processor_id())
9190
smp_call_function((void *)bfin_reset, 0, 1);
9291
else

‎arch/blackfin/mach-bf537/boards/cm_bf537e.c‎

Lines changed: 125 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <asm/bfin5xx_spi.h>
2626
#include <asm/portmux.h>
2727
#include <asm/dpmc.h>
28+
#include <asm/bfin_sport.h>
2829

2930
/*
3031
* Name the Board for the /proc/cpuinfo
@@ -143,6 +144,71 @@ static struct platform_device bfin_spi0_device = {
143144
};
144145
#endif /* spi master and devices */
145146

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+
},
178+
};
179+
180+
static struct bfin5xx_spi_master bfin_sport_spi1_info = {
181+
.num_chipselect = MAX_BLACKFIN_GPIOS,
182+
.enable_dma = 0, /* master don't support DMA */
183+
.pin_req = {P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_DRPRI,
184+
P_SPORT1_RSCLK, P_SPORT1_TFS, P_SPORT1_RFS, 0},
185+
};
186+
187+
static struct resource bfin_sport_spi1_resource[] = {
188+
[0] = {
189+
.start = SPORT1_TCR1,
190+
.end = SPORT1_TCR1 + 0xFF,
191+
.flags = IORESOURCE_MEM,
192+
},
193+
[1] = {
194+
.start = IRQ_SPORT1_ERROR,
195+
.end = IRQ_SPORT1_ERROR,
196+
.flags = IORESOURCE_IRQ,
197+
},
198+
};
199+
200+
static struct platform_device bfin_sport_spi1_device = {
201+
.name = "bfin-sport-spi",
202+
.id = 2, /* Bus number */
203+
.num_resources = ARRAY_SIZE(bfin_sport_spi1_resource),
204+
.resource = bfin_sport_spi1_resource,
205+
.dev = {
206+
.platform_data = &bfin_sport_spi1_info, /* Passed to driver */
207+
},
208+
};
209+
210+
#endif /* sport spi master and devices */
211+
146212
#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
147213
static struct platform_device rtc_device = {
148214
.name = "rtc-bfin",
@@ -512,6 +578,13 @@ static struct platform_device i2c_bfin_twi_device = {
512578
};
513579
#endif
514580

581+
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) \
582+
|| defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE)
583+
unsigned short bfin_sport0_peripherals[] = {
584+
P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS,
585+
P_SPORT0_DRPRI, P_SPORT0_RSCLK, P_SPORT0_DRSEC, P_SPORT0_DTSEC, 0
586+
};
587+
#endif
515588
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
516589
#ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
517590
static struct resource bfin_sport0_uart_resources[] = {
@@ -532,11 +605,6 @@ static struct resource bfin_sport0_uart_resources[] = {
532605
},
533606
};
534607

535-
static unsigned short bfin_sport0_peripherals[] = {
536-
P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS,
537-
P_SPORT0_DRPRI, P_SPORT0_RSCLK, 0
538-
};
539-
540608
static struct platform_device bfin_sport0_uart_device = {
541609
.name = "bfin-sport-uart",
542610
.id = 0,
@@ -582,6 +650,49 @@ static struct platform_device bfin_sport1_uart_device = {
582650
};
583651
#endif
584652
#endif
653+
#if defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE)
654+
static struct resource bfin_sport0_resources[] = {
655+
{
656+
.start = SPORT0_TCR1,
657+
.end = SPORT0_MRCS3+4,
658+
.flags = IORESOURCE_MEM,
659+
},
660+
{
661+
.start = IRQ_SPORT0_RX,
662+
.end = IRQ_SPORT0_RX+1,
663+
.flags = IORESOURCE_IRQ,
664+
},
665+
{
666+
.start = IRQ_SPORT0_TX,
667+
.end = IRQ_SPORT0_TX+1,
668+
.flags = IORESOURCE_IRQ,
669+
},
670+
{
671+
.start = IRQ_SPORT0_ERROR,
672+
.end = IRQ_SPORT0_ERROR,
673+
.flags = IORESOURCE_IRQ,
674+
},
675+
{
676+
.start = CH_SPORT0_TX,
677+
.end = CH_SPORT0_TX,
678+
.flags = IORESOURCE_DMA,
679+
},
680+
{
681+
.start = CH_SPORT0_RX,
682+
.end = CH_SPORT0_RX,
683+
.flags = IORESOURCE_DMA,
684+
},
685+
};
686+
static struct platform_device bfin_sport0_device = {
687+
.name = "bfin_sport_raw",
688+
.id = 0,
689+
.num_resources = ARRAY_SIZE(bfin_sport0_resources),
690+
.resource = bfin_sport0_resources,
691+
.dev = {
692+
.platform_data = &bfin_sport0_peripherals, /* Passed to driver */
693+
},
694+
};
695+
#endif
585696

586697
#if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
587698
#include <linux/bfin_mac.h>
@@ -684,6 +795,10 @@ static struct platform_device *cm_bf537e_devices[] __initdata = {
684795

685796
&bfin_dpmc,
686797

798+
#if defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE)
799+
&bfin_sport0_device,
800+
#endif
801+
687802
#if defined(CONFIG_FB_HITACHI_TX09) || defined(CONFIG_FB_HITACHI_TX09_MODULE)
688803
&hitachi_fb_device,
689804
#endif
@@ -744,6 +859,11 @@ static struct platform_device *cm_bf537e_devices[] __initdata = {
744859
&bfin_spi0_device,
745860
#endif
746861

862+
#if defined(CONFIG_SPI_BFIN_SPORT) || defined(CONFIG_SPI_BFIN_SPORT_MODULE)
863+
&bfin_sport_spi0_device,
864+
&bfin_sport_spi1_device,
865+
#endif
866+
747867
#if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE)
748868
&bfin_pata_device,
749869
#endif

‎arch/blackfin/mach-bf537/boards/stamp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1525,7 +1525,7 @@ static struct platform_device bfin_sport_spi1_device = {
15251525

15261526
#if defined(CONFIG_FB_BF537_LQ035) || defined(CONFIG_FB_BF537_LQ035_MODULE)
15271527
static struct platform_device bfin_fb_device = {
1528-
.name = "bf537-lq035",
1528+
.name = "bf537_lq035",
15291529
};
15301530
#endif
15311531

0 commit comments

Comments
 (0)