/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Structures used by ASPEED clock drivers * * Copyright 2019 IBM Corp. */ #include #include #include #include struct clk_div_table; struct regmap; /** * struct aspeed_gate_data - Aspeed gated clocks * @clock_idx: bit used to gate this clock in the clock register * @reset_idx: bit used to reset this IP in the reset register. -1 if no * reset is required when enabling the clock * @name: the clock name * @parent_name: the name of the parent clock * @flags: standard clock framework flags */ struct aspeed_gate_data { u8 clock_idx; s8 reset_idx; const char *name; const char *parent_name; unsigned long flags; }; /** * struct aspeed_clk_gate - Aspeed specific clk_gate structure * @hw: handle between common and hardware-specific interfaces * @reg: register controlling gate * @clock_idx: bit used to gate this clock in the clock register * @reset_idx: bit used to reset this IP in the reset register. -1 if no * reset is required when enabling the clock * @flags: hardware-specific flags * @lock: register lock * * Some of the clocks in the Aspeed SoC must be put in reset before enabling. * This modified version of clk_gate allows an optional reset bit to be * specified. */ struct aspeed_clk_gate { struct clk_hw hw; struct regmap *map; u8 clock_idx; s8 reset_idx; u8 flags; spinlock_t *lock; }; #define to_aspeed_clk_gate(_hw) container_of(_hw, struct aspeed_clk_gate, hw) /** * struct aspeed_reset - Aspeed reset controller * @map: regmap to access the containing system controller * @rcdev: reset controller device */ struct aspeed_reset { struct regmap *map; struct reset_controller_dev rcdev; }; #define to_aspeed_reset(p) container_of((p), struct aspeed_reset, rcdev) /** * struct aspeed_clk_soc_data - Aspeed SoC specific divisor information * @div_table: Common divider lookup table * @eclk_div_table: Divider lookup table for ECLK * @mac_div_table: Divider lookup table for MAC (Ethernet) clocks * @calc_pll: Callback to maculate common PLL settings */ struct aspeed_clk_soc_data { const struct clk_div_table *div_table; const struct clk_div_table *eclk_div_table; const struct clk_div_table *mac_div_table; struct clk_hw *(*calc_pll)(const char *name, u32 val); }; ef='/drm-tip/log/.mailmap?id=e5dc9a7055c98bcd7b03f9735d5f2ec2b7f0d897'>.mailmap
AgeCommit message (Expand)AuthorFilesLines
2017-05-12Merge tag 'for-v4.12-2' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/...Linus Torvalds1-0/+2
2017-05-05Merge tag 'staging-4.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+1
2017-05-01mailmap: add Sebastian ReichelSebastian Reichel1-0/+2
2017-04-13mailmap: add Martin Kepplinger's emailMartin Kepplinger1-0/+2
2017-04-10Merge 4.11-rc6 into staging-nextGreg Kroah-Hartman1-0/+1
2017-04-08mailmap: update Yakir Yang email addressJeffy Chen1-0/+1
2017-03-06Merge tag 'iio-for-4.12a' of git://git.kernel.org/pub/scm/linux/kernel/git/ji...Greg Kroah-Hartman1-0/+1
2017-02-04mailmap: Change email to new Konsulko emailMatt Ranostay1-0/+1
2017-01-10mailmap: add codeaurora.org names for nameless email commitsStephen Boyd1-0/+4
2016-10-15Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linusLinus Torvalds1-0/+1
2016-10-07mailmap: add Johan HovoldJohan Hovold1-0/+2
2016-10-05Merge tag 'staging-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-0/+1
2016-10-05mailmap: Canonicalize to Qais' current email address.Ralf Baechle1-0/+1
2016-09-30MAINTAINERS: Switch to kernel.org email address for Javi MerinoJavi Merino1-0/+1
2016-09-14Merge tag 'iio-for-4.9b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic...Greg Kroah-Hartman1-0/+1
2016-09-08Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm...Linus Torvalds1-0/+1
2016-09-01MAINTAINERS: Vladimir has movedVladimir Davydov1-0/+2
2016-08-29mailmap: update Vlad Dogaru email addressVlad Dogaru1-0/+1
2016-08-17MAINTAINERS: Switch to kernel.org account for Krzysztof KozlowskiKrzysztof Kozlowski1-0/+1
2016-08-06Merge tag 'media/v4.8-6' of git://git.kernel.org/pub/scm/linux/kernel/git/mch...Linus Torvalds1-2/+11
2016-08-04.mailmap: Correct entries for Mauro Carvalho Chehab and Shuah KhanJoe Perches1-2/+11
2016-08-02mailmap: add Linus LüssingLinus Lüssing1-0/+2
2016-07-04Merge 4.7-rc6 into staging-nextGreg Kroah-Hartman1-0/+4
2016-06-29Merge tag 'iio-for-4.8b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic...Greg Kroah-Hartman1-0/+3
2016-06-24mailmap: add Boris Brezillon's emailAntoine Tenart1-0/+3
2016-06-24mailmap: add Antoine Tenart's emailAntoine Tenart1-0/+1
2016-06-15Update email addresses in MAINTAINERS and .mailmapShuah Khan1-0/+1
2016-06-15Update my main e-mails at the Kernel treeMauro Carvalho Chehab1-0/+1
2016-06-11mailmap: update Matt Ranostay email addressMatt Ranostay1-0/+2
2016-06-11mailmap: update Adriana Reus email addressAdriana Reus1-0/+1
2016-05-05mailmap: add John Paul Adrian GlaubitzLinus Torvalds