2013-10-12 18:14:46 +08:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013 Texas Instruments Incorporated
|
|
|
|
*
|
|
|
|
* Data common for AM335x and AM43x
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation version 2.
|
|
|
|
*
|
|
|
|
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
|
|
|
|
* kind, whether express or implied; without even the implied warranty
|
|
|
|
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ARCH_ARM_MACH_OMAP2_OMAP_HWMOD_33XX_43XX_COMMON_DATA_H
|
|
|
|
#define __ARCH_ARM_MACH_OMAP2_OMAP_HWMOD_33XX_43XX_COMMON_DATA_H
|
|
|
|
|
|
|
|
extern struct omap_hwmod_ocp_if am33xx_mpu__l3_main;
|
|
|
|
extern struct omap_hwmod_ocp_if am33xx_l3_main__l3_s;
|
|
|
|
extern struct omap_hwmod_ocp_if am33xx_l3_s__l4_ls;
|
|
|
|
extern struct omap_hwmod_ocp_if am33xx_l3_s__l4_wkup;
|
|
|
|
extern struct omap_hwmod_ocp_if am33xx_l3_main__l3_instr;
|
|
|
|
extern struct omap_hwmod_ocp_if am33xx_mpu__prcm;
|
|
|
|
extern struct omap_hwmod_ocp_if am33xx_l3_s__l3_main;
|
|
|
|
extern struct omap_hwmod_ocp_if am33xx_gfx__l3_main;
|
|
|
|
extern struct omap_hwmod_ocp_if am33xx_l3_main__gfx;
|
|
|
|
extern struct omap_hwmod_ocp_if am33xx_l4_wkup__rtc;
|
|
|
|
extern struct omap_hwmod_ocp_if am33xx_l3_s__gpmc;
|
|
|
|
extern struct omap_hwmod_ocp_if am33xx_l4_ls__timer2;
|
|
|
|
extern struct omap_hwmod_ocp_if am33xx_l3_main__ocmc;
|
|
|
|
|
|
|
|
extern struct omap_hwmod am33xx_l3_main_hwmod;
|
|
|
|
extern struct omap_hwmod am33xx_l3_s_hwmod;
|
|
|
|
extern struct omap_hwmod am33xx_l3_instr_hwmod;
|
|
|
|
extern struct omap_hwmod am33xx_l4_ls_hwmod;
|
|
|
|
extern struct omap_hwmod am33xx_l4_wkup_hwmod;
|
|
|
|
extern struct omap_hwmod am33xx_mpu_hwmod;
|
|
|
|
extern struct omap_hwmod am33xx_gfx_hwmod;
|
|
|
|
extern struct omap_hwmod am33xx_prcm_hwmod;
|
|
|
|
extern struct omap_hwmod am33xx_ocmcram_hwmod;
|
|
|
|
extern struct omap_hwmod am33xx_smartreflex0_hwmod;
|
|
|
|
extern struct omap_hwmod am33xx_smartreflex1_hwmod;
|
|
|
|
extern struct omap_hwmod am33xx_gpmc_hwmod;
|
|
|
|
extern struct omap_hwmod am33xx_rtc_hwmod;
|
|
|
|
|
2015-06-02 09:22:11 +08:00
|
|
|
extern struct omap_hwmod_class am33xx_emif_hwmod_class;
|
2013-10-12 18:14:46 +08:00
|
|
|
extern struct omap_hwmod_class am33xx_l4_hwmod_class;
|
|
|
|
extern struct omap_hwmod_class am33xx_wkup_m3_hwmod_class;
|
|
|
|
extern struct omap_hwmod_class am33xx_control_hwmod_class;
|
|
|
|
extern struct omap_hwmod_class am33xx_timer_hwmod_class;
|
|
|
|
extern struct omap_hwmod_class am33xx_ehrpwm_hwmod_class;
|
|
|
|
extern struct omap_hwmod_class am33xx_spi_hwmod_class;
|
|
|
|
|
2013-10-12 18:15:26 +08:00
|
|
|
void omap_hwmod_am33xx_reg(void);
|
ARM: OMAP2+: hwmod: AM43x support
Add hwmod support for IP's that are present in AM43x, but not in AM335x.
AM43x additional ones added here are,
1. synctimer
2. timer8-11
3. ehrpwm3-5
4. spi2-4
5. gpio4-5
AM43x pruss interconnect which is different as compared to AM335x, has
been taken care.
And register offsets for same hwmod's shared with AM335x is different,
AM43x register offsets are updated appropriately.
ocp clock of those in l4_wkup is fed from "sys_clkin_ck" instead of
"dpll_core_m4_div2_ck", so "ocpif" for those in AM43x l4_wkup has been
added seperately.
hwmod's has been added for those that have main clock (wkup_m3, control,
gpio0) and clock domain (l4_hs) different from AM335x. debugss and
adc_tsc that have different clocks and clockdomains repectively has not
been added due to the reasons mentioned below.
AM43x also has IP's like qspi, hdq1w, vpfe, des, rng, usb, dss, debugss,
adc_tsc. These are not handled here due to both/either of following
reasons,
1. To avoid churn; most of them don't have DT bindings, which would
necessitate adding address space in hwmod, which any way would have
to be removed once DT bindings happen with driver support.
2. patches would come in from sources other than the author
Signed-off-by: Afzal Mohammed <afzal@ti.com>
Acked-by: Rajendra Nayak <rnayak@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
2013-10-12 18:16:12 +08:00
|
|
|
void omap_hwmod_am43xx_reg(void);
|
2013-10-12 18:15:26 +08:00
|
|
|
|
2013-10-12 18:14:46 +08:00
|
|
|
#endif
|