diff --git a/test/rockchip/Makefile b/test/rockchip/Makefile index 90c710ce44..1930056ecd 100644 --- a/test/rockchip/Makefile +++ b/test/rockchip/Makefile @@ -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 diff --git a/test/rockchip/test-rockchip.c b/test/rockchip/test-rockchip.c index d6e808bfb9..5710884e46 100644 --- a/test/rockchip/test-rockchip.c +++ b/test/rockchip/test-rockchip.c @@ -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, diff --git a/test/rockchip/test-rockchip.h b/test/rockchip/test-rockchip.h index e628829a28..85e5335937 100644 --- a/test/rockchip/test-rockchip.h +++ b/test/rockchip/test-rockchip.h @@ -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 */ diff --git a/test/rockchip/test-vendor-storage.c b/test/rockchip/test-vendor-storage.c new file mode 100644 index 0000000000..ba75c237e7 --- /dev/null +++ b/test/rockchip/test-vendor-storage.c @@ -0,0 +1,14 @@ +/* + * (C) Copyright 2018 Rockchip Electronics Co., Ltd + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include +#include +#include + +int board_vendor_storage_test(int argc, char * const argv[]) +{ + return vendor_storage_test(); +}