-
- Downloads
sparc: Update LEON serial drivers to use readl/writel macros
Update the LEON2/3 serial driver to make use of the readl and writel
macros as well as the WATCHDOG_RESET() macro.
Add readl/writel and friends to the asm/io.h file.
Introduce the gd->arch.uart variable to store register address.
Lastly, remove baudrate scaler macro variables from board config. It
is now calculated in the serial driver using the global data variable.
Signed-off-by:
Francois Retief <fgretief@spaceteq.co.za>
Showing
- arch/sparc/cpu/leon2/serial.c 59 additions, 66 deletionsarch/sparc/cpu/leon2/serial.c
- arch/sparc/cpu/leon3/prom.c 3 additions, 2 deletionsarch/sparc/cpu/leon3/prom.c
- arch/sparc/cpu/leon3/serial.c 56 additions, 44 deletionsarch/sparc/cpu/leon3/serial.c
- arch/sparc/include/asm/global_data.h 1 addition, 0 deletionsarch/sparc/include/asm/global_data.h
- arch/sparc/include/asm/io.h 38 additions, 26 deletionsarch/sparc/include/asm/io.h
- include/configs/gr_cpci_ax2000.h 0 additions, 4 deletionsinclude/configs/gr_cpci_ax2000.h
- include/configs/gr_ep2s60.h 0 additions, 4 deletionsinclude/configs/gr_ep2s60.h
- include/configs/gr_xc3s_1500.h 0 additions, 4 deletionsinclude/configs/gr_xc3s_1500.h
- include/configs/grsim.h 0 additions, 3 deletionsinclude/configs/grsim.h
- include/configs/grsim_leon2.h 0 additions, 5 deletionsinclude/configs/grsim_leon2.h
Please register or sign in to comment