Lines Matching +full:npcm750 +full:- +full:i2c

21 #include "hw/i2c/i2c_mux_pca954x.h"
22 #include "hw/i2c/smbus_eeprom.h"
25 #include "hw/qdev-core.h"
26 #include "hw/qdev-properties.h"
32 #include "sysemu/block-backend.h"
33 #include "qemu/error-report.h"
60 const char *bios_name = machine->firmware ?: npcm7xx_default_bootrom; in npcm7xx_load_bootrom()
67 if (!machine->kernel_filename) { in npcm7xx_load_bootrom()
73 ret = load_image_mr(filename, &soc->irom); in npcm7xx_load_bootrom()
90 qdev_realize_and_unref(flash, BUS(fiu->spi), &error_fatal); in npcm7xx_connect_flash()
100 object_property_set_link(OBJECT(soc), "dram-mr", OBJECT(dram), in npcm7xx_connect_dram()
109 BusState *bus = BUS(&sdhci->sdbus); in sdhci_attach_drive()
126 obj = object_new_with_props(nmc->soc_type, OBJECT(machine), "soc", in npcm7xx_create_soc()
128 object_property_set_uint(obj, "power-on-straps", hw_straps, &error_abort); in npcm7xx_create_soc()
135 g_assert(num < ARRAY_SIZE(soc->smbus)); in npcm7xx_i2c_get_bus()
136 return I2C_BUS(qdev_get_child_bus(DEVICE(&soc->smbus[num]), "i2c-bus")); in npcm7xx_i2c_get_bus()
142 SplitIRQ *splitters = machine->fan_splitter; in npcm7xx_init_pwm_splitter()
156 object_initialize_child(OBJECT(machine), "fan-splitter[*]", in npcm7xx_init_pwm_splitter()
159 qdev_prop_set_uint16(splitter, "num-lines", in npcm7xx_init_pwm_splitter()
162 qdev_connect_gpio_out_named(DEVICE(&soc->pwm[i]), "duty-gpio-out", in npcm7xx_init_pwm_splitter()
185 fan = DEVICE(&soc->mft[fan_no / 2]); in npcm7xx_connect_pwm_fan()
188 fan = DEVICE(&soc->mft[(fan_no - 16) / 2]); in npcm7xx_connect_pwm_fan()
211 SplitIRQ *splitter = machine->fan_splitter; in npcm750_evb_fan_init()
245 * i2c-11: in quanta_gsj_i2c_init()
246 * - power-brick@36: delta,dps800 in quanta_gsj_i2c_init()
247 * - hotswap@15: ti,lm5066i in quanta_gsj_i2c_init()
251 * i2c-12: in quanta_gsj_i2c_init()
252 * - ucd90160@6b in quanta_gsj_i2c_init()
260 SplitIRQ *splitter = machine->fan_splitter; in quanta_gsj_fan_init()
275 * i2c-0: in quanta_gbs_i2c_init()
278 * i2c-1: in quanta_gbs_i2c_init()
287 * i2c-2: in quanta_gbs_i2c_init()
290 * i2c-5: in quanta_gbs_i2c_init()
293 * - channel 0: max31725@54 in quanta_gbs_i2c_init()
294 * - channel 1: max31725@55 in quanta_gbs_i2c_init()
295 * - channel 2: max31725@5d in quanta_gbs_i2c_init()
297 * - channel 3: atmel,24c64@52 hsbp_fru in quanta_gbs_i2c_init()
299 * i2c-6: in quanta_gbs_i2c_init()
302 * i2c-7: in quanta_gbs_i2c_init()
305 * i2c-8: in quanta_gbs_i2c_init()
308 * i2c-9: in quanta_gbs_i2c_init()
310 * - channel 0: isil,isl68137@60 in quanta_gbs_i2c_init()
311 * - channel 1: isil,isl68137@61 in quanta_gbs_i2c_init()
312 * - channel 2: isil,isl68137@63 in quanta_gbs_i2c_init()
313 * - channel 3: isil,isl68137@45 in quanta_gbs_i2c_init()
315 * i2c-10: in quanta_gbs_i2c_init()
318 * i2c-11: in quanta_gbs_i2c_init()
321 * i2c-12: in quanta_gbs_i2c_init()
326 * i2c-14: in quanta_gbs_i2c_init()
361 /* TODO: Add remaining i2c devices. */ in kudo_bmc_i2c_init()
369 npcm7xx_connect_dram(soc, machine->ram); in npcm750_evb_init()
373 npcm7xx_connect_flash(&soc->fiu[0], 0, "w25q256", drive_get(IF_MTD, 0, 0)); in npcm750_evb_init()
384 npcm7xx_connect_dram(soc, machine->ram); in quanta_gsj_init()
388 npcm7xx_connect_flash(&soc->fiu[0], 0, "mx25l25635e", in quanta_gsj_init()
400 npcm7xx_connect_dram(soc, machine->ram); in quanta_gbs_init()
405 npcm7xx_connect_flash(&soc->fiu[0], 0, "mx66u51235f", in quanta_gbs_init()
409 sdhci_attach_drive(&soc->mmc.sdhci, 0); in quanta_gbs_init()
418 npcm7xx_connect_dram(soc, machine->ram); in kudo_bmc_init()
422 npcm7xx_connect_flash(&soc->fiu[0], 0, "mx66u51235f", in kudo_bmc_init()
424 npcm7xx_connect_flash(&soc->fiu[1], 0, "mx66u51235f", in kudo_bmc_init()
428 sdhci_attach_drive(&soc->mmc.sdhci, 0); in kudo_bmc_init()
437 npcm7xx_connect_dram(soc, machine->ram); in mori_bmc_init()
441 npcm7xx_connect_flash(&soc->fiu[1], 0, "mx66u51235f", in mori_bmc_init()
452 nmc->soc_type = type; in npcm7xx_set_soc_type()
453 mc->default_cpus = mc->min_cpus = mc->max_cpus = sc->num_cpus; in npcm7xx_set_soc_type()
460 ARM_CPU_TYPE_NAME("cortex-a9"), in npcm7xx_machine_class_init()
464 mc->no_floppy = 1; in npcm7xx_machine_class_init()
465 mc->no_cdrom = 1; in npcm7xx_machine_class_init()
466 mc->no_parallel = 1; in npcm7xx_machine_class_init()
467 mc->default_ram_id = "ram"; in npcm7xx_machine_class_init()
468 mc->valid_cpu_types = valid_cpu_types; in npcm7xx_machine_class_init()
473 …* https://github.com/Nuvoton-Israel/nuvoton-info/blob/master/npcm7xx-poleg/evaluation-board/board_…
482 mc->desc = "Nuvoton NPCM750 Evaluation Board (Cortex-A9)"; in npcm750_evb_machine_class_init()
483 mc->init = npcm750_evb_init; in npcm750_evb_machine_class_init()
484 mc->default_ram_size = 512 * MiB; in npcm750_evb_machine_class_init()
494 mc->desc = "Quanta GSJ (Cortex-A9)"; in gsj_machine_class_init()
495 mc->init = quanta_gsj_init; in gsj_machine_class_init()
496 mc->default_ram_size = 512 * MiB; in gsj_machine_class_init()
506 mc->desc = "Quanta GBS (Cortex-A9)"; in gbs_bmc_machine_class_init()
507 mc->init = quanta_gbs_init; in gbs_bmc_machine_class_init()
508 mc->default_ram_size = 1 * GiB; in gbs_bmc_machine_class_init()
518 mc->desc = "Kudo BMC (Cortex-A9)"; in kudo_bmc_machine_class_init()
519 mc->init = kudo_bmc_init; in kudo_bmc_machine_class_init()
520 mc->default_ram_size = 1 * GiB; in kudo_bmc_machine_class_init()
530 mc->desc = "Mori BMC (Cortex-A9)"; in mori_bmc_machine_class_init()
531 mc->init = mori_bmc_init; in mori_bmc_machine_class_init()
532 mc->default_ram_size = 1 * GiB; in mori_bmc_machine_class_init()
544 .name = MACHINE_TYPE_NAME("npcm750-evb"),
548 .name = MACHINE_TYPE_NAME("quanta-gsj"),
552 .name = MACHINE_TYPE_NAME("quanta-gbs-bmc"),
556 .name = MACHINE_TYPE_NAME("kudo-bmc"),
560 .name = MACHINE_TYPE_NAME("mori-bmc"),