2017-04-23 22:17:43 +02:00
|
|
|
/****************************************************************************
|
2021-03-08 22:39:04 +01:00
|
|
|
* drivers/wireless/ieee80211/bcm43xxx/bcmf_chip_43362.c
|
2017-04-23 22:17:43 +02:00
|
|
|
*
|
2021-05-27 11:12:43 +02: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-23 22:17:43 +02:00
|
|
|
*
|
2021-05-27 11:12:43 +02:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2017-04-23 22:17:43 +02:00
|
|
|
*
|
2021-05-27 11:12:43 +02: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-23 22:17:43 +02:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2018-10-07 23:00:13 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* Included Files
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
2017-05-03 23:19:28 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2018-10-07 23:00:13 +02:00
|
|
|
#include "bcmf_sdio.h"
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Pre-processor Definitions
|
|
|
|
****************************************************************************/
|
|
|
|
|
2017-04-23 22:17:43 +02:00
|
|
|
#define WRAPPER_REGISTER_OFFSET 0x100000
|
|
|
|
|
2018-10-07 23:00:13 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* Public Data
|
|
|
|
****************************************************************************/
|
|
|
|
|
2017-04-23 22:17:43 +02:00
|
|
|
extern const char bcm43362_nvram_image[];
|
|
|
|
extern const unsigned int bcm43362_nvram_image_len;
|
|
|
|
|
2018-10-07 23:00:13 +02:00
|
|
|
#ifndef CONFIG_IEEE80211_BROADCOM_FWFILES
|
2017-04-23 22:17:43 +02:00
|
|
|
extern const uint8_t bcm43362_firmware_image[];
|
|
|
|
extern const unsigned int bcm43362_firmware_image_len;
|
2018-10-07 23:00:13 +02:00
|
|
|
#endif
|
2017-04-23 22:17:43 +02:00
|
|
|
|
2017-05-04 02:20:57 +02:00
|
|
|
const struct bcmf_sdio_chip bcmf_43362_config_sdio =
|
|
|
|
{
|
2017-04-23 22:17:43 +02:00
|
|
|
/* General chip stats */
|
|
|
|
|
2021-12-29 15:02:46 +01:00
|
|
|
.ram_base = 0,
|
2019-12-05 18:49:12 +01:00
|
|
|
.ram_size = 0x3c000,
|
2017-04-23 22:17:43 +02:00
|
|
|
|
|
|
|
/* Backplane architecture */
|
|
|
|
|
2017-05-04 02:20:57 +02:00
|
|
|
.core_base =
|
|
|
|
{
|
2017-04-23 22:17:43 +02: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-05 18:49:12 +01:00
|
|
|
|
2018-08-23 01:35:17 +02:00
|
|
|
/* TODO find something smarter than using image_len references */
|
2017-04-23 22:17:43 +02:00
|
|
|
|
2018-10-07 23:00:13 +02:00
|
|
|
.nvram_image = (FAR uint8_t *)bcm43362_nvram_image,
|
2019-10-29 15:01:55 +01:00
|
|
|
.nvram_image_size = (FAR unsigned int *)&bcm43362_nvram_image_len,
|
2017-04-23 22:17:43 +02:00
|
|
|
|
2018-10-07 23:00:13 +02: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 02:20:57 +02:00
|
|
|
};
|
2021-04-04 11:58:11 +02:00
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Public Functions
|
|
|
|
****************************************************************************/
|