[U-Boot] [PATCH 3/9] x86: dm: Clean up cpu drivers

Simon Glass sjg at chromium.org
Fri Jun 12 01:38:59 CEST 2015


On 9 June 2015 at 01:45, Bin Meng <bmeng.cn at gmail.com> wrote:
> This commit does the following to clean up x86 cpu dm drivers:
> - Move cpu_x86 driver codes from arch/x86/cpu/cpu.c to a dedicated
>   file arch/x86/cpu/cpu_x86.c
> - Rename x86_cpu_get_desc() to cpu_x86_get_desc() to keep consistent
>   naming with other dm drivers
> - Add a new cpu_x86_bind() in the cpu_x86 driver which does exactly
>   the same as the one in the intel baytrail cpu driver
> - Update intel baytrail cpu driver to use cpu_x86_get_desc() and
>   cpu_x86_bind()
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
>  arch/x86/cpu/Makefile          |  2 +-
>  arch/x86/cpu/baytrail/cpu.c    | 15 +++----------
>  arch/x86/cpu/cpu.c             | 28 ------------------------
>  arch/x86/cpu/cpu_x86.c         | 48 ++++++++++++++++++++++++++++++++++++++++++
>  arch/x86/include/asm/cpu.h     | 14 ------------
>  arch/x86/include/asm/cpu_x86.h | 34 ++++++++++++++++++++++++++++++
>  6 files changed, 86 insertions(+), 55 deletions(-)
>  create mode 100644 arch/x86/cpu/cpu_x86.c
>  create mode 100644 arch/x86/include/asm/cpu_x86.h

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list