Skip to content

Commit

Permalink
Update USBH_EHCI_Config file (USB Host EHCI_TT and OHCI drivers) (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigaMahne authored Aug 26, 2024
1 parent 1306d04 commit a6e4e27
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 58 deletions.
63 changes: 34 additions & 29 deletions Layers/IoT/RTE/CMSIS_Driver/USBH_EHCI_Config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* -----------------------------------------------------------------------------
* Copyright (c) 2024 Arm Limited (or its affiliates).
* All rights reserved.
/*
* Copyright (c) 2024 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
Expand All @@ -16,64 +15,70 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* -----------------------------------------------------------------------------
*
* $Date: 16. May 2024
* $Revision: V1.0
* $Date: 4. July 2024
* $Revision: V1.0
*
* Project: Config file for USB Host EHCI Controller Driver
* -------------------------------------------------------------------------- */
* Project: USB Host EHCI Controller Driver Configuration definitions
*
* -----------------------------------------------------------------------------
*/

//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------

#ifndef USBH_EHCI_CONFIG_H_
#define USBH_EHCI_CONFIG_H_

// <h>USB Host Controller 0
// <o>Driver number <0-3>
// <i>Specifies the exported Driver_USBH# instance
// <i>For example for value 0 the exported driver will be Driver_USBH0
// <o>Export control block Driver_USBH# <0-255>
// <i>Specifies the exported driver control block number
// <i>For example, for value 0 the exported driver control block will be Driver_USBH0
#define USBH0_EHCI_DRV_NUM 1

// <o>EHCI registers base address <0-0xFFFFFFFF>
// <o>EHCI Registers base address <0-0xFFFFFFFF>
// <i>Specifies the absolute address at which EHCI controller registers are located
#define USBH0_EHCI_BASE_ADDR 0x402E0100

// <e>Relocated EHCI communication area
// <i>Specifies if the communication area is located at a specific address
// <i>(via the linker script).
#define USBH0_EHCI_COM_AREA_RELOC 0
// <e>Locate EHCI Communication Area
// <i>Specifies if the communication area is located in a specific memory
// <i>(via the linker script)
#define USBH0_EHCI_COM_AREA_LOCATE 0

// <s.64>EHCI communication area section name
// <i>Specifies the section name of the EHCI communication area
// <s.64>Section name
// <i>Specifies the section name for the EHCI communication area
// <i>(for positioning via the linker script)
#define USBH0_EHCI_COM_AREA_SECTION_NAME ".driver.usbh0.ehci_com_area"
// </e>
// </h>

// <e>USB Host Controller 1
// <i>Enables or disables USB Host Driver 1
// <i>Enables or disables USB Host Controller 1 Driver
#define USBH1_EHCI_ENABLED 1

// <o>Driver number <0-3>
// <i>Specifies the exported Driver_USBH# instance
// <i>For example for value 1 the exported driver will be Driver_USBH1
// <o>Export control block Driver_USBH# <0-255>
// <i>Specifies the exported driver control block number
// <i>For example, for value 1 the exported driver control block will be Driver_USBH1
#define USBH1_EHCI_DRV_NUM 2

// <o>EHCI Host Controller registers base address <0-0xFFFFFFFF>
// <o>EHCI Registers base address <0-0xFFFFFFFF>
// <i>Specifies the absolute address at which EHCI controller registers are located
#define USBH1_EHCI_BASE_ADDR 0x402E0300

// <e>Relocated EHCI communication area
// <i>Specifies if the communication area is located at a specific address
// <i>(via the linker script).
#define USBH1_EHCI_COM_AREA_RELOC 1
// <e>Locate EHCI Communication Area
// <i>Specifies if the communication area is located in a specific memory
// <i>(via the linker script)
#define USBH1_EHCI_COM_AREA_LOCATE 1

// <s.64>EHCI communication area section name
// <i>Specifies the section name of the EHCI communication area
// <s.64>Section name
// <i>Specifies the section name for the EHCI communication area
// <i>(for positioning via the linker script)
#define USBH1_EHCI_COM_AREA_SECTION_NAME ".driver.usbh2.ehci_com_area"
// </e>
// </e>

// <o>Maximum number of pipes (per controller) <1-15>
// <o>Maximum number of Pipes <1-15>
// <i>Specifies the maximum number of pipes that the driver will support (per controller)
#define USBH_EHCI_MAX_PIPES 4

#endif /* USBH_EHCI_CONFIG_H_ */
63 changes: 34 additions & 29 deletions Layers/IoT/RTE/CMSIS_Driver/USBH_EHCI_Config.h.base@1.0.0
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* -----------------------------------------------------------------------------
* Copyright (c) 2024 Arm Limited (or its affiliates).
* All rights reserved.
/*
* Copyright (c) 2024 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
Expand All @@ -16,64 +15,70 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* -----------------------------------------------------------------------------
*
* $Date: 16. May 2024
* $Revision: V1.0
* $Date: 4. July 2024
* $Revision: V1.0
*
* Project: Config file for USB Host EHCI Controller Driver
* -------------------------------------------------------------------------- */
* Project: USB Host EHCI Controller Driver Configuration definitions
*
* -----------------------------------------------------------------------------
*/

//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------

#ifndef USBH_EHCI_CONFIG_H_
#define USBH_EHCI_CONFIG_H_

// <h>USB Host Controller 0
// <o>Driver number <0-3>
// <i>Specifies the exported Driver_USBH# instance
// <i>For example for value 0 the exported driver will be Driver_USBH0
// <o>Export control block Driver_USBH# <0-255>
// <i>Specifies the exported driver control block number
// <i>For example, for value 0 the exported driver control block will be Driver_USBH0
#define USBH0_EHCI_DRV_NUM 0

// <o>EHCI registers base address <0-0xFFFFFFFF>
// <o>EHCI Registers base address <0-0xFFFFFFFF>
// <i>Specifies the absolute address at which EHCI controller registers are located
#define USBH0_EHCI_BASE_ADDR 0x402E0100

// <e>Relocated EHCI communication area
// <i>Specifies if the communication area is located at a specific address
// <i>(via the linker script).
#define USBH0_EHCI_COM_AREA_RELOC 0
// <e>Locate EHCI Communication Area
// <i>Specifies if the communication area is located in a specific memory
// <i>(via the linker script)
#define USBH0_EHCI_COM_AREA_LOCATE 0

// <s.64>EHCI communication area section name
// <i>Specifies the section name of the EHCI communication area
// <s.64>Section name
// <i>Specifies the section name for the EHCI communication area
// <i>(for positioning via the linker script)
#define USBH0_EHCI_COM_AREA_SECTION_NAME ".driver.usbh0.ehci_com_area"
// </e>
// </h>

// <e>USB Host Controller 1
// <i>Enables or disables USB Host Driver 1
// <i>Enables or disables USB Host Controller 1 Driver
#define USBH1_EHCI_ENABLED 0

// <o>Driver number <0-3>
// <i>Specifies the exported Driver_USBH# instance
// <i>For example for value 1 the exported driver will be Driver_USBH1
// <o>Export control block Driver_USBH# <0-255>
// <i>Specifies the exported driver control block number
// <i>For example, for value 1 the exported driver control block will be Driver_USBH1
#define USBH1_EHCI_DRV_NUM 1

// <o>EHCI Host Controller registers base address <0-0xFFFFFFFF>
// <o>EHCI Registers base address <0-0xFFFFFFFF>
// <i>Specifies the absolute address at which EHCI controller registers are located
#define USBH1_EHCI_BASE_ADDR 0x402E0300

// <e>Relocated EHCI communication area
// <i>Specifies if the communication area is located at a specific address
// <i>(via the linker script).
#define USBH1_EHCI_COM_AREA_RELOC 0
// <e>Locate EHCI Communication Area
// <i>Specifies if the communication area is located in a specific memory
// <i>(via the linker script)
#define USBH1_EHCI_COM_AREA_LOCATE 0

// <s.64>EHCI communication area section name
// <i>Specifies the section name of the EHCI communication area
// <s.64>Section name
// <i>Specifies the section name for the EHCI communication area
// <i>(for positioning via the linker script)
#define USBH1_EHCI_COM_AREA_SECTION_NAME ".driver.usbh1.ehci_com_area"
// </e>
// </e>

// <o>Maximum number of pipes (per controller) <1-15>
// <o>Maximum number of Pipes <1-15>
// <i>Specifies the maximum number of pipes that the driver will support (per controller)
#define USBH_EHCI_MAX_PIPES 4

#endif /* USBH_EHCI_CONFIG_H_ */

0 comments on commit a6e4e27

Please sign in to comment.