xtensa: ISS: add BLOCK dependency to BLK_DEV_SIMDISK

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: add seccomp, getrandom, and memfd_create syscalls

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: xtfpga: only select ethoc when ethernet is available

Otherwise we get the following build warning:
    (XTENSA_PLATFORM_XTFPGA) selects ETHOC which has unmet direct
    dependencies (NETDEVICES && ETHERNET && HAS_IOMEM && HAS_DMA)

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: nommu: move init_mmu stub to nommu_context.h

mmu_context.h is not used in nommu configuration, nommu_context.h is
used instead.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: nommu: provide __invalidate_dcache_page_alias stub

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: nommu: provide _PAGE_CHG_MASK definition

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: nommu: provide MAP_UNINITIALIZED definition

Add MAP_UNINITIALIZED to xtensa version of mman.h to keep mm/nommu.c
happy.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: nommu: don't provide arch_get_unmapped_area

Nommu unconditionally provides arch_get_unmapped_area that always
returns -ENOMEM.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: nommu: don't build most of the cache flushing code

Most cache flushing code is only relevant for MMU. Don't build it for
nommu configuration.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: nommu: add MMU dependency to DEBUG_TLB_SANITY

TLB sanity checking code depends on full MMU presence and may not be
built in noMMU confgiuration.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: nommu: fix Image.elf reset code and ld script

Don't hardcode kernel entry address as 0x3000 or 0xd0003000, use
KERNELOFFSET macro. Don't compile MMU remapping code and don't link it
when building noMMU configuration.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: nommu: fix load address definitions

Change KERNELOFFSET, LOAD_MEMORY_ADDRESS and VIRTUAL_MEMORY_ADDRESS to be
relative to the start of physical memory in noMMU configuration, as
there's no uniform memory remapping to KSEG starting at 0xd0000000.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: nommu: initialize vecbase SR

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: nommu: fix uImage load address

Use the same offset from the default physical memory start address as in
LOAD_MEMORY_ADDRESS definition.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: nommu: reserve memory below PLATFORM_DEFAULT_MEM_START

Memory accounting code can't handle pages below
PLATFORM_DEFAULT_MEM_START. Reserve those pages if they exist.
When PLATFORM_DEFAULT_MEM_START is zero reserve one page at address 0 to
make sure that successfull memory allocations don't return NULL.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: nommu: clean up memory map dump

noMMU configuration doesn't use special area for vmalloc allocations,
don't print it in the memory map.
PAGE_OFFSET is fixed to 0 in noMMU, use min_low_pfn and max_low_pfn for
lowmem range display.
Make all XCHAL_KSEG_* constants unsigned long for consistency with other
addresses.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: make PLATFORM_DEFAULT_MEM parameters configurable

This allows using xtfpga platform with both MMU and noMMU cores.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: s6000: provide variant_irq_disable prototype

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: s6000: fix build error in gpio.c

'irq' parameter of function 'set_type' was replaced with
struct irq_data *d in the commit '0e77575 xtensa: Convert s6000 gpio
irq_chip to new functions', but not all uses of 'irq' were replaced with
'd->irq'. Fix that.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
xtensa: s6000: move delay.c to platform

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>