aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r--arch/arm/plat-omap/include/plat/clock.h2
-rw-r--r--arch/arm/plat-omap/include/plat/common.h9
-rw-r--r--arch/arm/plat-omap/include/plat/cpu.h62
-rw-r--r--arch/arm/plat-omap/include/plat/io.h2
-rw-r--r--arch/arm/plat-omap/include/plat/omap_hwmod.h2
5 files changed, 10 insertions, 67 deletions
diff --git a/arch/arm/plat-omap/include/plat/clock.h b/arch/arm/plat-omap/include/plat/clock.h
index df4b9683f17f..197ca03c3f7d 100644
--- a/arch/arm/plat-omap/include/plat/clock.h
+++ b/arch/arm/plat-omap/include/plat/clock.h
@@ -80,8 +80,6 @@ struct clkops {
80 * 80 *
81 * @div is the divisor that should be applied to the parent clock's rate 81 * @div is the divisor that should be applied to the parent clock's rate
82 * to produce the current clock's rate. 82 * to produce the current clock's rate.
83 *
84 * XXX @flags probably should be replaced with an struct omap_chip.
85 */ 83 */
86struct clksel_rate { 84struct clksel_rate {
87 u32 val; 85 u32 val;
diff --git a/arch/arm/plat-omap/include/plat/common.h b/arch/arm/plat-omap/include/plat/common.h
index 4564cc697d7f..5cac97e36079 100644
--- a/arch/arm/plat-omap/include/plat/common.h
+++ b/arch/arm/plat-omap/include/plat/common.h
@@ -45,6 +45,15 @@ extern unsigned long long notrace omap_32k_sched_clock(void);
45 45
46extern void omap_reserve(void); 46extern void omap_reserve(void);
47 47
48void omap2420_init_early(void);
49void omap2430_init_early(void);
50void omap3430_init_early(void);
51void omap35xx_init_early(void);
52void omap3630_init_early(void);
53void am35xx_init_early(void);
54void ti816x_init_early(void);
55void omap4430_init_early(void);
56
48/* 57/*
49 * IO bases for various OMAP processors 58 * IO bases for various OMAP processors
50 * Except the tap base, rest all the io bases 59 * Except the tap base, rest all the io bases
diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h
index ddbc0254e3f6..2f9026942229 100644
--- a/arch/arm/plat-omap/include/plat/cpu.h
+++ b/arch/arm/plat-omap/include/plat/cpu.h
@@ -44,13 +44,6 @@
44 44
45int omap_type(void); 45int omap_type(void);
46 46
47struct omap_chip_id {
48 u16 oc;
49 u8 type;
50};
51
52#define OMAP_CHIP_INIT(x) { .oc = x }
53
54/* 47/*
55 * omap_rev bits: 48 * omap_rev bits:
56 * CPU id bits (0730, 1510, 1710, 2422...) [31:16] 49 * CPU id bits (0730, 1510, 1710, 2422...) [31:16]
@@ -402,61 +395,6 @@ IS_OMAP_TYPE(3517, 0x3517)
402#define OMAP446X_CLASS 0x44600044 395#define OMAP446X_CLASS 0x44600044
403#define OMAP4460_REV_ES1_0 (OMAP446X_CLASS | (0x10 << 8)) 396#define OMAP4460_REV_ES1_0 (OMAP446X_CLASS | (0x10 << 8))
404 397
405/*
406 * omap_chip bits
407 *
408 * CHIP_IS_OMAP{2420,2430,3430} indicate that a particular structure is
409 * valid on all chips of that type. CHIP_IS_OMAP3430ES{1,2} indicates
410 * something that is only valid on that particular ES revision.
411 *
412 * These bits may be ORed together to indicate structures that are
413 * available on multiple chip types.
414 *
415 * To test whether a particular structure matches the current OMAP chip type,
416 * use omap_chip_is().
417 *
418 */
419#define CHIP_IS_OMAP2420 (1 << 0)
420#define CHIP_IS_OMAP2430 (1 << 1)
421#define CHIP_IS_OMAP3430 (1 << 2)
422#define CHIP_IS_OMAP3430ES1 (1 << 3)
423#define CHIP_IS_OMAP3430ES2 (1 << 4)
424#define CHIP_IS_OMAP3430ES3_0 (1 << 5)
425#define CHIP_IS_OMAP3430ES3_1 (1 << 6)
426#define CHIP_IS_OMAP3630ES1 (1 << 7)
427#define CHIP_IS_OMAP4430ES1 (1 << 8)
428#define CHIP_IS_OMAP3630ES1_1 (1 << 9)
429#define CHIP_IS_OMAP3630ES1_2 (1 << 10)
430#define CHIP_IS_OMAP4430ES2 (1 << 11)
431#define CHIP_IS_OMAP4430ES2_1 (1 << 12)
432#define CHIP_IS_OMAP4430ES2_2 (1 << 13)
433#define CHIP_IS_TI816X (1 << 14)
434#define CHIP_IS_OMAP4460ES1_0 (1 << 15)
435
436#define CHIP_IS_OMAP24XX (CHIP_IS_OMAP2420 | CHIP_IS_OMAP2430)
437
438#define CHIP_IS_OMAP4430 (CHIP_IS_OMAP4430ES1 | \
439 CHIP_IS_OMAP4430ES2 | \
440 CHIP_IS_OMAP4430ES2_1 | \
441 CHIP_IS_OMAP4430ES2_2 | \
442 CHIP_IS_OMAP4460ES1_0)
443
444/*
445 * "GE" here represents "greater than or equal to" in terms of ES
446 * levels. So CHIP_GE_OMAP3430ES2 is intended to match all OMAP3430
447 * chips at ES2 and beyond, but not, for example, any OMAP lines after
448 * OMAP3.
449 */
450#define CHIP_GE_OMAP3430ES2 (CHIP_IS_OMAP3430ES2 | \
451 CHIP_IS_OMAP3430ES3_0 | \
452 CHIP_GE_OMAP3430ES3_1)
453#define CHIP_GE_OMAP3430ES3_1 (CHIP_IS_OMAP3430ES3_1 | \
454 CHIP_IS_OMAP3630ES1 | \
455 CHIP_GE_OMAP3630ES1_1)
456#define CHIP_GE_OMAP3630ES1_1 (CHIP_IS_OMAP3630ES1_1 | \
457 CHIP_IS_OMAP3630ES1_2)
458
459int omap_chip_is(struct omap_chip_id oci);
460void omap2_check_revision(void); 398void omap2_check_revision(void);
461 399
462/* 400/*
diff --git a/arch/arm/plat-omap/include/plat/io.h b/arch/arm/plat-omap/include/plat/io.h
index d72ec85c97e6..75311fc9c018 100644
--- a/arch/arm/plat-omap/include/plat/io.h
+++ b/arch/arm/plat-omap/include/plat/io.h
@@ -300,7 +300,7 @@ static inline void omap44xx_map_common_io(void)
300#endif 300#endif
301 301
302extern void omap2_init_common_infrastructure(void); 302extern void omap2_init_common_infrastructure(void);
303extern void omap2_init_common_devices(struct omap_sdrc_params *sdrc_cs0, 303extern void omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0,
304 struct omap_sdrc_params *sdrc_cs1); 304 struct omap_sdrc_params *sdrc_cs1);
305 305
306#define __arch_ioremap omap_ioremap 306#define __arch_ioremap omap_ioremap
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h
index 38ac4af4d1be..5419f1a2aaa4 100644
--- a/arch/arm/plat-omap/include/plat/omap_hwmod.h
+++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h
@@ -496,7 +496,6 @@ struct omap_hwmod_class {
496 * @_state: internal-use hwmod state 496 * @_state: internal-use hwmod state
497 * @_postsetup_state: internal-use state to leave the hwmod in after _setup() 497 * @_postsetup_state: internal-use state to leave the hwmod in after _setup()
498 * @flags: hwmod flags (documented below) 498 * @flags: hwmod flags (documented below)
499 * @omap_chip: OMAP chips this hwmod is present on
500 * @_lock: spinlock serializing operations on this hwmod 499 * @_lock: spinlock serializing operations on this hwmod
501 * @node: list node for hwmod list (internal use) 500 * @node: list node for hwmod list (internal use)
502 * 501 *
@@ -544,7 +543,6 @@ struct omap_hwmod {
544 u8 _int_flags; 543 u8 _int_flags;
545 u8 _state; 544 u8 _state;
546 u8 _postsetup_state; 545 u8 _postsetup_state;
547 const struct omap_chip_id omap_chip;
548}; 546};
549 547
550int omap_hwmod_register(struct omap_hwmod **ohs); 548int omap_hwmod_register(struct omap_hwmod **ohs);