84 lines
3.1 KiB
C
84 lines
3.1 KiB
C
|
/****************************************************************************
|
||
|
* drivers/wireless/ieee80211/bcm43xxx/bcmf_chip_43013.c
|
||
|
*
|
||
|
* 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.
|
||
|
*
|
||
|
****************************************************************************/
|
||
|
|
||
|
/****************************************************************************
|
||
|
* Included Files
|
||
|
****************************************************************************/
|
||
|
|
||
|
#include <nuttx/config.h>
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#include "bcmf_sdio.h"
|
||
|
|
||
|
/****************************************************************************
|
||
|
* Pre-processor Definitions
|
||
|
****************************************************************************/
|
||
|
|
||
|
#define WRAPPER_REGISTER_OFFSET 0x100000
|
||
|
|
||
|
/****************************************************************************
|
||
|
* Public Data
|
||
|
****************************************************************************/
|
||
|
|
||
|
extern const char bcm43013_nvram_image[];
|
||
|
extern const unsigned int bcm43013_nvram_image_len;
|
||
|
|
||
|
#ifndef CONFIG_IEEE80211_BROADCOM_FWFILES
|
||
|
extern const uint8_t bcm43013_firmware_image[];
|
||
|
extern const unsigned int bcm43013_firmware_image_len;
|
||
|
#endif
|
||
|
|
||
|
const struct bcmf_sdio_chip bcmf_43013_config_sdio =
|
||
|
{
|
||
|
/* General chip stats */
|
||
|
|
||
|
.ram_base = 0,
|
||
|
.ram_size = 0xa0000,
|
||
|
|
||
|
/* Backplane architecture */
|
||
|
|
||
|
.core_base =
|
||
|
{
|
||
|
[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 */
|
||
|
|
||
|
/* TODO find something smarter than using image_len references */
|
||
|
|
||
|
.nvram_image = (FAR uint8_t *)bcm43013_nvram_image,
|
||
|
.nvram_image_size = (FAR unsigned int *)&bcm43013_nvram_image_len,
|
||
|
|
||
|
#ifndef CONFIG_IEEE80211_BROADCOM_FWFILES
|
||
|
.firmware_image = (FAR uint8_t *)bcm43013_firmware_image,
|
||
|
.firmware_image_size = (FAR unsigned int *)&bcm43013_firmware_image_len,
|
||
|
#endif
|
||
|
};
|
||
|
|
||
|
/****************************************************************************
|
||
|
* Public Functions
|
||
|
****************************************************************************/
|