project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp: Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem. sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately. sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades. sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for fastboot. Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
68 lines
1.3 KiB
C
68 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2019 Rockchip Electronics Co., Ltd
|
|
*/
|
|
|
|
#ifndef _SPL_AB_H_
|
|
#define _SPL_AB_H_
|
|
|
|
#include <spl.h>
|
|
#include <android_avb/libavb_ab.h>
|
|
#include <android_avb/avb_ab_flow.h>
|
|
|
|
#define AB_METADATA_OFFSET 4
|
|
|
|
/*
|
|
* spl_get_current_slot
|
|
*
|
|
* @dev_desc: block description
|
|
* @partition: partition name
|
|
* @slot: A/B slot
|
|
*
|
|
* return: 0 success, others fail.
|
|
*/
|
|
int spl_get_current_slot(struct blk_desc *dev_desc, char *partition,
|
|
char *slot);
|
|
|
|
/*
|
|
* spl_ab_append_part_slot
|
|
*
|
|
* @dev_desc: block description
|
|
* @part_name: partition name
|
|
* @new_name: append the slot suffix
|
|
*
|
|
* return: 0 success, others fail.
|
|
*/
|
|
int spl_ab_append_part_slot(struct blk_desc *dev_desc,
|
|
const char *part_name,
|
|
char *new_name);
|
|
|
|
/*
|
|
* spl_ab_decrease_tries
|
|
*
|
|
* @dev_desc: block description
|
|
*
|
|
* return: 0 success, others fail.
|
|
*/
|
|
int spl_ab_decrease_tries(struct blk_desc *dev_desc);
|
|
|
|
/*
|
|
* spl_ab_decrease_reset
|
|
*
|
|
* @dev_desc: block description
|
|
*
|
|
* return: 0 success, others fail.
|
|
*/
|
|
int spl_ab_decrease_reset(struct blk_desc *dev_desc);
|
|
|
|
/**
|
|
* Append ab slot info to bootargs
|
|
*
|
|
* @param fdt FDT address in memory
|
|
* @param slot slot info
|
|
* @return 0 if ok, else error
|
|
*/
|
|
int spl_ab_bootargs_append_slot(void *fdt, char *slot);
|
|
|
|
#endif
|