GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)

This commit is contained in:
lai
2026-09-06 03:52:57 +08:00
commit b1928b41c0
21813 changed files with 4413081 additions and 0 deletions
@@ -0,0 +1,42 @@
if ROCKCHIP_RV1108
choice
prompt "RV1108 board select"
config TARGET_EVB_RV1108
bool "EVB_RV1108"
help
RV1108 EVB is a evaluation board for Rockchp RV1108.
Key features of the board include:
* one macro USB OTG port
* one USB HOST port
* one RS232 to USB port route to UART2 as debug port
* MIPI screen with resolution 720 x 1280
* 128M DDR3
* 64M SPI Nor Flash
* macro SD card interface
* HDMI output
* 10/100 Mbps Ethernet
* camera interface compatible with imx323 / ov2710 / ov4689
config TARGET_ELGIN_RV1108
bool "ELGIN_RV1108"
help
RV1108 ELGIN is a board based on the Rockchip RV1108.
endchoice
config ROCKCHIP_BOOT_MODE_REG
default 0x10300580
config SYS_SOC
default "rv1108"
config SYS_MALLOC_F_LEN
default 0x400
source board/rockchip/evb_rv1108/Kconfig
source board/elgin/elgin_rv1108/Kconfig
endif
@@ -0,0 +1,11 @@
#
# (C) Copyright 2016 Rockchip Electronics Co., Ltd
#
# SPDX-License-Identifier: GPL-2.0+
#
ifndef CONFIG_SPL_BUILD
obj-y += syscon_rv1108.o
endif
obj-y += rv1108.o
obj-y += clk_rv1108.o
@@ -0,0 +1,32 @@
// SPDX-License-Identifier: GPL-2.0
/*
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
* Author: Andy Yan <andy.yan@rock-chips.com>
*/
#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
#include <asm/arch-rockchip/cru_rv1108.h>
int rockchip_get_clk(struct udevice **devp)
{
return uclass_get_device_by_driver(UCLASS_CLK,
DM_GET_DRIVER(clk_rv1108), devp);
}
void *rockchip_get_cru(void)
{
struct rv1108_clk_priv *priv;
struct udevice *dev;
int ret;
ret = rockchip_get_clk(&dev);
if (ret)
return ERR_PTR(ret);
priv = dev_get_priv(dev);
return priv->cru;
}
@@ -0,0 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
* Author: Andy Yan <andy.yan@rock-chips.com>
*/
@@ -0,0 +1,20 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
*/
#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch-rockchip/clock.h>
static const struct udevice_id rv1108_syscon_ids[] = {
{ .compatible = "rockchip,rv1108-grf", .data = ROCKCHIP_SYSCON_GRF },
{ }
};
U_BOOT_DRIVER(syscon_rv1108) = {
.name = "rv1108_syscon",
.id = UCLASS_SYSCON,
.of_match = rv1108_syscon_ids,
};