Skip to content

Commit

Permalink
[review] drivers: stm32_i2c: rely on DT compat ID for secure/non-secu…
Browse files Browse the repository at this point in the history
…re bus state

Move non_secure_bus to source file top.

By the way, I will shorten the header line to:
drivers: stm32_i2c: use compatible st,stm32mp15-i2c-non-secure

Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
etienne-lms committed Dec 10, 2024
1 parent aa4b12f commit 16c4bbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/drivers/stm32_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ struct i2c_request {
unsigned int timeout_ms;
};

/* Place holder for STM32MP15 non-secure I2C bus compat data */
static const int non_secure_bus;

static vaddr_t get_base(struct i2c_handle_s *hi2c)
{
return io_pa_or_va_secure(&hi2c->base, hi2c->reg_size);
Expand Down Expand Up @@ -1627,8 +1630,6 @@ static TEE_Result stm32_get_i2c_dev(struct dt_pargs *args, void *data,
return TEE_SUCCESS;
}

static const int non_secure_bus;

static TEE_Result stm32_i2c_probe(const void *fdt, int node,
const void *compat_data)
{
Expand Down

0 comments on commit 16c4bbe

Please sign in to comment.