From f5675aa5ceeef30740970ab8ca0c8cbc324945cd Mon Sep 17 00:00:00 2001 From: Ron Madrid Date: Wed, 18 Feb 2009 14:30:44 -0800 Subject: Create configuration option for restricted ns16550 functions This patch will create a configuration option for a minimum configuration for the ns16550 serial driver at drivers/serial/ns16550.c and will apply this new configuration option to the SIMPC8313.h config file in order to fix the NAND bootstrap build error. This option will exclude all functions with exception of NS16550_putc and NS16550_init. This will be used primarily to save space and remove unused code from builds in which space is limited. Signed-off-by: Ron Madrid --- include/configs/SIMPC8313.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/configs/SIMPC8313.h') diff --git a/include/configs/SIMPC8313.h b/include/configs/SIMPC8313.h index f62a70519..b939cfa79 100644 --- a/include/configs/SIMPC8313.h +++ b/include/configs/SIMPC8313.h @@ -205,6 +205,9 @@ #define CONFIG_SYS_NS16550 #define CONFIG_SYS_NS16550_SERIAL #define CONFIG_SYS_NS16550_REG_SIZE 1 +#ifdef CONFIG_NAND_SPL +#define CONFIG_NS16550_MIN_FUNCTIONS +#endif #define CONFIG_SYS_BAUDRATE_TABLE \ {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200} -- cgit v1.2.3