commit | 4a37b42e1491566795bea38ec3078be40c206acf | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Thu Jan 16 15:03:52 2014 +0800 |
committer | Thomas Chou <thomas@wytron.com.tw> | Tue Feb 11 15:49:19 2014 +0800 |
tree | 6a79754aff7dc064a1857a80b1b4b78728dcd873 | |
parent | 0bdf000a449a146f6ad253ee8c1cab67c40a63c8 [diff] |
serial: opencores_yanu: Avoid duplicate oc_serial_setbrg() implementation The implementation of oc_serial_setbrg() for CONFIG_SYS_NIOS_FIXEDBAUD and !CONFIG_SYS_NIOS_FIXEDBAUD are very similar. Add a baudrate variable and set it to either CONFIG_BAUDRATE or gd->baudrate. Then we can unify the code for both cases. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>