Skip to content

Commit efea90a

Browse files
author
Linus Torvalds
committed
Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/cooloney/blackfin-2.6
* 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/cooloney/blackfin-2.6: Blackfin arch: update boards files Blackfin arch: dma add some API and cleanup bf54x DMA definition Blackfin arch: cleanup and promote the general purpose timers api to a core blackfin component Blackfin arch: add a cheesy install target Blackfin arch: add functions for converting between sclks and usecs Blackfin arch: add assembly function for doing 64bit unsigned division Blackfin arch: -mno-fdpic works Blackfin arch: use "char bfin_board_name[]" rather than "char *bfin_board_name" per discussion on lkml as the former uses less storage Blackfin arch: Fixing Bug: balance calls to get_task_mm with corresponding mmput calls Blackfin serial driver Kconfig: depend on DMA not being enabled rather than a specific DMA size Blackfin arch: Fix bug: missing CHIPID register field definition of BF54x Blackfin arch: Fix up /proc/cpuinfo so it is like everyone else Blackfin arch: Optimization - no need to make additional math here Blackfin arch: force irq_flags into the .data section Blackfin arch BF548 defconfig: enable watchdog by default Blackfin arch: add new processor ADSP-BF52x arch/mach support
2 parents 2fb59d6 + d4b1d27 commit efea90a

Some content is hidden

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

61 files changed

+5669
-317
lines changed

arch/blackfin/Kconfig

Lines changed: 55 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ config GENERIC_CALIBRATE_DELAY
7171

7272
config IRQCHIP_DEMUX_GPIO
7373
bool
74-
depends on (BF53x || BF561 || BF54x)
74+
depends on (BF52x || BF53x || BF561 || BF54x)
7575
default y
7676

7777
source "init/Kconfig"
@@ -85,6 +85,21 @@ choice
8585
prompt "CPU"
8686
default BF533
8787

88+
config BF522
89+
bool "BF522"
90+
help
91+
BF522 Processor Support.
92+
93+
config BF525
94+
bool "BF525"
95+
help
96+
BF525 Processor Support.
97+
98+
config BF527
99+
bool "BF527"
100+
help
101+
BF527 Processor Support.
102+
88103
config BF531
89104
bool "BF531"
90105
help
@@ -144,13 +159,18 @@ endchoice
144159

145160
choice
146161
prompt "Silicon Rev"
162+
default BF_REV_0_1 if BF527
147163
default BF_REV_0_2 if BF537
148164
default BF_REV_0_3 if BF533
149165
default BF_REV_0_0 if BF549
150166

151167
config BF_REV_0_0
152168
bool "0.0"
153-
depends on (BF549)
169+
depends on (BF549 || BF527)
170+
171+
config BF_REV_0_1
172+
bool "0.2"
173+
depends on (BF549 || BF527)
154174

155175
config BF_REV_0_2
156176
bool "0.2"
@@ -176,6 +196,11 @@ config BF_REV_NONE
176196

177197
endchoice
178198

199+
config BF52x
200+
bool
201+
depends on (BF522 || BF525 || BF527)
202+
default y
203+
179204
config BF53x
180205
bool
181206
depends on (BF531 || BF532 || BF533 || BF534 || BF536 || BF537)
@@ -204,6 +229,12 @@ choice
204229
configuration to ensure that all the other settings are
205230
correct.
206231

232+
config BFIN527_EZKIT
233+
bool "BF527-EZKIT"
234+
depends on (BF522 || BF525 || BF527)
235+
help
236+
BF533-EZKIT-LITE board Support.
237+
207238
config BFIN533_EZKIT
208239
bool "BF533-EZKIT"
209240
depends on (BF533 || BF532 || BF531)
@@ -299,11 +330,17 @@ config MEM_MT48LC8M32B2B5_7
299330
depends on (BFIN561_BLUETECHNIX_CM)
300331
default y
301332

333+
config MEM_MT48LC32M16A2TG_75
334+
bool
335+
depends on (BFIN527_EZKIT)
336+
default y
337+
302338
config BFIN_SHARED_FLASH_ENET
303339
bool
304340
depends on (BFIN533_STAMP)
305341
default y
306342

343+
source "arch/blackfin/mach-bf527/Kconfig"
307344
source "arch/blackfin/mach-bf533/Kconfig"
308345
source "arch/blackfin/mach-bf561/Kconfig"
309346
source "arch/blackfin/mach-bf537/Kconfig"
@@ -329,7 +366,7 @@ config CLKIN_HZ
329366
int "Crystal Frequency in Hz"
330367
default "11059200" if BFIN533_STAMP
331368
default "27000000" if BFIN533_EZKIT
332-
default "25000000" if BFIN537_STAMP
369+
default "25000000" if (BFIN537_STAMP || BFIN527_EZKIT)
333370
default "30000000" if BFIN561_EZKIT
334371
default "24576000" if PNAV10
335372
help
@@ -362,7 +399,7 @@ config VCO_MULT
362399
range 1 64
363400
default "22" if BFIN533_EZKIT
364401
default "45" if BFIN533_STAMP
365-
default "20" if BFIN537_STAMP
402+
default "20" if (BFIN537_STAMP || BFIN527_EZKIT)
366403
default "22" if BFIN533_BLUETECHNIX_CM
367404
default "20" if BFIN537_BLUETECHNIX_CM
368405
default "20" if BFIN561_BLUETECHNIX_CM
@@ -398,7 +435,7 @@ config SCLK_DIV
398435
range 1 15
399436
default 5 if BFIN533_EZKIT
400437
default 5 if BFIN533_STAMP
401-
default 4 if BFIN537_STAMP
438+
default 4 if (BFIN537_STAMP || BFIN527_EZKIT)
402439
default 5 if BFIN533_BLUETECHNIX_CM
403440
default 4 if BFIN537_BLUETECHNIX_CM
404441
default 4 if BFIN561_BLUETECHNIX_CM
@@ -450,6 +487,7 @@ comment "Memory Setup"
450487
config MEM_SIZE
451488
int "SDRAM Memory Size in MBytes"
452489
default 32 if BFIN533_EZKIT
490+
default 64 if BFIN527_EZKIT
453491
default 64 if BFIN537_STAMP
454492
default 64 if BFIN561_EZKIT
455493
default 128 if BFIN533_STAMP
@@ -459,6 +497,7 @@ config MEM_ADD_WIDTH
459497
int "SDRAM Memory Address Width"
460498
default 9 if BFIN533_EZKIT
461499
default 9 if BFIN561_EZKIT
500+
default 10 if BFIN527_EZKIT
462501
default 10 if BFIN537_STAMP
463502
default 11 if BFIN533_STAMP
464503
default 10 if PNAV10
@@ -749,9 +788,19 @@ config LARGE_ALLOCS
749788
a lot of RAM, and you need to able to allocate very large
750789
contiguous chunks. If unsure, say N.
751790

791+
config BFIN_GPTIMERS
792+
tristate "Enable Blackfin General Purpose Timers API"
793+
default n
794+
help
795+
Enable support for the General Purpose Timers API. If you
796+
are unsure, say N.
797+
798+
To compile this driver as a module, choose M here: the module
799+
will be called gptimers.ko.
800+
752801
config BFIN_DMA_5XX
753802
bool "Enable DMA Support"
754-
depends on (BF533 || BF532 || BF531 || BF537 || BF536 || BF534 || BF561 || BF54x)
803+
depends on (BF52x || BF53x || BF561 || BF54x)
755804
default y
756805
help
757806
DMA driver for BF5xx.

arch/blackfin/Makefile

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ LDFLAGS_vmlinux := -X
1212
OBJCOPYFLAGS := -O binary -R .note -R .comment -S
1313
GZFLAGS := -9
1414

15+
CFLAGS += $(call cc-option,-mno-fdpic)
16+
AFLAGS += $(call cc-option,-mno-fdpic)
1517
CFLAGS_MODULE += -mlong-calls
1618
KALLSYMS += --symbol-prefix=_
1719

1820
KBUILD_DEFCONFIG := BF537-STAMP_defconfig
1921

2022
# setup the machine name and the machine dependent settings
23+
machine-$(CONFIG_BF522) := bf527
24+
machine-$(CONFIG_BF525) := bf527
25+
machine-$(CONFIG_BF527) := bf527
2126
machine-$(CONFIG_BF531) := bf533
2227
machine-$(CONFIG_BF532) := bf533
2328
machine-$(CONFIG_BF533) := bf533
@@ -32,6 +37,9 @@ machine-$(CONFIG_BF561) := bf561
3237
MACHINE := $(machine-y)
3338
export MACHINE
3439

40+
cpu-$(CONFIG_BF522) := bf522
41+
cpu-$(CONFIG_BF525) := bf525
42+
cpu-$(CONFIG_BF527) := bf527
3543
cpu-$(CONFIG_BF531) := bf531
3644
cpu-$(CONFIG_BF532) := bf532
3745
cpu-$(CONFIG_BF533) := bf533
@@ -97,12 +105,23 @@ archclean:
97105
$(Q)$(MAKE) $(clean)=$(boot)
98106

99107

100-
all: vmImage
101108
boot := arch/$(ARCH)/boot
102109
BOOT_TARGETS = vmImage
103-
.PHONY: $(BOOT_TARGETS)
110+
PHONY += $(BOOT_TARGETS) install
111+
KBUILD_IMAGE := $(boot)/vmImage
112+
113+
all: vmImage
114+
104115
$(BOOT_TARGETS): vmlinux
105116
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
117+
118+
install:
119+
$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install
120+
106121
define archhelp
107122
echo '* vmImage - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage)'
123+
echo ' install - Install kernel using'
124+
echo ' (your) ~/bin/$(CROSS_COMPILE)installkernel or'
125+
echo ' (distribution) PATH: $(CROSS_COMPILE)installkernel or'
126+
echo ' install to $$(INSTALL_PATH)'
108127
endef

arch/blackfin/boot/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
2626
$(obj)/vmImage: $(obj)/vmlinux.gz
2727
$(call if_changed,uimage)
2828
@echo 'Kernel: $@ is ready'
29+
30+
install:
31+
sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"

arch/blackfin/boot/install.sh

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#!/bin/sh
2+
#
3+
# arch/blackfin/boot/install.sh
4+
#
5+
# This file is subject to the terms and conditions of the GNU General Public
6+
# License. See the file "COPYING" in the main directory of this archive
7+
# for more details.
8+
#
9+
# Copyright (C) 1995 by Linus Torvalds
10+
#
11+
# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
12+
# Adapted from code in arch/i386/boot/install.sh by Mike Frysinger
13+
#
14+
# "make install" script for Blackfin architecture
15+
#
16+
# Arguments:
17+
# $1 - kernel version
18+
# $2 - kernel image file
19+
# $3 - kernel map file
20+
# $4 - default install path (blank if root directory)
21+
#
22+
23+
verify () {
24+
if [ ! -f "$1" ]; then
25+
echo "" 1>&2
26+
echo " *** Missing file: $1" 1>&2
27+
echo ' *** You need to run "make" before "make install".' 1>&2
28+
echo "" 1>&2
29+
exit 1
30+
fi
31+
}
32+
33+
# Make sure the files actually exist
34+
verify "$2"
35+
verify "$3"
36+
37+
# User may have a custom install script
38+
39+
if [ -x ~/bin/${CROSS_COMPILE}installkernel ]; then exec ~/bin/${CROSS_COMPILE}installkernel "$@"; fi
40+
if which ${CROSS_COMPILE}installkernel >/dev/null 2>&1; then
41+
exec ${CROSS_COMPILE}installkernel "$@"
42+
fi
43+
44+
# Default install - same as make zlilo
45+
46+
back_it_up() {
47+
local file=$1
48+
[ -f ${file} ] || return 0
49+
local stamp=$(stat -c %Y ${file} 2>/dev/null)
50+
mv ${file} ${file}.${stamp:-old}
51+
}
52+
53+
back_it_up $4/uImage
54+
back_it_up $4/System.map
55+
56+
cat $2 > $4/uImage
57+
cp $3 $4/System.map

0 commit comments

Comments
 (0)