[U-Boot] [PATCH] nios2: convert nios2 cpu to driver model

Simon Glass sjg at chromium.org
Fri Oct 2 09:06:33 CEST 2015


On Wednesday, 30 September 2015, Thomas Chou <thomas at wytron.com.tw> wrote:
>
> Convert nios2 cpu to driver model. The cpu parameters are
> extracted from device tree and saved to global data structure.
> We will use them to replace the custom_fpga.h .
>
> Signed-off-by: Thomas Chou <thomas at wytron.com.tw>
> ---
> v2
>   move cpu param setup to arch_cpu_init_dm, remove probe.
> v3
>   fix coding style as Marek suggested.
>   select CMD_CPU.
> v4
>   revert to v1 probe method.
>   doc dts binding.
>   check uclass_first_device() return.
>   clean up as Simon suggested.
>
>  arch/Kconfig                           |  3 ++
>  arch/nios2/cpu/cpu.c                   | 88 ++++++++++++++++++++++++++++++++--
>  arch/nios2/dts/3c120_devboard.dts      |  1 +
>  arch/nios2/include/asm/global_data.h   |  8 ++++
>  configs/nios2-generic_defconfig        |  3 +-
>  doc/device-tree-bindings/cpu/nios2.txt | 54 +++++++++++++++++++++
>  6 files changed, 152 insertions(+), 5 deletions(-)
>  create mode 100644 doc/device-tree-bindings/cpu/nios2.txt



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


More information about the U-Boot mailing list