Skip to content

Commit 8b431df

Browse files
authored
Merge branch 'rpi-6.6.y' into spi_cs
2 parents 4b84428 + a18d9ce commit 8b431df

15 files changed

+997
-249
lines changed

drivers/media/pci/hailo/common/fw_validation.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ int FW_VALIDATION__validate_fw_header(uintptr_t firmware_base_address,
4141
case HAILO_BOARD_TYPE_HAILO10H:
4242
expected_firmware_magic = FIRMWARE_HEADER_MAGIC_HAILO15;
4343
break;
44-
case HAILO_BOARD_TYPE_PLUTO:
45-
expected_firmware_magic = FIRMWARE_HEADER_MAGIC_PLUTO;
44+
case HAILO_BOARD_TYPE_HAILO15L:
45+
expected_firmware_magic = FIRMWARE_HEADER_MAGIC_HAILO15L;
4646
break;
4747
default:
4848
err = -EINVAL;

drivers/media/pci/hailo/common/fw_validation.h

+4-10
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,9 @@
99
#include "hailo_ioctl_common.h"
1010
#include <linux/types.h>
1111

12-
#define FIRMWARE_HEADER_MAGIC_HAILO8 (0x1DD89DE0)
13-
#define FIRMWARE_HEADER_MAGIC_HAILO15 (0xE905DAAB)
14-
#define FIRMWARE_HEADER_MAGIC_PLUTO (0xF94739AB)
15-
16-
#ifndef HAILO_EMULATOR
17-
#define FIRMWARE_WAIT_TIMEOUT_MS (5000)
18-
#else /* ifndef HAILO_EMULATOR */
19-
#define FIRMWARE_WAIT_TIMEOUT_MS (500000)
20-
#endif /* ifndef HAILO_EMULATOR */
12+
#define FIRMWARE_HEADER_MAGIC_HAILO8 (0x1DD89DE0)
13+
#define FIRMWARE_HEADER_MAGIC_HAILO15 (0xE905DAAB)
14+
#define FIRMWARE_HEADER_MAGIC_HAILO15L (0xF94739AB)
2115

2216
typedef enum {
2317
FIRMWARE_HEADER_VERSION_INITIAL = 0,
@@ -61,4 +55,4 @@ int FW_VALIDATION__validate_fw_header(uintptr_t firmware_base_address,
6155
int FW_VALIDATION__validate_cert_header(uintptr_t firmware_base_address,
6256
size_t firmware_size, u32 *outer_consumed_firmware_offset, secure_boot_certificate_header_t **out_firmware_cert);
6357

64-
#endif
58+
#endif

drivers/media/pci/hailo/common/hailo_ioctl_common.h

+7-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define _HAILO_IOCTL_COMMON_H_
88

99
#define HAILO_DRV_VER_MAJOR 4
10-
#define HAILO_DRV_VER_MINOR 19
10+
#define HAILO_DRV_VER_MINOR 20
1111
#define HAILO_DRV_VER_REVISION 0
1212

1313
#define _STRINGIFY_EXPANDED( x ) #x
@@ -22,6 +22,7 @@
2222
#define MAX_VDMA_ENGINES (3)
2323
#define SIZE_OF_VDMA_DESCRIPTOR (16)
2424
#define VDMA_DEST_CHANNELS_START (16)
25+
#define MAX_SG_DESCS_COUNT (64 * 1024u)
2526

2627
#define HAILO_VDMA_MAX_ONGOING_TRANSFERS (128)
2728
#define HAILO_VDMA_MAX_ONGOING_TRANSFERS_MASK (HAILO_VDMA_MAX_ONGOING_TRANSFERS - 1)
@@ -38,6 +39,10 @@
3839
#define FW_ACCESS_APP_CPU_CONTROL_MASK (1 << FW_ACCESS_CONTROL_INTERRUPT_SHIFT)
3940
#define FW_ACCESS_DRIVER_SHUTDOWN_SHIFT (2)
4041
#define FW_ACCESS_DRIVER_SHUTDOWN_MASK (1 << FW_ACCESS_DRIVER_SHUTDOWN_SHIFT)
42+
// HRT-15790 TODO: separate nnc interrupts and soc interrupts
43+
#define FW_ACCESS_SOFT_RESET_SHIFT (3)
44+
#define FW_ACCESS_SOFT_RESET_MASK (1 << FW_ACCESS_SOFT_RESET_SHIFT)
45+
4146
#define FW_ACCESS_SOC_CONTROL_SHIFT (3)
4247
#define FW_ACCESS_SOC_CONTROL_MASK (1 << FW_ACCESS_SOC_CONTROL_SHIFT)
4348

@@ -184,7 +189,6 @@ enum hailo_dma_data_direction {
184189
};
185190

186191
// Enum that states what type of buffer we are working with in the driver
187-
// TODO: HRT-13580 - Add specific type for user allocated and for driver allocated
188192
enum hailo_dma_buffer_type {
189193
HAILO_DMA_USER_PTR_BUFFER = 0,
190194
HAILO_DMA_DMABUF_BUFFER = 1,
@@ -399,7 +403,7 @@ struct hailo_d2h_notification {
399403
enum hailo_board_type {
400404
HAILO_BOARD_TYPE_HAILO8 = 0,
401405
HAILO_BOARD_TYPE_HAILO15,
402-
HAILO_BOARD_TYPE_PLUTO,
406+
HAILO_BOARD_TYPE_HAILO15L,
403407
HAILO_BOARD_TYPE_HAILO10H,
404408
HAILO_BOARD_TYPE_HAILO10H_LEGACY,
405409
HAILO_BOARD_TYPE_COUNT,

0 commit comments

Comments
 (0)