[RFC][PATCH] uncompress.h cleanup and DT support
From: Zoltan Devai <hidden>
Date: 2011-10-23 08:18:29
Hi, Originally, I just wanted to get rid of arch_decomp_* in all the uncompress.h files, that were mostly empty. But then, I couldn't stop. Which may also mean I have gone too far. Plase consider all this as RFC, it's mostly not even compile-tested. If you think it's worth to follow-up, I'm happy to do it. What this series does: - Remove all instances of arch_decomp_wdog - Restructure the decompression code just a bit, to separate the UART-printing stuff - Introduce a low-level serial driver of the style "check a reg if there's space for a TX char", "output char", "wait for flush reg" - Add init functions for the two common UARTs: 8250 and the amba. This finally gets rid of that dozen re-implementations that all use different register access methods and register defines, but do the same. - Some basic style cleanup - Allow the uncompress UART definitions to be overridden by a device tree description. This would allow the removal of all the "if machine_is_xxx, serial base is 123" lookup tables. Remarks: - Just to see how it works out, I converted most of the arches/machines to use the ucuart driver. I didn't convert any Samsung machines, because the code is just too convoluted for me to dive into now. - The overall patch is above 100K, so I didn't want to post it here. It's available here: