[U-Boot] [PATCH v3 4/4] ftsmc020: move ftsmc020 static mem controller to driver/mtd

Po-Yu Chuang ratbert.chuang at gmail.com
Thu Apr 28 08:45:59 CEST 2011


Hi Macpaul,

On Sat, Apr 16, 2011 at 3:37 PM, Macpaul Lin <macpaul at andestech.com> wrote:
> 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 at andestech.com>

This patch makes a320evb failed to build.

> diff --git a/include/configs/a320evb.h b/include/configs/a320evb.h
> index 5373bcb..4b297f0 100644
> --- a/include/configs/a320evb.h
> +++ b/include/configs/a320evb.h
> @@ -163,7 +163,8 @@
>  * Static memory controller configuration
>  */
>
> -#include <asm/arch/ftsmc020.h>
> +#define CONFIG_FTSMC020
> +#include <faraday/ftsmc020.h>
>
>  #define FTSMC020_BANK0_CONFIG  (FTSMC020_BANK_ENABLE             |     \
>                                 FTSMC020_BANK_BASE(PHYS_FLASH_1) |     \
> @@ -196,6 +197,7 @@
>        { FTSMC020_BANK0_CONFIG, FTSMC020_BANK0_TIMING, },      \
>        { FTSMC020_BANK1_CONFIG, FTSMC020_BANK1_TIMING, },      \
>  }
> +#endif /* CONFIG_FTSMC020 */

Looks like this #endif is unnecessary?

best regards,
Po-Yu Chuang


More information about the U-Boot mailing list