Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c600ad8 authored by Michael Ellerman's avatar Michael Ellerman Committed by Paul Mackerras
Browse files

[PATCH] powerpc: iseries: Add bootargs to /chosen



Add the command line args to the device tree as /chosen/bootargs.

Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 289f1c74
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -931,6 +931,7 @@ void build_flat_dt(struct iseries_flat_dt *dt, unsigned long phys_mem_size)
	/* /chosen */
	/* /chosen */
	dt_start_node(dt, "chosen");
	dt_start_node(dt, "chosen");
	dt_prop_u32(dt, "linux,platform", PLATFORM_ISERIES_LPAR);
	dt_prop_u32(dt, "linux,platform", PLATFORM_ISERIES_LPAR);
	dt_prop_str(dt, "bootargs", cmd_line);
	if (cmd_mem_limit)
	if (cmd_mem_limit)
		dt_prop_u64(dt, "linux,memory-limit", cmd_mem_limit);
		dt_prop_u64(dt, "linux,memory-limit", cmd_mem_limit);
	dt_end_node(dt);
	dt_end_node(dt);