18 Feb, 2014

1 commit

  • Add context_offs to the DSS hwmod for am43xx as the driver uses the
    context loss count to determine whether or not to restore context to the
    module. Also add prcm flag indicating this bit is valid. Without this the
    display does not return after a suspend cycle.

    Signed-off-by: Dave Gerlach
    Signed-off-by: Darren Etheridge

    Dave Gerlach
     

11 Feb, 2014

1 commit


22 Jan, 2014

2 commits


11 Dec, 2013

6 commits

  • …rnel/platform-linux-feature-tree into ti-linux-3.12.y

    TI-Feature: platform_base
    TI-Tree: git://git.ti.com/~rrnayak/ti-linux-kernel/platform-linux-feature-tree.git
    TI-Branch: platform-ti-linux-3.12.y

    * 'platform-ti-linux-3.12.y' of git://git.ti.com/~rrnayak/ti-linux-kernel/platform-linux-feature-tree:
    ARM: OMAP2+: hwmod_33xx: Remove L3_CLKCTRL for AM43XX
    ARM: dts: AM4372: l3 noc
    bus: omap_l3_noc: am4372 support
    bus: omap_l3_noc: mask unclearable flagmux source
    bus: omap_l3_noc: support variable mem resource
    bus: omap_l3_noc: Add support for discountinous flag mux input numbers
    bus: omap_l3_noc: Make the code generic to support DRA interconnect
    ARM: dts: Add IRQ data and IPC reg data for am43xx wkup_m3
    ARM: OMAP2+: AM43XX: Adjust sram size to 64k
    ARM: OMAP2+: AM43XX: Allow setup reset of gpmc hwmod
    ARM: dts: am43xx-clocks: Add autoidle data for dpll_per_clkdcoldo
    ARM: dts: AM33XX: Add wkup_m3 resets property
    Drivers: reset: amx3: Add wkup_m3 reset support
    ARM: AM43xx: remove wrong init_late from machine descriptor

    Signed-off-by: Dan Murphy <dmurphy@ti.com>

    Dan Murphy
     
  • Remove linkage of AM43XX_CM_PER_L3_CLKCTRL_OFFSET to l3_hwmod on
    AM43XX to prevent driver bound to L3 from attempting to idle clock
    at suspend time as this must be handled later by CM3 in suspend path
    or system will hang.

    Signed-off-by: Dave Gerlach

    Dave Gerlach
     
  • Without initial soft reset of GPMC during hwmod setup the CLKCTRL
    for GPMC will not transition to idle state which prevents PER_PD
    transition so this patch allows it.

    Signed-off-by: Dave Gerlach
    Acked-by: Russ Dill

    Dave Gerlach
     
  • TI-Feature: rpmsg
    TI-Tree: git://git.ti.com/rpmsg/rpmsg.git
    TI-Branch: rpmsg-ti-linux-3.12.y

    * 'rpmsg-ti-linux-3.12.y' of git://git.ti.com/rpmsg/rpmsg:
    ARM: AMx3x: hwmod data: remove main_clk for spinlock
    ARM: DRA7: hwmod data: remove main_clk for spinlock
    ARM: DRA7: hwmod data: correct the sysc data for spinlock
    ARM: OMAP4: hwmod data: correct the idlemodes for spinlock
    ARM: DRA7: hwmod data: remove main_clk for mailboxes

    Signed-off-by: Dan Murphy

    Dan Murphy
     
  • … rpmsg-ti-linux-3.12.y

    Pull in the minor hwmod data fixes for hwspinlock.

    * 'hwspinlock-linux-3.12.y' of git://git.ti.com/rpmsg/hwspinlock:
    ARM: AMx3x: hwmod data: remove main_clk for spinlock
    ARM: DRA7: hwmod data: remove main_clk for spinlock
    ARM: DRA7: hwmod data: correct the sysc data for spinlock
    ARM: OMAP4: hwmod data: correct the idlemodes for spinlock

    Signed-off-by: Suman Anna <s-anna@ti.com>

    Suman Anna
     
  • There is no separate functional clock that needs to be enabled
    for the hardware spinlock module in AM33xx & AM43xx, like in other
    OMAP SoCs. The L4PER_CLK interface clock serves as both the
    functional and interface clock to the module, and is defined
    through the associated omap_hwmod_ocp_if definition, so remove
    the main_clk field from the hwmod definition.

    This is inline with the hwmod definition on newer OMAP SoCs,
    and also fixes the warning trace:
    "platform 480ca000.spinlock: FIXME: clock-name 'fck' DOES NOT exist in dt!"

    Signed-off-by: Suman Anna

    Suman Anna
     

28 Nov, 2013

1 commit

  • TI-Feature: rpmsg
    TI-Tree: git://git.ti.com/rpmsg/rpmsg.git
    TI-Branch: rpmsg-ti-linux-3.12.y

    * 'rpmsg-ti-linux-3.12.y' of git://git.ti.com/rpmsg/rpmsg:
    hwspinlock/omap: support AM43xx
    ARM: dts: AM4372: Add hwspinlock node
    ARM: dts: DRA7: Add hwspinlock node
    ARM: dts: OMAP5: Add hwspinlock node
    ARM: OMAP5: hwmod data: Add spinlock data
    hwspinlock/omap: support AM33xx
    hwspinlock/omap: enable module before reading SYSSTATUS register
    ARM: dts: AM33XX: Add hwspinlock node
    ARM: AM33xx: hwmod_data: add the sysc configuration for spinlock
    ARM: dts: OMAP4: Add hwspinlock node
    hwspinlock/omap: add support for dt nodes
    hwspinlock/core: add common dt bindings and OF helpers
    hwspinlock/core: maintain a list of registered hwspinlock banks

    Conflicts:
    arch/arm/boot/dts/omap5.dtsi
    arch/arm/mach-omap2/omap_hwmod_54xx_data.c

    Signed-off-by: Dan Murphy

    Dan Murphy
     

27 Nov, 2013

2 commits

  • … rpmsg-ti-linux-3.12.y

    Pull in the hwspinlock feature tree supporting OMAP2-OMAP5, DRA7xx,
    AM335x and AM437x SoCs.

    * 'hwspinlock-linux-3.12.y' of git://git.ti.com/rpmsg/hwspinlock:
    hwspinlock/omap: support AM43xx
    ARM: dts: AM4372: Add hwspinlock node
    ARM: dts: DRA7: Add hwspinlock node
    ARM: dts: OMAP5: Add hwspinlock node
    ARM: OMAP5: hwmod data: Add spinlock data
    hwspinlock/omap: support AM33xx
    hwspinlock/omap: enable module before reading SYSSTATUS register
    ARM: dts: AM33XX: Add hwspinlock node
    ARM: AM33xx: hwmod_data: add the sysc configuration for spinlock
    ARM: dts: OMAP4: Add hwspinlock node
    hwspinlock/omap: add support for dt nodes
    hwspinlock/core: add common dt bindings and OF helpers
    hwspinlock/core: maintain a list of registered hwspinlock banks

    Signed-off-by: Suman Anna <s-anna@ti.com>

    Suman Anna
     
  • …rnel/platform-linux-feature-tree into rpmsg-ti-linux-3.12.y

    Pull in the updated platform base tree into the rpmsg integration
    tree, to facilitate better merging of the individual feature trees
    for the IPC domain.

    * 'platform-ti-linux-3.12.y' of git://git.ti.com/~rrnayak/ti-linux-kernel/platform-linux-feature-tree: (406 commits)
    ARM: OMAP2+: Export SoC data to userspace
    ARM: OMAP5/DRA7: Enable Cortex-a15 errata 799270
    ARM: Add 799270 erratum workaround
    ARM: proc-v7: avoid ldm access crossing 1K boundary
    ARM: dts: OMAP4: clk: Add clk node for DES IP
    ARM: OMAP2+: hwmod: check for module address space during init
    ARM: OMAP: Enable CONFIG_PREEMPT in omap2plus_defconfig
    ARM: omap: edma: add suspend suspend/resume hooks(v4-modified)
    ARM: AM43xx: clk: Change the wdt1 func clk src to per_32k clk
    ARM: AM43xx: clk: Add a comment for not using "clk_rc32k_ck"
    ARM: AM33xx: clk: Add a comment for not using "clk_rc32k_ck"
    ARM: OMAP5/DRA7: hwmod: Add HWMOD_SWSUP_SIDLE_ACT flag for non WKUP domain timers
    ARM: DRA7: hwmod: Remove the duplicate omap_hwmod_class structs
    ARM: OMAP5: hwmod: Fix the omap_hwmod_class structs for timer1/2/10
    ARM: dts: DRA7: Pass the timer clock source info from DT
    ARM: dts: OMAP5: Pass the timer clock source info from DT
    ARM: OMAP2+: hwmod: Correct oh->opt_clks_cnt in case of DT boot
    ARM: OMAP: DRA7xx: Make L4SEC clock domain SWSUP only
    ARM: dts: AM4372: Enable watchdog for AM4372 SoC
    ARM: OMAP: Disable POSTED mode for errata i103 and i767
    ...

    Signed-off-by: Suman Anna <s-anna@ti.com>

    Conflicts:
    drivers/mailbox/mailbox-omap2.c

    Suman Anna
     

19 Nov, 2013

1 commit

  • …rnel/platform-linux-feature-tree into HEAD

    Merge platform base tree to bring in SoC support for OMAP5, DRA7 and AM4372.
    This is required to add/enable the necessary hwspinlock support on these SoCs.

    The boot on DRA7xx/AM4372 with this branch requires a ramdisk, a MMC-based
    filesystem support is only available in branch ti-linux-3.12.y of integration
    tree, git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

    * 'platform-ti-linux-3.12.y' of git://git.ti.com/~rrnayak/ti-linux-kernel/platform-linux-feature-tree: (187 commits)
    ARM: omap: edma: add suspend suspend/resume hooks(v4-modified)
    ARM: AM43xx: clk: Change the wdt1 func clk src to per_32k clk
    ARM: AM43xx: clk: Add a comment for not using "clk_rc32k_ck"
    ARM: AM33xx: clk: Add a comment for not using "clk_rc32k_ck"
    ARM: OMAP5/DRA7: hwmod: Add HWMOD_SWSUP_SIDLE_ACT flag for non WKUP domain timers
    ARM: DRA7: hwmod: Remove the duplicate omap_hwmod_class structs
    ARM: OMAP5: hwmod: Fix the omap_hwmod_class structs for timer1/2/10
    ARM: dts: DRA7: Pass the timer clock source info from DT
    ARM: dts: OMAP5: Pass the timer clock source info from DT
    ARM: OMAP2+: hwmod: Correct oh->opt_clks_cnt in case of DT boot
    ARM: OMAP: DRA7xx: Make L4SEC clock domain SWSUP only
    ARM: dts: AM4372: Enable watchdog for AM4372 SoC
    ARM: OMAP: Disable POSTED mode for errata i103 and i767
    crypto: omap-aes: Fix CTR mode counter length
    OMAP: AM33xx: hwmod: Correct AES module SYSC type
    ARM: dts: OMAP4: Add node for DES3DES module
    ARM: dts: OMAP4: Add node for AES
    ARM: OMAP4: hwmod: add hwmod data for DES IP
    ARM: OMAP4: hwmod: Add hwmod data for AES IP
    ARM: dts: DRA7: Add DT node for AES IP
    ...

    Signed-off-by: Suman Anna <s-anna@ti.com>

    Conflicts:
    arch/arm/boot/dts/am33xx.dtsi
    arch/arm/common/edma.c
    arch/arm/kernel/head.S

    Suman Anna
     

16 Nov, 2013

1 commit


07 Nov, 2013

1 commit


06 Nov, 2013

2 commits

  • …rnel/platform-linux-feature-tree into ti-linux-3.12.y

    TI-Feature: platform_base
    TI-Tree: git://git.ti.com/~rrnayak/ti-linux-kernel/platform-linux-feature-tree.git
    TI-Branch: platform-ti-linux-3.12.y

    * 'platform-ti-linux-3.12.y' of git://git.ti.com/~rrnayak/ti-linux-kernel/platform-linux-feature-tree:
    ARM: dts: AM4372: Enable watchdog for AM4372 SoC
    ARM: OMAP: Disable POSTED mode for errata i103 and i767
    crypto: omap-aes: Fix CTR mode counter length
    OMAP: AM33xx: hwmod: Correct AES module SYSC type
    ARM: dts: OMAP4: Add node for DES3DES module
    ARM: dts: OMAP4: Add node for AES
    ARM: OMAP4: hwmod: add hwmod data for DES IP
    ARM: OMAP4: hwmod: Add hwmod data for AES IP
    ARM: dts: DRA7: Add DT node for AES IP
    ARM: dts: DRA7: Add DT node for DES IP
    ARM: DRA7xx: hwmod: Add hwmod data for AES IP
    ARM: DRA7xx: hwmod: Add hwmod data for DES IP
    ARM: OMAP: hwmod: Add SYSC offsets for AES IP
    ARM: configs: omap2plus: Enable crypto test module

    Conflicts:
    arch/arm/boot/dts/dra7.dtsi

    Signed-off-by: Dan Murphy <DMurphy@ti.com>

    Dan Murphy
     
  • Use the newly added sysc type4 for AES module.

    Signed-off-by: Joel Fernandes

    Joel Fernandes
     

31 Oct, 2013

1 commit


22 Oct, 2013

2 commits

  • …rnel/platform-linux-feature-tree into ti-linux-3.12.y

    TI-Feature: platform_base
    TI-Tree: git://git.ti.com/~rrnayak/ti-linux-kernel/platform-linux-feature-tree.git
    TI-Branch: platform-ti-linux-3.12.y

    * 'platform-ti-linux-3.12.y' of git://git.ti.com/~rrnayak/ti-linux-kernel/platform-linux-feature-tree:
    ARM: dts: AM4372: clk: efuse for oscillator
    ARM: AM4372: hwmod: Remove RTC
    ARM: OMAP2+: AM43xx: implement support for machine restart
    ARM: dts: omap: AM437x: fix typo in dpll node
    clk: ti: am437x: fix parent of synctimer 32k
    ARM: dts: am33xx: Add clkdiv32k_ick to clk_24mhz_clkdm clockdomain

    Signed-off-by: Dan Murphy <DMurphy@ti.com>

    Dan Murphy
     
  • On EPOS EVM RTC is not powered (VDDS_RTC grounded to 0) and so RTC registers are
    inaccessible. During boot hwmod tries to access these registers causing an abort.
    So removing rtc from AM43x hwmod database.

    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     

09 Oct, 2013

1 commit

  • …-linux-feature-tree into ti-linux-3.12.y

    TI-Feature: power_management_base
    TI-Tree: git://git.ti.com/~kristo/ti-linux-kernel/pm-linux-feature-tree.git
    TI-Branch: pm-ti-linux-3.12.y

    * 'pm-ti-linux-3.12.y' of git://git.ti.com/~kristo/ti-linux-kernel/pm-linux-feature-tree: (30 commits)
    ARM: OMAP2+: AM33XX: PM: Add standby support
    ARM: OMAP2+: AM33XX: Improve wkup_m3 firmware handling
    ARM: OMAP2+: AM33XX: Hookup AM33XX PM code into OMAP builds
    ARM: OMAP2+: AM33XX: Basic suspend resume support
    ARM: OMAP: omap_hwmod: Add handling of per suspend cycle hwmod idling
    ARM: OMAP2+: timer: Add suspend-resume callbacks for clkevent device
    ARM: OMAP2+: AM33XX: Add assembly code for PM operations
    ARM: OMAP2+: AM33XX: Reserve memory to comply with EMIF spec
    ARM: OMAP: DTB: Update IRQ data and add IPC regs for WKUP_M3
    memory: emif: Move EMIF register defines to include/linux/
    ARM: DRA7: Enable AVS Class 0 in omap2plus_defconfig
    defconfigs: omap2plus: add cpufreq by default
    ARM: dts: DRA7: Add CPU OPP table
    ARM: dts: omap5: Add CPU OPP table
    ARM: dts: AM33XX: add clock nodes for CPU
    ARM: dts: OMAP4: add clock nodes for CPU
    ARM: dts: OMAP3: add clock nodes for CPU
    ARM: dts: dra7-evm: add avs_mpu supply for CPU
    ARM: dts: omap5-uevm: add smps123 supply for CPU
    ARM: OMAP3+: use cpu0-cpufreq driver in device tree supported boot
    ...

    Conflicts:
    arch/arm/boot/dts/dra7-evm.dts
    arch/arm/boot/dts/omap5-uevm.dts

    Signed-off-by: Dan Murphy <dmurphy@ti.com>

    Dan Murphy
     

08 Oct, 2013

1 commit

  • Needed to let the AM335x PM handle the IPs which need forced
    standby transition during every suspend-resume cycle when
    the corresponding driver is not compiled into the kernel. These modules
    do not have MSTANDBY asserted by default so although they are idled at
    boot, they lose context during suspend cycle and must be idled again.
    Flag added to omap_hwmod to track devices that require per suspend cycle
    idling. All flagged hwmods are added to a list and then removed in
    omap_device as drivers are bound in order to avoid masking bugs in driver
    suspend code. A post PM notifier then idles unbound hwmods after every
    suspend cycle.

    Signed-off-by: Dave Gerlach

    Dave Gerlach
     

04 Oct, 2013

2 commits


26 Sep, 2013

1 commit


25 Sep, 2013

1 commit


19 Sep, 2013

11 commits

  • Add hwmod data for des module

    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     
  • Add hwrng hwmod data

    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     
  • Adding nodes for AES and SHAM modules.

    Signed-off-by: Joel Fernandes

    Joel Fernandes
     
  • Now that we have DT bindings to specify which devices on the SoC should not
    be reset or idled, get rid of the same information existing as part of the
    hwmod data files and pass this info from DT instead.

    For GPMC, the HWMOD_INIT_NO_RESET flag seems to be added in hwmod not due to
    any errata around the GPMC IP, but rather because any timings
    set by the bootloader are not being correctly programmed by the kernel.
    This seems like something that needs to be fixed as part of GPMC driver
    in the kernel, and hence the flag is left as is in hwmod, which can be
    removed once the driver does what its expected to.

    Signed-off-by: Rajendra Nayak

    Rajendra Nayak
     
  • For modules/IPs/hwmods which do not have
    -1- sys->class->reset()
    and
    -2- hardreset lines
    and
    -3- No way to do an ocp reset (no sysc control)
    the flag 'HWMOD_INIT_NO_RESET' is not much useful.

    Cleanup all such instances across various hwmod data files.

    Signed-off-by: Rajendra Nayak

    Rajendra Nayak
     
  • 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

    Also AM43x pruss interconnect is different asc compared to AM335x.

    Update hwmod with the above details and register 'ocpif' if platform
    being run is AM43x.

    AM43x also has IP's like qspi, hdq1w, vpfe, des, rng, usb, dss. These
    are not handled here due to either of following two 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 Mohammed
     
  • Update AM43x CLKCTRL, RSTCTRL, RSTST offsets, clockdomain & ocpif clk
    that differ with AM335x at runtime. This helps in reusing much of the
    AM335x hwmod data's for AM43x.

    Signed-off-by: Afzal Mohammed

    Afzal Mohammed
     
  • Hwmod common to AM43x & AM335x has some of fields different (CLKCTRL,
    RSTCTRL, RSTST, ocpif clk and clockdomain). It is now updated based
    on SoC detection at run time, hence remove statically initialized
    entries.

    Signed-off-by: Afzal Mohammed

    Afzal Mohammed
     
  • Update AM335x CLKCTRL, RSTCTRL, RSTST offsets, clockdomain & ocpif clk
    that differ with AM43x at runtime. This is being done so that static
    initialization of these details (which are different between AM335x
    and AM43x) can be removed to aid in sharing of hwmod data between both
    platforms as much as possible.

    Signed-off-by: Afzal Mohammed

    Afzal Mohammed
     
  • AM335x & AM43x have most of the interconnects, IPs similar. Instead of
    adding new hwmod data for AM43x, reuse AM335x hwmod data as much as
    possible.

    In the hwmod entries that could be reused on AM43x, major changes are
    in register offsets and different ocpif clock for most of peripherals
    that comes under l4_wkup interconnect.

    To achieve reuse, as a first step, bring out ocpif's relevant for both
    SoC's to a new array and handle appropriately.

    Signed-off-by: Afzal Mohammed

    Afzal Mohammed
     
  • With support to parse clock data from DT, move all main and optional
    clock information from hwmod to DT.

    We still retain clocks in hwmod for devices which do not have a DT node.

    Signed-off-by: Tero Kristo

    Tero Kristo
     

23 Aug, 2013

1 commit

  • In the original hwmod data file, DebugSS entry was disabled,
    since we didn't (and do not) have SW to control it.

    This patch enables it back with right data, so that it can be
    controlled by different ways; and the suggested method it to
    have modular driver for debugSS as well.

    Refer to the link for more discussion on handling of debugSS -
    https://patchwork.kernel.org/patch/2212111/

    Signed-off-by: Vaibhav Hiremath
    Cc: Paul Walmsley
    Cc: Tony Lindgren
    Signed-off-by: Paul Walmsley

    Vaibhav Hiremath
     

30 Jul, 2013

1 commit

  • Register target address to be used for cpgmac is the second device
    address space. By default, hwmod picks first address space (0th index)
    for register target.

    With removal of address space from hwmod and using DT instead, cpgmac
    is getting wrong address space for register target.

    Fix it by indicating the address space to be used for register target.

    Signed-off-by: Afzal Mohammed
    Tested-by: Mugunthan V N
    Signed-off-by: Paul Walmsley

    Afzal Mohammed