aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Liu <lliubbo@gmail.com>2012-05-15 01:58:56 -0400
committerBob Liu <lliubbo@gmail.com>2012-05-21 02:54:47 -0400
commit1c40093976192c837c80f0c723394f176ca132ff (patch)
treeb12d8da67bed08d9cc095156c6aae7a8d495861a
parent6e1953e140e7c965cf18dd7dabfdfe853bb4786b (diff)
blackfin:mach-bf609: fix norflash for bf609-ezkit
Set smc register to async flash protocol mode and use physmap driver instead of bfin-bf6xx. Signed-off-by: Bob Liu <lliubbo@gmail.com>
-rw-r--r--arch/blackfin/configs/BF609-EZKIT_defconfig3
-rw-r--r--arch/blackfin/mach-bf609/boards/ezkit.c8
2 files changed, 6 insertions, 5 deletions
diff --git a/arch/blackfin/configs/BF609-EZKIT_defconfig b/arch/blackfin/configs/BF609-EZKIT_defconfig
index 07c92465109a..0864f7aaa572 100644
--- a/arch/blackfin/configs/BF609-EZKIT_defconfig
+++ b/arch/blackfin/configs/BF609-EZKIT_defconfig
@@ -57,11 +57,12 @@ CONFIG_FW_LOADER=m
57CONFIG_MTD=y 57CONFIG_MTD=y
58CONFIG_MTD_CMDLINE_PARTS=y 58CONFIG_MTD_CMDLINE_PARTS=y
59CONFIG_MTD_CHAR=y 59CONFIG_MTD_CHAR=y
60CONFIG_MTD_BLOCK=y
60CONFIG_MTD_CFI=y 61CONFIG_MTD_CFI=y
61CONFIG_MTD_CFI_INTELEXT=y 62CONFIG_MTD_CFI_INTELEXT=y
62CONFIG_MTD_CFI_STAA=y 63CONFIG_MTD_CFI_STAA=y
63CONFIG_MTD_COMPLEX_MAPPINGS=y 64CONFIG_MTD_COMPLEX_MAPPINGS=y
64CONFIG_MTD_BFIN_BF60x=y 65CONFIG_MTD_PHYSMAP=y
65CONFIG_MTD_M25P80=y 66CONFIG_MTD_M25P80=y
66CONFIG_MTD_UBI=m 67CONFIG_MTD_UBI=m
67CONFIG_SCSI=y 68CONFIG_SCSI=y
diff --git a/arch/blackfin/mach-bf609/boards/ezkit.c b/arch/blackfin/mach-bf609/boards/ezkit.c
index c8740f640c11..cf0175a1dec9 100644
--- a/arch/blackfin/mach-bf609/boards/ezkit.c
+++ b/arch/blackfin/mach-bf609/boards/ezkit.c
@@ -642,7 +642,7 @@ static struct platform_device bfin_sdh_device = {
642}; 642};
643#endif 643#endif
644 644
645#if defined(CONFIG_MTD_BFIN_BF60x) || defined(CONFIG_MTD_BFIN_BF60x_MODULE) 645#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
646static struct mtd_partition ezkit_partitions[] = { 646static struct mtd_partition ezkit_partitions[] = {
647 { 647 {
648 .name = "bootloader(nor)", 648 .name = "bootloader(nor)",
@@ -671,7 +671,7 @@ int bf609_nor_flash_init(struct platform_device *dev)
671 peripheral_request_list(pins, "smc0"); 671 peripheral_request_list(pins, "smc0");
672 672
673 bfin_write32(SMC_GCTL, CONFIG_SMC_GCTL_VAL); 673 bfin_write32(SMC_GCTL, CONFIG_SMC_GCTL_VAL);
674 bfin_write32(SMC_B0CTL, 0x01002001); 674 bfin_write32(SMC_B0CTL, 0x01002011);
675 bfin_write32(SMC_B0TIM, 0x08170977); 675 bfin_write32(SMC_B0TIM, 0x08170977);
676 bfin_write32(SMC_B0ETIM, 0x00092231); 676 bfin_write32(SMC_B0ETIM, 0x00092231);
677 return 0; 677 return 0;
@@ -691,7 +691,7 @@ static struct resource ezkit_flash_resource = {
691}; 691};
692 692
693static struct platform_device ezkit_flash_device = { 693static struct platform_device ezkit_flash_device = {
694 .name = "bf60x-flash", 694 .name = "physmap-flash",
695 .id = 0, 695 .id = 0,
696 .dev = { 696 .dev = {
697 .platform_data = &ezkit_flash_data, 697 .platform_data = &ezkit_flash_data,
@@ -1256,7 +1256,7 @@ static struct platform_device *ezkit_devices[] __initdata = {
1256 &bfin_device_gpiokeys, 1256 &bfin_device_gpiokeys,
1257#endif 1257#endif
1258 1258
1259#if defined(CONFIG_MTD_BFIN_BF60x) || defined(CONFIG_MTD_BFIN_BF60x_MODULE) 1259#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
1260 &ezkit_flash_device, 1260 &ezkit_flash_device,
1261#endif 1261#endif
1262#if defined(CONFIG_SND_BF6XX_I2S) || defined(CONFIG_SND_BF6XX_I2S_MODULE) 1262#if defined(CONFIG_SND_BF6XX_I2S) || defined(CONFIG_SND_BF6XX_I2S_MODULE)