integration/export: do not include soc.h in csr.h when with_access_functions=False

Idealy we should have another parameter for that.
This commit is contained in:
Florent Kermarrec 2019-11-07 09:02:31 +01:00
parent b52dcde9ba
commit f1714405c3
1 changed files with 2 additions and 1 deletions

View File

@ -180,7 +180,8 @@ def _get_rw_functions_c(reg_name, reg_base, nwords, busword, alignment, read_onl
def get_csr_header(regions, constants, with_access_functions=True):
alignment = constants.get("CONFIG_CSR_ALIGNMENT", 32)
r = generated_banner("//")
r += "#include <generated/soc.h>\n"
if with_access_functions: # FIXME
r += "#include <generated/soc.h>\n"
r += "#ifndef __GENERATED_CSR_H\n#define __GENERATED_CSR_H\n"
if with_access_functions:
r += "#include <stdint.h>\n"