14 #include <linux/string.h>
16 #include <asm/cpuinfo.h>
23 #define CI(c, p) { ci->c = PVR_##p(pvr); }
25 #if defined(CONFIG_EARLY_PRINTK) && defined(CONFIG_SERIAL_UARTLITE_CONSOLE)
26 #define err_printk(x) \
27 early_printk("ERROR: Microblaze " x "-different for PVR and DTS\n");
29 #define err_printk(x) \
30 printk(KERN_INFO "ERROR: Microblaze " x "-different for PVR and DTS\n");
42 "-> use DTS setting\n");
63 PVR_UNALIGNED_EXCEPTION(pvr) |\
64 PVR_ILL_OPCODE_EXCEPTION(pvr) |\
65 PVR_IOPB_BUS_EXCEPTION(pvr) |\
66 PVR_DOPB_BUS_EXCEPTION(pvr) |\
67 PVR_DIV_ZERO_EXCEPTION(pvr) |\
68 PVR_FPU_EXCEPTION(pvr) |\
69 PVR_FSL_EXCEPTION(pvr);
75 CI(mmu_privins, MMU_PRIVINS);
78 CI(use_icache, USE_ICACHE);
79 CI(icache_tagbits, ICACHE_ADDR_TAG_BITS);
80 CI(icache_write, ICACHE_ALLOW_WR);
82 CI(icache_size, ICACHE_BYTE_SIZE);
83 CI(icache_base, ICACHE_BASEADDR);
84 CI(icache_high, ICACHE_HIGHADDR);
86 CI(use_dcache, USE_DCACHE);
87 CI(dcache_tagbits, DCACHE_ADDR_TAG_BITS);
88 CI(dcache_write, DCACHE_ALLOW_WR);
90 CI(dcache_size, DCACHE_BYTE_SIZE);
91 CI(dcache_base, DCACHE_BASEADDR);
92 CI(dcache_high, DCACHE_HIGHADDR);
103 CI(num_fsl, FSL_LINKS);
105 CI(irq_edge, INTERRUPT_IS_EDGE);
106 CI(irq_positive, EDGE_IS_POSITIVE);
108 CI(area_optimised, AREA_OPTIMISED);
110 CI(hw_debug, DEBUG_ENABLED);
111 CI(num_pc_brk, NUMBER_OF_PC_BRK);
112 CI(num_rd_brk, NUMBER_OF_RD_ADDR_BRK);
113 CI(num_wr_brk, NUMBER_OF_WR_ADDR_BRK);
115 CI(fpga_family_code, TARGET_FAMILY);