realtek: use generic earlycon setup on 5.15
Use generic earlycon on Linux Kernel instead of initialization in platform setup. And also, drop bootargs with console= parameter from I-O DATA BSH-G24MB. It uses 115200bps as baud-rate, the same as default in rtl838x.dtsi. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
This commit is contained in:
		
				
					committed by
					
						
						Olliver Schinagl
					
				
			
			
				
	
			
			
			
						parent
						
							d649a8dcef
						
					
				
				
					commit
					3cfa465387
				
			@@ -16,10 +16,6 @@
 | 
				
			|||||||
		led-upgrade = &led_sys_loop;
 | 
							led-upgrade = &led_sys_loop;
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	chosen {
 | 
					 | 
				
			||||||
		bootargs = "console=ttyS0,115200";
 | 
					 | 
				
			||||||
	};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	memory@0 {
 | 
						memory@0 {
 | 
				
			||||||
		device_type = "memory";
 | 
							device_type = "memory";
 | 
				
			||||||
		reg = <0x0 0x8000000>;
 | 
							reg = <0x0 0x8000000>;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -117,8 +117,14 @@
 | 
				
			|||||||
		};
 | 
							};
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						aliases {
 | 
				
			||||||
 | 
							serial0 = &uart0;
 | 
				
			||||||
 | 
							serial1 = &uart1;
 | 
				
			||||||
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	chosen {
 | 
						chosen {
 | 
				
			||||||
		bootargs = "console=ttyS0,115200";
 | 
							bootargs = "earlycon";
 | 
				
			||||||
 | 
							stdout-path = "serial0:115200n8";
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	cpuintc: cpuintc {
 | 
						cpuintc: cpuintc {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/ {
 | 
					/ {
 | 
				
			||||||
	chosen {
 | 
						chosen {
 | 
				
			||||||
		bootargs = "console=ttyS0,38400";
 | 
							stdout-path = "serial0:38400n8";
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	memory@0 {
 | 
						memory@0 {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,7 +24,7 @@
 | 
				
			|||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	chosen {
 | 
						chosen {
 | 
				
			||||||
		bootargs = "console=ttyS0,38400";
 | 
							stdout-path = "serial0:38400n8";
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	keys {
 | 
						keys {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -142,8 +142,14 @@
 | 
				
			|||||||
		};
 | 
							};
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						aliases {
 | 
				
			||||||
 | 
							serial0 = &uart0;
 | 
				
			||||||
 | 
							serial1 = &uart1;
 | 
				
			||||||
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	chosen {
 | 
						chosen {
 | 
				
			||||||
		bootargs = "console=ttyS0,115200";
 | 
							bootargs = "earlycon";
 | 
				
			||||||
 | 
							stdout-path = "serial0:115200n8";
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	cpuintc: cpuintc {
 | 
						cpuintc: cpuintc {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/ {
 | 
					/ {
 | 
				
			||||||
	chosen {
 | 
						chosen {
 | 
				
			||||||
		bootargs = "console=ttyS0,9600";
 | 
							stdout-path = "serial0:9600n8";
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	memory@0 {
 | 
						memory@0 {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,8 +24,14 @@
 | 
				
			|||||||
		reg = <0x0 0x8000000>;
 | 
							reg = <0x0 0x8000000>;
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						aliases {
 | 
				
			||||||
 | 
							serial0 = &uart0;
 | 
				
			||||||
 | 
							serial1 = &uart1;
 | 
				
			||||||
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	chosen {
 | 
						chosen {
 | 
				
			||||||
		bootargs = "console=ttyS0,115200";
 | 
							bootargs = "earlycon";
 | 
				
			||||||
 | 
							stdout-path = "serial0:115200n8";
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	cpuintc: cpuintc {
 | 
						cpuintc: cpuintc {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,8 +29,14 @@
 | 
				
			|||||||
		reg = <0x0 0x10000000>;
 | 
							reg = <0x0 0x10000000>;
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						aliases {
 | 
				
			||||||
 | 
							serial0 = &uart0;
 | 
				
			||||||
 | 
							serial1 = &uart1;
 | 
				
			||||||
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	chosen {
 | 
						chosen {
 | 
				
			||||||
		bootargs = "console=ttyS0,115200";
 | 
							bootargs = "earlycon";
 | 
				
			||||||
 | 
							stdout-path = "serial0:115200n8";
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	lx_clk: lx_clk {
 | 
						lx_clk: lx_clk {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -117,9 +117,6 @@ void __init prom_init(void)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	uint32_t model;
 | 
						uint32_t model;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* uart0 */
 | 
					 | 
				
			||||||
	setup_8250_early_printk_port(0xb8002000, 2, 0);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	model = sw_r32(RTL838X_MODEL_NAME_INFO);
 | 
						model = sw_r32(RTL838X_MODEL_NAME_INFO);
 | 
				
			||||||
	pr_info("RTL838X model is %x\n", model);
 | 
						pr_info("RTL838X model is %x\n", model);
 | 
				
			||||||
	model = model >> 16 & 0xFFFF;
 | 
						model = model >> 16 & 0xFFFF;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user