Commit Graph

27 Commits

Author SHA1 Message Date
Conor Paxton 5d079f1683 mpfs:CMakeLists.txt: Adding mss_gpio directory to build
Adding the PolarFire SoC Icicle Kit mss_gpio driver to the
zephyr build

Signed-off-by: Conor Paxton <conor.paxton@microchip.com>
2022-04-08 15:33:15 -04:00
Peter Mc Shane b0f4120844 modules: hal: microchip: README: adding entry for mpfs hal
Adding info in the README regarding origin of the mpfs hal
and versioning.

Signed-off-by: Conor Paxton <conor.paxton@microchip.com>
2022-04-08 15:33:15 -04:00
Peter Mc Shane 1bdfb65f5d modules: microchip: CmakeLists: adding entry for mpfs hal
Adding entry for Cmake to generate directory for mpfs hal,
if defined.

Signed-off-by: Conor Paxton <conor.paxton@microchip.com>
2022-04-08 15:33:15 -04:00
Peter Mc Shane 3ac6315ede modules: microchip: mpfs: Adding Polarfire SoC mpfs hal
Origin https://github.com/polarfire-soc/platform

Signed-off-by: Conor Paxton <conor.paxton@microchip.com>
2022-04-08 15:33:15 -04:00
Scott Worley 870d05e6a6 modules: microchip: MEC15xx Add missing eSPI VW definitions
Add missing eSPI MSVW08 - MSVW11 definitions.
Update GPIO ID enum with max value.
Remove non-printable character from SAF header.
Make sure all structure typedefs have a structure name.
Rename SPISLV to SPIP.
Changed all hex digits to lowe case.
Converted all "ul/UL" suffixes to "u".

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2021-07-26 14:58:09 -04:00
Scott Worley ff0a32908b modules: microchip: mec1501: Add missing ESPI VW defines
Add missing ESPI Virtual Wire groups 8 - 11 GIRQ defines.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2021-07-26 14:58:09 -04:00
Scott Worley b280eec5d3 modules: microchip: mec1501: Add Analog comparator register defines
Origin
    MCHP
       https://github.com/MicrochipTech/hal_microchip

Status:
    version: 1.2.0

Add missing analog comparator defines and remove unimplemented
registers in MEC150x/2x EC subsystem header.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2021-04-26 16:13:43 -04:00
Scott Worley 44e24f3ff1 modules: microchip: mec1501: Fix GPIO alternate function field mask
Origin
    MCHP
        https://github.com/MicrochipTech/hal_microchip

Status:
    version: 1.2.0

MEC150x/2x GPIO control register alternate function field is a two
bit field but mask was set for 4 bits.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2021-04-26 16:13:43 -04:00
Scott Worley a1bba228fd modules: microchip: mec1501: Add missing ADC register field defines
Origin
    MCHP
      https://github.com/MicrochipTech/hal_microchip

Status:
    version: 1.2.0

Add missing ADC register field defines for control and others.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2021-04-26 16:13:43 -04:00
Scott Worley f6999e83f9 modules: microchip: mec1501 ECIA register structure update
Origin:
    MCHP
       https://github.com/MicrochipTech/hal_microchip

Status:
    version: 1.2.0

Update ECIA register structure allowing access by named GIRQxy
or GIRQ array access.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2021-04-26 16:13:43 -04:00
Scott Worley ba967b6a4b modules: microchip: mec1501 Add GIRQ source definitions
Origin:
    MCHP
        https://github.com/MicrochipTech/hal_microchip

Status:
    version 1.2.0

Add all GIRQ interrupt source definitions to the ECIA
component header. Add peripheral instance numbers to
main MEC1501 header. Add common BIT macro if not defined
in an outside header.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2021-04-26 16:13:43 -04:00
Scott Worley a1ec761014 modules: Add eSPI SAF header and updates
Origin:
    MCHP
        https://github.com/MicrochipTech/hal_microchip

Status:
    version 1.1.0

Add Microchip MEC15xx eSPI SAF header and SAF changes
in other affected hardware headers: espi_io and qmspi.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2020-07-20 10:39:30 -07:00
Scott Worley aad89bf053 modules: Fix MEC1501 OOB RX/TX transfer length masks
OOB RX and TX registers transfer length fields had
incorrect mask value. Fixed OOB RX status all RW1C mask
to mask only RW1C and added another status mask for
all status(RW1C and RO).

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2020-05-04 11:56:24 -07:00
Scott Worley 688cb7deeb modules: mec1501: Fix bugs in ACPI EC defines
ACPI EC Status register defines incorrect bit
position names corrected.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2020-04-09 13:38:34 -07:00
Scott Worley 03c8819ac3 modules: Fix bug in ADC resolution define
The 10-bit resolution define for the ADC SAR register
was incorrect.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2020-03-02 16:46:27 -08:00
Scott Worley a8a3b31822 modules: Fix bug in MEC1501 TACH header
Fixed bug in naming of bit position value for two MEC1501
TACH register fields.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2020-02-07 13:38:49 -08:00
Scott Worley a4874c83ee modules: Fix bugs in ECIA and PECI headers
GIRQ22 was missing from the MCHP_GIRQ_IDS enum resulting
in incorrect calculations based on the enum value. PECI
status 2 register had incorrect named bit positions resulting
in compile error when used.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2020-02-04 21:14:02 -05:00
Scott Worley 85302959c0 modules : hal : microchip Add remaining MEC1501 HAL headers
Updates the MEC1501 peripheral headers to version 0.2.
Added the missing peripheral header files to the MEC1501 HAL.
The added peripherals are: ACPI PM1, ADC, HDMI_CEC, PECI,
PROCHOT, PWM, RTC, SPI slave, TACH, VBAT VCI.
Modified headers are ACPI EC, ECIA, ECS, QMSPI, VBAT, and WDT.

Origin: Peripheral-MEC1501
License: Apache 2.0
URL: https://github.com/MicrochipTech/Peripheral-MEC1501
Purpose: Provide device header files for MEC1501
Maintained-by: External

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2019-09-11 21:02:56 -04:00
Anas Nashif a92582bc65 modules: make microchip HAL a zephyr module
Make this a zephyr module to be used with west.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2019-08-19 07:01:24 -07:00
Scott Worley 9e1d2a4a68 ext : hal : Microchip MEC1501 PS/2 and global configuration updates.
Added header files for PS/2 and global configuration hardware
blocks to MEC1501 HAL.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2019-08-07 15:43:11 -07:00
Francisco Munoz 409325aaa0 ext: hal: microchip: Fix compilation issue in HAL
Fix compilation error when using MCHP_ECS_DCTRL_MODE_SWD

Signed-off-by: Francisco Munoz <francisco.munoz.ruiz@intel.com>
2019-08-01 16:20:49 -07:00
Jose Alberto Meza 2c92ea7bc2 ext: hal: mchp: Fix compilation for MEC1501 HAL macros
Correct HAL macros related to eSPI block
Add GIRQ bit definitions for VWires and some peripherals

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
2019-07-25 08:23:38 -07:00
Scott Worley 385bd2a669 ext : hal : microchip Header updates for MEC1501
Updated MEC1501 HAL headers. Add interrupt routing defines for timers.
Fix eSPI virtual wire source access. Add new headers for Port80
capture and TFDP.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2019-06-26 07:16:47 -04:00
Jose Alberto Meza 1f2dbec4d2 ext: hal: mchp: Fix compilation for MEC1501 SMB macros
Adjust space definition for I2C register base addresses

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
2019-05-08 15:02:26 -07:00
Scott Worley d9ba0d14f7 ext : hal : mec1501 Add the MEC1501 external headers.
Origin: Microchip CPG
Purpose: Peripheral firmware library for MEC1501
Version: 0.1
License: Apache
Maintained-by: External

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2019-04-30 14:08:23 -07:00
Ulf Magnusson e7347ab101 kconfig: Remove redundant 'default n' properties
Some more were added since the cleanup pass in June 2018. See e.g.
commit 2d50da70a1 ("drivers: ipm: Kconfig: Remove redundant 'default n'
properties") for a motivation. It also avoids people wondering whether
or not they need to put in 'default n'.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-02-27 09:25:22 +01:00
Francisco Munoz a4e72cce06 ext : hal : mec1701 Add the MEC1701 external header.
Origin: Microchip CPG
URL: https://github.com/MicrochipTech/Peripheral-mec1701
Version: 0.2
Purpose: Official peripheral firmware library for MEC1701
License: Apache
Maintained-by: External

Signed-off-by: Francisco Munoz <francisco.munoz.ruiz@intel.com>
2019-02-08 21:38:54 -05:00