2010-02-25 02:05:58 +07:00
|
|
|
/*
|
|
|
|
* omap_hwmod common data structures
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Texas Instruments, Inc.
|
|
|
|
* Thara Gopinath <thara@ti.com>
|
2010-02-23 12:09:34 +07:00
|
|
|
* Benoît Cousson
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Nokia Corporation
|
|
|
|
* Paul Walmsley
|
2010-02-25 02:05:58 +07:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This data/structures are to be used while defining OMAP on-chip module
|
|
|
|
* data and their integration with other OMAP modules and Linux.
|
|
|
|
*/
|
|
|
|
|
2017-12-16 00:41:05 +07:00
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/platform_data/ti-sysc.h>
|
|
|
|
|
2012-10-03 07:41:35 +07:00
|
|
|
#include "omap_hwmod.h"
|
2010-02-25 02:05:58 +07:00
|
|
|
|
2010-02-23 12:09:34 +07:00
|
|
|
#include "omap_hwmod_common_data.h"
|
|
|
|
|
2010-02-25 02:05:58 +07:00
|
|
|
/**
|
|
|
|
* struct omap_hwmod_sysc_type1 - TYPE1 sysconfig scheme.
|
|
|
|
*
|
|
|
|
* To be used by hwmod structure to specify the sysconfig offsets
|
|
|
|
* if the device ip is compliant with the original PRCM protocol
|
|
|
|
* defined for OMAP2420.
|
|
|
|
*/
|
2017-12-16 00:41:05 +07:00
|
|
|
struct sysc_regbits omap_hwmod_sysc_type1 = {
|
2010-02-25 02:05:58 +07:00
|
|
|
.midle_shift = SYSC_TYPE1_MIDLEMODE_SHIFT,
|
|
|
|
.clkact_shift = SYSC_TYPE1_CLOCKACTIVITY_SHIFT,
|
|
|
|
.sidle_shift = SYSC_TYPE1_SIDLEMODE_SHIFT,
|
|
|
|
.enwkup_shift = SYSC_TYPE1_ENAWAKEUP_SHIFT,
|
|
|
|
.srst_shift = SYSC_TYPE1_SOFTRESET_SHIFT,
|
|
|
|
.autoidle_shift = SYSC_TYPE1_AUTOIDLE_SHIFT,
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* struct omap_hwmod_sysc_type2 - TYPE2 sysconfig scheme.
|
|
|
|
*
|
|
|
|
* To be used by hwmod structure to specify the sysconfig offsets if the
|
|
|
|
* device ip is compliant with the new PRCM protocol defined for new
|
|
|
|
* OMAP4 IPs.
|
|
|
|
*/
|
2017-12-16 00:41:05 +07:00
|
|
|
struct sysc_regbits omap_hwmod_sysc_type2 = {
|
2010-02-25 02:05:58 +07:00
|
|
|
.midle_shift = SYSC_TYPE2_MIDLEMODE_SHIFT,
|
|
|
|
.sidle_shift = SYSC_TYPE2_SIDLEMODE_SHIFT,
|
|
|
|
.srst_shift = SYSC_TYPE2_SOFTRESET_SHIFT,
|
2012-07-04 18:09:21 +07:00
|
|
|
.dmadisable_shift = SYSC_TYPE2_DMADISABLE_SHIFT,
|
2010-02-25 02:05:58 +07:00
|
|
|
};
|
2010-02-23 12:09:34 +07:00
|
|
|
|
2012-07-04 16:40:59 +07:00
|
|
|
/**
|
|
|
|
* struct omap_hwmod_sysc_type3 - TYPE3 sysconfig scheme.
|
|
|
|
* Used by some IPs on AM33xx
|
|
|
|
*/
|
2017-12-16 00:41:05 +07:00
|
|
|
struct sysc_regbits omap_hwmod_sysc_type3 = {
|
2012-07-04 16:40:59 +07:00
|
|
|
.midle_shift = SYSC_TYPE3_MIDLEMODE_SHIFT,
|
|
|
|
.sidle_shift = SYSC_TYPE3_SIDLEMODE_SHIFT,
|
|
|
|
};
|
|
|
|
|
2011-10-07 07:04:08 +07:00
|
|
|
struct omap_dss_dispc_dev_attr omap2_3_dss_dispc_dev_attr = {
|
|
|
|
.manager_count = 2,
|
|
|
|
.has_framedonetv_irq = 0
|
|
|
|
};
|
2017-12-16 00:41:01 +07:00
|
|
|
|
2017-12-16 00:41:05 +07:00
|
|
|
struct sysc_regbits omap34xx_sr_sysc_fields = {
|
2017-12-16 00:41:01 +07:00
|
|
|
.clkact_shift = 20,
|
|
|
|
};
|
|
|
|
|
2017-12-16 00:41:05 +07:00
|
|
|
struct sysc_regbits omap36xx_sr_sysc_fields = {
|
2017-12-16 00:41:01 +07:00
|
|
|
.sidle_shift = 24,
|
|
|
|
.enwkup_shift = 26,
|
|
|
|
};
|
|
|
|
|
2017-12-16 00:41:05 +07:00
|
|
|
struct sysc_regbits omap3_sham_sysc_fields = {
|
2017-12-16 00:41:01 +07:00
|
|
|
.sidle_shift = 4,
|
|
|
|
.srst_shift = 1,
|
|
|
|
.autoidle_shift = 0,
|
|
|
|
};
|
|
|
|
|
2017-12-16 00:41:05 +07:00
|
|
|
struct sysc_regbits omap3xxx_aes_sysc_fields = {
|
2017-12-16 00:41:01 +07:00
|
|
|
.sidle_shift = 6,
|
|
|
|
.srst_shift = 1,
|
|
|
|
.autoidle_shift = 0,
|
|
|
|
};
|
|
|
|
|
2017-12-16 00:41:05 +07:00
|
|
|
struct sysc_regbits omap_hwmod_sysc_type_mcasp = {
|
2017-12-16 00:41:01 +07:00
|
|
|
.sidle_shift = 0,
|
|
|
|
};
|
|
|
|
|
2017-12-16 00:41:05 +07:00
|
|
|
struct sysc_regbits omap_hwmod_sysc_type_usb_host_fs = {
|
2017-12-16 00:41:01 +07:00
|
|
|
.midle_shift = 4,
|
|
|
|
.sidle_shift = 2,
|
|
|
|
.srst_shift = 1,
|
|
|
|
};
|