forked from luck/tmp_suning_uos_patched
64dbc3d55d
We can now init system timers using the dmtimer and 32k counter based on only devicetree data and drivers/clocksource timers. Let's configure the clocksource and clockevent, and drop the old unused platform data. As we're just dropping platform data, and the early platform data init is based on the custom ti,hwmods property, we want to drop both the platform data and ti,hwmods property in a single patch. Since the dmtimer can use both 32k clock and system clock as the source, let's also configure the SoC specific default values. The board specific dts files can reconfigure these with assigned-clocks and assigned-clock-parents as needed. Let's also update the dts file to use #include while at it. Cc: devicetree@vger.kernel.org Cc: Aaro Koskinen <aaro.koskinen@iki.fi> Cc: Grygorii Strashko <grygorii.strashko@ti.com> Cc: Keerthy <j-keerthy@ti.com> Cc: Lokesh Vutla <lokeshvutla@ti.com> Cc: Rob Herring <robh@kernel.org> Cc: Tero Kristo <t-kristo@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
104 lines
4.5 KiB
C
104 lines
4.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* omap_hwmod_common_data.h - OMAP hwmod common macros and declarations
|
|
*
|
|
* Copyright (C) 2010-2011 Nokia Corporation
|
|
* Copyright (C) 2010-2012 Texas Instruments, Inc.
|
|
* Paul Walmsley
|
|
* Benoît Cousson
|
|
*/
|
|
#ifndef __ARCH_ARM_MACH_OMAP2_OMAP_HWMOD_COMMON_DATA_H
|
|
#define __ARCH_ARM_MACH_OMAP2_OMAP_HWMOD_COMMON_DATA_H
|
|
|
|
#include "omap_hwmod.h"
|
|
|
|
#include "common.h"
|
|
#include "display.h"
|
|
|
|
/* Common IP block data across OMAP2xxx */
|
|
extern struct omap_hwmod omap2xxx_l3_main_hwmod;
|
|
extern struct omap_hwmod omap2xxx_l4_core_hwmod;
|
|
extern struct omap_hwmod omap2xxx_l4_wkup_hwmod;
|
|
extern struct omap_hwmod omap2xxx_mpu_hwmod;
|
|
extern struct omap_hwmod omap2xxx_iva_hwmod;
|
|
extern struct omap_hwmod omap2xxx_timer3_hwmod;
|
|
extern struct omap_hwmod omap2xxx_timer4_hwmod;
|
|
extern struct omap_hwmod omap2xxx_timer5_hwmod;
|
|
extern struct omap_hwmod omap2xxx_timer6_hwmod;
|
|
extern struct omap_hwmod omap2xxx_timer7_hwmod;
|
|
extern struct omap_hwmod omap2xxx_timer8_hwmod;
|
|
extern struct omap_hwmod omap2xxx_timer9_hwmod;
|
|
extern struct omap_hwmod omap2xxx_timer10_hwmod;
|
|
extern struct omap_hwmod omap2xxx_timer11_hwmod;
|
|
extern struct omap_hwmod omap2xxx_timer12_hwmod;
|
|
extern struct omap_hwmod omap2xxx_wd_timer2_hwmod;
|
|
extern struct omap_hwmod omap2xxx_uart1_hwmod;
|
|
extern struct omap_hwmod omap2xxx_uart2_hwmod;
|
|
extern struct omap_hwmod omap2xxx_uart3_hwmod;
|
|
extern struct omap_hwmod omap2xxx_dss_core_hwmod;
|
|
extern struct omap_hwmod omap2xxx_dss_dispc_hwmod;
|
|
extern struct omap_hwmod omap2xxx_dss_rfbi_hwmod;
|
|
extern struct omap_hwmod omap2xxx_dss_venc_hwmod;
|
|
extern struct omap_hwmod omap2xxx_gpio1_hwmod;
|
|
extern struct omap_hwmod omap2xxx_gpio2_hwmod;
|
|
extern struct omap_hwmod omap2xxx_gpio3_hwmod;
|
|
extern struct omap_hwmod omap2xxx_gpio4_hwmod;
|
|
extern struct omap_hwmod omap2xxx_mcspi1_hwmod;
|
|
extern struct omap_hwmod omap2xxx_mcspi2_hwmod;
|
|
extern struct omap_hwmod omap2xxx_gpmc_hwmod;
|
|
extern struct omap_hwmod omap2xxx_rng_hwmod;
|
|
extern struct omap_hwmod omap2xxx_sham_hwmod;
|
|
extern struct omap_hwmod omap2xxx_aes_hwmod;
|
|
|
|
/* Common interface data across OMAP2xxx */
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l3_main__l4_core;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_mpu__l3_main;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_dss__l3;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__l4_wkup;
|
|
extern struct omap_hwmod_ocp_if omap2_l4_core__uart1;
|
|
extern struct omap_hwmod_ocp_if omap2_l4_core__uart2;
|
|
extern struct omap_hwmod_ocp_if omap2_l4_core__uart3;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi1;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi2;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer2;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer3;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer4;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer5;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer6;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer7;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer8;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer9;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer10;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer11;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer12;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__dss;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_dispc;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_rfbi;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_venc;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__rng;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__sham;
|
|
extern struct omap_hwmod_ocp_if omap2xxx_l4_core__aes;
|
|
|
|
/* OMAP hwmod classes - forward declarations */
|
|
extern struct omap_hwmod_class l3_hwmod_class;
|
|
extern struct omap_hwmod_class l4_hwmod_class;
|
|
extern struct omap_hwmod_class mpu_hwmod_class;
|
|
extern struct omap_hwmod_class iva_hwmod_class;
|
|
extern struct omap_hwmod_class omap2_uart_class;
|
|
extern struct omap_hwmod_class omap2_dss_hwmod_class;
|
|
extern struct omap_hwmod_class omap2_dispc_hwmod_class;
|
|
extern struct omap_hwmod_class omap2_rfbi_hwmod_class;
|
|
extern struct omap_hwmod_class omap2_venc_hwmod_class;
|
|
extern struct omap_hwmod_class_sysconfig omap2_hdq1w_sysc;
|
|
extern struct omap_hwmod_class omap2_hdq1w_class;
|
|
|
|
extern struct omap_hwmod_class omap2xxx_timer_hwmod_class;
|
|
extern struct omap_hwmod_class omap2xxx_wd_timer_hwmod_class;
|
|
extern struct omap_hwmod_class omap2xxx_gpio_hwmod_class;
|
|
extern struct omap_hwmod_class omap2xxx_mailbox_hwmod_class;
|
|
extern struct omap_hwmod_class omap2xxx_mcspi_class;
|
|
|
|
extern struct omap_dss_dispc_dev_attr omap2_3_dss_dispc_dev_attr;
|
|
|
|
#endif
|