Skip to content

Commit 8e95a53

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lliubbo/blackfin
Pull blackfin changes from Bob Liu: "The biggest change was added an new processor(bf60x series). Bf60x series processor of blackfin can up to 1GHz with Hardware Support for HD Video Analytics, it use the same blackfin ISA but with some changes on system buses, interrupt controller and peripheral devices. Added dir arch/blackfin/mach-bf609/ and did some changes to the framework made linux working fine on the reference board bf609-ezkit now." * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lliubbo/blackfin: (41 commits) blackfin: fix build after add bf60x mach/pm.h blackfin: twi: include linux/i2c.h blackfin: bf60x: add head file for crc controller blackfin: bf60x: twi: work around temporary anomaly 0501001 blackfin: twi: Move TWI MMR access macro to twi head file blackfin: twi: Move TWI peripheral pin request array to platform data blackfin: bf60x: anomaly: Add a temporary anomaly 0501001 blackfin: bf60x: Rename the DDR controller macro blackfin: mach-bf609: pm: cleanup bfin_deepsleep blackfin: bf60x: cleanup get clock code blackfin: bf60x: pm: Add a debug option to calculate kernel wakeup time. blackfin: bf60x: add wakeup source select blackfin: bf60x: make clock changeable in kernel menuconfig blackfin:mach-bf609: fix norflash for bf609-ezkit blackfin: mach-bf609: add can_wakeup to ethernet device blackfin: remove redundant CONFIG_BF60x macro blackfin: rotary: Add pm_wakeup flag to platform data structure. bfin_gpio: fix bf548-ezkit kernel fail to boot bfin_dma: fix initcall return error in proc_dma_init() Blackfin: delete fork func ...
2 parents cd975ae + 672552a commit 8e95a53

142 files changed

Lines changed: 14357 additions & 1320 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/blackfin/ADI_BSD.txt‎

Lines changed: 0 additions & 41 deletions
This file was deleted.

‎arch/blackfin/Clear_BSD.txt‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
The Clear BSD license:
2+
3+
Copyright (c) 2012, Analog Devices, Inc. All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted (subject to the limitations in the
7+
disclaimer below) provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright
10+
notice, this list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright
13+
notice, this list of conditions and the following disclaimer in the
14+
documentation and/or other materials provided with the
15+
distribution.
16+
17+
* Neither the name of Analog Devices, Inc. nor the names of its
18+
contributors may be used to endorse or promote products derived
19+
from this software without specific prior written permission.
20+
21+
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
22+
GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
23+
HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
24+
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
30+
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
31+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
32+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
33+
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

‎arch/blackfin/Kconfig‎

Lines changed: 173 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,12 @@ config BF561
226226
help
227227
BF561 Processor Support.
228228

229+
config BF609
230+
bool "BF609"
231+
select CLKDEV_LOOKUP
232+
help
233+
BF609 Processor Support.
234+
229235
endchoice
230236

231237
config SMP
@@ -251,27 +257,27 @@ config HOTPLUG_CPU
251257

252258
config BF_REV_MIN
253259
int
254-
default 0 if (BF51x || BF52x || (BF54x && !BF54xM))
260+
default 0 if (BF51x || BF52x || (BF54x && !BF54xM)) || BF60x
255261
default 2 if (BF537 || BF536 || BF534)
256262
default 3 if (BF561 || BF533 || BF532 || BF531 || BF54xM)
257263
default 4 if (BF538 || BF539)
258264

259265
config BF_REV_MAX
260266
int
261-
default 2 if (BF51x || BF52x || (BF54x && !BF54xM))
267+
default 2 if (BF51x || BF52x || (BF54x && !BF54xM)) || BF60x
262268
default 3 if (BF537 || BF536 || BF534 || BF54xM)
263269
default 5 if (BF561 || BF538 || BF539)
264270
default 6 if (BF533 || BF532 || BF531)
265271

266272
choice
267273
prompt "Silicon Rev"
268-
default BF_REV_0_0 if (BF51x || BF52x)
274+
default BF_REV_0_0 if (BF51x || BF52x || BF60x)
269275
default BF_REV_0_2 if (BF534 || BF536 || BF537 || (BF54x && !BF54xM))
270276
default BF_REV_0_3 if (BF531 || BF532 || BF533 || BF54xM || BF561)
271277

272278
config BF_REV_0_0
273279
bool "0.0"
274-
depends on (BF51x || BF52x || (BF54x && !BF54xM))
280+
depends on (BF51x || BF52x || (BF54x && !BF54xM) || BF60x)
275281

276282
config BF_REV_0_1
277283
bool "0.1"
@@ -350,6 +356,7 @@ source "arch/blackfin/mach-bf561/Kconfig"
350356
source "arch/blackfin/mach-bf537/Kconfig"
351357
source "arch/blackfin/mach-bf538/Kconfig"
352358
source "arch/blackfin/mach-bf548/Kconfig"
359+
source "arch/blackfin/mach-bf609/Kconfig"
353360

354361
menu "Board customizations"
355362

@@ -379,6 +386,12 @@ config BOOT_LOAD
379386
memory region is used to capture NULL pointer references as well
380387
as some core kernel functions.
381388

389+
config PHY_RAM_BASE_ADDRESS
390+
hex "Physical RAM Base"
391+
default 0x0
392+
help
393+
set BF609 FPGA physical SRAM base address
394+
382395
config ROM_BASE
383396
hex "Kernel ROM Base"
384397
depends on ROMKERNEL
@@ -422,7 +435,7 @@ config BFIN_KERNEL_CLOCK
422435

423436
config PLL_BYPASS
424437
bool "Bypass PLL"
425-
depends on BFIN_KERNEL_CLOCK
438+
depends on BFIN_KERNEL_CLOCK && (!BF60x)
426439
default n
427440

428441
config CLKIN_HALF
@@ -441,7 +454,7 @@ config VCO_MULT
441454
default "20" if (BFIN537_STAMP || BFIN527_EZKIT || BFIN527_EZKIT_V2 || BFIN548_EZKIT || BFIN548_BLUETECHNIX_CM || BFIN538_EZKIT)
442455
default "22" if BFIN533_BLUETECHNIX_CM
443456
default "20" if (BFIN537_BLUETECHNIX_CM_E || BFIN537_BLUETECHNIX_CM_U || BFIN527_BLUETECHNIX_CM || BFIN561_BLUETECHNIX_CM)
444-
default "20" if BFIN561_EZKIT
457+
default "20" if (BFIN561_EZKIT || BF609)
445458
default "16" if (H8606_HVSISTEMAS || BLACKSTAMP || BFIN526_EZBRD || BFIN518F_EZBRD)
446459
default "25" if BFIN527_AD7160EVAL
447460
help
@@ -473,12 +486,45 @@ config SCLK_DIV
473486
int "System Clock Divider"
474487
depends on BFIN_KERNEL_CLOCK
475488
range 1 15
476-
default 5
489+
default 4
477490
help
478-
This sets the frequency of the system clock (including SDRAM or DDR).
491+
This sets the frequency of the system clock (including SDRAM or DDR) on
492+
!BF60x else it set the clock for system buses and provides the
493+
source from which SCLK0 and SCLK1 are derived.
479494
This can be between 1 and 15
480495
System Clock = (PLL frequency) / (this setting)
481496

497+
config SCLK0_DIV
498+
int "System Clock0 Divider"
499+
depends on BFIN_KERNEL_CLOCK && BF60x
500+
range 1 15
501+
default 1
502+
help
503+
This sets the frequency of the system clock0 for PVP and all other
504+
peripherals not clocked by SCLK1.
505+
This can be between 1 and 15
506+
System Clock0 = (System Clock) / (this setting)
507+
508+
config SCLK1_DIV
509+
int "System Clock1 Divider"
510+
depends on BFIN_KERNEL_CLOCK && BF60x
511+
range 1 15
512+
default 1
513+
help
514+
This sets the frequency of the system clock1 (including SPORT, SPI and ACM).
515+
This can be between 1 and 15
516+
System Clock1 = (System Clock) / (this setting)
517+
518+
config DCLK_DIV
519+
int "DDR Clock Divider"
520+
depends on BFIN_KERNEL_CLOCK && BF60x
521+
range 1 15
522+
default 2
523+
help
524+
This sets the frequency of the DDR memory.
525+
This can be between 1 and 15
526+
DDR Clock = (PLL frequency) / (this setting)
527+
482528
choice
483529
prompt "DDR SDRAM Chip Type"
484530
depends on BFIN_KERNEL_CLOCK
@@ -494,7 +540,7 @@ endchoice
494540

495541
choice
496542
prompt "DDR/SDRAM Timing"
497-
depends on BFIN_KERNEL_CLOCK
543+
depends on BFIN_KERNEL_CLOCK && !BF60x
498544
default BFIN_KERNEL_CLOCK_MEMINIT_CALC
499545
help
500546
This option allows you to specify Blackfin SDRAM/DDR Timing parameters
@@ -576,13 +622,15 @@ config MAX_VCO_HZ
576622
default 600000000 if BF548
577623
default 533333333 if BF549
578624
default 600000000 if BF561
625+
default 800000000 if BF609
579626

580627
config MIN_VCO_HZ
581628
int
582629
default 50000000
583630

584631
config MAX_SCLK_HZ
585632
int
633+
default 200000000 if BF609
586634
default 133333333
587635

588636
config MIN_SCLK_HZ
@@ -1051,7 +1099,7 @@ endchoice
10511099
config BFIN_L2_DCACHEABLE
10521100
bool "Enable DCACHE for L2 SRAM"
10531101
depends on BFIN_DCACHE
1054-
depends on (BF54x || BF561) && !SMP
1102+
depends on (BF54x || BF561 || BF60x) && !SMP
10551103
default n
10561104
choice
10571105
prompt "L2 SRAM DCACHE policy"
@@ -1077,6 +1125,7 @@ config MPU
10771125
comment "Asynchronous Memory Configuration"
10781126

10791127
menu "EBIU_AMGCTL Global Control"
1128+
depends on !BF60x
10801129
config C_AMCKEN
10811130
bool "Enable CLKOUT"
10821131
default y
@@ -1127,6 +1176,7 @@ endchoice
11271176
endmenu
11281177

11291178
menu "EBIU_AMBCTL Control"
1179+
depends on !BF60x
11301180
config BANK_0
11311181
hex "Bank 0 (AMBCTL0.L)"
11321182
default 0x7BB0
@@ -1206,7 +1256,7 @@ config ARCH_SUSPEND_POSSIBLE
12061256

12071257
choice
12081258
prompt "Standby Power Saving Mode"
1209-
depends on PM
1259+
depends on PM && !BF60x
12101260
default PM_BFIN_SLEEP_DEEPER
12111261
config PM_BFIN_SLEEP_DEEPER
12121262
bool "Sleep Deeper"
@@ -1261,6 +1311,118 @@ config PM_BFIN_WAKE_GP
12611311
On ADSP-BF549 this option enables the the same functionality on the
12621312
/MRXON pin also PH7.
12631313

1314+
config PM_BFIN_WAKE_PA15
1315+
bool "Allow Wake-Up from PA15"
1316+
depends on PM && BF60x
1317+
default n
1318+
help
1319+
Enable PA15 Wake-Up
1320+
1321+
config PM_BFIN_WAKE_PA15_POL
1322+
int "Wake-up priority"
1323+
depends on PM_BFIN_WAKE_PA15
1324+
default 0
1325+
help
1326+
Wake-Up priority 0(low) 1(high)
1327+
1328+
config PM_BFIN_WAKE_PB15
1329+
bool "Allow Wake-Up from PB15"
1330+
depends on PM && BF60x
1331+
default n
1332+
help
1333+
Enable PB15 Wake-Up
1334+
1335+
config PM_BFIN_WAKE_PB15_POL
1336+
int "Wake-up priority"
1337+
depends on PM_BFIN_WAKE_PB15
1338+
default 0
1339+
help
1340+
Wake-Up priority 0(low) 1(high)
1341+
1342+
config PM_BFIN_WAKE_PC15
1343+
bool "Allow Wake-Up from PC15"
1344+
depends on PM && BF60x
1345+
default n
1346+
help
1347+
Enable PC15 Wake-Up
1348+
1349+
config PM_BFIN_WAKE_PC15_POL
1350+
int "Wake-up priority"
1351+
depends on PM_BFIN_WAKE_PC15
1352+
default 0
1353+
help
1354+
Wake-Up priority 0(low) 1(high)
1355+
1356+
config PM_BFIN_WAKE_PD06
1357+
bool "Allow Wake-Up from PD06(ETH0_PHYINT)"
1358+
depends on PM && BF60x
1359+
default n
1360+
help
1361+
Enable PD06(ETH0_PHYINT) Wake-up
1362+
1363+
config PM_BFIN_WAKE_PD06_POL
1364+
int "Wake-up priority"
1365+
depends on PM_BFIN_WAKE_PD06
1366+
default 0
1367+
help
1368+
Wake-Up priority 0(low) 1(high)
1369+
1370+
config PM_BFIN_WAKE_PE12
1371+
bool "Allow Wake-Up from PE12(ETH1_PHYINT, PUSH BUTTON)"
1372+
depends on PM && BF60x
1373+
default n
1374+
help
1375+
Enable PE12(ETH1_PHYINT, PUSH BUTTON) Wake-up
1376+
1377+
config PM_BFIN_WAKE_PE12_POL
1378+
int "Wake-up priority"
1379+
depends on PM_BFIN_WAKE_PE12
1380+
default 0
1381+
help
1382+
Wake-Up priority 0(low) 1(high)
1383+
1384+
config PM_BFIN_WAKE_PG04
1385+
bool "Allow Wake-Up from PG04(CAN0_RX)"
1386+
depends on PM && BF60x
1387+
default n
1388+
help
1389+
Enable PG04(CAN0_RX) Wake-up
1390+
1391+
config PM_BFIN_WAKE_PG04_POL
1392+
int "Wake-up priority"
1393+
depends on PM_BFIN_WAKE_PG04
1394+
default 0
1395+
help
1396+
Wake-Up priority 0(low) 1(high)
1397+
1398+
config PM_BFIN_WAKE_PG13
1399+
bool "Allow Wake-Up from PG13"
1400+
depends on PM && BF60x
1401+
default n
1402+
help
1403+
Enable PG13 Wake-Up
1404+
1405+
config PM_BFIN_WAKE_PG13_POL
1406+
int "Wake-up priority"
1407+
depends on PM_BFIN_WAKE_PG13
1408+
default 0
1409+
help
1410+
Wake-Up priority 0(low) 1(high)
1411+
1412+
config PM_BFIN_WAKE_USB
1413+
bool "Allow Wake-Up from (USB)"
1414+
depends on PM && BF60x
1415+
default n
1416+
help
1417+
Enable (USB) Wake-up
1418+
1419+
config PM_BFIN_WAKE_USB_POL
1420+
int "Wake-up priority"
1421+
depends on PM_BFIN_WAKE_USB
1422+
default 0
1423+
help
1424+
Wake-Up priority 0(low) 1(high)
1425+
12641426
endmenu
12651427

12661428
menu "CPU Frequency scaling"

‎arch/blackfin/Kconfig.debug‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,4 +253,11 @@ config BFIN_PSEUDODBG_INSNS
253253

254254
Most people should say N here.
255255

256+
config BFIN_PM_WAKEUP_TIME_BENCH
257+
bool "Display the total time for kernel to resume from power saving mode"
258+
default n
259+
help
260+
Display the total time when kernel resumes normal from standby or
261+
suspend to mem mode.
262+
256263
endmenu

0 commit comments

Comments
 (0)