
Dear Mike Frysinger,
In message 1304136211-1316-1-git-send-email-vapier@gentoo.org you wrote:
Rather than sticking arch/board/driver specific logic in the common serial code, push it all out to the respective drivers. The serial drivers declare these funcs weak so that boards can still override things with their own definition.
Signed-off-by: Mike Frysinger vapier@gentoo.org CC: Heiko Schocher hs@denx.de CC: Anatolij Gustschin agust@denx.de CC: Tom Rix Tom.Rix@windriver.com CC: Minkyu Kang mk7.kang@samsung.com CC: Craig Nauman cnauman@diagraph.com CC: Prafulla Wadaskar prafulla@marvell.com CC: Mahavir Jain mjain@marvell.com
note: while i've compiled tested all of these, i obviously can't runtime test them ... i have runtime tested the common code though on a Blackfin part ...
arch/powerpc/cpu/mpc512x/serial.c | 12 ++++++ arch/powerpc/cpu/mpc5xxx/serial.c | 6 +++ arch/powerpc/cpu/mpc8xx/serial.c | 10 +++++ board/logicpd/zoom2/zoom2_serial.c | 5 +++ common/serial.c | 68 ------------------------------------ drivers/serial/serial.c | 17 +++++++++ drivers/serial/serial_s3c24x0.c | 14 +++++++ drivers/serial/serial_s5p.c | 16 ++++++++ 8 files changed, 80 insertions(+), 68 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk