xtfpga.c (ffa4822c015d5670ef6a2239f3cbd2ff2cec57de) xtfpga.c (e264d29de28c5b0be3d063307ce9fb613b427cc3)
1/*
2 * Copyright (c) 2011, Max Filippov, Open Source and Linux Lab.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 414 unchanged lines hidden (view full) ---

423 .flash_size = 0x08000000,
424 .flash_boot_base = 0x06000000,
425 .flash_sector_size = 0x20000,
426 .sram_size = 0x2000000,
427 };
428 lx_init(&kc705_board, machine);
429}
430
1/*
2 * Copyright (c) 2011, Max Filippov, Open Source and Linux Lab.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 414 unchanged lines hidden (view full) ---

423 .flash_size = 0x08000000,
424 .flash_boot_base = 0x06000000,
425 .flash_sector_size = 0x20000,
426 .sram_size = 0x2000000,
427 };
428 lx_init(&kc705_board, machine);
429}
430
431static QEMUMachine xtensa_lx60_machine = {
432 .name = "lx60",
433 .desc = "lx60 EVB (" XTENSA_DEFAULT_CPU_MODEL ")",
434 .init = xtensa_lx60_init,
435 .max_cpus = 4,
436};
431static void xtensa_lx60_machine_init(MachineClass *mc)
432{
433 mc->desc = "lx60 EVB (" XTENSA_DEFAULT_CPU_MODEL ")";
434 mc->init = xtensa_lx60_init;
435 mc->max_cpus = 4;
436}
437
437
438static QEMUMachine xtensa_lx200_machine = {
439 .name = "lx200",
440 .desc = "lx200 EVB (" XTENSA_DEFAULT_CPU_MODEL ")",
441 .init = xtensa_lx200_init,
442 .max_cpus = 4,
443};
438DEFINE_MACHINE("lx60", xtensa_lx60_machine_init)
444
439
445static QEMUMachine xtensa_ml605_machine = {
446 .name = "ml605",
447 .desc = "ml605 EVB (" XTENSA_DEFAULT_CPU_MODEL ")",
448 .init = xtensa_ml605_init,
449 .max_cpus = 4,
450};
440static void xtensa_lx200_machine_init(MachineClass *mc)
441{
442 mc->desc = "lx200 EVB (" XTENSA_DEFAULT_CPU_MODEL ")";
443 mc->init = xtensa_lx200_init;
444 mc->max_cpus = 4;
445}
451
446
452static QEMUMachine xtensa_kc705_machine = {
453 .name = "kc705",
454 .desc = "kc705 EVB (" XTENSA_DEFAULT_CPU_MODEL ")",
455 .init = xtensa_kc705_init,
456 .max_cpus = 4,
457};
447DEFINE_MACHINE("lx200", xtensa_lx200_machine_init)
458
448
459static void xtensa_lx_machines_init(void)
449static void xtensa_ml605_machine_init(MachineClass *mc)
460{
450{
461 qemu_register_machine(&xtensa_lx60_machine);
462 qemu_register_machine(&xtensa_lx200_machine);
463 qemu_register_machine(&xtensa_ml605_machine);
464 qemu_register_machine(&xtensa_kc705_machine);
451 mc->desc = "ml605 EVB (" XTENSA_DEFAULT_CPU_MODEL ")";
452 mc->init = xtensa_ml605_init;
453 mc->max_cpus = 4;
465}
466
454}
455
467machine_init(xtensa_lx_machines_init);
456DEFINE_MACHINE("ml605", xtensa_ml605_machine_init)
457
458static void xtensa_kc705_machine_init(MachineClass *mc)
459{
460 mc->desc = "kc705 EVB (" XTENSA_DEFAULT_CPU_MODEL ")";
461 mc->init = xtensa_kc705_init;
462 mc->max_cpus = 4;
463}
464
465DEFINE_MACHINE("kc705", xtensa_kc705_machine_init)