mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-01 15:15:19 -04:00
ptp: idt82p33: use rsmu driver to access i2c/spi bus
rsmu (Renesas Synchronization Management Unit ) driver is located in drivers/mfd and responsible for creating multiple devices including idt82p33 phc, which will then use the exposed regmap and mutex handle to access i2c/spi bus. Signed-off-by: Min Li <min.li.xe@renesas.com> Acked-by: Richard Cochran <richardcochran@gmail.com> Link: https://lore.kernel.org/r/1646748651-16811-1-git-send-email-min.li.xe@renesas.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#ifndef HAVE_IDT82P33_REG
|
||||
#define HAVE_IDT82P33_REG
|
||||
|
||||
#define REG_ADDR(page, offset) (((page) << 0x7) | ((offset) & 0x7f))
|
||||
|
||||
/* Register address */
|
||||
#define DPLL1_TOD_CNFG 0x134
|
||||
#define DPLL2_TOD_CNFG 0x1B4
|
||||
@@ -41,6 +43,7 @@
|
||||
#define REG_SOFT_RESET 0X381
|
||||
|
||||
#define OUT_MUX_CNFG(outn) REG_ADDR(0x6, (0xC * (outn)))
|
||||
#define TOD_TRIGGER(wr_trig, rd_trig) ((wr_trig & 0xf) << 4 | (rd_trig & 0xf))
|
||||
|
||||
/* Register bit definitions */
|
||||
#define SYNC_TOD BIT(1)
|
||||
|
||||
Reference in New Issue
Block a user