ppc405_boards.c (940d5b132fab085bd8ec2bcfa5c1dd119785b217) | ppc405_boards.c (ce14710f4fdfca32123d7efd3ddcbee984ef0ae5) |
---|---|
1/* 2 * QEMU PowerPC 405 evaluation boards emulation 3 * 4 * Copyright (c) 2007 Jocelyn Mayer 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 170 unchanged lines hidden (view full) --- 179 /* allocate and load BIOS */ 180#ifdef USE_FLASH_BIOS 181 dinfo = drive_get(IF_PFLASH, 0, 0); 182 if (dinfo) { 183 bios_size = 8 * MiB; 184 pflash_cfi02_register((uint32_t)(-bios_size), 185 "ef405ep.bios", bios_size, 186 dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, | 1/* 2 * QEMU PowerPC 405 evaluation boards emulation 3 * 4 * Copyright (c) 2007 Jocelyn Mayer 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 170 unchanged lines hidden (view full) --- 179 /* allocate and load BIOS */ 180#ifdef USE_FLASH_BIOS 181 dinfo = drive_get(IF_PFLASH, 0, 0); 182 if (dinfo) { 183 bios_size = 8 * MiB; 184 pflash_cfi02_register((uint32_t)(-bios_size), 185 "ef405ep.bios", bios_size, 186 dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, |
187 64 * KiB, bios_size / (64 * KiB), 1, | 187 64 * KiB, 1, |
188 2, 0x0001, 0x22DA, 0x0000, 0x0000, 0x555, 0x2AA, 189 1); 190 } else 191#endif 192 { 193 bios = g_new(MemoryRegion, 1); 194 memory_region_init_ram(bios, NULL, "ef405ep.bios", BIOS_SIZE, 195 &error_fatal); --- 249 unchanged lines hidden (view full) --- 445 fl_idx = 0; 446#if defined(USE_FLASH_BIOS) 447 dinfo = drive_get(IF_PFLASH, 0, fl_idx); 448 if (dinfo) { 449 bios_size = 2 * MiB; 450 pflash_cfi02_register(0xFFE00000, 451 "taihu_405ep.bios", bios_size, 452 dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, | 188 2, 0x0001, 0x22DA, 0x0000, 0x0000, 0x555, 0x2AA, 189 1); 190 } else 191#endif 192 { 193 bios = g_new(MemoryRegion, 1); 194 memory_region_init_ram(bios, NULL, "ef405ep.bios", BIOS_SIZE, 195 &error_fatal); --- 249 unchanged lines hidden (view full) --- 445 fl_idx = 0; 446#if defined(USE_FLASH_BIOS) 447 dinfo = drive_get(IF_PFLASH, 0, fl_idx); 448 if (dinfo) { 449 bios_size = 2 * MiB; 450 pflash_cfi02_register(0xFFE00000, 451 "taihu_405ep.bios", bios_size, 452 dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, |
453 64 * KiB, bios_size / (64 * KiB), 1, | 453 64 * KiB, 1, |
454 4, 0x0001, 0x22DA, 0x0000, 0x0000, 0x555, 0x2AA, 455 1); 456 fl_idx++; 457 } else 458#endif 459 { 460 if (bios_name == NULL) 461 bios_name = BIOS_FILENAME; --- 19 unchanged lines hidden (view full) --- 481 memory_region_set_readonly(bios, true); 482 } 483 /* Register Linux flash */ 484 dinfo = drive_get(IF_PFLASH, 0, fl_idx); 485 if (dinfo) { 486 bios_size = 32 * MiB; 487 pflash_cfi02_register(0xfc000000, "taihu_405ep.flash", bios_size, 488 dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, | 454 4, 0x0001, 0x22DA, 0x0000, 0x0000, 0x555, 0x2AA, 455 1); 456 fl_idx++; 457 } else 458#endif 459 { 460 if (bios_name == NULL) 461 bios_name = BIOS_FILENAME; --- 19 unchanged lines hidden (view full) --- 481 memory_region_set_readonly(bios, true); 482 } 483 /* Register Linux flash */ 484 dinfo = drive_get(IF_PFLASH, 0, fl_idx); 485 if (dinfo) { 486 bios_size = 32 * MiB; 487 pflash_cfi02_register(0xfc000000, "taihu_405ep.flash", bios_size, 488 dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, |
489 64 * KiB, bios_size / (64 * KiB), 1, | 489 64 * KiB, 1, |
490 4, 0x0001, 0x22DA, 0x0000, 0x0000, 0x555, 0x2AA, 491 1); 492 fl_idx++; 493 } 494 /* Register CLPD & LCD display */ 495 taihu_cpld_init(sysmem, 0x50100000); 496 /* Load kernel */ 497 linux_boot = (kernel_filename != NULL); --- 52 unchanged lines hidden --- | 490 4, 0x0001, 0x22DA, 0x0000, 0x0000, 0x555, 0x2AA, 491 1); 492 fl_idx++; 493 } 494 /* Register CLPD & LCD display */ 495 taihu_cpld_init(sysmem, 0x50100000); 496 /* Load kernel */ 497 linux_boot = (kernel_filename != NULL); --- 52 unchanged lines hidden --- |