Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 26e3db2 in mainline for kernel/arch/arm32/include/cp15.h


Ignore:
Timestamp:
2013-01-19T18:50:56Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial
Children:
612edca
Parents:
a03b609
Message:

arm32: Switch cpu identification to cp15 helpers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/cp15.h

    ra03b609 r26e3db2  
    5555
    5656/* Identification registers */
     57enum {
     58        MIDR_IMPLEMENTER_MASK = 0xff,
     59        MIDR_IMPLEMENTER_SHIFT = 24,
     60        MIDR_VARIANT_MASK = 0xf,
     61        MIDR_VARIANT_SHIFT = 20,
     62        MIDR_ARCHITECTURE_MASK = 0xf,
     63        MIDR_ARCHITECTURE_SHIFT = 16,
     64        MIDR_PART_NUMBER_MASK = 0xfff,
     65        MIDR_PART_NUMBER_SHIFT = 4,
     66        MIDR_REVISION_MASK = 0xf,
     67        MIDR_REVISION_SHIFT = 0,
     68};
    5769CONTROL_REG_GEN_READ(MIDR, c0, 0, c0, 0);
    5870CONTROL_REG_GEN_READ(CTR, c0, 0, c0, 1);
Note: See TracChangeset for help on using the changeset viewer.