#define PRID_COMP_NETLOGIC     0x0c0000
 #define PRID_COMP_CAVIUM       0x0d0000
 #define PRID_COMP_LOONGSON     0x140000
-#define PRID_COMP_INGENIC_D0   0xd00000        /* JZ4740, JZ4750 */
+#define PRID_COMP_INGENIC_D0   0xd00000        /* JZ4740, JZ4750, X1830 */
 #define PRID_COMP_INGENIC_D1   0xd10000        /* JZ4770, JZ4775, X1000 */
 #define PRID_COMP_INGENIC_E1   0xe10000        /* JZ4780 */
 
  * These are the PRID's for when 23:16 == PRID_COMP_INGENIC_*
  */
 
-#define PRID_IMP_XBURST               0x0200
+#define PRID_IMP_XBURST_REV1   0x0200  /* XBurst with MXU SIMD ISA             */
+#define PRID_IMP_XBURST_REV2   0x0100  /* XBurst with MXU2 SIMD ISA    */
 
 /*
  * These are the PRID's for when 23:16 == PRID_COMP_NETLOGIC
 
 
 static unsigned long __init get_board_mach_type(const void *fdt)
 {
+       if (!fdt_node_check_compatible(fdt, 0, "ingenic,x1830"))
+               return MACH_INGENIC_X1830;
        if (!fdt_node_check_compatible(fdt, 0, "ingenic,x1000"))
                return MACH_INGENIC_X1000;
        if (!fdt_node_check_compatible(fdt, 0, "ingenic,jz4780"))
 const char *get_system_type(void)
 {
        switch (mips_machtype) {
+       case MACH_INGENIC_X1830:
+               return "X1830";
        case MACH_INGENIC_X1000:
                return "X1000";
        case MACH_INGENIC_JZ4780:
 
        BUG_ON(!__builtin_constant_p(cpu_has_counter) || cpu_has_counter);
 
        switch (c->processor_id & PRID_IMP_MASK) {
-       case PRID_IMP_XBURST:
-               c->cputype = CPU_XBURST;
-               c->writecombine = _CACHE_UNCACHED_ACCELERATED;
-               __cpu_name[cpu] = "Ingenic JZRISC";
+       case PRID_IMP_XBURST_REV1:
+
                /*
                 * The XBurst core by default attempts to avoid branch target
                 * buffer lookups by detecting & special casing loops. This
                 * Set cp0 config7 bit 4 to disable this feature.
                 */
                set_c0_config7(MIPS_CONF7_BTB_LOOP_EN);
-               break;
-       default:
-               panic("Unknown Ingenic Processor ID!");
-               break;
-       }
 
-       switch (c->processor_id & PRID_COMP_MASK) {
-       /*
-        * The config0 register in the XBurst CPUs with a processor ID of
-        * PRID_COMP_INGENIC_D1 has an abandoned huge page tlb mode, this
-        * mode is not compatible with the MIPS standard, it will cause
-        * tlbmiss and into an infinite loop (line 21 in the tlb-funcs.S)
-        * when starting the init process. After chip reset, the default
-        * is HPTLB mode, Write 0xa9000000 to cp0 register 5 sel 4 to
-        * switch back to VTLB mode to prevent getting stuck.
-        */
-       case PRID_COMP_INGENIC_D1:
-               write_c0_page_ctrl(XBURST_PAGECTRL_HPTLB_DIS);
-               break;
-       /*
-        * The config0 register in the XBurst CPUs with a processor ID of
-        * PRID_COMP_INGENIC_D0 report themselves as MIPS32r2 compatible,
-        * but they don't actually support this ISA.
-        */
-       case PRID_COMP_INGENIC_D0:
-               c->isa_level &= ~MIPS_CPU_ISA_M32R2;
+               switch (c->processor_id & PRID_COMP_MASK) {
+
+               /*
+                * The config0 register in the XBurst CPUs with a processor ID of
+                * PRID_COMP_INGENIC_D0 report themselves as MIPS32r2 compatible,
+                * but they don't actually support this ISA.
+                */
+               case PRID_COMP_INGENIC_D0:
+                       c->isa_level &= ~MIPS_CPU_ISA_M32R2;
+                       break;
+
+               /*
+                * The config0 register in the XBurst CPUs with a processor ID of
+                * PRID_COMP_INGENIC_D1 has an abandoned huge page tlb mode, this
+                * mode is not compatible with the MIPS standard, it will cause
+                * tlbmiss and into an infinite loop (line 21 in the tlb-funcs.S)
+                * when starting the init process. After chip reset, the default
+                * is HPTLB mode, Write 0xa9000000 to cp0 register 5 sel 4 to
+                * switch back to VTLB mode to prevent getting stuck.
+                */
+               case PRID_COMP_INGENIC_D1:
+                       write_c0_page_ctrl(XBURST_PAGECTRL_HPTLB_DIS);
+                       break;
+
+               default:
+                       break;
+               }
+       /* fall-through */
+       case PRID_IMP_XBURST_REV2:
+               c->cputype = CPU_XBURST;
+               c->writecombine = _CACHE_UNCACHED_ACCELERATED;
+               __cpu_name[cpu] = "Ingenic XBurst";
                break;
+
        default:
+               panic("Unknown Ingenic Processor ID!");
                break;
        }
 }