Ilya Yanok | f7a2c55 | 2012-09-18 00:22:50 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2012 |
| 3 | * Ilya Yanok, ilya.yanok@gmail.com |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Ilya Yanok | f7a2c55 | 2012-09-18 00:22:50 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __CONFIG_UNCMD_SPL_H__ |
| 9 | #define __CONFIG_UNCMD_SPL_H__ |
| 10 | |
| 11 | #ifdef CONFIG_SPL_BUILD |
| 12 | /* SPL needs only BOOTP + TFTP so undefine other stuff to save space */ |
Masahiro Yamada | 72fb32b | 2015-02-24 22:26:20 +0900 | [diff] [blame] | 13 | |
| 14 | #ifndef CONFIG_SPL_DM |
| 15 | #undef CONFIG_DM_SERIAL |
| 16 | #undef CONFIG_DM_GPIO |
| 17 | #undef CONFIG_DM_I2C |
| 18 | #undef CONFIG_DM_SPI |
| 19 | #endif |
| 20 | |
Masahiro Yamada | cfc2f7d | 2015-02-24 22:26:21 +0900 | [diff] [blame] | 21 | #undef CONFIG_DM_WARN |
Masahiro Yamada | cfc2f7d | 2015-02-24 22:26:21 +0900 | [diff] [blame] | 22 | #undef CONFIG_DM_STDIO |
| 23 | |
Ilya Yanok | f7a2c55 | 2012-09-18 00:22:50 +0000 | [diff] [blame] | 24 | #endif /* CONFIG_SPL_BUILD */ |
| 25 | #endif /* __CONFIG_UNCMD_SPL_H__ */ |