test: rockchip: add vendor storage test

Change-Id: I3bfb884c32e44371fb01351af4b20587f7a1fa1f
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2018-07-03 17:15:26 +08:00 committed by Jianhong Chen
parent 143a7f24b7
commit 44e080753f
4 changed files with 22 additions and 2 deletions

View File

@ -13,3 +13,4 @@ obj-y += test-rknand.o
obj-$(CONFIG_GMAC_ROCKCHIP) += test-eth.o
obj-$(CONFIG_RK_IR) += test-ir.o
obj-y += test-brom-dnl.o
obj-$(CONFIG_ROCKCHIP_VENDOR_PARTITION) += test-vendor-storage.o

View File

@ -25,7 +25,10 @@ static board_module_t g_board_modules[] = {
#if defined(CONFIG_RK_IR)
{ .name = "ir", .test = board_ir_test },
#endif
{ .name = "brom_dnl", .test = board_brom_dnl_test}
{ .name = "brom_dnl", .test = board_brom_dnl_test},
#if defined(CONFIG_ROCKCHIP_VENDOR_PARTITION)
{ .name = "vendor", .test = board_vendor_storage_test },
#endif
};
static int do_rockchip_test(cmd_tbl_t *cmdtp, int flag,

View File

@ -18,7 +18,9 @@ int board_eth_test(int argc, char * const argv[]);
#if defined(CONFIG_RK_IR)
int board_ir_test(int argc, char * const argv[]);
#endif
int board_brom_dnl_test(int argc, char * const argv[]);
#if defined(CONFIG_ROCKCHIP_VENDOR_PARTITION)
int board_vendor_storage_test(int argc, char * const argv[]);
#endif
#endif /* _TEST_ROCKCHIP_H */

View File

@ -0,0 +1,14 @@
/*
* (C) Copyright 2018 Rockchip Electronics Co., Ltd
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/io.h>
#include <asm/arch/vendor.h>
int board_vendor_storage_test(int argc, char * const argv[])
{
return vendor_storage_test();
}