diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-26 22:40:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-26 22:40:27 -0500 |
commit | b5faa4b89e4d83203b1f44f143a351b518f7cda2 (patch) | |
tree | 1d195fa302af8f156b049fa548008360f16a78d5 /arch/blackfin/mach-bf527/boards | |
parent | a039767f8d7eeb0731c4053d43c0d8caa27d69d0 (diff) | |
parent | 233b28a91caf7cff326e604c437a364eaf794106 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6: (56 commits)
Blackfin arch: fix bug when enable uart1 with uart0 disabled => no initial console
Blackfin arch: split apart dump_bfin_regs and merge/remove show_regs from process.c, which was largely duplicated
Blackfin arch: use common __INIT/__FINIT defines rather than setting the .section ourselves to .init.text
Blackfin arch: fix bug when sending signals with the wrong PC, cause gdb get confused
Blackfin arch: Ensure we printk out strings with the proper loglevel
Blackfin arch: Need to specify ax with the .init.text section,
Blackfin arch: Update Kconfig to latest Blackfin silicon datasheets
Blackfin arch: update defconfig files
Blackfin arch: Fix typo, and add ENDPROC - no functional changes
Blackfin arch: convert READY to DMA_READY as it causes build errors in common sound code otherwise
Blackfin arch: add defines for the on-chip L1 ROM of BF54x
Blackfin arch: cplb and map header file cleanup
Blackfin arch: cleanup the cplb declares
Blackfin arch: fix broken on BF52x, remove silly checks on processors for L1_SCRATCH defines
Blackfin arch: add support for working around anomaly 05000312
Blackfin arch: cleanup BF54x header file and add BF547 definition
Blackfin arch: fix building for BF542 processors which only have 1 TWI
Blackfin arch: rename _return_from_exception to _bfin_return_from_exception and export it
Blackfin arch: move EXPORT_SYMBOL() to C files where the symbol is actually defined
Blackfin arch: fix bug NOR Flash MTD mount fail
...
Diffstat (limited to 'arch/blackfin/mach-bf527/boards')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/Kconfig | 12 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/Makefile | 6 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/eth_mac.c | 50 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezkit.c | 37 |
4 files changed, 48 insertions, 57 deletions
diff --git a/arch/blackfin/mach-bf527/boards/Kconfig b/arch/blackfin/mach-bf527/boards/Kconfig new file mode 100644 index 000000000000..6a570ad03746 --- /dev/null +++ b/arch/blackfin/mach-bf527/boards/Kconfig | |||
@@ -0,0 +1,12 @@ | |||
1 | choice | ||
2 | prompt "System type" | ||
3 | default BFIN527_EZKIT | ||
4 | help | ||
5 | Select your board! | ||
6 | |||
7 | config BFIN527_EZKIT | ||
8 | bool "BF527-EZKIT" | ||
9 | help | ||
10 | BF527-EZKIT-LITE board support. | ||
11 | |||
12 | endchoice | ||
diff --git a/arch/blackfin/mach-bf527/boards/Makefile b/arch/blackfin/mach-bf527/boards/Makefile index 912ac8ebc889..7277d35ef111 100644 --- a/arch/blackfin/mach-bf527/boards/Makefile +++ b/arch/blackfin/mach-bf527/boards/Makefile | |||
@@ -1,7 +1,5 @@ | |||
1 | # | 1 | # |
2 | # arch/blackfin/mach-bf532/boards/Makefile | 2 | # arch/blackfin/mach-bf527/boards/Makefile |
3 | # | 3 | # |
4 | 4 | ||
5 | obj-y += eth_mac.o | 5 | obj-$(CONFIG_BFIN527_EZKIT) += ezkit.o |
6 | obj-$(CONFIG_BFIN527_EZKIT) += ezkit.o | ||
7 | |||
diff --git a/arch/blackfin/mach-bf527/boards/eth_mac.c b/arch/blackfin/mach-bf527/boards/eth_mac.c deleted file mode 100644 index a725cc8a9290..000000000000 --- a/arch/blackfin/mach-bf527/boards/eth_mac.c +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | /* | ||
2 | * arch/blackfin/mach-bf537/board/eth_mac.c | ||
3 | * | ||
4 | * Copyright (C) 2007 Analog Devices, Inc. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | */ | ||
20 | #include <linux/module.h> | ||
21 | #include <asm/blackfin.h> | ||
22 | |||
23 | #if defined(CONFIG_GENERIC_BOARD) || defined(CONFIG_BFIN537_STAMP) | ||
24 | |||
25 | /* | ||
26 | * Currently the MAC address is saved in Flash by U-Boot | ||
27 | */ | ||
28 | #define FLASH_MAC 0x203f0000 | ||
29 | |||
30 | void get_bf537_ether_addr(char *addr) | ||
31 | { | ||
32 | unsigned int flash_mac = (unsigned int) FLASH_MAC; | ||
33 | *(u32 *)(&(addr[0])) = bfin_read32(flash_mac); | ||
34 | flash_mac += 4; | ||
35 | *(u16 *)(&(addr[4])) = bfin_read16(flash_mac); | ||
36 | } | ||
37 | |||
38 | #else | ||
39 | |||
40 | /* | ||
41 | * Provide MAC address function for other specific board setting | ||
42 | */ | ||
43 | void get_bf537_ether_addr(char *addr) | ||
44 | { | ||
45 | printk(KERN_WARNING "%s: No valid Ethernet MAC address found\n", __FILE__); | ||
46 | } | ||
47 | |||
48 | #endif | ||
49 | |||
50 | EXPORT_SYMBOL(get_bf537_ether_addr); | ||
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c index bf1bedcc8868..003e2ac654d8 100644 --- a/arch/blackfin/mach-bf527/boards/ezkit.c +++ b/arch/blackfin/mach-bf527/boards/ezkit.c | |||
@@ -35,17 +35,18 @@ | |||
35 | #include <linux/spi/spi.h> | 35 | #include <linux/spi/spi.h> |
36 | #include <linux/spi/flash.h> | 36 | #include <linux/spi/flash.h> |
37 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) | 37 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) |
38 | #include <linux/usb_isp1362.h> | 38 | #include <linux/usb/isp1362.h> |
39 | #endif | 39 | #endif |
40 | #include <linux/pata_platform.h> | 40 | #include <linux/pata_platform.h> |
41 | #include <linux/irq.h> | 41 | #include <linux/irq.h> |
42 | #include <linux/interrupt.h> | 42 | #include <linux/interrupt.h> |
43 | #include <linux/usb_sl811.h> | 43 | #include <linux/usb/sl811.h> |
44 | #include <asm/cplb.h> | 44 | #include <asm/cplb.h> |
45 | #include <asm/dma.h> | 45 | #include <asm/dma.h> |
46 | #include <asm/bfin5xx_spi.h> | 46 | #include <asm/bfin5xx_spi.h> |
47 | #include <asm/reboot.h> | 47 | #include <asm/reboot.h> |
48 | #include <asm/nand.h> | 48 | #include <asm/nand.h> |
49 | #include <asm/portmux.h> | ||
49 | #include <linux/spi/ad7877.h> | 50 | #include <linux/spi/ad7877.h> |
50 | 51 | ||
51 | /* | 52 | /* |
@@ -450,6 +451,13 @@ static const struct ad7877_platform_data bfin_ad7877_ts_info = { | |||
450 | }; | 451 | }; |
451 | #endif | 452 | #endif |
452 | 453 | ||
454 | #if defined(CONFIG_SND_SOC_WM8731) || defined(CONFIG_SND_SOC_WM8731_MODULE) \ | ||
455 | && defined(CONFIG_SND_SOC_WM8731_SPI) | ||
456 | static struct bfin5xx_spi_chip spi_wm8731_chip_info = { | ||
457 | .enable_dma = 0, | ||
458 | .bits_per_word = 16, | ||
459 | }; | ||
460 | #endif | ||
453 | static struct spi_board_info bfin_spi_board_info[] __initdata = { | 461 | static struct spi_board_info bfin_spi_board_info[] __initdata = { |
454 | #if defined(CONFIG_MTD_M25P80) \ | 462 | #if defined(CONFIG_MTD_M25P80) \ |
455 | || defined(CONFIG_MTD_M25P80_MODULE) | 463 | || defined(CONFIG_MTD_M25P80_MODULE) |
@@ -551,17 +559,29 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
551 | .platform_data = &bfin_ad7877_ts_info, | 559 | .platform_data = &bfin_ad7877_ts_info, |
552 | .irq = IRQ_PF6, | 560 | .irq = IRQ_PF6, |
553 | .max_speed_hz = 12500000, /* max spi clock (SCK) speed in HZ */ | 561 | .max_speed_hz = 12500000, /* max spi clock (SCK) speed in HZ */ |
554 | .bus_num = 1, | 562 | .bus_num = 0, |
555 | .chip_select = 1, | 563 | .chip_select = 1, |
556 | .controller_data = &spi_ad7877_chip_info, | 564 | .controller_data = &spi_ad7877_chip_info, |
557 | }, | 565 | }, |
558 | #endif | 566 | #endif |
567 | #if defined(CONFIG_SND_SOC_WM8731) || defined(CONFIG_SND_SOC_WM8731_MODULE) \ | ||
568 | && defined(CONFIG_SND_SOC_WM8731_SPI) | ||
569 | { | ||
570 | .modalias = "wm8731", | ||
571 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | ||
572 | .bus_num = 0, | ||
573 | .chip_select = 5, | ||
574 | .controller_data = &spi_wm8731_chip_info, | ||
575 | .mode = SPI_MODE_0, | ||
576 | }, | ||
577 | #endif | ||
559 | }; | 578 | }; |
560 | 579 | ||
561 | /* SPI controller data */ | 580 | /* SPI controller data */ |
562 | static struct bfin5xx_spi_master bfin_spi0_info = { | 581 | static struct bfin5xx_spi_master bfin_spi0_info = { |
563 | .num_chipselect = 8, | 582 | .num_chipselect = 8, |
564 | .enable_dma = 1, /* master has the ability to do dma transfer */ | 583 | .enable_dma = 1, /* master has the ability to do dma transfer */ |
584 | .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0}, | ||
565 | }; | 585 | }; |
566 | 586 | ||
567 | /* SPI (0) */ | 587 | /* SPI (0) */ |
@@ -788,3 +808,14 @@ void native_machine_restart(char *cmd) | |||
788 | if ((bfin_read_SYSCR() & 0x7) == 0x3) | 808 | if ((bfin_read_SYSCR() & 0x7) == 0x3) |
789 | bfin_gpio_reset_spi0_ssel1(); | 809 | bfin_gpio_reset_spi0_ssel1(); |
790 | } | 810 | } |
811 | |||
812 | /* | ||
813 | * Currently the MAC address is saved in Flash by U-Boot | ||
814 | */ | ||
815 | #define FLASH_MAC 0x203f0000 | ||
816 | void bfin_get_ether_addr(char *addr) | ||
817 | { | ||
818 | *(u32 *)(&(addr[0])) = bfin_read32(FLASH_MAC); | ||
819 | *(u16 *)(&(addr[4])) = bfin_read16(FLASH_MAC + 4); | ||
820 | } | ||
821 | EXPORT_SYMBOL(bfin_get_ether_addr); | ||