sam460ex.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. /*
  2. * QEMU aCube Sam460ex board emulation
  3. *
  4. * Copyright (c) 2012 François Revol
  5. * Copyright (c) 2016-2019 BALATON Zoltan
  6. *
  7. * This file is derived from hw/ppc440_bamboo.c,
  8. * the copyright for that material belongs to the original owners.
  9. *
  10. * This work is licensed under the GNU GPL license version 2 or later.
  11. *
  12. */
  13. #include "qemu/osdep.h"
  14. #include "qemu/units.h"
  15. #include "qemu/datadir.h"
  16. #include "qemu/error-report.h"
  17. #include "qapi/error.h"
  18. #include "hw/boards.h"
  19. #include "system/kvm.h"
  20. #include "kvm_ppc.h"
  21. #include "system/device_tree.h"
  22. #include "system/block-backend.h"
  23. #include "exec/page-protection.h"
  24. #include "hw/loader.h"
  25. #include "elf.h"
  26. #include "exec/memory.h"
  27. #include "ppc440.h"
  28. #include "hw/pci-host/ppc4xx.h"
  29. #include "hw/block/flash.h"
  30. #include "system/system.h"
  31. #include "system/reset.h"
  32. #include "hw/sysbus.h"
  33. #include "hw/char/serial-mm.h"
  34. #include "hw/i2c/ppc4xx_i2c.h"
  35. #include "hw/i2c/smbus_eeprom.h"
  36. #include "hw/ide/pci.h"
  37. #include "hw/usb/hcd-ehci.h"
  38. #include "hw/ppc/fdt.h"
  39. #include "hw/qdev-properties.h"
  40. #include "hw/intc/ppc-uic.h"
  41. #include <libfdt.h>
  42. #define BINARY_DEVICE_TREE_FILE "canyonlands.dtb"
  43. #define UBOOT_FILENAME "u-boot-sam460-20100605.bin"
  44. /* to extract the official U-Boot bin from the updater: */
  45. /* dd bs=1 skip=$(($(stat -c '%s' updater/updater-460) - 0x80000)) \
  46. if=updater/updater-460 of=u-boot-sam460-20100605.bin */
  47. #define PCIE0_DCRN_BASE 0x100
  48. #define PCIE1_DCRN_BASE 0x120
  49. /* from Sam460 U-Boot include/configs/Sam460ex.h */
  50. #define FLASH_BASE 0xfff00000
  51. #define FLASH_BASE_H 0x4
  52. #define FLASH_SIZE (1 * MiB)
  53. #define UBOOT_LOAD_BASE 0xfff80000
  54. #define UBOOT_SIZE 0x00080000
  55. #define UBOOT_ENTRY 0xfffffffc
  56. /* from U-Boot */
  57. #define EPAPR_MAGIC (0x45504150)
  58. #define KERNEL_ADDR 0x1000000
  59. #define FDT_ADDR 0x1800000
  60. #define RAMDISK_ADDR 0x1900000
  61. /* Sam460ex IRQ MAP:
  62. IRQ0 = ETH_INT
  63. IRQ1 = FPGA_INT
  64. IRQ2 = PCI_INT (PCIA, PCIB, PCIC, PCIB)
  65. IRQ3 = FPGA_INT2
  66. IRQ11 = RTC_INT
  67. IRQ12 = SM502_INT
  68. */
  69. #define CPU_FREQ 1150000000
  70. #define PLB_FREQ 230000000
  71. #define OPB_FREQ 115000000
  72. #define EBC_FREQ 115000000
  73. #define UART_FREQ 11059200
  74. struct boot_info {
  75. uint32_t dt_base;
  76. uint32_t dt_size;
  77. uint32_t entry;
  78. };
  79. static int sam460ex_load_uboot(void)
  80. {
  81. /*
  82. * This first creates 1MiB of flash memory mapped at the end of
  83. * the 32-bit address space (0xFFF00000..0xFFFFFFFF).
  84. *
  85. * If_PFLASH unit 0 is defined, the flash memory is initialized
  86. * from that block backend.
  87. *
  88. * Else, it's initialized to zero. And then 512KiB of ROM get
  89. * mapped on top of its second half (0xFFF80000..0xFFFFFFFF),
  90. * initialized from u-boot-sam460-20100605.bin.
  91. *
  92. * This doesn't smell right.
  93. *
  94. * The physical hardware appears to have 512KiB flash memory.
  95. *
  96. * TODO Figure out what we really need here, and clean this up.
  97. */
  98. DriveInfo *dinfo;
  99. dinfo = drive_get(IF_PFLASH, 0, 0);
  100. if (!pflash_cfi01_register(FLASH_BASE | ((hwaddr)FLASH_BASE_H << 32),
  101. "sam460ex.flash", FLASH_SIZE,
  102. dinfo ? blk_by_legacy_dinfo(dinfo) : NULL,
  103. 64 * KiB, 1, 0x89, 0x18, 0x0000, 0x0, 1)) {
  104. error_report("Error registering flash memory");
  105. /* XXX: return an error instead? */
  106. exit(1);
  107. }
  108. if (!dinfo) {
  109. /*error_report("No flash image given with the 'pflash' parameter,"
  110. " using default u-boot image");*/
  111. rom_add_file_fixed(UBOOT_FILENAME,
  112. UBOOT_LOAD_BASE | ((hwaddr)FLASH_BASE_H << 32),
  113. -1);
  114. }
  115. return 0;
  116. }
  117. static int sam460ex_load_device_tree(MachineState *machine,
  118. hwaddr addr,
  119. hwaddr initrd_base,
  120. hwaddr initrd_size)
  121. {
  122. uint32_t mem_reg_property[] = { 0, 0, cpu_to_be32(machine->ram_size) };
  123. char *filename;
  124. int fdt_size;
  125. void *fdt;
  126. uint32_t tb_freq = CPU_FREQ;
  127. uint32_t clock_freq = CPU_FREQ;
  128. int offset;
  129. filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, BINARY_DEVICE_TREE_FILE);
  130. if (!filename) {
  131. error_report("Couldn't find dtb file `%s'", BINARY_DEVICE_TREE_FILE);
  132. exit(1);
  133. }
  134. fdt = load_device_tree(filename, &fdt_size);
  135. if (!fdt) {
  136. error_report("Couldn't load dtb file `%s'", filename);
  137. g_free(filename);
  138. exit(1);
  139. }
  140. g_free(filename);
  141. /* Manipulate device tree in memory. */
  142. qemu_fdt_setprop(fdt, "/memory", "reg", mem_reg_property,
  143. sizeof(mem_reg_property));
  144. /* default FDT doesn't have a /chosen node... */
  145. qemu_fdt_add_subnode(fdt, "/chosen");
  146. qemu_fdt_setprop_cell(fdt, "/chosen", "linux,initrd-start", initrd_base);
  147. qemu_fdt_setprop_cell(fdt, "/chosen", "linux,initrd-end",
  148. (initrd_base + initrd_size));
  149. qemu_fdt_setprop_string(fdt, "/chosen", "bootargs",
  150. machine->kernel_cmdline);
  151. /* Copy data from the host device tree into the guest. Since the guest can
  152. * directly access the timebase without host involvement, we must expose
  153. * the correct frequencies. */
  154. if (kvm_enabled()) {
  155. tb_freq = kvmppc_get_tbfreq();
  156. clock_freq = kvmppc_get_clockfreq();
  157. }
  158. qemu_fdt_setprop_cell(fdt, "/cpus/cpu@0", "clock-frequency",
  159. clock_freq);
  160. qemu_fdt_setprop_cell(fdt, "/cpus/cpu@0", "timebase-frequency",
  161. tb_freq);
  162. /* Remove cpm node if it exists (it is not emulated) */
  163. offset = fdt_path_offset(fdt, "/cpm");
  164. if (offset >= 0) {
  165. _FDT(fdt_nop_node(fdt, offset));
  166. }
  167. /* set serial port clocks */
  168. offset = fdt_node_offset_by_compatible(fdt, -1, "ns16550");
  169. while (offset >= 0) {
  170. _FDT(fdt_setprop_cell(fdt, offset, "clock-frequency", UART_FREQ));
  171. offset = fdt_node_offset_by_compatible(fdt, offset, "ns16550");
  172. }
  173. /* some more clocks */
  174. qemu_fdt_setprop_cell(fdt, "/plb", "clock-frequency",
  175. PLB_FREQ);
  176. qemu_fdt_setprop_cell(fdt, "/plb/opb", "clock-frequency",
  177. OPB_FREQ);
  178. qemu_fdt_setprop_cell(fdt, "/plb/opb/ebc", "clock-frequency",
  179. EBC_FREQ);
  180. rom_add_blob_fixed(BINARY_DEVICE_TREE_FILE, fdt, fdt_size, addr);
  181. /* Set machine->fdt for 'dumpdtb' QMP/HMP command */
  182. machine->fdt = fdt;
  183. return fdt_size;
  184. }
  185. static void main_cpu_reset(void *opaque)
  186. {
  187. PowerPCCPU *cpu = opaque;
  188. CPUPPCState *env = &cpu->env;
  189. struct boot_info *bi = env->load_info;
  190. cpu_reset(CPU(cpu));
  191. /*
  192. * On reset the flash is mapped by a shadow TLB, but since we
  193. * don't implement them we need to use the same values U-Boot
  194. * will use to avoid a fault.
  195. * either we have a kernel to boot or we jump to U-Boot
  196. */
  197. if (bi->entry != UBOOT_ENTRY) {
  198. env->gpr[1] = (16 * MiB) - 8;
  199. env->gpr[3] = FDT_ADDR;
  200. env->nip = bi->entry;
  201. /* Create a mapping for the kernel. */
  202. booke_set_tlb(&env->tlb.tlbe[0], 0, 0, 1 << 31);
  203. env->gpr[6] = EPAPR_MAGIC;
  204. env->gpr[7] = (16 * MiB) - 8; /* bi->ima_size; */
  205. } else {
  206. env->nip = UBOOT_ENTRY;
  207. /* Create a mapping for U-Boot. */
  208. booke_set_tlb(&env->tlb.tlbe[0], 0xf0000000, 0xf0000000, 0x10000000);
  209. env->tlb.tlbe[0].RPN |= 4;
  210. }
  211. }
  212. static void sam460ex_init(MachineState *machine)
  213. {
  214. MemoryRegion *l2cache_ram = g_new(MemoryRegion, 1);
  215. DeviceState *uic[4];
  216. int i;
  217. PCIBus *pci_bus;
  218. USBBus *usb_bus;
  219. PowerPCCPU *cpu;
  220. CPUPPCState *env;
  221. I2CBus *i2c;
  222. hwaddr entry = UBOOT_ENTRY;
  223. target_long initrd_size = 0;
  224. DeviceState *dev;
  225. SysBusDevice *sbdev;
  226. struct boot_info *boot_info;
  227. uint8_t *spd_data;
  228. int success;
  229. cpu = POWERPC_CPU(cpu_create(machine->cpu_type));
  230. env = &cpu->env;
  231. if (env->mmu_model != POWERPC_MMU_BOOKE) {
  232. error_report("Only MMU model BookE is supported by this machine.");
  233. exit(1);
  234. }
  235. qemu_register_reset(main_cpu_reset, cpu);
  236. boot_info = g_malloc0(sizeof(*boot_info));
  237. env->load_info = boot_info;
  238. ppc_booke_timers_init(cpu, CPU_FREQ, 0);
  239. ppc_dcr_init(env, NULL, NULL);
  240. /* PLB arbitrer */
  241. dev = qdev_new(TYPE_PPC4xx_PLB);
  242. ppc4xx_dcr_realize(PPC4xx_DCR_DEVICE(dev), cpu, &error_fatal);
  243. object_unref(OBJECT(dev));
  244. /* interrupt controllers */
  245. for (i = 0; i < ARRAY_SIZE(uic); i++) {
  246. /*
  247. * UICs 1, 2 and 3 are cascaded through UIC 0.
  248. * input_ints[n] is the interrupt number on UIC 0 which
  249. * the INT output of UIC n is connected to. The CINT output
  250. * of UIC n connects to input_ints[n] + 1.
  251. * The entry in input_ints[] for UIC 0 is ignored, because UIC 0's
  252. * INT and CINT outputs are connected to the CPU.
  253. */
  254. const int input_ints[] = { -1, 30, 10, 16 };
  255. uic[i] = qdev_new(TYPE_PPC_UIC);
  256. qdev_prop_set_uint32(uic[i], "dcr-base", 0xc0 + i * 0x10);
  257. ppc4xx_dcr_realize(PPC4xx_DCR_DEVICE(uic[i]), cpu, &error_fatal);
  258. object_unref(OBJECT(uic[i]));
  259. sbdev = SYS_BUS_DEVICE(uic[i]);
  260. if (i == 0) {
  261. sysbus_connect_irq(sbdev, PPCUIC_OUTPUT_INT,
  262. qdev_get_gpio_in(DEVICE(cpu), PPC40x_INPUT_INT));
  263. sysbus_connect_irq(sbdev, PPCUIC_OUTPUT_CINT,
  264. qdev_get_gpio_in(DEVICE(cpu), PPC40x_INPUT_CINT));
  265. } else {
  266. sysbus_connect_irq(sbdev, PPCUIC_OUTPUT_INT,
  267. qdev_get_gpio_in(uic[0], input_ints[i]));
  268. sysbus_connect_irq(sbdev, PPCUIC_OUTPUT_CINT,
  269. qdev_get_gpio_in(uic[0], input_ints[i] + 1));
  270. }
  271. }
  272. /* SDRAM controller */
  273. /* The SoC could also handle 4 GiB but firmware does not work with that. */
  274. if (machine->ram_size > 2 * GiB) {
  275. error_report("Memory over 2 GiB is not supported");
  276. exit(1);
  277. }
  278. /* Firmware needs at least 64 MiB */
  279. if (machine->ram_size < 64 * MiB) {
  280. error_report("Memory below 64 MiB is not supported");
  281. exit(1);
  282. }
  283. dev = qdev_new(TYPE_PPC4xx_SDRAM_DDR2);
  284. object_property_set_link(OBJECT(dev), "dram", OBJECT(machine->ram),
  285. &error_abort);
  286. /*
  287. * Put all RAM on first bank because board has one slot
  288. * and firmware only checks that
  289. */
  290. object_property_set_int(OBJECT(dev), "nbanks", 1, &error_abort);
  291. ppc4xx_dcr_realize(PPC4xx_DCR_DEVICE(dev), cpu, &error_fatal);
  292. object_unref(OBJECT(dev));
  293. /* FIXME: does 460EX have ECC interrupts? */
  294. /* Enable SDRAM memory regions as we may boot without firmware */
  295. ppc4xx_sdram_ddr2_enable(PPC4xx_SDRAM_DDR2(dev));
  296. /* IIC controllers and devices */
  297. dev = sysbus_create_simple(TYPE_PPC4xx_I2C, 0x4ef600700,
  298. qdev_get_gpio_in(uic[0], 2));
  299. i2c = PPC4xx_I2C(dev)->bus;
  300. /* SPD EEPROM on RAM module */
  301. spd_data = spd_data_generate(machine->ram_size < 128 * MiB ? DDR : DDR2,
  302. machine->ram_size);
  303. spd_data[20] = 4; /* SO-DIMM module */
  304. smbus_eeprom_init_one(i2c, 0x50, spd_data);
  305. /* RTC */
  306. i2c_slave_create_simple(i2c, "m41t80", 0x68);
  307. dev = sysbus_create_simple(TYPE_PPC4xx_I2C, 0x4ef600800,
  308. qdev_get_gpio_in(uic[0], 3));
  309. /* External bus controller */
  310. dev = qdev_new(TYPE_PPC4xx_EBC);
  311. ppc4xx_dcr_realize(PPC4xx_DCR_DEVICE(dev), cpu, &error_fatal);
  312. object_unref(OBJECT(dev));
  313. /* CPR */
  314. ppc4xx_cpr_init(env);
  315. /* PLB to AHB bridge */
  316. ppc4xx_ahb_init(env);
  317. /* System DCRs */
  318. ppc4xx_sdr_init(env);
  319. /* MAL */
  320. dev = qdev_new(TYPE_PPC4xx_MAL);
  321. qdev_prop_set_uint8(dev, "txc-num", 4);
  322. qdev_prop_set_uint8(dev, "rxc-num", 16);
  323. ppc4xx_dcr_realize(PPC4xx_DCR_DEVICE(dev), cpu, &error_fatal);
  324. object_unref(OBJECT(dev));
  325. sbdev = SYS_BUS_DEVICE(dev);
  326. for (i = 0; i < ARRAY_SIZE(PPC4xx_MAL(dev)->irqs); i++) {
  327. sysbus_connect_irq(sbdev, i, qdev_get_gpio_in(uic[2], 3 + i));
  328. }
  329. /* DMA */
  330. ppc4xx_dma_init(env, 0x200);
  331. /* 256K of L2 cache as memory */
  332. ppc4xx_l2sram_init(env);
  333. /* FIXME: remove this after fixing l2sram mapping in ppc440_uc.c? */
  334. memory_region_init_ram(l2cache_ram, NULL, "ppc440.l2cache_ram", 256 * KiB,
  335. &error_abort);
  336. memory_region_add_subregion(get_system_memory(), 0x400000000LL,
  337. l2cache_ram);
  338. /* USB */
  339. sysbus_create_simple(TYPE_PPC4xx_EHCI, 0x4bffd0400,
  340. qdev_get_gpio_in(uic[2], 29));
  341. dev = qdev_new("sysbus-ohci");
  342. qdev_prop_set_string(dev, "masterbus", "usb-bus.0");
  343. qdev_prop_set_uint32(dev, "num-ports", 6);
  344. sbdev = SYS_BUS_DEVICE(dev);
  345. sysbus_realize_and_unref(sbdev, &error_fatal);
  346. sysbus_mmio_map(sbdev, 0, 0x4bffd0000);
  347. sysbus_connect_irq(sbdev, 0, qdev_get_gpio_in(uic[2], 30));
  348. usb_bus = USB_BUS(object_resolve_type_unambiguous(TYPE_USB_BUS,
  349. &error_abort));
  350. usb_create_simple(usb_bus, "usb-kbd");
  351. usb_create_simple(usb_bus, "usb-mouse");
  352. /* PCIe buses */
  353. dev = qdev_new(TYPE_PPC460EX_PCIE_HOST);
  354. qdev_prop_set_int32(dev, "busnum", 0);
  355. qdev_prop_set_int32(dev, "dcrn-base", PCIE0_DCRN_BASE);
  356. object_property_set_link(OBJECT(dev), "cpu", OBJECT(cpu), &error_abort);
  357. sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
  358. dev = qdev_new(TYPE_PPC460EX_PCIE_HOST);
  359. qdev_prop_set_int32(dev, "busnum", 1);
  360. qdev_prop_set_int32(dev, "dcrn-base", PCIE1_DCRN_BASE);
  361. object_property_set_link(OBJECT(dev), "cpu", OBJECT(cpu), &error_abort);
  362. sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
  363. /* PCI bus */
  364. /* All PCI irqs are connected to the same UIC pin (cf. UBoot source) */
  365. dev = sysbus_create_simple(TYPE_PPC440_PCIX_HOST, 0xc0ec00000,
  366. qdev_get_gpio_in(uic[1], 0));
  367. sysbus_mmio_map(SYS_BUS_DEVICE(dev), 1, 0xc08000000);
  368. pci_bus = PCI_BUS(qdev_get_child_bus(dev, "pci.0"));
  369. /* PCI devices */
  370. pci_create_simple(pci_bus, PCI_DEVFN(6, 0), "sm501");
  371. /*
  372. * SoC has a single SATA port but we don't emulate that
  373. * However, firmware and usual clients have driver for SiI311x
  374. * PCI SATA card so add one for convenience by default
  375. */
  376. if (defaults_enabled()) {
  377. PCIIDEState *s = PCI_IDE(pci_create_simple(pci_bus, -1, "sii3112"));
  378. DriveInfo *di;
  379. di = drive_get_by_index(IF_IDE, 0);
  380. if (di) {
  381. ide_bus_create_drive(&s->bus[0], 0, di);
  382. }
  383. /* Use index 2 only if 1 does not exist, this allows -cdrom */
  384. di = drive_get_by_index(IF_IDE, 1) ?: drive_get_by_index(IF_IDE, 2);
  385. if (di) {
  386. ide_bus_create_drive(&s->bus[1], 0, di);
  387. }
  388. }
  389. /* SoC has 4 UARTs but board has only one wired and two described in fdt */
  390. if (serial_hd(0) != NULL) {
  391. serial_mm_init(get_system_memory(), 0x4ef600300, 0,
  392. qdev_get_gpio_in(uic[1], 1),
  393. PPC_SERIAL_MM_BAUDBASE, serial_hd(0),
  394. DEVICE_BIG_ENDIAN);
  395. }
  396. if (serial_hd(1) != NULL) {
  397. serial_mm_init(get_system_memory(), 0x4ef600400, 0,
  398. qdev_get_gpio_in(uic[0], 1),
  399. PPC_SERIAL_MM_BAUDBASE, serial_hd(1),
  400. DEVICE_BIG_ENDIAN);
  401. }
  402. /* Load U-Boot image. */
  403. if (!machine->kernel_filename) {
  404. success = sam460ex_load_uboot();
  405. if (success < 0) {
  406. error_report("could not load firmware");
  407. exit(1);
  408. }
  409. }
  410. /* Load kernel. */
  411. if (machine->kernel_filename) {
  412. hwaddr loadaddr = LOAD_UIMAGE_LOADADDR_INVALID;
  413. success = load_uimage(machine->kernel_filename, &entry, &loadaddr,
  414. NULL, NULL, NULL);
  415. if (success < 0) {
  416. uint64_t elf_entry;
  417. success = load_elf(machine->kernel_filename, NULL, NULL, NULL,
  418. &elf_entry, NULL, NULL, NULL,
  419. ELFDATA2MSB, PPC_ELF_MACHINE, 0, 0);
  420. entry = elf_entry;
  421. }
  422. /* XXX try again as binary */
  423. if (success < 0) {
  424. error_report("could not load kernel '%s'",
  425. machine->kernel_filename);
  426. exit(1);
  427. }
  428. }
  429. /* Load initrd. */
  430. if (machine->initrd_filename) {
  431. initrd_size = load_image_targphys(machine->initrd_filename,
  432. RAMDISK_ADDR,
  433. machine->ram_size - RAMDISK_ADDR);
  434. if (initrd_size < 0) {
  435. error_report("could not load ram disk '%s' at %x",
  436. machine->initrd_filename, RAMDISK_ADDR);
  437. exit(1);
  438. }
  439. }
  440. /* If we're loading a kernel directly, we must load the device tree too. */
  441. if (machine->kernel_filename) {
  442. int dt_size;
  443. dt_size = sam460ex_load_device_tree(machine, FDT_ADDR,
  444. RAMDISK_ADDR, initrd_size);
  445. boot_info->dt_base = FDT_ADDR;
  446. boot_info->dt_size = dt_size;
  447. }
  448. boot_info->entry = entry;
  449. }
  450. static void sam460ex_machine_init(MachineClass *mc)
  451. {
  452. mc->desc = "aCube Sam460ex";
  453. mc->init = sam460ex_init;
  454. mc->block_default_type = IF_IDE;
  455. mc->default_cpu_type = POWERPC_CPU_TYPE_NAME("460exb");
  456. mc->default_ram_size = 512 * MiB;
  457. mc->default_ram_id = "ppc4xx.sdram";
  458. }
  459. DEFINE_MACHINE("sam460ex", sam460ex_machine_init)