GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
if TARGET_MICROCHIP_ICICLE
|
||||
|
||||
config SYS_BOARD
|
||||
default "mpfs_icicle"
|
||||
|
||||
config SYS_VENDOR
|
||||
default "microchip"
|
||||
|
||||
config SYS_CPU
|
||||
default "generic"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "microchip_mpfs_icicle"
|
||||
|
||||
config SYS_TEXT_BASE
|
||||
default 0x80000000 if !RISCV_SMODE
|
||||
default 0x80200000 if RISCV_SMODE
|
||||
|
||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||
def_bool y
|
||||
select GENERIC_RISCV
|
||||
select BOARD_EARLY_INIT_F
|
||||
imply SMP
|
||||
imply SYS_NS16550
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,7 @@
|
||||
Microchip MPFS icicle
|
||||
M: Padmarao Begari <padmarao.begari@microchip.com>
|
||||
M: Cyril Jean <cyril.jean@microchip.com>
|
||||
S: Maintained
|
||||
F: board/microchip/mpfs_icicle/
|
||||
F: include/configs/microchip_mpfs_icicle.h
|
||||
F: configs/microchip_mpfs_icicle_defconfig
|
||||
@@ -0,0 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# Copyright (C) 2019 Microchip Technology Inc.
|
||||
# Padmarao Begari <padmarao.begari@microchip.com>
|
||||
#
|
||||
|
||||
obj-y += mpfs_icicle.o
|
||||
@@ -0,0 +1,30 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* Copyright (C) 2019 Microchip Technology Inc.
|
||||
* Padmarao Begari <padmarao.begari@microchip.com>
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
#define MPFS_SYSREG_SOFT_RESET ((unsigned int *)0x20002088)
|
||||
|
||||
int board_init(void)
|
||||
{
|
||||
/* For now nothing to do here. */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int board_early_init_f(void)
|
||||
{
|
||||
unsigned int val;
|
||||
|
||||
/* Reset uart peripheral */
|
||||
val = readl(MPFS_SYSREG_SOFT_RESET);
|
||||
val = (val & ~(1u << 5u));
|
||||
writel(val, MPFS_SYSREG_SOFT_RESET);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
if TARGET_PIC32MZDASK
|
||||
|
||||
config SYS_BOARD
|
||||
default "pic32mzda"
|
||||
|
||||
config SYS_VENDOR
|
||||
default "microchip"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "pic32mzdask"
|
||||
|
||||
config SYS_TEXT_BASE
|
||||
default 0x9d004000
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,6 @@
|
||||
PIC32MZDASK BOARD
|
||||
M: Purna Chandra Mandal <purna.mandal@microchip.com>
|
||||
S: Maintained
|
||||
F: board/microchip/pic32mzda/
|
||||
F: include/configs/pic32mzdask.h
|
||||
F: configs/pic32mzdask_defconfig
|
||||
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# (C) Copyright 2015
|
||||
# Purna Chandra Mandal, purna.mandal@microchip.com.
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
obj-y := pic32mzda.o
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* (c) 2015 Purna Chandra Mandal <purna.mandal@microchip.com>
|
||||
*/
|
||||
|
||||
PIC32MZ[DA] Starter Kit
|
||||
----------------------------------------
|
||||
PIC32MZ[DA] Starter Kit is based on PIC32MZ[DA] family of micro-controller.
|
||||
This family is powered by MIPS M14KEC 32bit general purpose core and has
|
||||
advanced microcontroller features and peripherals.
|
||||
|
||||
This processor boots with proprietary stage1 bootloader running from internal
|
||||
boot-flash. Stage1 bootloader inturns locates and jumps to U-Boot programmed
|
||||
on internal program-flash. Finally U-Boot loads OS image (along with other
|
||||
required files for booting) from either uSD card, or ethernet, or from USB
|
||||
storage.
|
||||
|
||||
To boot Linux following three files are mandatory - uEnv.txt (custom U-Boot
|
||||
environment file), uImage, *.dtb (platform device-tree-blob file).
|
||||
|
||||
U-Boot jumps to Linux using UHI specification.
|
||||
|
||||
Visit http://microchip.com for details.
|
||||
@@ -0,0 +1,41 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* Microchip PIC32MZ[DA] Starter Kit board
|
||||
*
|
||||
* Copyright (C) 2015, Microchip Technology Inc.
|
||||
* Purna Chandra Mandal <purna.mandal@microchip.com>
|
||||
*
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <clk.h>
|
||||
#include <dt-bindings/clock/microchip,clock.h>
|
||||
#include <mach/pic32.h>
|
||||
|
||||
#ifdef CONFIG_DISPLAY_BOARDINFO
|
||||
int checkboard(void)
|
||||
{
|
||||
ulong rate;
|
||||
struct udevice *dev;
|
||||
struct clk clk;
|
||||
int ret;
|
||||
|
||||
printf("Core: %s\n", get_core_name());
|
||||
|
||||
if (uclass_get_device(UCLASS_CLK, 0, &dev))
|
||||
return 0;
|
||||
|
||||
clk.id = PB7CLK;
|
||||
ret = clk_request(dev, &clk);
|
||||
if (ret < 0)
|
||||
return 0;
|
||||
|
||||
rate = clk_get_rate(&clk);
|
||||
printf("CPU Speed: %lu MHz\n", rate / 1000000);
|
||||
|
||||
clk_free(&clk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user