Lines Matching +full:3 +full:- +full:point

1 /* SPDX-License-Identifier: GPL-2.0 */
25 * These commands are used to retrieve the sdb-partition-XX datas from
31 * - 0..1 : partition address
32 * - 2 : a byte containing the partition ID
33 * - 3 : length (maybe other bits are rest of header ?)
53 * ---------------------
66 * ------------------------
115 * 0: bus number (from device-tree usually, SMU has lots of busses !)
119 * 3: subaddress length (0..3)
128 * - 0x00: Simple transfer
129 * - 0x01: Subaddress transfer (addr write + data tx, no restart)
130 * - 0x02: Combined transfer (addr write + restart + data tx)
134 * At this point, the OF driver seems to have a limitation on transfer
144 * is complete, at this point, all I can tell is what OF does. OF tests
146 * - on read, 0xfe or 0xfc : bus is busy, wait (see below) or nak ?
147 * - on read, 0x00 or 0x01 : reply is in buffer (after the byte 0)
148 * - on write, < 0 -> failure (immediate exit)
149 * - else, OF just exists (without error, weird)
151 * So on read, there is this wait-for-busy thing when getting a 0xfc or
156 * The Darwin I2C driver is less subtle though. On any non-success status
180 * - length 5 (only "VSLEW") : it returns "DONE" and 3 bytes of
182 * - length 8 ("VSLEWxyz") has 3 additional bytes appended, and is
183 * used to set the voltage slewing point. The SMU replies with "DONE"
184 * I yet have to figure out their exact meaning of those 3 bytes in
187 * y = op. point index
201 * value in the device-tree) and returns a 16 bits value
237 * 3 (optional): enable nmi? [0x00 or 0x01]
240 * If parameter 2 is 0x00 and parameter 3 is not specified, returns whether
252 * 2-8: unknown (BCD coding)
303 * either in the last 16 bits of property "smu-version-pmu" or as the 16
304 * bytes at offset 1 of "smu-version-info"
377 * - Kernel side interface -
441 * Synchronous helpers. Will spin-wait for completion of a command
447 smu_spinwait_cmd(&scmd->cmd); in smu_spinwait_simple()
488 u8 subaddr[3]; /* subaddress */
524 * - SMU "sdb" partitions informations -
548 /* This is the definition of the SMU sdb-partition-0x12 table (called
556 * this operating point. Value need to
561 * operating point
564 __u16 volts[3]; /* CPU core voltage for the 3
577 __u16 volt_scale; /* u4.12 fixed point */
578 __s16 volt_offset; /* s4.12 fixed point */
579 __u16 curr_scale; /* u4.12 fixed point */
580 __s16 curr_offset; /* s4.12 fixed point */
581 __s32 power_quads[3]; /* s4.28 fixed point */
589 __u16 m_value; /* u1.15 fixed point */
590 __s16 b_value; /* s10.6 fixed point */
599 __u16 pow_scale; /* u4.12 fixed point */
600 __s16 pow_offset; /* s4.12 fixed point */
610 __u8 unknown[3];
650 * - Userland interface -
657 * - sending SMU commands (default at open() time)
658 * - receiving SMU events (not yet implemented)
684 __u8 pad[3]; /* padding */