mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
ftsmc020: move ftsmc020 static mem controller to driver/mtd
Move the header file and definitions of ftsmc020 static memory control unit from a320 SoC folder to "drivers/mtd" folder. This change will let other SoC which also use ftsmc020 could share the same header file. Signed-off-by: Macpaul Lin <macpaul@andestech.com>
This commit is contained in:
parent
5656b40bb3
commit
00d10eb041
6 changed files with 6 additions and 4 deletions
|
@ -27,7 +27,6 @@ LIB = $(obj)lib$(SOC).o
|
||||||
|
|
||||||
SOBJS += reset.o
|
SOBJS += reset.o
|
||||||
COBJS += timer.o
|
COBJS += timer.o
|
||||||
COBJS += ftsmc020.o
|
|
||||||
|
|
||||||
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
||||||
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
|
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include <netdev.h>
|
#include <netdev.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
||||||
#include <asm/arch/ftsmc020.h>
|
#include <faraday/ftsmc020.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ COBJS-$(CONFIG_HAS_DATAFLASH) += at45.o
|
||||||
COBJS-$(CONFIG_FLASH_CFI_DRIVER) += cfi_flash.o
|
COBJS-$(CONFIG_FLASH_CFI_DRIVER) += cfi_flash.o
|
||||||
COBJS-$(CONFIG_FLASH_CFI_MTD) += cfi_mtd.o
|
COBJS-$(CONFIG_FLASH_CFI_MTD) += cfi_mtd.o
|
||||||
COBJS-$(CONFIG_HAS_DATAFLASH) += dataflash.o
|
COBJS-$(CONFIG_HAS_DATAFLASH) += dataflash.o
|
||||||
|
COBJS-$(CONFIG_FTSMC020) += ftsmc020.o
|
||||||
COBJS-$(CONFIG_FLASH_CFI_LEGACY) += jedec_flash.o
|
COBJS-$(CONFIG_FLASH_CFI_LEGACY) += jedec_flash.o
|
||||||
COBJS-$(CONFIG_MW_EEPROM) += mw_eeprom.o
|
COBJS-$(CONFIG_MW_EEPROM) += mw_eeprom.o
|
||||||
COBJS-$(CONFIG_SPEARSMI) += spr_smi.o
|
COBJS-$(CONFIG_SPEARSMI) += spr_smi.o
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/ftsmc020.h>
|
#include <faraday/ftsmc020.h>
|
||||||
|
|
||||||
struct ftsmc020_config {
|
struct ftsmc020_config {
|
||||||
unsigned int config;
|
unsigned int config;
|
|
@ -163,7 +163,8 @@
|
||||||
* Static memory controller configuration
|
* Static memory controller configuration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/arch/ftsmc020.h>
|
#define CONFIG_FTSMC020
|
||||||
|
#include <faraday/ftsmc020.h>
|
||||||
|
|
||||||
#define FTSMC020_BANK0_CONFIG (FTSMC020_BANK_ENABLE | \
|
#define FTSMC020_BANK0_CONFIG (FTSMC020_BANK_ENABLE | \
|
||||||
FTSMC020_BANK_BASE(PHYS_FLASH_1) | \
|
FTSMC020_BANK_BASE(PHYS_FLASH_1) | \
|
||||||
|
@ -196,6 +197,7 @@
|
||||||
{ FTSMC020_BANK0_CONFIG, FTSMC020_BANK0_TIMING, }, \
|
{ FTSMC020_BANK0_CONFIG, FTSMC020_BANK0_TIMING, }, \
|
||||||
{ FTSMC020_BANK1_CONFIG, FTSMC020_BANK1_TIMING, }, \
|
{ FTSMC020_BANK1_CONFIG, FTSMC020_BANK1_TIMING, }, \
|
||||||
}
|
}
|
||||||
|
#endif /* CONFIG_FTSMC020 */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* FLASH and environment organization
|
* FLASH and environment organization
|
||||||
|
|
Loading…
Reference in a new issue