Lines Matching +full:rom +full:- +full:19 +full:h
17 #include "qemu/osdep.h"
19 #include "chardev/char.h"
20 #include "hw/boards.h"
21 #include "hw/arm/npcm8xx.h"
22 #include "hw/core/cpu.h"
23 #include "hw/loader.h"
24 #include "hw/qdev-core.h"
25 #include "hw/qdev-properties.h"
26 #include "qapi/error.h"
27 #include "qemu/error-report.h"
28 #include "qemu/datadir.h"
29 #include "qemu/units.h"
37 const char *bios_name = machine->firmware ?: npcm8xx_default_bootrom; in npcm8xx_load_bootrom()
43 error_report("Could not find ROM image '%s'", bios_name); in npcm8xx_load_bootrom()
44 if (!machine->kernel_filename) { in npcm8xx_load_bootrom()
50 ret = load_image_mr(filename, machine->ram); in npcm8xx_load_bootrom()
52 error_report("Failed to load ROM image '%s'", filename); in npcm8xx_load_bootrom()
67 qdev_realize_and_unref(flash, BUS(fiu->spi), &error_fatal); in npcm8xx_connect_flash()
77 object_property_set_link(OBJECT(soc), "dram-mr", OBJECT(dram), in npcm8xx_connect_dram()
87 obj = object_new_with_props(nmc->soc_type, OBJECT(machine), "soc", in npcm8xx_create_soc()
89 object_property_set_uint(obj, "power-on-straps", hw_straps, &error_abort); in npcm8xx_create_soc()
96 g_assert(num < ARRAY_SIZE(soc->smbus)); in npcm8xx_i2c_get_bus()
97 return I2C_BUS(qdev_get_child_bus(DEVICE(&soc->smbus[num]), "i2c-bus")); in npcm8xx_i2c_get_bus()
103 SplitIRQ *splitters = machine->fan_splitter; in npcm8xx_init_pwm_splitter()
117 object_initialize_child(OBJECT(machine), "fan-splitter[*]", in npcm8xx_init_pwm_splitter()
120 qdev_prop_set_uint16(splitter, "num-lines", in npcm8xx_init_pwm_splitter()
123 qdev_connect_gpio_out_named(DEVICE(&soc->pwm[i]), "duty-gpio-out", in npcm8xx_init_pwm_splitter()
143 * Fan 18~19 belong to module 1 input 2~3. in npcm8xx_connect_pwm_fan()
146 fan = DEVICE(&soc->mft[fan_no / 2]); in npcm8xx_connect_pwm_fan()
149 fan = DEVICE(&soc->mft[(fan_no - 16) / 2]); in npcm8xx_connect_pwm_fan()
166 SplitIRQ *splitter = machine->fan_splitter; in npcm845_evb_fan_init()
193 npcm8xx_connect_dram(soc, machine->ram); in npcm845_evb_init()
197 npcm8xx_connect_flash(&soc->fiu[0], 0, "w25q256", drive_get(IF_MTD, 0, 0)); in npcm845_evb_init()
208 nmc->soc_type = type; in npcm8xx_set_soc_type()
209 mc->default_cpus = mc->min_cpus = mc->max_cpus = sc->num_cpus; in npcm8xx_set_soc_type()
216 ARM_CPU_TYPE_NAME("cortex-a35"), in npcm8xx_machine_class_init()
220 mc->no_floppy = 1; in npcm8xx_machine_class_init()
221 mc->no_cdrom = 1; in npcm8xx_machine_class_init()
222 mc->no_parallel = 1; in npcm8xx_machine_class_init()
223 mc->default_ram_id = "ram"; in npcm8xx_machine_class_init()
224 mc->valid_cpu_types = valid_cpu_types; in npcm8xx_machine_class_init()
234 mc->desc = "Nuvoton NPCM845 Evaluation Board (Cortex-A35)"; in npcm845_evb_machine_class_init()
235 mc->init = npcm845_evb_init; in npcm845_evb_machine_class_init()
236 mc->default_ram_size = 1 * GiB; in npcm845_evb_machine_class_init()
248 .name = MACHINE_TYPE_NAME("npcm845-evb"),