Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * omap_hwmod_2xxx_3xxx_ipblock_data.c - common IP block data for OMAP2/3
0004  *
0005  * Copyright (C) 2011 Nokia Corporation
0006  * Copyright (C) 2012 Texas Instruments, Inc.
0007  * Paul Walmsley
0008  */
0009 
0010 #include <linux/dmaengine.h>
0011 #include <linux/omap-dma.h>
0012 
0013 #include "omap_hwmod.h"
0014 #include "hdq1w.h"
0015 
0016 #include "omap_hwmod_common_data.h"
0017 
0018 /* UART */
0019 
0020 static struct omap_hwmod_class_sysconfig omap2_uart_sysc = {
0021     .rev_offs   = 0x50,
0022     .sysc_offs  = 0x54,
0023     .syss_offs  = 0x58,
0024     .sysc_flags = (SYSC_HAS_SIDLEMODE |
0025                SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
0026                SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
0027     .idlemodes  = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
0028     .sysc_fields    = &omap_hwmod_sysc_type1,
0029 };
0030 
0031 struct omap_hwmod_class omap2_uart_class = {
0032     .name   = "uart",
0033     .sysc   = &omap2_uart_sysc,
0034 };
0035 
0036 /*
0037  * 'venc' class
0038  * video encoder
0039  */
0040 
0041 struct omap_hwmod_class omap2_venc_hwmod_class = {
0042     .name = "venc",
0043 };
0044 
0045 /*
0046  * omap_hwmod class data
0047  */
0048 
0049 struct omap_hwmod_class l3_hwmod_class = {
0050     .name = "l3",
0051 };
0052 
0053 struct omap_hwmod_class l4_hwmod_class = {
0054     .name = "l4",
0055 };
0056 
0057 struct omap_hwmod_class mpu_hwmod_class = {
0058     .name = "mpu",
0059 };
0060 
0061 struct omap_hwmod_class iva_hwmod_class = {
0062     .name = "iva",
0063 };
0064 
0065 struct omap_hwmod_class_sysconfig omap2_hdq1w_sysc = {
0066     .rev_offs   = 0x0,
0067     .sysc_offs  = 0x14,
0068     .syss_offs  = 0x18,
0069     .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
0070                SYSS_HAS_RESET_STATUS),
0071     .sysc_fields    = &omap_hwmod_sysc_type1,
0072 };
0073 
0074 struct omap_hwmod_class omap2_hdq1w_class = {
0075     .name   = "hdq1w",
0076     .sysc   = &omap2_hdq1w_sysc,
0077     .reset  = &omap_hdq1w_reset,
0078 };