2017-04-24 04:17:43 +08:00
|
|
|
/****************************************************************************
|
2021-03-09 05:39:04 +08:00
|
|
|
* drivers/wireless/ieee80211/bcm43xxx/bcmf_chip_43362.c
|
2017-04-24 04:17:43 +08:00
|
|
|
*
|
2021-05-27 17:12:43 +08:00
|
|
|
* 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
|
2017-04-24 04:17:43 +08:00
|
|
|
*
|
2021-05-27 17:12:43 +08:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2017-04-24 04:17:43 +08:00
|
|
|
*
|
2021-05-27 17:12:43 +08:00
|
|
|
* 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.
|
2017-04-24 04:17:43 +08:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2018-10-08 05:00:13 +08:00
|
|
|
/****************************************************************************
|
|
|
|
* Included Files
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
2017-05-04 05:19:28 +08:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2018-10-08 05:00:13 +08:00
|
|
|
#include "bcmf_sdio.h"
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Pre-processor Definitions
|
|
|
|
****************************************************************************/
|
|
|
|
|
2017-04-24 04:17:43 +08:00
|
|
|
#define WRAPPER_REGISTER_OFFSET 0x100000
|
|
|
|
|
2018-10-08 05:00:13 +08:00
|
|
|
/****************************************************************************
|
|
|
|
* Public Data
|
|
|
|
****************************************************************************/
|
|
|
|
|
2017-04-24 04:17:43 +08:00
|
|
|
extern const char bcm43362_nvram_image[];
|
|
|
|
extern const unsigned int bcm43362_nvram_image_len;
|
|
|
|
|
2018-10-08 05:00:13 +08:00
|
|
|
#ifndef CONFIG_IEEE80211_BROADCOM_FWFILES
|
2017-04-24 04:17:43 +08:00
|
|
|
extern const uint8_t bcm43362_firmware_image[];
|
|
|
|
extern const unsigned int bcm43362_firmware_image_len;
|
2018-10-08 05:00:13 +08:00
|
|
|
#endif
|
2017-04-24 04:17:43 +08:00
|
|
|
|
2017-05-04 08:20:57 +08:00
|
|
|
const struct bcmf_sdio_chip bcmf_43362_config_sdio =
|
|
|
|
{
|
2017-04-24 04:17:43 +08:00
|
|
|
/* General chip stats */
|
|
|
|
|
2019-12-06 01:49:12 +08:00
|
|
|
.ram_size = 0x3c000,
|
2017-04-24 04:17:43 +08:00
|
|
|
|
|
|
|
/* Backplane architecture */
|
|
|
|
|
2017-05-04 08:20:57 +08:00
|
|
|
.core_base =
|
|
|
|
{
|
2017-04-24 04:17:43 +08:00
|
|
|
[CHIPCOMMON_CORE_ID] = 0x18000000, /* Chipcommon core register base */
|
|
|
|
[DOT11MAC_CORE_ID] = 0x18001000, /* dot11mac core register base */
|
|
|
|
[SDIOD_CORE_ID] = 0x18002000, /* SDIOD Device core register base */
|
|
|
|
[WLAN_ARMCM3_CORE_ID] = 0x18003000 + /* ARMCM3 core register base */
|
|
|
|
WRAPPER_REGISTER_OFFSET,
|
|
|
|
[SOCSRAM_CORE_ID] = 0x18004000 + /* SOCSRAM core register base */
|
|
|
|
WRAPPER_REGISTER_OFFSET
|
|
|
|
},
|
|
|
|
|
|
|
|
/* Firmware images */
|
2019-12-06 01:49:12 +08:00
|
|
|
|
2018-08-23 07:35:17 +08:00
|
|
|
/* TODO find something smarter than using image_len references */
|
2017-04-24 04:17:43 +08:00
|
|
|
|
2018-10-08 05:00:13 +08:00
|
|
|
.nvram_image = (FAR uint8_t *)bcm43362_nvram_image,
|
2019-10-29 22:01:55 +08:00
|
|
|
.nvram_image_size = (FAR unsigned int *)&bcm43362_nvram_image_len,
|
2017-04-24 04:17:43 +08:00
|
|
|
|
2018-10-08 05:00:13 +08:00
|
|
|
#ifndef CONFIG_IEEE80211_BROADCOM_FWFILES
|
|
|
|
.firmware_image = (FAR uint8_t *)bcm43362_firmware_image,
|
|
|
|
.firmware_image_size = (FAR unsigned int *)&bcm43362_firmware_image_len,
|
|
|
|
#endif
|
2017-05-04 08:20:57 +08:00
|
|
|
};
|
2021-04-04 17:58:11 +08:00
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Public Functions
|
|
|
|
****************************************************************************/
|