Skip to content

Commit

Permalink
[PATCH] frv: force serial driver inclusion
Browse files Browse the repository at this point in the history
Force the 8230 serial driver to be built in if the on-CPU UARTs are to be
used.  It can't be used as a module because the arch setup needs to call into
it.

Signed-off-by: David Howells <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
dhowells authored and Linus Torvalds committed Jan 9, 2006
1 parent 7a75831 commit f8aec75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/frv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,11 @@ config GPREL_DATA_NONE

endchoice

config FRV_ONCPU_SERIAL
bool "Use on-CPU serial ports"
select SERIAL_8250
default y

config PCI
bool "Use PCI"
depends on MB93090_MB00
Expand Down
2 changes: 2 additions & 0 deletions arch/frv/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ void __init setup_arch(char **cmdline_p)
#endif

/* register those serial ports that are available */
#ifdef CONFIG_FRV_ONCPU_SERIAL
#ifndef CONFIG_GDBSTUB_UART0
__reg(UART0_BASE + UART_IER * 8) = 0;
early_serial_setup(&__frv_uart0);
Expand All @@ -795,6 +796,7 @@ void __init setup_arch(char **cmdline_p)
__reg(UART1_BASE + UART_IER * 8) = 0;
early_serial_setup(&__frv_uart1);
#endif
#endif

#if defined(CONFIG_CHR_DEV_FLASH) || defined(CONFIG_BLK_DEV_FLASH)
/* we need to initialize the Flashrom device here since we might
Expand Down

0 comments on commit f8aec75

Please sign in to comment.