npcm7xx.c (d8d20b38ec5875b98cfdae52c1f2132540cd65b5) | npcm7xx.c (750245ed7ce2a426a4eaf026f1af3a21fbdc19dc) |
---|---|
1/* 2 * Nuvoton NPCM7xx SoC family. 3 * 4 * Copyright 2020 Google LLC 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation; either version 2 of the License, or --- 460 unchanged lines hidden (view full) --- 469 error_setg(errp, "%s: NPCM7xx cannot address more than %" PRIu64 470 " MiB of DRAM", __func__, NPCM7XX_DRAM_SZ / MiB); 471 return; 472 } 473 474 /* CPUs */ 475 for (i = 0; i < nc->num_cpus; i++) { 476 object_property_set_int(OBJECT(&s->cpu[i]), "mp-affinity", | 1/* 2 * Nuvoton NPCM7xx SoC family. 3 * 4 * Copyright 2020 Google LLC 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation; either version 2 of the License, or --- 460 unchanged lines hidden (view full) --- 469 error_setg(errp, "%s: NPCM7xx cannot address more than %" PRIu64 470 " MiB of DRAM", __func__, NPCM7XX_DRAM_SZ / MiB); 471 return; 472 } 473 474 /* CPUs */ 475 for (i = 0; i < nc->num_cpus; i++) { 476 object_property_set_int(OBJECT(&s->cpu[i]), "mp-affinity", |
477 arm_cpu_mp_affinity(i, NPCM7XX_MAX_NUM_CPUS), | 477 arm_build_mp_affinity(i, NPCM7XX_MAX_NUM_CPUS), |
478 &error_abort); 479 object_property_set_int(OBJECT(&s->cpu[i]), "reset-cbar", 480 NPCM7XX_GIC_CPU_IF_ADDR, &error_abort); 481 object_property_set_bool(OBJECT(&s->cpu[i]), "reset-hivecs", true, 482 &error_abort); 483 484 /* Disable security extensions. */ 485 object_property_set_bool(OBJECT(&s->cpu[i]), "has_el3", false, --- 346 unchanged lines hidden --- | 478 &error_abort); 479 object_property_set_int(OBJECT(&s->cpu[i]), "reset-cbar", 480 NPCM7XX_GIC_CPU_IF_ADDR, &error_abort); 481 object_property_set_bool(OBJECT(&s->cpu[i]), "reset-hivecs", true, 482 &error_abort); 483 484 /* Disable security extensions. */ 485 object_property_set_bool(OBJECT(&s->cpu[i]), "has_el3", false, --- 346 unchanged lines hidden --- |