OpenBIC
OpenSource Bridge-IC
plat_i2c_target.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef PLAT_I2C_SLAVE_H
18#define PLAT_I2C_SLAVE_H
19
20#include <drivers/i2c.h>
21#include "hal_i2c_target.h"
22
23typedef struct {
24 struct k_work set_slot_work;
25 int slot;
27
28#define SLOT_0_I2C_SET_SLOT_REG 0x40
29#define SLOT_1_I2C_SET_SLOT_REG 0x41
30#define SLOT_2_I2C_SET_SLOT_REG 0x42
31#define SLOT_3_I2C_SET_SLOT_REG 0x43
32
33#define GET_MMC_INFO_REG 0x50
34
35#define TARGET_ENABLE 1
36#define TARGET_DISABLE 0
37
38#endif
Definition: plat_i2c_target.h:23
int slot
Definition: plat_i2c_target.h:25