prom.c (bd649d40e0f2ffa1e16b4dbb93dc627177410e78) | prom.c (48b7019b6abd029d3800620bb53f0ae3ca052441) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Procedures for creating, accessing and interpreting the device tree. 4 * 5 * Paul Mackerras August 1996. 6 * Copyright (C) 1996-2005 Paul Mackerras. 7 * 8 * Adapted for 64bit PowerPC by Dave Engebretsen and Peter Bergner. --- 376 unchanged lines hidden (view full) --- 385 * 386 * If we're using device tree CPU feature discovery then we don't 387 * support the cpu-version property, and it's the responsibility of the 388 * firmware/hypervisor to provide the correct feature set for the 389 * architecture level via the ibm,powerpc-cpu-features binding. 390 */ 391 if (!dt_cpu_ftrs_in_use()) { 392 prop = of_get_flat_dt_prop(node, "cpu-version", NULL); | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Procedures for creating, accessing and interpreting the device tree. 4 * 5 * Paul Mackerras August 1996. 6 * Copyright (C) 1996-2005 Paul Mackerras. 7 * 8 * Adapted for 64bit PowerPC by Dave Engebretsen and Peter Bergner. --- 376 unchanged lines hidden (view full) --- 385 * 386 * If we're using device tree CPU feature discovery then we don't 387 * support the cpu-version property, and it's the responsibility of the 388 * firmware/hypervisor to provide the correct feature set for the 389 * architecture level via the ibm,powerpc-cpu-features binding. 390 */ 391 if (!dt_cpu_ftrs_in_use()) { 392 prop = of_get_flat_dt_prop(node, "cpu-version", NULL); |
393 if (prop && (be32_to_cpup(prop) & 0xff000000) == 0x0f000000) | 393 if (prop && (be32_to_cpup(prop) & 0xff000000) == 0x0f000000) { |
394 identify_cpu(0, be32_to_cpup(prop)); | 394 identify_cpu(0, be32_to_cpup(prop)); |
395 seq_buf_printf(&ppc_hw_desc, "0x%04x ", be32_to_cpup(prop)); 396 } |
|
395 396 check_cpu_feature_properties(node); 397 check_cpu_features(node, "ibm,pa-features", ibm_pa_features, 398 ARRAY_SIZE(ibm_pa_features)); 399 check_cpu_features(node, "ibm,pi-features", ibm_pi_features, 400 ARRAY_SIZE(ibm_pi_features)); 401 } 402 --- 580 unchanged lines hidden --- | 397 398 check_cpu_feature_properties(node); 399 check_cpu_features(node, "ibm,pa-features", ibm_pa_features, 400 ARRAY_SIZE(ibm_pa_features)); 401 check_cpu_features(node, "ibm,pi-features", ibm_pi_features, 402 ARRAY_SIZE(ibm_pi_features)); 403 } 404 --- 580 unchanged lines hidden --- |