1. 02 6月, 2015 1 次提交
  2. 14 10月, 2013 3 次提交
    • A
      ARM: OMAP2+: hwmod: AM43x support · 6913952f
      Afzal Mohammed 提交于
      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: NAfzal Mohammed <afzal@ti.com>
      Acked-by: NRajendra Nayak <rnayak@ti.com>
      Acked-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      6913952f
    • A
      ARM: OMAP2+: hwmod: AM335x: runtime register update · 1c7e224d
      Afzal Mohammed 提交于
      Most of IP's in AM335x is present on AM43x and so in those cases both
      will use same hwmod database (except for a few cases where clock related
      details differ), but there is difference w.r.t register offset between
      these. Update register offsets at runtime based on the SoC detected to
      help in sharing otherwise same hwmod.
      Signed-off-by: NAfzal Mohammed <afzal@ti.com>
      Acked-by: NRajendra Nayak <rnayak@ti.com>
      Acked-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      1c7e224d
    • A
      ARM: OMAP2+: hwmod: AM335x/AM43x: move common data · 26649467
      Afzal Mohammed 提交于
      AM335x and AM43x have most of the IP's and interconnect's similar.
      Instead of adding redundant hwmod data, move interconnects and hwmod
      similar between AM335x and AM43x to a common location. This helps in
      reuse on AM43x.
      
      AM335x interconnects that has difference and not present in AM43x are
      not moved. ocp clock of those in l4_wkup is fed from a different source
      for AM43x. Also pruss interconnect is different.
      
      AM335x hwmod's that has difference other than prcm register offsets
      (difference is in clocks of wkup_m3, control, gpio0, debugss and clock
      domain of l4_hs, adc_tsc as compared to AM43x) and those that are not
      present in AM43x are not moved.
      Signed-off-by: NAfzal Mohammed <afzal@ti.com>
      Acked-by: NRajendra Nayak <rnayak@ti.com>
      Acked-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      26649467