1. 15 12月, 2017 1 次提交
  2. 26 10月, 2017 2 次提交
  3. 11 10月, 2017 3 次提交
    • T
      ARM: OMAP2+: Drop legacy struct omap_hwmod_addr_space · 9cffb1a0
      Tony Lindgren 提交于
      With all of mach-omap2 booting now in device tree only mode,
      we can get the module IO range from device tree and just drop
      the legacy hwmod struct omap_hwmod_addr_space.
      
      Cc: Lokesh Vutla <lokeshvutla@ti.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Cc: Tero Kristo <t-kristo@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      9cffb1a0
    • T
      ARM: OMAP2+: Drop omap_hwmod_dma_info · c2b84a9b
      Tony Lindgren 提交于
      We have all of mach-omap2 booting in device tree only
      mode now, and this data is populated from device tree.
      
      Note that once we have removed support for the omap legacy
      DMA, we can also drop struct omap_dma_dev_attr.
      
      Cc: Lokesh Vutla <lokeshvutla@ti.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Cc: Tero Kristo <t-kristo@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      c2b84a9b
    • T
      ARM: OMAP2+: Drop omap_hwmod_irq_info · fe97874a
      Tony Lindgren 提交于
      With the previous patches removing the need for legacy IRQs
      now that all of mach-omap2 is booting in device tree only mode,
      we can drop struct omap_hwmod_irq_info.
      
      Note that we can now also finally drop omap4_xlate_irq.
      
      Cc: Lokesh Vutla <lokeshvutla@ti.com>
      Cc: Marc Zyngier <marc.zyngier@arm.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Cc: Tero Kristo <t-kristo@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      fe97874a
  4. 08 6月, 2017 1 次提交
  5. 15 3月, 2017 1 次提交
  6. 05 3月, 2017 2 次提交
    • G
      ARM: OMAP2+: Release device node after it is no longer needed. · b92675d9
      Guenter Roeck 提交于
      The device node returned by of_find_node_by_name() needs to be released
      after it is no longer needed to avoid a device node leak.
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      b92675d9
    • G
      ARM: OMAP2+: Fix device node reference counts · 10e5778f
      Guenter Roeck 提交于
      After commit 0549bde0 ("of: fix of_node leak caused in
      of_find_node_opts_by_path"), the following error may be
      reported when running omap images.
      
      OF: ERROR: Bad of_node_put() on /ocp@68000000
      CPU: 0 PID: 0 Comm: swapper Not tainted 4.10.0-rc7-next-20170210 #1
      Hardware name: Generic OMAP3-GP (Flattened Device Tree)
      [<c0310604>] (unwind_backtrace) from [<c030bbf4>] (show_stack+0x10/0x14)
      [<c030bbf4>] (show_stack) from [<c05add8c>] (dump_stack+0x98/0xac)
      [<c05add8c>] (dump_stack) from [<c05af1b0>] (kobject_release+0x48/0x7c)
      [<c05af1b0>] (kobject_release)
      	from [<c0ad1aa4>] (of_find_node_by_name+0x74/0x94)
      [<c0ad1aa4>] (of_find_node_by_name)
      	from [<c1215bd4>] (omap3xxx_hwmod_is_hs_ip_block_usable+0x24/0x2c)
      [<c1215bd4>] (omap3xxx_hwmod_is_hs_ip_block_usable) from
      [<c1215d5c>] (omap3xxx_hwmod_init+0x180/0x274)
      [<c1215d5c>] (omap3xxx_hwmod_init)
      	from [<c120faa8>] (omap3_init_early+0xa0/0x11c)
      [<c120faa8>] (omap3_init_early)
      	from [<c120fb2c>] (omap3430_init_early+0x8/0x30)
      [<c120fb2c>] (omap3430_init_early)
      	from [<c1204710>] (setup_arch+0xc04/0xc34)
      [<c1204710>] (setup_arch) from [<c1200948>] (start_kernel+0x68/0x38c)
      [<c1200948>] (start_kernel) from [<8020807c>] (0x8020807c)
      
      of_find_node_by_name() drops the reference to the passed device node.
      The commit referenced above exposes this problem.
      
      To fix the problem, use of_get_child_by_name() instead of
      of_find_node_by_name(); of_get_child_by_name() does not drop
      the reference count of passed device nodes. While semantically
      different, we only look for immediate children of the passed
      device node, so of_get_child_by_name() is a more appropriate
      function to use anyway.
      
      Release the reference to the device node obtained with
      of_get_child_by_name() after it is no longer needed to avoid
      another device node leak.
      
      While at it, clean up the code and change the return type of
      omap3xxx_hwmod_is_hs_ip_block_usable() to bool to match its use
      and the return type of of_device_is_available().
      
      Cc: Qi Hou <qi.hou@windriver.com>
      Cc: Peter Rosin <peda@axentia.se>
      Cc: Rob Herring <robh@kernel.org>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      10e5778f
  7. 15 2月, 2017 1 次提交
    • T
      ARM: OMAP3: Fix smartreflex platform data regression · 17912508
      Tony Lindgren 提交于
      Commit d9d9cec0 ("ARM: OMAP2+: Remove legacy data from hwmod for
      omap3") dropped platform data that should no longer be used as we're
      booting with device tree. It turns out that smartreflex is still
      using platform data and produces the following errors during probe:
      
      smartreflex smartreflex.0: invalid resource
      smartreflex smartreflex.0: omap_sr_probe: ioremap fail
      smartreflex: probe of smartreflex.0 failed with error -22
      smartreflex smartreflex.1: invalid resource
      smartreflex smartreflex.1: omap_sr_probe: ioremap fail
      smartreflex: probe of smartreflex.1 failed with error -22
      
      Let's fix the regression by adding back the smartreflex hwmod data.
      The long term is to update the smartreflex driver to use device tree
      based probing.
      
      Fixes: d9d9cec0 ("ARM: OMAP2+: Remove legacy data from hwmod
      for omap3")
      Reported-by: NAdam Ford <aford173@gmail.com>
      Tested-by: NAdam Ford <aford173@gmail.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      17912508
  8. 11 11月, 2016 1 次提交
    • T
      ARM: OMAP2+: Remove legacy data from hwmod for omap3 · d9d9cec0
      Tony Lindgren 提交于
      This data is now coming from device tree so we can remove the
      duplicate data. Let's keep the DSS and DMA related things for now
      until those have been converted to device tree completely.
      
      While at it, let's also add the trailing commas to data structures
      so further processing with scripts will be a bit easier.
      
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      d9d9cec0
  9. 23 7月, 2016 1 次提交
  10. 10 6月, 2016 1 次提交
    • P
      ARM: OMAP3: hwmod data: Fix McBSP2/3 sidetone data · 3b80c9be
      Peter Ujfalusi 提交于
      The McBSPLP's sidetone main clock is the McBSPLP's ICLK, not FCLK as the
      sidetone only receives the ICLK from the main McBSP module.
      Since the McBSP and sidetone is using the very same clock from PRCM level
      the sidetone must not have the prcm section to check the clock status since
      the sidetone is only used when McBSP is already configured.
      If two separate hwmods looking at the same bit and they would use
      pm_runtime in nested way (as it must happen with McBSP and it's ST module)
      the hwmod would warn, because the idlest will not match what it is expected
      after enable/disable of the clocks.
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      3b80c9be
  11. 03 2月, 2016 1 次提交
  12. 01 12月, 2015 1 次提交
  13. 24 10月, 2015 1 次提交
  14. 02 6月, 2015 2 次提交
    • P
      ARM: OMAP3: Fix crypto support for HS devices · a55a7445
      Pali Rohár 提交于
      Register crypto hwmod links only if they are not disabled in DT.
      If DT information is missing, enable them only for GP devices.
      
      Before this patch crypto hwmod links were always disabled for all HS
      devices and it was not possible to use omap-aes and omap-sham linux
      drivers.
      Signed-off-by: NPali Rohár <pali.rohar@gmail.com>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      [paul@pwsan.com: move the complex IP-block presence heuristics into their
       own function to simplify the code; fix some checkpatch warnings]
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      a55a7445
    • T
      memory: omap-gpmc: Add Kconfig option for debug · 63aa945b
      Tony Lindgren 提交于
      We support decoding the bootloader values if DEBUG is defined.
      But we also need to change the struct omap_hwmod flags to have
      HWMOD_INIT_NO_RESET to avoid the GPMC being reset during the
      boot. Otherwise just the default timings will be displayed
      instead of the bootloader configured timings.
      
      This also allows us to clean up the various GPMC related
      hwmod flags. For debugging, we only need HWMOD_INIT_NO_RESET,
      and HWMOD_INIT_NO_IDLE is not needed.
      
      Cc: Brian Hutchinson <b.hutchman@gmail.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Cc: Roger Quadros <rogerq@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      63aa945b
  15. 14 1月, 2015 1 次提交
  16. 26 11月, 2014 2 次提交
    • A
      ARM: OMAP1/2+: MMC: separate platform data for mmc and mmc hs driver · 55143438
      Andreas Fenkart 提交于
      - omap mmc driver supports multiplexing, omap_mmc_hs doesn't
      this leads to one of the major confusions in the omap_hsmmc driver
      
      - platform data should be read-only for the driver
      most callbacks are not set by the omap3 platform init code while still
      required. So they are set from the driver probe function, which is against
      the paradigm that platform-data should not be modified by the driver
      typical examples are card_detect, read_only callbacks
      
      un-bundling by searching for driver name \"omap_hsmmc in the
      arch/arm folder. omap_hsmmc_platform_data is not initialized directly,
      but from omap2_hsmmc_info, which is defined in a separate header file
      not touched by this patch
      
      hwmod includes platform headers to declare features of the platform. All
      the declared features are prefixed OMAP_HSMMC. There is no need to
      include platform header from hwmod other except for feature defines
      Acked-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NAndreas Fenkart <afenkart@gmail.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      55143438
    • A
      ARM: OMAP2: MMC: include mmc-omap platform header directly · 826c71a0
      Andreas Fenkart 提交于
      Only a few files really need that platform header. When later splitting
      omap_mmc_platform_data into omap_mmc and omap_mmc_hs, those files
      declaring an hs mmc platform data will have to change the platform
      include, which is a good sanity check.
      Also removing omap242x_init_mmc, which is not used anywhere, checked
      with grep.
      Signed-off-by: NAndreas Fenkart <afenkart@gmail.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      826c71a0
  17. 18 9月, 2014 2 次提交
  18. 29 7月, 2014 1 次提交
  19. 28 5月, 2014 1 次提交
  20. 12 4月, 2014 1 次提交
  21. 14 3月, 2014 1 次提交
  22. 13 3月, 2014 2 次提交
  23. 26 12月, 2013 1 次提交
    • S
      ARM: OMAP2+: hwmod_data: fix missing OMAP_INTC_START in irq data · 6d4c8830
      Suman Anna 提交于
      Commit 7d7e1eba (ARM: OMAP2+: Prepare for irqs.h removal) and commit
      ec2c0825 (ARM: OMAP2+: Remove hardcoded IRQs and enable SPARSE_IRQ)
      updated the way interrupts for OMAP2/3 devices are defined in the
      HWMOD data structures to being an index plus a fixed offset (defined
      by OMAP_INTC_START).
      
      Couple of irqs in the OMAP2/3 hwmod data were misconfigured completely
      as they were missing this OMAP_INTC_START relative offset. Add this
      offset back to fix the incorrect irq data for the following modules:
      	OMAP2 - GPMC, RNG
      	OMAP3 - GPMC, ISP MMU & IVA MMU
      Signed-off-by: NSuman Anna <s-anna@ti.com>
      Fixes: 7d7e1eba ("ARM: OMAP2+: Prepare for irqs.h removal")
      Fixes: ec2c0825 ("ARM: OMAP2+: Remove hardcoded IRQs and enable SPARSE_IRQ")
      Cc: Tony Lindgren <tony@atomide.com>
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      6d4c8830
  24. 10 12月, 2013 1 次提交
  25. 09 10月, 2013 1 次提交
  26. 30 7月, 2013 1 次提交
    • R
      ARM: OMAP2+: hwmod: Fix a crash in _setup_reset() with DEBUG_LL · 7dedd346
      Rajendra Nayak 提交于
      With commit '82702ea1' "ARM: OMAP2+:
      Fix serial init for device tree based booting" stubbing out
      omap_serial_early_init() for Device tree based booting, there was a
      crash observed on AM335x based devices when hwmod does a
      _setup_reset() early at boot.
      
      This was rootcaused to hwmod trying to reset console uart while
      earlycon was using it.  The way to tell hwmod not to do this is to
      specify the HWMOD_INIT_NO_RESET flag, which were infact set by the
      omap_serial_early_init() function by parsing the cmdline to identify
      the console device.
      
      Parsing the cmdline to identify the uart used by earlycon itself seems
      broken as there is nothing preventing earlycon to use a different one.
      
      This patch, instead, attempts to populate the requiste flags for hwmod
      based on the CONFIG_DEBUG_OMAPxUARTy FLAGS. This gets rid of the need
      for cmdline parsing in the DT as well as non-DT cases to identify the
      uart used by earlycon.
      Signed-off-by: NRajendra Nayak <rnayak@ti.com>
      Reported-by: NMark Jackson <mpfj-list@newflow.co.uk>
      Reported-by: NVaibhav Bedia <vaibhav.bedia@ti.com>
      Tested-by: NMark Jackson <mpfj-list@newflow.co.uk>
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      7dedd346
  27. 18 6月, 2013 2 次提交
  28. 12 6月, 2013 2 次提交
    • S
      ARM: OMAP2+: add user and fifo info to mailbox platform data · fe32c1f6
      Suman Anna 提交于
      The different generations of OMAP2+ SoCs have almost the same
      mailbox IP, but the IP has configurable parameters for number
      of users (interrupts it can generate out towards processors)
      and number of fifos (the base unidirectional h/w communication
      channel). This data cannot be read from any registers, and so
      has been added to the platform data.
      
      This data together with the interrupt-type configuration can be
      used in properly figuring out the number of registers to save
      and restore in the OMAP mailbox driver code.
      
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NSuman Anna <s-anna@ti.com>
      fe32c1f6
    • S
      ARM: OMAP2+: mbox: remove dependencies with soc.h · b8a7cf8e
      Suman Anna 提交于
      The OMAP mailbox platform driver code has been cleaned up to
      remove the dependencies with soc.h in preparation for moving
      the mailbox code to drivers folder.
      
      The code relied on cpu_is_xxx/soc_is_xxx macros previously to
      pick the the right set of mailbox devices and register with the
      mailbox driver. This data is now represented in a concise format
      and moved to the respective omap_hwmod data files and published
      to the driver through the platform data.
      
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NSuman Anna <s-anna@ti.com>
      b8a7cf8e
  29. 20 5月, 2013 1 次提交
  30. 31 3月, 2013 1 次提交