Skip to content

Commit c0ab852

Browse files
committed
Merge tag 'microblaze-v4.18-rc1' of git://git.monstr.eu/linux-2.6-microblaze
Pull microblaze updates from Michal Simek: - Fix simpleImage format generation - Remove earlyprintk support and replace it by earlycon * tag 'microblaze-v4.18-rc1' of git://git.monstr.eu/linux-2.6-microblaze: microblaze: dts: replace 'linux,stdout-path' with 'stdout-path' microblaze: remove redundant early_printk support microblaze: remove unnecessary prom.h includes microblaze: Fix simpleImage format generation
2 parents d987f62 + a7a9e2f commit c0ab852

File tree

14 files changed

+12
-364
lines changed

14 files changed

+12
-364
lines changed

arch/microblaze/Kconfig.debug

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ config TRACE_IRQFLAGS_SUPPORT
88

99
source "lib/Kconfig.debug"
1010

11-
config EARLY_PRINTK
12-
bool "Early printk function for kernel"
13-
depends on SERIAL_UARTLITE_CONSOLE || SERIAL_8250_CONSOLE
14-
default n
15-
help
16-
This option turns on/off early printk messages to console.
17-
First Uartlite node is taken.
18-
1911
config HEART_BEAT
2012
bool "Heart beat function for kernel"
2113
default n

arch/microblaze/boot/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,19 @@ $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
2222
quiet_cmd_cp = CP $< $@$2
2323
cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
2424

25-
quiet_cmd_strip = STRIP $@
25+
quiet_cmd_strip = STRIP $< $@$2
2626
cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
27-
-K _fdt_start vmlinux -o $@
27+
-K _fdt_start $< -o $@$2
2828

2929
UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
30+
UIMAGE_IN = $@
31+
UIMAGE_OUT = $@.ub
3032

3133
$(obj)/simpleImage.%: vmlinux FORCE
3234
$(call if_changed,cp,.unstrip)
3335
$(call if_changed,objcopy)
3436
$(call if_changed,uimage)
35-
$(call if_changed,strip)
36-
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
37+
$(call if_changed,strip,.strip)
38+
@echo 'Kernel: $(UIMAGE_OUT) is ready' ' (#'`cat .version`')'
3739

3840
clean-files += simpleImage.*.unstrip linux.bin.ub

arch/microblaze/boot/dts/system.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
} ;
4545
chosen {
4646
bootargs = "console=ttyUL0,115200 highres=on";
47-
linux,stdout-path = "/plb@0/serial@84000000";
47+
stdout-path = "/plb@0/serial@84000000";
4848
} ;
4949
cpus {
5050
#address-cells = <1>;

arch/microblaze/include/asm/cpuinfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#ifndef _ASM_MICROBLAZE_CPUINFO_H
1414
#define _ASM_MICROBLAZE_CPUINFO_H
1515

16-
#include <asm/prom.h>
16+
#include <linux/of.h>
1717

1818
/* CPU Version and FPGA Family code conversion table type */
1919
struct cpu_ver_key {

arch/microblaze/include/asm/pci.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <linux/scatterlist.h>
2020

2121
#include <asm/io.h>
22-
#include <asm/prom.h>
2322
#include <asm/pci-bridge.h>
2423

2524
#define PCIBIOS_MIN_IO 0x1000

arch/microblaze/include/asm/prom.h

Lines changed: 0 additions & 27 deletions
This file was deleted.

arch/microblaze/include/asm/setup.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,11 @@ extern char cmd_line[COMMAND_LINE_SIZE];
1919

2020
extern char *klimit;
2121

22-
int setup_early_printk(char *opt);
23-
void remap_early_printk(void);
24-
void disable_early_printk(void);
25-
2622
void microblaze_heartbeat(void);
2723
void microblaze_setup_heartbeat(void);
2824

2925
# ifdef CONFIG_MMU
3026
extern void mmu_reset(void);
31-
extern void early_console_reg_tlb_alloc(unsigned int addr);
3227
# endif /* CONFIG_MMU */
3328

3429
extern void of_platform_reset_gpio_probe(void);

arch/microblaze/kernel/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ obj-y += dma.o exceptions.o \
2222

2323
obj-y += cpu/
2424

25-
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
2625
obj-$(CONFIG_HEART_BEAT) += heartbeat.o
2726
obj-$(CONFIG_MODULES) += microblaze_ksyms.o module.o
2827
obj-$(CONFIG_MMU) += misc.o

arch/microblaze/kernel/early_printk.c

Lines changed: 0 additions & 184 deletions
This file was deleted.

arch/microblaze/kernel/misc.S

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -63,38 +63,3 @@ _tlbie_1:
6363
nop
6464

6565
.size _tlbie, . - _tlbie
66-
67-
/*
68-
* Allocate TLB entry for early console
69-
*/
70-
.globl early_console_reg_tlb_alloc;
71-
.type early_console_reg_tlb_alloc, @function
72-
.align 4;
73-
early_console_reg_tlb_alloc:
74-
/*
75-
* Load a TLB entry for the UART, so that microblaze_progress() can use
76-
* the UARTs nice and early. We use a 4k real==virtual mapping.
77-
*/
78-
lwi r4, r0, tlb_skip
79-
mts rtlbx, r4 /* TLB slot 63 */
80-
81-
or r4,r5,r0
82-
andi r4,r4,0xfffff000
83-
ori r4,r4,(TLB_WR|TLB_I|TLB_M|TLB_G)
84-
85-
andi r5,r5,0xfffff000
86-
ori r5,r5,(TLB_VALID | TLB_PAGESZ(PAGESZ_4K))
87-
88-
mts rtlblo,r4 /* Load the data portion of the entry */
89-
nop
90-
mts rtlbhi,r5 /* Load the tag portion of the entry */
91-
nop
92-
93-
lwi r5, r0, tlb_skip
94-
addik r5, r5, 1
95-
swi r5, r0, tlb_skip
96-
97-
rtsd r15, 8
98-
nop
99-
100-
.size early_console_reg_tlb_alloc, . - early_console_reg_tlb_alloc

0 commit comments

Comments
 (0)