File tree Expand file tree Collapse file tree 14 files changed +12
-364
lines changed Expand file tree Collapse file tree 14 files changed +12
-364
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,6 @@ config TRACE_IRQFLAGS_SUPPORT
8
8
9
9
source "lib/Kconfig.debug"
10
10
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
-
19
11
config HEART_BEAT
20
12
bool "Heart beat function for kernel"
21
13
default n
Original file line number Diff line number Diff line change @@ -22,17 +22,19 @@ $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
22
22
quiet_cmd_cp = CP $< $@ $2
23
23
cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
24
24
25
- quiet_cmd_strip = STRIP $@
25
+ quiet_cmd_strip = STRIP $< $@ $2
26
26
cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
27
- -K _fdt_start vmlinux -o $@
27
+ -K _fdt_start $< -o $@$2
28
28
29
29
UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR )
30
+ UIMAGE_IN = $@
31
+ UIMAGE_OUT = $@ .ub
30
32
31
33
$(obj ) /simpleImage.% : vmlinux FORCE
32
34
$(call if_changed,cp,.unstrip)
33
35
$(call if_changed,objcopy)
34
36
$(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` ' )'
37
39
38
40
clean-files += simpleImage.*.unstrip linux.bin.ub
Original file line number Diff line number Diff line change 44
44
} ;
45
45
chosen {
46
46
bootargs = "console=ttyUL0,115200 highres=on";
47
- linux, stdout-path = "/plb@0/serial@84000000";
47
+ stdout-path = "/plb@0/serial@84000000";
48
48
} ;
49
49
cpus {
50
50
#address-cells = <1>;
Original file line number Diff line number Diff line change 13
13
#ifndef _ASM_MICROBLAZE_CPUINFO_H
14
14
#define _ASM_MICROBLAZE_CPUINFO_H
15
15
16
- #include <asm/prom .h>
16
+ #include <linux/of .h>
17
17
18
18
/* CPU Version and FPGA Family code conversion table type */
19
19
struct cpu_ver_key {
Original file line number Diff line number Diff line change 19
19
#include <linux/scatterlist.h>
20
20
21
21
#include <asm/io.h>
22
- #include <asm/prom.h>
23
22
#include <asm/pci-bridge.h>
24
23
25
24
#define PCIBIOS_MIN_IO 0x1000
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,16 +19,11 @@ extern char cmd_line[COMMAND_LINE_SIZE];
19
19
20
20
extern char * klimit ;
21
21
22
- int setup_early_printk (char * opt );
23
- void remap_early_printk (void );
24
- void disable_early_printk (void );
25
-
26
22
void microblaze_heartbeat (void );
27
23
void microblaze_setup_heartbeat (void );
28
24
29
25
# ifdef CONFIG_MMU
30
26
extern void mmu_reset (void );
31
- extern void early_console_reg_tlb_alloc (unsigned int addr );
32
27
# endif /* CONFIG_MMU */
33
28
34
29
extern void of_platform_reset_gpio_probe (void );
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ obj-y += dma.o exceptions.o \
22
22
23
23
obj-y += cpu/
24
24
25
- obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
26
25
obj-$(CONFIG_HEART_BEAT) += heartbeat.o
27
26
obj-$(CONFIG_MODULES) += microblaze_ksyms.o module.o
28
27
obj-$(CONFIG_MMU) += misc.o
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -63,38 +63,3 @@ _tlbie_1:
63
63
nop
64
64
65
65
.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
You can’t perform that action at this time.
0 commit comments