[PATCH] uart: make *_UART_NR platform independent

Harald Welte laforge at gnumonks.org
Sat May 7 10:13:50 UTC 2011


Regarding the UART numbers. My view on this is:

1) I agree with Sylvain that the driver should simply take a uart-number
   as input, and what that number maps to should be SoC-specific.

2) We should either
   a) have a #define for every board (not SoC), which is something like
      #define CONS_UART_NR 0" and which is then used in the actual
      callers of the uart driver, or
   b) have a global board-configuration structure which gets filled in by the
      board_init() code, which then contains a boardcf->cons_uart_nr
      member whihc can be used by the callers of the uart driver.

'2a' requires that we modify our build system to make per-board
compiles.

Regards,
	Harald
-- 
- Harald Welte <laforge at gnumonks.org>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)




More information about the baseband-devel mailing list