ti_cpuid.h (cfe30d02adda7c3b5c76156ac52d50d8cab325d9) | ti_cpuid.h (56d8b96cbc3bd204e30061ff5c554f0c9acb3662) |
---|---|
1/*- 2 * Copyright (c) 2011 3 * Ben Gray <ben.r.gray@gmail.com>. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 53 unchanged lines hidden (view full) --- 62#define OMAP4470_DEV 0x4470 63#define OMAP4470_REV_ES1_0 OMAP_MAKEREV(OMAP4470_DEV, 1, 0, 0) 64#define OMAP4470_REV_UNKNOWN OMAP_MAKEREV(OMAP4470_DEV, 9, 9, 9) 65 66#define OMAP_UNKNOWN_DEV OMAP_MAKEREV(0x9999, 9, 9, 9) 67 68#define AM335X_DEVREV(x) ((x) >> 28) 69 | 1/*- 2 * Copyright (c) 2011 3 * Ben Gray <ben.r.gray@gmail.com>. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 53 unchanged lines hidden (view full) --- 62#define OMAP4470_DEV 0x4470 63#define OMAP4470_REV_ES1_0 OMAP_MAKEREV(OMAP4470_DEV, 1, 0, 0) 64#define OMAP4470_REV_UNKNOWN OMAP_MAKEREV(OMAP4470_DEV, 9, 9, 9) 65 66#define OMAP_UNKNOWN_DEV OMAP_MAKEREV(0x9999, 9, 9, 9) 67 68#define AM335X_DEVREV(x) ((x) >> 28) 69 |
70#define CHIP_OMAP_3 0 71#define CHIP_OMAP_4 1 72#define CHIP_AM335X 2 | 70#define CHIP_OMAP_4 0 71#define CHIP_AM335X 1 |
73 74static __inline int ti_chip(void) 75{ 76#if defined(SOC_OMAP4) 77 return CHIP_OMAP_4; | 72 73static __inline int ti_chip(void) 74{ 75#if defined(SOC_OMAP4) 76 return CHIP_OMAP_4; |
78#elif defined(SOC_OMAP3) 79 return CHIP_OMAP_3; | |
80#elif defined(SOC_TI_AM335X) 81 return CHIP_AM335X; 82#else 83# error Chip type not defined, ensure SOC_xxxx is defined 84#endif 85} 86 87uint32_t ti_revision(void); 88 89#endif /* _TI_CPUID_H_ */ | 77#elif defined(SOC_TI_AM335X) 78 return CHIP_AM335X; 79#else 80# error Chip type not defined, ensure SOC_xxxx is defined 81#endif 82} 83 84uint32_t ti_revision(void); 85 86#endif /* _TI_CPUID_H_ */ |