mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 03:58:18 -04:00
ftsmc020: fix relocation
Avoid relocation problem by fix global declaration. Signed-off-by: Macpaul Lin <macpaul@andestech.com>
This commit is contained in:
parent
4bed7265f2
commit
f194f6ba5b
@ -27,12 +27,10 @@ struct ftsmc020_config {
|
|||||||
unsigned int timing;
|
unsigned int timing;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct ftsmc020_config config[] = CONFIG_SYS_FTSMC020_CONFIGS;
|
|
||||||
|
|
||||||
static struct ftsmc020 *smc = (struct ftsmc020 *)CONFIG_FTSMC020_BASE;
|
|
||||||
|
|
||||||
static void ftsmc020_setup_bank(unsigned int bank, struct ftsmc020_config *cfg)
|
static void ftsmc020_setup_bank(unsigned int bank, struct ftsmc020_config *cfg)
|
||||||
{
|
{
|
||||||
|
struct ftsmc020 *smc = (struct ftsmc020 *)CONFIG_FTSMC020_BASE;
|
||||||
|
|
||||||
if (bank > 3) {
|
if (bank > 3) {
|
||||||
printf("bank # %u invalid\n", bank);
|
printf("bank # %u invalid\n", bank);
|
||||||
return;
|
return;
|
||||||
@ -44,6 +42,7 @@ static void ftsmc020_setup_bank(unsigned int bank, struct ftsmc020_config *cfg)
|
|||||||
|
|
||||||
void ftsmc020_init(void)
|
void ftsmc020_init(void)
|
||||||
{
|
{
|
||||||
|
struct ftsmc020_config config[] = CONFIG_SYS_FTSMC020_CONFIGS;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(config); i++)
|
for (i = 0; i < ARRAY_SIZE(config); i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user