bootcount: add support to ccmp25 platform on external RTC on I2C1

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
Hector Palacios 2024-08-20 14:02:54 +02:00
parent 16525cca53
commit aad224ef28
4 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2023, Digi International Inc. * Copyright (c) 2023-2024 Digi International Inc.
* *
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
@ -60,6 +60,7 @@ struct platform_functions platforms_functions[] = {
[PLATFORM_CC93] = {read_bootcount_nvmem, write_bootcount_nvmem}, [PLATFORM_CC93] = {read_bootcount_nvmem, write_bootcount_nvmem},
[PLATFORM_CCMP13] = {read_bootcount_nvmem, write_bootcount_nvmem}, [PLATFORM_CCMP13] = {read_bootcount_nvmem, write_bootcount_nvmem},
[PLATFORM_CCMP15] = {read_bootcount_nvmem, write_bootcount_nvmem}, [PLATFORM_CCMP15] = {read_bootcount_nvmem, write_bootcount_nvmem},
[PLATFORM_CCMP25] = {read_bootcount_nvmem, write_bootcount_nvmem},
[PLATFORM_UNKNOWN] = {NULL, NULL} [PLATFORM_UNKNOWN] = {NULL, NULL}
}; };

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2023, Digi International Inc. * Copyright (c) 2023-2024 Digi International Inc.
* *
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
@ -41,6 +41,7 @@ struct platform_nvmem platforms_nvmem[] = {
[PLATFORM_CC93] = {"/sys/bus/i2c/devices/2-0052/rv3028_nvram0/nvmem", 0, 1}, [PLATFORM_CC93] = {"/sys/bus/i2c/devices/2-0052/rv3028_nvram0/nvmem", 0, 1},
[PLATFORM_CCMP13] = {"/sys/bus/i2c/devices/2-0052/rv3028_nvram0/nvmem", 0, 1}, [PLATFORM_CCMP13] = {"/sys/bus/i2c/devices/2-0052/rv3028_nvram0/nvmem", 0, 1},
[PLATFORM_CCMP15] = {"/sys/bus/i2c/devices/6-0052/rv3028_nvram0/nvmem", 0, 1}, [PLATFORM_CCMP15] = {"/sys/bus/i2c/devices/6-0052/rv3028_nvram0/nvmem", 0, 1},
[PLATFORM_CCMP25] = {"/sys/bus/i2c/devices/0-0052/rv3028_nvram0/nvmem", 0, 1},
[PLATFORM_UNKNOWN] = {NULL, 0, 0}, [PLATFORM_UNKNOWN] = {NULL, 0, 0},
}; };

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2023, Digi International Inc. * Copyright (c) 2023-2024 Digi International Inc.
* *
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
@ -31,6 +31,7 @@ typedef enum {
PLATFORM_CC93, PLATFORM_CC93,
PLATFORM_CCMP13, PLATFORM_CCMP13,
PLATFORM_CCMP15, PLATFORM_CCMP15,
PLATFORM_CCMP25,
PLATFORM_UNKNOWN PLATFORM_UNKNOWN
} platform_t; } platform_t;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2023, Digi International Inc. * Copyright (c) 2023-2024 Digi International Inc.
* *
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
@ -33,6 +33,7 @@ char* platform_names[] = {
[PLATFORM_CC93] = "ccimx93", [PLATFORM_CC93] = "ccimx93",
[PLATFORM_CCMP13] = "ccmp13", [PLATFORM_CCMP13] = "ccmp13",
[PLATFORM_CCMP15] = "ccmp15", [PLATFORM_CCMP15] = "ccmp15",
[PLATFORM_CCMP25] = "ccmp25",
[PLATFORM_UNKNOWN] = "unknown" [PLATFORM_UNKNOWN] = "unknown"
}; };