vc.h (5892bb1fc6430d086f5c2a4216f9ed00070e31ad) vc.h (24d3194a2c9bc4d2315117915d4d22c395c07fd5)
1/*
2 * OMAP3/4 Voltage Controller (VC) structure and macro definitions
3 *
4 * Copyright (C) 2007, 2010 Texas Instruments, Inc.
5 * Rajendra Nayak <rnayak@ti.com>
6 * Lesly A M <x0080970@ti.com>
7 * Thara Gopinath <thara@ti.com>
8 *

--- 40 unchanged lines hidden (view full) ---

49 u8 bypass_val_reg;
50 u8 data_shift;
51 u8 slaveaddr_shift;
52 u8 regaddr_shift;
53 u8 cmd_on_shift;
54 u8 cmd_onlp_shift;
55 u8 cmd_ret_shift;
56 u8 cmd_off_shift;
1/*
2 * OMAP3/4 Voltage Controller (VC) structure and macro definitions
3 *
4 * Copyright (C) 2007, 2010 Texas Instruments, Inc.
5 * Rajendra Nayak <rnayak@ti.com>
6 * Lesly A M <x0080970@ti.com>
7 * Thara Gopinath <thara@ti.com>
8 *

--- 40 unchanged lines hidden (view full) ---

49 u8 bypass_val_reg;
50 u8 data_shift;
51 u8 slaveaddr_shift;
52 u8 regaddr_shift;
53 u8 cmd_on_shift;
54 u8 cmd_onlp_shift;
55 u8 cmd_ret_shift;
56 u8 cmd_off_shift;
57 u8 cfg_channel_reg;
57};
58
58};
59
60/* omap_vc_channel.flags values */
61#define OMAP_VC_CHANNEL_DEFAULT BIT(0)
62
59/**
60 * struct omap_vc_channel - VC per-instance data
61 * @i2c_slave_addr: I2C slave address of PMIC for this VC channel
62 * @volt_reg_addr: voltage configuration register address
63 * @cmd_reg_addr: command configuration register address
64 * @setup_time: setup time (in sys_clk cycles) of regulator for this channel
65 * @common: pointer to VC common data for this platform
66 * @smps_sa_mask: i2c slave address bitmask in the PRM_VC_SMPS_SA register
67 * @smps_volra_mask: VOLRA* bitmask in the PRM_VC_VOL_RA register
68 * @smps_cmdra_mask: CMDRA* bitmask in the PRM_VC_CMD_RA register
69 * @cmdval_reg: register for on/ret/off voltage level values for this channel
63/**
64 * struct omap_vc_channel - VC per-instance data
65 * @i2c_slave_addr: I2C slave address of PMIC for this VC channel
66 * @volt_reg_addr: voltage configuration register address
67 * @cmd_reg_addr: command configuration register address
68 * @setup_time: setup time (in sys_clk cycles) of regulator for this channel
69 * @common: pointer to VC common data for this platform
70 * @smps_sa_mask: i2c slave address bitmask in the PRM_VC_SMPS_SA register
71 * @smps_volra_mask: VOLRA* bitmask in the PRM_VC_VOL_RA register
72 * @smps_cmdra_mask: CMDRA* bitmask in the PRM_VC_CMD_RA register
73 * @cmdval_reg: register for on/ret/off voltage level values for this channel
74 * @flags: VC channel-specific flags (optional)
70 */
71struct omap_vc_channel {
72 /* channel state */
73 u16 i2c_slave_addr;
74 u16 volt_reg_addr;
75 u16 cmd_reg_addr;
76 u16 setup_time;
75 */
76struct omap_vc_channel {
77 /* channel state */
78 u16 i2c_slave_addr;
79 u16 volt_reg_addr;
80 u16 cmd_reg_addr;
81 u16 setup_time;
82 u8 cfg_channel;
77
78 /* register access data */
79 const struct omap_vc_common *common;
80 u32 smps_sa_mask;
81 u32 smps_volra_mask;
82 u32 smps_cmdra_mask;
83 u8 cmdval_reg;
83
84 /* register access data */
85 const struct omap_vc_common *common;
86 u32 smps_sa_mask;
87 u32 smps_volra_mask;
88 u32 smps_cmdra_mask;
89 u8 cmdval_reg;
90 u8 cfg_channel_sa_shift;
91 u8 flags;
84};
85
86extern struct omap_vc_channel omap3_vc_mpu;
87extern struct omap_vc_channel omap3_vc_core;
88
89extern struct omap_vc_channel omap4_vc_mpu;
90extern struct omap_vc_channel omap4_vc_iva;
91extern struct omap_vc_channel omap4_vc_core;

--- 13 unchanged lines hidden ---
92};
93
94extern struct omap_vc_channel omap3_vc_mpu;
95extern struct omap_vc_channel omap3_vc_core;
96
97extern struct omap_vc_channel omap4_vc_mpu;
98extern struct omap_vc_channel omap4_vc_iva;
99extern struct omap_vc_channel omap4_vc_core;

--- 13 unchanged lines hidden ---