GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
if TARGET_MT7623
|
||||
|
||||
config SYS_BOARD
|
||||
default "mt7623"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "mt7623"
|
||||
|
||||
config MTK_BROM_HEADER_INFO
|
||||
string
|
||||
default "lk=1"
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,7 @@
|
||||
MT7623
|
||||
M: Ryder Lee <ryder.lee@mediatek.com>
|
||||
M: Weijie Gao <weijie.gao@mediatek.com>
|
||||
S: Maintained
|
||||
F: board/mediatek/mt7623
|
||||
F: include/configs/mt7623.h
|
||||
F: configs/mt7623n_bpir2_defconfig
|
||||
@@ -0,0 +1,3 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
obj-y += mt7623_rfb.o
|
||||
@@ -0,0 +1,35 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* Copyright (C) 2018 MediaTek Inc.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
int board_init(void)
|
||||
{
|
||||
/* address of boot parameters */
|
||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int mmc_get_boot_dev(void)
|
||||
{
|
||||
int g_mmc_devid = -1;
|
||||
char *uflag = (char *)0x81DFFFF0;
|
||||
if (strncmp(uflag,"eMMC",4)==0) {
|
||||
g_mmc_devid = 0;
|
||||
printf("Boot From Emmc(id:%d)\n\n", g_mmc_devid);
|
||||
} else {
|
||||
g_mmc_devid = 1;
|
||||
printf("Boot From SD(id:%d)\n\n", g_mmc_devid);
|
||||
}
|
||||
return g_mmc_devid;
|
||||
}
|
||||
|
||||
int mmc_get_env_dev(void)
|
||||
{
|
||||
return mmc_get_boot_dev();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
if TARGET_MT7629
|
||||
|
||||
config SYS_BOARD
|
||||
default "mt7629"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "mt7629"
|
||||
|
||||
config MTK_SPL_PAD_SIZE
|
||||
hex
|
||||
default 0x10000
|
||||
|
||||
config MTK_BROM_HEADER_INFO
|
||||
string
|
||||
default "media=nor"
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,7 @@
|
||||
MT7629
|
||||
M: Ryder Lee <ryder.lee@mediatek.com>
|
||||
M: Weijie Gao <weijie.gao@mediatek.com>
|
||||
S: Maintained
|
||||
F: board/mediatek/mt7629
|
||||
F: include/configs/mt7629.h
|
||||
F: configs/mt7629_rfb_defconfig
|
||||
@@ -0,0 +1,3 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
obj-y += mt7629_rfb.o
|
||||
@@ -0,0 +1,16 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* Copyright (C) 2018 MediaTek Inc.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
int board_init(void)
|
||||
{
|
||||
/* address of boot parameters */
|
||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
if TARGET_MT8518
|
||||
|
||||
config SYS_BOARD
|
||||
default "mt8518"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "mt8518"
|
||||
|
||||
|
||||
config MTK_BROM_HEADER_INFO
|
||||
string
|
||||
default "media=nor"
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,6 @@
|
||||
MT8518
|
||||
M: Mingming lee <mingming.lee@mediatek.com>
|
||||
S: Maintained
|
||||
F: board/mediatek/mt8518
|
||||
F: include/configs/mt8518.h
|
||||
F: configs/mt8518_ap1_emmc_defconfig
|
||||
@@ -0,0 +1,3 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
obj-y += mt8518_ap1.o
|
||||
@@ -0,0 +1,18 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* Copyright (C) 2019 MediaTek Inc.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
int board_init(void)
|
||||
{
|
||||
/* address of boot parameters */
|
||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
|
||||
|
||||
debug("gd->fdt_blob is %p\n", gd->fdt_blob);
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
if TARGET_MT8516
|
||||
|
||||
config SYS_BOARD
|
||||
default "pumpkin"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "pumpkin"
|
||||
|
||||
config MTK_BROM_HEADER_INFO
|
||||
string
|
||||
default "media=emmc"
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,6 @@
|
||||
Pumpkin
|
||||
M: Fabien Parent <fparent@baylibre.com>
|
||||
S: Maintained
|
||||
F: board/mediatek/pumpkin
|
||||
F: include/configs/pumpkin.h
|
||||
F: configs/pumpkin_defconfig
|
||||
@@ -0,0 +1,3 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
obj-y += pumpkin.o
|
||||
@@ -0,0 +1,11 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* Copyright (C) 2019 BayLibre SAS
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
|
||||
int board_init(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user