You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
953 B
42 lines
953 B
/*
|
|
* Copyright (c) Hisilicon Technologies Co., Ltd. 2012-2018. All rights reserved.
|
|
* Description: aging test top
|
|
*/
|
|
#include <common.h>
|
|
#if (defined SOCT_SUPPORT_DDR_AGING)
|
|
#include "ddr_aging.h"
|
|
#endif
|
|
#if (defined SOCT_SUPPORT_UFS_AGING)
|
|
#include "ufs_aging_test.h"
|
|
#endif
|
|
#if (defined SOCT_SUPPORT_EMMC_AGING)
|
|
#include "emmc_aging_test.h"
|
|
#endif
|
|
static int aging_entry(int (*start_slaveboot)(void))
|
|
{
|
|
#if (defined SOCT_SUPPORT_DDR_AGING)
|
|
/* DDR */
|
|
(void)ddr_aging_entry(start_slaveboot);
|
|
#endif
|
|
switch (get_boot_media()) {
|
|
case BOOT_MEDIA_EMMC:
|
|
#if (defined SOCT_SUPPORT_EMMC_AGING)
|
|
/* EMMC */
|
|
(void)emmc_aging_entry();
|
|
#endif
|
|
break;
|
|
case BOOT_MEDIA_UFS:
|
|
#if (defined SOCT_SUPPORT_UFS_AGING)
|
|
/* ufs */
|
|
(void)ufs_aging_entry();
|
|
#endif
|
|
break;
|
|
default:
|
|
printf("boot media is error\n");
|
|
break;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|