mirror of
https://github.com/LuckfoxTECH/luckfox-pico.git
synced 2026-01-19 17:59:18 +01:00
project:build.sh: Added fastboot support; custom modifications to U-Boot and kernel implemented using patches.
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>
This commit is contained in:
@@ -631,17 +631,18 @@ static int j721e_soc_probe_cpb(struct j721e_priv *priv, int *link_idx,
|
||||
codec_node = of_parse_phandle(node, "ti,cpb-codec", 0);
|
||||
if (!codec_node) {
|
||||
dev_err(priv->dev, "CPB codec node is not provided\n");
|
||||
return -EINVAL;
|
||||
ret = -EINVAL;
|
||||
goto put_dai_node;
|
||||
}
|
||||
|
||||
domain = &priv->audio_domains[J721E_AUDIO_DOMAIN_CPB];
|
||||
ret = j721e_get_clocks(priv->dev, &domain->codec, "cpb-codec-scki");
|
||||
if (ret)
|
||||
return ret;
|
||||
goto put_codec_node;
|
||||
|
||||
ret = j721e_get_clocks(priv->dev, &domain->mcasp, "cpb-mcasp-auxclk");
|
||||
if (ret)
|
||||
return ret;
|
||||
goto put_codec_node;
|
||||
|
||||
/*
|
||||
* Common Processor Board, two links
|
||||
@@ -651,8 +652,10 @@ static int j721e_soc_probe_cpb(struct j721e_priv *priv, int *link_idx,
|
||||
comp_count = 6;
|
||||
compnent = devm_kzalloc(priv->dev, comp_count * sizeof(*compnent),
|
||||
GFP_KERNEL);
|
||||
if (!compnent)
|
||||
return -ENOMEM;
|
||||
if (!compnent) {
|
||||
ret = -ENOMEM;
|
||||
goto put_codec_node;
|
||||
}
|
||||
|
||||
comp_idx = 0;
|
||||
priv->dai_links[*link_idx].cpus = &compnent[comp_idx++];
|
||||
@@ -703,6 +706,12 @@ static int j721e_soc_probe_cpb(struct j721e_priv *priv, int *link_idx,
|
||||
(*conf_idx)++;
|
||||
|
||||
return 0;
|
||||
|
||||
put_codec_node:
|
||||
of_node_put(codec_node);
|
||||
put_dai_node:
|
||||
of_node_put(dai_node);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int j721e_soc_probe_ivi(struct j721e_priv *priv, int *link_idx,
|
||||
@@ -727,23 +736,25 @@ static int j721e_soc_probe_ivi(struct j721e_priv *priv, int *link_idx,
|
||||
codeca_node = of_parse_phandle(node, "ti,ivi-codec-a", 0);
|
||||
if (!codeca_node) {
|
||||
dev_err(priv->dev, "IVI codec-a node is not provided\n");
|
||||
return -EINVAL;
|
||||
ret = -EINVAL;
|
||||
goto put_dai_node;
|
||||
}
|
||||
|
||||
codecb_node = of_parse_phandle(node, "ti,ivi-codec-b", 0);
|
||||
if (!codecb_node) {
|
||||
dev_warn(priv->dev, "IVI codec-b node is not provided\n");
|
||||
return 0;
|
||||
ret = 0;
|
||||
goto put_codeca_node;
|
||||
}
|
||||
|
||||
domain = &priv->audio_domains[J721E_AUDIO_DOMAIN_IVI];
|
||||
ret = j721e_get_clocks(priv->dev, &domain->codec, "ivi-codec-scki");
|
||||
if (ret)
|
||||
return ret;
|
||||
goto put_codecb_node;
|
||||
|
||||
ret = j721e_get_clocks(priv->dev, &domain->mcasp, "ivi-mcasp-auxclk");
|
||||
if (ret)
|
||||
return ret;
|
||||
goto put_codecb_node;
|
||||
|
||||
/*
|
||||
* IVI extension, two links
|
||||
@@ -755,8 +766,10 @@ static int j721e_soc_probe_ivi(struct j721e_priv *priv, int *link_idx,
|
||||
comp_count = 8;
|
||||
compnent = devm_kzalloc(priv->dev, comp_count * sizeof(*compnent),
|
||||
GFP_KERNEL);
|
||||
if (!compnent)
|
||||
return -ENOMEM;
|
||||
if (!compnent) {
|
||||
ret = -ENOMEM;
|
||||
goto put_codecb_node;
|
||||
}
|
||||
|
||||
comp_idx = 0;
|
||||
priv->dai_links[*link_idx].cpus = &compnent[comp_idx++];
|
||||
@@ -817,6 +830,15 @@ static int j721e_soc_probe_ivi(struct j721e_priv *priv, int *link_idx,
|
||||
(*conf_idx)++;
|
||||
|
||||
return 0;
|
||||
|
||||
|
||||
put_codecb_node:
|
||||
of_node_put(codecb_node);
|
||||
put_codeca_node:
|
||||
of_node_put(codeca_node);
|
||||
put_dai_node:
|
||||
of_node_put(dai_node);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int j721e_soc_probe(struct platform_device *pdev)
|
||||
|
||||
Reference in New Issue
Block a user