test: rockchip: add vendor storage test
Change-Id: I3bfb884c32e44371fb01351af4b20587f7a1fa1f Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
143a7f24b7
commit
44e080753f
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
Loading…
Reference in New Issue