GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
if TARGET_EVB_RV1108
|
||||
|
||||
config SYS_BOARD
|
||||
default "evb_rv1108"
|
||||
|
||||
config SYS_VENDOR
|
||||
default "rockchip"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "evb_rv1108"
|
||||
|
||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||
def_bool y
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,6 @@
|
||||
EVB-RV1108
|
||||
M: Andy Yan <andy.yan@rock-chips.com>
|
||||
S: Maintained
|
||||
F: board/rockchip/evb_rv1108
|
||||
F: include/configs/evb_rv1108.h
|
||||
F: configs/evb-rv1108_defconfig
|
||||
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# (C) Copyright 2016 Rockchip Electronics Co., Ltd
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
obj-y += evb_rv1108.o
|
||||
@@ -0,0 +1,46 @@
|
||||
Here is the step-by-step to boot U-Boot on rv1108 evb.
|
||||
|
||||
Get ddr init binary
|
||||
==============================================================================
|
||||
> git clone https://github.com/rockchip-linux/rkbin.git
|
||||
|
||||
Compile U-Boot
|
||||
===========================
|
||||
> make CROSS_COMPILE=arm-linux-gnueabi- evb-rv1108_defconfig all
|
||||
> ./tools/mkimage -n rv1108 -T rksd -d ../rkbin/rv1x/rv1108ddr_v1.00.bin spl.bin
|
||||
> cat spl.bin u-boot.bin > u-boot.img
|
||||
|
||||
Flash the image by rkdeveloptool
|
||||
================================
|
||||
rkdeveloptool can get from https://github.com/rockchip-linux/rkdeveloptool.git
|
||||
|
||||
Power on(or reset with RESET KEY) with MASKROM KEY preesed, and then:
|
||||
> rkdeveloptool db ./rkbin/rv1x/rv1108usbboot_v1.00.bin
|
||||
> rkdeveloptool wl 0x40 u-boot.img
|
||||
> rkdeveloptool RD
|
||||
|
||||
You should be able to get U-Boot log message from boot console:
|
||||
|
||||
DDR Version V1.02 20170220
|
||||
In
|
||||
400MHz
|
||||
DDR3
|
||||
Bus Width=16 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=512MB
|
||||
mach:2
|
||||
OUT
|
||||
|
||||
|
||||
U-Boot 2017.05-00693-g3a5b171 (Jun 01 2017 - 17:37:53 +0800)
|
||||
|
||||
Model: Rockchip RV1108 Evaluation board
|
||||
DRAM: 128 MiB
|
||||
APLL: 600000000 DPLL:792000000 GPLL:384000000
|
||||
MMC:
|
||||
Using default environment
|
||||
|
||||
In: serial@10210000
|
||||
Out: serial@10210000
|
||||
Err: serial@10210000
|
||||
Net: No ethernet found.
|
||||
Hit any key to stop autoboot: 0
|
||||
=>
|
||||
@@ -0,0 +1,55 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* (C)Copyright 2016 Rockchip Electronics Co., Ltd
|
||||
* Authors: Andy Yan <andy.yan@rock-chips.com>
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <fdtdec.h>
|
||||
#include <asm/arch-rockchip/grf_rv1108.h>
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
int mach_cpu_init(void)
|
||||
{
|
||||
int node;
|
||||
struct rv1108_grf *grf;
|
||||
enum {
|
||||
GPIO3C3_SHIFT = 6,
|
||||
GPIO3C3_MASK = 3 << GPIO3C3_SHIFT,
|
||||
|
||||
GPIO3C2_SHIFT = 4,
|
||||
GPIO3C2_MASK = 3 << GPIO3C2_SHIFT,
|
||||
|
||||
GPIO2D2_SHIFT = 4,
|
||||
GPIO2D2_MASK = 3 << GPIO2D2_SHIFT,
|
||||
GPIO2D2_GPIO = 0,
|
||||
GPIO2D2_UART2_SOUT_M0,
|
||||
|
||||
GPIO2D1_SHIFT = 2,
|
||||
GPIO2D1_MASK = 3 << GPIO2D1_SHIFT,
|
||||
GPIO2D1_GPIO = 0,
|
||||
GPIO2D1_UART2_SIN_M0,
|
||||
};
|
||||
|
||||
node = fdt_node_offset_by_compatible(gd->fdt_blob, -1, "rockchip,rv1108-grf");
|
||||
grf = (struct rv1108_grf *)fdtdec_get_addr(gd->fdt_blob, node, "reg");
|
||||
|
||||
/*evb board use UART2 m0 for debug*/
|
||||
rk_clrsetreg(&grf->gpio2d_iomux,
|
||||
GPIO2D2_MASK | GPIO2D1_MASK,
|
||||
GPIO2D2_UART2_SOUT_M0 << GPIO2D2_SHIFT |
|
||||
GPIO2D1_UART2_SIN_M0 << GPIO2D1_SHIFT);
|
||||
rk_clrreg(&grf->gpio3c_iomux, GPIO3C3_MASK | GPIO3C2_MASK);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int dram_init(void)
|
||||
{
|
||||
gd->ram_size = 0x8000000;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user