From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Sun, 4 Oct 2015 19:49:40 +0800 Subject: [U-Boot] [PATCH] nios2: convert nios2 cpu to driver model In-Reply-To: <1443666691-7900-1-git-send-email-thomas@wytron.com.tw> References: <1443400318-19151-1-git-send-email-thomas@wytron.com.tw> <1443666691-7900-1-git-send-email-thomas@wytron.com.tw> Message-ID: <56111254.8080103@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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.