[U-Boot] [PATCH] nios2: convert nios2 cpu to driver model
Thomas Chou
thomas at wytron.com.tw
Sun Oct 4 13:49:40 CEST 2015
On 10/01/2015 10:31 AM, Thomas Chou 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
Applied to u-boot-nios.
More information about the U-Boot
mailing list