diff --git a/boards/arm/rtl8730e/rtl8730e_evb/prebuilt/.gitignore b/boards/arm/rtl8730e/rtl8730e_evb/prebuilt/.gitignore index 6de2bfd8818..30c72d66217 100644 --- a/boards/arm/rtl8730e/rtl8730e_evb/prebuilt/.gitignore +++ b/boards/arm/rtl8730e/rtl8730e_evb/prebuilt/.gitignore @@ -7,12 +7,15 @@ # libs/*.a / libs/wifi_obj/*.o pre-compiled chip archives + WiFi glue # bl2.bin / bl32.bin / boot.bin prebuilt secure-boot / KM4-KM0 blobs # vendor_prefix.bin image header prepended to the AP image -# platform_autoconf.h regenerated each build from the SDK -# menuconfig (single source of truth) +# platform_autoconf.h static minimal header maintained in-tree +# (NOT from SDK menuconfig; only the defines +# our fwlib sources actually need) # fiptool vendored FIP packaging tool binary # *_uuid.txt FIP entry UUIDs for the packer # -# Everything in this directory is ignored. +# Everything in this directory is ignored, except platform_autoconf.h which +# is a hand-maintained NuttX-side file that must be present on a clean clone. * !.gitignore +!platform_autoconf.h diff --git a/boards/arm/rtl8730e/rtl8730e_evb/prebuilt/platform_autoconf.h b/boards/arm/rtl8730e/rtl8730e_evb/prebuilt/platform_autoconf.h new file mode 100644 index 00000000000..b5b61fe94f4 --- /dev/null +++ b/boards/arm/rtl8730e/rtl8730e_evb/prebuilt/platform_autoconf.h @@ -0,0 +1,56 @@ +/**************************************************************************** + * boards/arm/rtl8730e/rtl8730e_evb/prebuilt/platform_autoconf.h + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. The + * ASF licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + ****************************************************************************/ + +/* Minimal platform_autoconf.h for RTL8730E CA32 NuttX build. + * Static file -- not auto-generated from SDK menuconfig. + * Only the defines required by the fwlib sources we compile are listed. + */ + +#ifndef __AMEBA_PLATFORM_AUTOCONF_H__ +#define __AMEBA_PLATFORM_AUTOCONF_H__ + +#define CONFIG_AMEBASMART 1 +#define CONFIG_ARM_CORE_CA32 1 + +/* Flash VFS1 partition (SDK defaults for amebasmart NOR layout). + * XIP base is 0x08000000; offset is absolute XIP address. + */ + +#define CONFIG_FLASH_VFS1_OFFSET 0x8600000 +#define CONFIG_FLASH_VFS1_SIZE 0x200000 + +/* Disable LOGUART aggregator (causes SYNC-byte noise on CA32 console). */ + +#undef CONFIG_LOGUART_AGG_EN + +/* WiFi WHC host (CA32 = WHC HOST, KM4 = WHC DEVICE). + * Force-included into every WiFi SDK source compiled for CA32. + */ + +#define CONFIG_WIFI_POWER_TABLE_USRCFG_3v3_1v25 1 +#define CONFIG_WHC_WIFI_API_PATH 1 +#define CONFIG_WHC_HOST 1 +#define CONFIG_WHC_INTF_IPC 1 +#define CONFIG_WLAN 1 +#define CONFIG_LWIP_LAYER 1 + +#endif /* __AMEBA_PLATFORM_AUTOCONF_H__ */