]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
microblaze: Move MSR instruction selection to Kconfig
authorMichal Simek <michal.simek@xilinx.com>
Tue, 24 May 2016 09:45:11 +0000 (11:45 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 6 Jun 2016 09:23:27 +0000 (11:23 +0200)
Select MSR instructions via Kconfig instead of xparameters.h.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/include/asm/asm.h
board/xilinx/microblaze-generic/Kconfig
board/xilinx/microblaze-generic/xparameters.h
configs/microblaze-generic_defconfig

index 11f3dd0f0ec026acba812efffc8351114bf2a334..94f056275914ca5128fc4d2eabdc28737e1b4484 100644 (file)
@@ -50,7 +50,7 @@
 #define NOP    __asm__ __volatile__ ("nop");
 
 /* use machine status registe USE_MSR_REG */
-#if XILINX_USE_MSR_INSTR == 1
+#if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR == 1
 #define MSRSET(val) \
        __asm__ __volatile__ ("msrset r0," #val );
 
index c8b11ca82eea2f18e1cde715022821ae55aa93c6..02ac65c1d3d514a9c9c46521b03d648c8288aa8d 100644 (file)
@@ -9,6 +9,10 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "microblaze-generic"
 
+config XILINX_MICROBLAZE0_USE_MSR_INSTR
+       int "USE_MSR_INSTR range (0:1)"
+       default 0
+
 config XILINX_MICROBLAZE0_USE_PCMP_INSTR
        int "USE_PCMP_INSTR range (0:1)"
        default 0
index dc5645bd1461d3181464bfbd981fd18e2c14430d..ee7d0875d22117222fe0068132b786ef2c051745 100644 (file)
@@ -14,7 +14,6 @@
 #define XILINX_BOARD_NAME      microblaze-generic
 
 /* Microblaze is microblaze_0 */
-#define XILINX_USE_MSR_INSTR   1
 #define XILINX_FSL_NUMBER      3
 
 /* GPIO is LEDs_4Bit*/
index 7e53b5e450a7212a1b122f44da7ef5222e63f158..2ef713fee3e93b662533b3852f03ced01fab0916 100644 (file)
@@ -2,6 +2,7 @@ CONFIG_MICROBLAZE=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_DM=y
 CONFIG_TARGET_MICROBLAZE_GENERIC=y
+CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1
 CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1
 CONFIG_XILINX_MICROBLAZE0_USE_DIV=1
 CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=1