Commit Graph

64 Commits

Author SHA1 Message Date
Marcin Rajwa a84ccfe0a0 GDB: Initial commit - added debug vector and init code.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2018-11-28 13:16:58 +01:00
Janusz Jankowski 64497f5f64 autoconf: make roms build optional
Use --enable-roms to build ROMs

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-11-23 11:46:38 +01:00
Liam Girdwood 93540c74eb rom: ci: build xtensa ROM images for CI boot testing.
Some platforms like APL, CNL and ICL have a ROM that read the manifest
and loads the boot loader. This builds a simple ROM so that qemu can
boot APL, CNL and ICL firmware images for CI boot testing.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-21 20:58:45 +00:00
Liam Girdwood 2ba01165b9 uapi: split ipc.h and abi.h into small files.
Split the larger ABI files into smaller more manageable chunks. Also
split by end user into IPC and user space ABIs.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-09 21:19:11 +00:00
Liam Girdwood 24f30e1517 uapi: abi: Use semantic ABI versioning.
Use semantic ABI versioning with major, minor and patch versioning
according to https://semver.org/

Also make sure micro version is included in ABI version.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-09 16:16:38 +00:00
Liam Girdwood 08236fcb46 build: make builds reproducible.
Add a debug option to include build number, date and time into build.
This will be disabled b default so that all builds are reproducible.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-09 16:16:38 +00:00
Zhu Yingjiang f1c5a15c8a rimage: add build scripts to build 1.5 image
add to build scripts and Makefiles to build firmware binary
for kbl and skl

Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
2018-11-05 18:36:03 +08:00
Seppo Ingalsuo d5b4f5705f SRC: Use 32 bit filter coefficients in host testbench
This patch adds definition of CONFIG_HOST for SOF host version build
and selects for SRC the better quality and full conversions set in
such case.

The problem with default for gcc was that the conversions set for
non-optimized xtensa gcc is very limited and the quality has been
lowered to save resources. Hence the testbench creates huge amount
of fails without this change. With this patch the SRC test tracks the
quality of coefficients for optimized HiFiEP/HiFi3 version code.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-10-24 15:10:27 +03:00
Marcin Maka 62f6742f4e make: cavs: make memory windows a configurable feature
Disabled for Sue configuration.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-15 16:55:30 +02:00
Marcin Maka 1ba7b5e0af plat: apl: clock gating adjusted for dai, dma, and cores
dai clocks ungated and resources allocated on the first use.
dma clocks ungated and resources allocated on the first use.
cores clocks gated in idle.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-08 15:03:45 +02:00
Liam Girdwood 41a61bcdc1 sue: Add build support for Sue Creek platform
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:09:58 +01:00
Janusz Jankowski 054a218e83 autoconf: optional implicit-fallthrough
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-09-11 12:13:17 +02:00
Janusz Jankowski c0f156b2ba icl: initial support
Added icelake platform to platforms.
Updated rimage to support icelake.
Updated autoconf and automake files.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-31 19:52:48 +02:00
Janusz Jankowski 0d6425e614 drivers: refactor: move interrupt from platform to drivers
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-31 14:10:37 +02:00
Janusz Jankowski b67c535301 drivers: refactor: create <vendor>/<family> filetree
Split files into appropriate folders.
Added makefiles to not break build.
Fixed checkpatch errors in dw-dma and baytrail/ssp.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-31 14:10:37 +02:00
Liam Girdwood dc6014f226 Merge remote-tracking branch 'gh/next' into gp20-alpha-drop-stable 2018-08-16 15:52:03 +01:00
Janusz Jankowski d886a61010 platform: refactor: deduplicate code for APL&CNL
First step of deduplicating platforms code.
Keeps binaries identical with just removing duplicated code.

It is critical for maintainability of platform-specific sources (and adding new
platforms in the future).

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-02 14:09:24 +02:00
Janusz Jankowski 8235d3d61a configure: fix flags for unit tests
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-07-16 14:16:26 +02:00
Liam Girdwood 8c907e9038 configure: host: Host CFLAGS should be strict
Turns all warnings into errors.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-07-15 10:51:57 +01:00
Liam Girdwood 7c96066974 configure: rimage: Make sure rimage CFLAGS are strict.
Turn all warnings into errors for rimage.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-07-15 10:51:57 +01:00
Liam Girdwood a2acc8837d configure: gcc: make sure CFLAGS and LDFLAGS are set correctly.
GCC needs flags set correctly in order to pass AC_PROG_CC test.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-07-15 10:51:57 +01:00
Janusz Jankowski 17c929ebf6 autotools: replace user variables with automake variables
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-07-06 13:58:47 +02:00
Marcin Maka fa3252557f scripts: doc: enabled quick makefile generation for make doc
Use: ./configure --enable-doc && make doc

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-07-05 12:48:51 +02:00
Tomasz Lauda b31c743afe idc: intra DSP communication
Implements communication between DSP cores for cAVS platforms.
IDC mechanism availability based on platform and architecture.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-07-03 12:33:13 +02:00
Tomasz Lauda 01ebad7a1b arch: multicore xtos
Support for multiple cores executing the same code
with the new arch xtensa-smp:
- Updated xtos to the latest version (2017.8).
- Modified xtos to handle interrupts per core.
- Added interrupt structures and stacks per core.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-06-29 15:12:01 +02:00
Tomasz Lauda 14ca1fa3d5 pm_runtime: add runtime power management initial implementation
This patch adds initial empty implementation of runtime power management.
It is based on linux kernel implementation and will be developed
in the future.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-06-20 15:18:09 +02:00
Janusz Jankowski 9893313687 test: use AC_CHECK_LIB instead of PKG_CHECK_EXISTS in configure.ac to drop dependency on pkg-config
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-06-20 15:18:09 +02:00
Pan Xiuli 6fd219cda3 configure: add OBJCOPY and OBJDUMP log
Output OBJCOPY and OBJDUMP to check if we misuse them.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-06-19 13:08:30 +01:00
Janusz Jankowski d6d9efb90c test: enable cmocka unit tests for SOF
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-06-11 20:11:32 +01:00
Pan Xiuli 408d9358f6 configure: Change install prefix for bin and keys
Install prefix will not influce PEM install path. Add the check to let
PEM can install with the prefix.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-06-10 20:25:21 +01:00
Tomasz Lauda 80f3d47215 apl: core: enable boot loader path for Apollolake
This patch:
- Enables APL boot via SRAM,
- Disables L2 cache for APL,
- Reshapes linker scripts for APL and CNL.
- Adds support for using external xtensa headers for xt-xcc.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-06-07 21:22:28 +01:00
Tomasz Lauda ac7b0c227a rimage: add support for automatic MEU signing
This patch allows rimage to sign FW binaries using MEU tool.
Paths to MEU and private key have to be provided during config step.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-06-04 13:54:25 +01:00
Ranjani Sridharan a169fa356d host: include host testbench directory for compilation
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-06-01 08:28:16 +01:00
Seppo Ingalsuo 447ac9b675 DMIC: Add configure command switch to disable DMIC
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-05-17 14:20:20 +01:00
Liam Girdwood a197715d09 configure: check for doxygen and graphviz to build docs
Documentation needs doxygen and graphviz so warn if they are not
installed.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-04-13 15:33:57 +01:00
Marcin Maka 6aee21bb42 Makefile support for doc target.
Builds uapi documentation in html format using doxygen.
See doc/sof_uapi/html/index.html
First dox samples in the source code provided by the patch.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-04-13 14:56:04 +01:00
Tomasz Lauda 7f35266a78 configure: Fix --with-dsp-core flag
--with-dsp-core flag should accept every core name.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-04-06 11:53:27 +01:00
Pierre-Louis Bossart 81708a5d2a sof: global replacement of 'reef' by 'sof'
Let's remove reef to avoid confusion/legacy.
no functionality change but the name of generated files
will change so targets and install scripts will need
to be updated

There should be only one occurrence of "Reef" left in
rimage/file_format.h, left as is for backwards compatibility.
This may be changed separately at a later point.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
2018-04-05 15:10:14 +01:00
Liam Girdwood 1061b7d951 trace: dma: remove disable DMA trace option
DMA based trace is the standard default trace method. mailbox trace is
no longer supported.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-03-15 15:07:05 +00:00
Liam Girdwood 05ef4343d1 rimage: import rimage image creation and signing tool
rimage is being moved from tools repo to sof repo since there is now a
cyclic dependency between both repos and sof needs rimage for it's
build.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-02-13 20:29:40 +00:00
Keyon Jie c610c64299 dma: hda dma: Add HDA host and link DMA driver
Add a host and link DMA driver for Intel HDA DMA gateway.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2018-02-08 17:00:37 +00:00
Rander Wang 4502765ebe ssp: add ssp support for APL and CNL
Now it supports I2S & TDM4 master mode and no MN devide used.
For 19.2M clock, 16bit 48K stream maybe need to pack to 20bit
48K.
2018-02-08 16:41:21 +00:00
Ranjani Sridharan 0505823b96 build: add library build support for host platform
This patch provides library build support for host platform architecture.
It enables creating separate libraries for each SOF audio component.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-01-27 16:56:10 +00:00
Liam Girdwood 17c6bcf850 build: add build support for cannonlake
Build the Intel Cannonklake platform.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-01-23 16:19:59 +00:00
Liam Girdwood 095c907a3f build: add build support for apollolake
Build the Intel apollolake platform.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-01-23 16:15:51 +00:00
Liam Girdwood cc9fba353e build: configure: make sure we can include C headers in assembly
Set ASSEMBLY when we are building .S files so that C headers can
be included.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-01-23 16:15:51 +00:00
Liam Girdwood f198ad907c platform: hsw: Add build support for haswell and broadwell
Add build support Makefiles

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-01-22 12:25:12 +00:00
Liam Girdwood 6bb3783952 build: fix package name to sof
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-01-10 20:43:25 +00:00
Liam Girdwood 93d62e595e build: version Add micro version to supporting versioning stable releases
Currently SOF is version as x.y. Add a z so that the version is x.y.z and
can represent different stable versions.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-01-10 20:26:08 +00:00
Liam Girdwood b14e852bbe build: fix install and dist build targets.
Make install/dist were missing some headers files and dirs. Add them and
make sure version generation works for building from the dist directory
where there is no git versioning information available.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-01-10 17:36:41 +00:00