/**************************************************************************** * drivers/wireless/ieee80211/bcm43xxx/bcmf_chip_43438.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 #include #include "bcmf_sdio.h" /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ #define WRAPPER_REGISTER_OFFSET 0x100000 /**************************************************************************** * Public Data ****************************************************************************/ extern const char ap6212_nvram_image[]; extern const unsigned int ap6212_nvram_image_len; #ifndef CONFIG_IEEE80211_BROADCOM_FWFILES extern const uint8_t ap6212_firmware_image[]; extern const unsigned int ap6212_firmware_len; extern const uint8_t ap6212_clm_blob[]; extern const unsigned int ap6212_clm_blob_len; #endif const struct bcmf_sdio_chip bcmf_43438_config_sdio = { /* General chip stats */ .ram_base = 0, .ram_size = 512 * 1024, /* 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 *)ap6212_nvram_image, .nvram_image_size = (FAR unsigned int *)&ap6212_nvram_image_len, #ifndef CONFIG_IEEE80211_BROADCOM_FWFILES .firmware_image = (FAR uint8_t *)ap6212_firmware_image, .firmware_image_size = (FAR unsigned int *)&ap6212_firmware_len, .clm_blob_image = (FAR uint8_t *)ap6212_clm_blob, .clm_blob_image_size = (FAR unsigned int *)&ap6212_clm_blob_len, #endif }; /**************************************************************************** * Public Functions ****************************************************************************/