X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib_blackfin%2Ftests.c;h=bf7fba00c1188882edaee768b394ae2a6eb973e8;hb=88c811b153771a3d1bfe958297c69722efb278e9;hp=051649d2329b62e1acc423133a11785e06263cef;hpb=a20e7106928a284a6d14c066c54b72e552075b06;p=u-boot diff --git a/lib_blackfin/tests.c b/lib_blackfin/tests.c index 051649d232..bf7fba00c1 100644 --- a/lib_blackfin/tests.c +++ b/lib_blackfin/tests.c @@ -21,18 +21,17 @@ * MA 02111-1307 USA * * Be sure to mark tests to be run before relocation as such with the - * CFG_POST_PREREL flag so that logging is done correctly if the + * CONFIG_SYS_POST_PREREL flag so that logging is done correctly if the * logbuffer support is enabled. */ #include #include -#ifdef CONFIG_POST #include -#define CFG_POST_FLASH 0x00004000 -#define CFG_POST_LED 0x00008000 -#define CFG_POST_BUTTON 0x00010000 +#define CONFIG_SYS_POST_FLASH 0x00004000 +#define CONFIG_SYS_POST_LED 0x00008000 +#define CONFIG_SYS_POST_BUTTON 0x00010000 extern int cache_post_test(int flags); extern int watchdog_post_test(int flags); @@ -58,7 +57,7 @@ extern int led_post_test(int flags); extern int button_post_test(int flags); struct post_test post_list[] = { -#if CONFIG_POST & CFG_POST_CACHE +#if CONFIG_POST & CONFIG_SYS_POST_CACHE { "Cache test", "cache", @@ -67,9 +66,9 @@ struct post_test post_list[] = { &cache_post_test, NULL, NULL, - CFG_POST_CACHE}, + CONFIG_SYS_POST_CACHE}, #endif -#if CONFIG_POST & CFG_POST_WATCHDOG +#if CONFIG_POST & CONFIG_SYS_POST_WATCHDOG { "Watchdog timer test", "watchdog", @@ -78,9 +77,9 @@ struct post_test post_list[] = { &watchdog_post_test, NULL, NULL, - CFG_POST_WATCHDOG}, + CONFIG_SYS_POST_WATCHDOG}, #endif -#if CONFIG_POST & CFG_POST_I2C +#if CONFIG_POST & CONFIG_SYS_POST_I2C { "I2C test", "i2c", @@ -89,9 +88,9 @@ struct post_test post_list[] = { &i2c_post_test, NULL, NULL, - CFG_POST_I2C}, + CONFIG_SYS_POST_I2C}, #endif -#if CONFIG_POST & CFG_POST_RTC +#if CONFIG_POST & CONFIG_SYS_POST_RTC { "RTC test", "rtc", @@ -100,9 +99,9 @@ struct post_test post_list[] = { &rtc_post_test, NULL, NULL, - CFG_POST_RTC}, + CONFIG_SYS_POST_RTC}, #endif -#if CONFIG_POST & CFG_POST_MEMORY +#if CONFIG_POST & CONFIG_SYS_POST_MEMORY { "Memory test", "memory", @@ -111,9 +110,9 @@ struct post_test post_list[] = { &memory_post_test, NULL, NULL, - CFG_POST_MEMORY}, + CONFIG_SYS_POST_MEMORY}, #endif -#if CONFIG_POST & CFG_POST_CPU +#if CONFIG_POST & CONFIG_SYS_POST_CPU { "CPU test", "cpu", @@ -122,9 +121,9 @@ struct post_test post_list[] = { &cpu_post_test, NULL, NULL, - CFG_POST_CPU}, + CONFIG_SYS_POST_CPU}, #endif -#if CONFIG_POST & CFG_POST_UART +#if CONFIG_POST & CONFIG_SYS_POST_UART { "UART test", "uart", @@ -133,9 +132,9 @@ struct post_test post_list[] = { &uart_post_test, NULL, NULL, - CFG_POST_UART}, + CONFIG_SYS_POST_UART}, #endif -#if CONFIG_POST & CFG_POST_ETHER +#if CONFIG_POST & CONFIG_SYS_POST_ETHER { "ETHERNET test", "ethernet", @@ -144,9 +143,9 @@ struct post_test post_list[] = { ðer_post_test, NULL, NULL, - CFG_POST_ETHER}, + CONFIG_SYS_POST_ETHER}, #endif -#if CONFIG_POST & CFG_POST_SPI +#if CONFIG_POST & CONFIG_SYS_POST_SPI { "SPI test", "spi", @@ -155,9 +154,9 @@ struct post_test post_list[] = { &spi_post_test, NULL, NULL, - CFG_POST_SPI}, + CONFIG_SYS_POST_SPI}, #endif -#if CONFIG_POST & CFG_POST_USB +#if CONFIG_POST & CONFIG_SYS_POST_USB { "USB test", "usb", @@ -166,9 +165,9 @@ struct post_test post_list[] = { &usb_post_test, NULL, NULL, - CFG_POST_USB}, + CONFIG_SYS_POST_USB}, #endif -#if CONFIG_POST & CFG_POST_SPR +#if CONFIG_POST & CONFIG_SYS_POST_SPR { "SPR test", "spr", @@ -177,9 +176,9 @@ struct post_test post_list[] = { &spr_post_test, NULL, NULL, - CFG_POST_SPR}, + CONFIG_SYS_POST_SPR}, #endif -#if CONFIG_POST & CFG_POST_SYSMON +#if CONFIG_POST & CONFIG_SYS_POST_SYSMON { "SYSMON test", "sysmon", @@ -188,9 +187,9 @@ struct post_test post_list[] = { &sysmon_post_test, &sysmon_init_f, &sysmon_reloc, - CFG_POST_SYSMON}, + CONFIG_SYS_POST_SYSMON}, #endif -#if CONFIG_POST & CFG_POST_DSP +#if CONFIG_POST & CONFIG_SYS_POST_DSP { "DSP test", "dsp", @@ -199,9 +198,9 @@ struct post_test post_list[] = { &dsp_post_test, NULL, NULL, - CFG_POST_DSP}, + CONFIG_SYS_POST_DSP}, #endif -#if CONFIG_POST & CFG_POST_CODEC +#if CONFIG_POST & CONFIG_SYS_POST_CODEC { "CODEC test", "codec", @@ -210,9 +209,9 @@ struct post_test post_list[] = { &codec_post_test, NULL, NULL, - CFG_POST_CODEC}, + CONFIG_SYS_POST_CODEC}, #endif -#if CONFIG_POST & CFG_POST_FLASH +#if CONFIG_POST & CONFIG_SYS_POST_FLASH { "FLASH test", "flash", @@ -221,9 +220,9 @@ struct post_test post_list[] = { &flash_post_test, NULL, NULL, - CFG_POST_FLASH}, + CONFIG_SYS_POST_FLASH}, #endif -#if CONFIG_POST & CFG_POST_LED +#if CONFIG_POST & CONFIG_SYS_POST_LED { "LED test", "LED", @@ -232,9 +231,9 @@ struct post_test post_list[] = { &led_post_test, NULL, NULL, - CFG_POST_LED}, + CONFIG_SYS_POST_LED}, #endif -#if CONFIG_POST & CFG_POST_BUTTON +#if CONFIG_POST & CONFIG_SYS_POST_BUTTON { "Button test", "button", @@ -243,11 +242,9 @@ struct post_test post_list[] = { &button_post_test, NULL, NULL, - CFG_POST_BUTTON}, + CONFIG_SYS_POST_BUTTON}, #endif }; unsigned int post_list_size = sizeof(post_list) / sizeof(struct post_test); - -#endif /* CONFIG_POST */