2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 06:04:14 +08:00
linux-next/arch/arm/mach-shmobile
Geert Uytterhoeven 7a2071c58f ARM: shmobile: Add early debugging support using SCIF(A)
Add serial port debug macros for the SCIF(A) serial ports.
This includes all supported shmobile SoCs, except for EMEV2.

The configuration logic (both Kconfig and #ifdef) is more complicated than
one would expect, for several reasons:
  1. Not all SoCs have the same serial devices, and they're not always
     at the same addresses.
  2. There are two different types: SCIF and SCIFA. Fortunately they can
     easily be distinguished by physical address.
  3. Not all boards use the same serial port for the console.
     The defaults correspond to the boards that are supported in
     mainline. If you want to use a different serial port, just change
     the value of CONFIG_DEBUG_UART_PHYS, and the rest will auto-adapt.
  4. debug_ll_io_init() maps the SCIF(A) registers to a fixed virtual
     address. 0xfdxxxxxx was chosen, as it should lie below VMALLOC_END
     = 0xff000000, and must not conflict with the 2 MiB reserved region
     at PCI_IO_VIRT_BASE = 0xfee00000.
       - On SoCs not using the legacy machine_desc.map_io(),
	 debug_ll_io_init() is called by the ARM core code.
       - On SoCs using the legacy machine_desc.map_io(),
	 debug_ll_io_init() must be called explicitly. Calls are added
	 for r8a7740, r8a7779, sh7372, and sh73a0.

This was derived from the r8a7790 version by Laurent Pinchart.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
2014-11-17 10:29:58 +09:00
..
include/mach Second Round of Renesas ARM Based SoC Updates for v3.17 2014-07-12 09:44:52 -07:00
board-ape6evm-reference.c cpufreq: cpu0: rename driver and internals to 'cpufreq_dt' 2014-10-03 15:37:54 +02:00
board-ape6evm.c ARM: shmobile: ape6evm: Use shmobile_init_delay() 2014-08-20 09:06:35 +09:00
board-armadillo800eva.c ARM: shmobile: armadillo800eva legacy: Use rmobile_add_devices_to_domains() 2014-09-09 11:16:08 +09:00
board-bockw-reference.c ARM: shmobile: bockw: Use shmobile_init_delay() 2014-08-22 11:32:13 +09:00
board-bockw.c ARM: shmobile: bockw: Use shmobile_init_delay() 2014-08-22 11:32:13 +09:00
board-koelsch-reference.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-10-14 09:39:08 +02:00
board-koelsch.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-10-14 09:39:08 +02:00
board-kzm9g-reference.c ARM: shmobile: kzm9g: Use shmobile_init_delay() 2014-08-22 11:32:13 +09:00
board-kzm9g.c Second Round Of Renesas ARM Based SoC Updates For v3.18 2014-09-05 17:29:29 +02:00
board-lager-reference.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-10-14 09:39:08 +02:00
board-lager.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-10-14 09:39:08 +02:00
board-mackerel.c ARM: SoC platform changes for 3.18 2014-10-08 17:13:04 -04:00
board-marzen-reference.c Renesas ARM Based SoC DT Timers Updates for v3.18 2014-09-05 17:40:32 +02:00
board-marzen.c drm/rcar-du: Use struct videomode in platform data 2014-09-15 11:55:47 +03:00
clock-r8a73a4.c ARM: SoC device-tree changes for 3.17 2014-08-08 11:16:58 -07:00
clock-r8a7740.c ARM: SoC device-tree changes for 3.17 2014-08-08 11:16:58 -07:00
clock-r8a7778.c ARM: SoC device-tree changes for 3.17 2014-08-08 11:16:58 -07:00
clock-r8a7779.c ARM: shmobile: Move r8a7779.h 2014-06-25 16:52:39 +09:00
clock-r8a7790.c Renesas ARM Based SoC Clock Fixes For v3.17 2014-08-27 15:14:05 -07:00
clock-r8a7791.c Renesas ARM Based SoC Clock Fixes For v3.17 2014-08-27 15:14:05 -07:00
clock-sh73a0.c Renesas ARM Based SoC Clock Fixes For v3.17 2014-08-27 15:14:05 -07:00
clock-sh7372.c ARM: shmobile: Move common.h 2014-06-17 17:09:39 +09:00
clock.c ARM: shmobile: Move common.h 2014-06-17 17:09:39 +09:00
clock.h ARM: shmobile: Move clock.h 2014-06-17 17:09:37 +09:00
common.h ARM: shmobile: Separate APMU resource data into CPU dependant part 2014-11-04 09:31:23 +09:00
console.c ARM: shmobile: Move common.h 2014-06-17 17:09:39 +09:00
cpufreq.c cpufreq: cpu0: rename driver and internals to 'cpufreq_dt' 2014-10-03 15:37:54 +02:00
cpuidle.c ARM: shmobile: cpuidle: use init/exit common routine 2013-04-23 13:45:22 +02:00
dma-register.h ARM: shmobile: dma: Use defines instead of hardcoded numbers 2014-08-20 09:09:23 +09:00
entry-intc.S
headsmp-scu.S Merge tag 'renesas-soc2-for-v3.12' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/soc 2013-08-14 11:09:47 -07:00
headsmp.S ARM: SoC platform changes for 3.17 2014-08-08 11:14:29 -07:00
intc-sh73a0.c ARM: shmobile: Move sh73a0.h 2014-06-25 16:49:37 +09:00
intc-sh7372.c ARM: shmobile: Move most of irqs.h, keep some for pinctl 2014-06-17 17:09:38 +09:00
intc.h ARM: shmobile: Move legacy INTC definitions from irqs.h to intc.h 2014-08-22 12:23:32 +09:00
irqs.h ARM: shmobile: Move legacy INTC definitions from irqs.h to intc.h 2014-08-22 12:23:32 +09:00
Kconfig ARM: shmobile: Enable PCI domains for R-Car Gen2 devices 2014-11-05 14:50:17 +09:00
Makefile ARM: shmobile: always build rcar setup for armv7 2014-11-12 18:14:42 +09:00
Makefile.boot Renesas ARM Based SoC r8a7740 Multiplatform Updates for v3.18 2014-09-09 17:07:30 +02:00
platsmp-apmu.c ARM: shmobile: Separate APMU resource data into CPU dependant part 2014-11-04 09:31:23 +09:00
platsmp-apmu.h ARM: shmobile: Separate APMU resource data into CPU dependant part 2014-11-04 09:31:23 +09:00
platsmp-scu.c ARM: shmobile: Move common.h 2014-06-17 17:09:39 +09:00
platsmp.c ARM: shmobile: Move common.h 2014-06-17 17:09:39 +09:00
pm-r8a7740.c ARM: SoC platform changes for 3.18 2014-10-08 17:13:04 -04:00
pm-r8a7779.c ARM: shmobile: Drop dev_irq_safe from r8a7779 genpd config 2014-09-09 00:46:11 +02:00
pm-r8a7790.c Second Round of Renesas ARM Based SoC Updates for v3.17 2014-07-12 09:44:52 -07:00
pm-r8a7791.c ARM: shmobile: Allow r8a7791 to build non-SMP APMU code 2014-06-26 16:01:34 +09:00
pm-rcar.c ARM: shmobile: Cleanup pm-rcar.o build using Kconfig 2014-09-02 09:32:05 +09:00
pm-rcar.h ARM: shmobile: Move pm-rcar.h, cleanup r8a7779 case 2014-06-17 17:09:40 +09:00
pm-rmobile.c ACPI and power management updates for 3.18-rc1 2014-10-09 16:07:43 -04:00
pm-rmobile.h ARM: shmobile: Cleanup pm-rmobile.o build using Kconfig 2014-09-02 09:32:06 +09:00
pm-sh73a0.c ARM: shmobile: Move common.h 2014-06-17 17:09:39 +09:00
pm-sh7372.c ARM: shmobile: Move sh7372.h 2014-06-25 16:50:00 +09:00
r8a73a4.h ARM: shmobile: r8a73a4: Use shmobile_init_delay() 2014-08-22 11:31:56 +09:00
r8a7740.h ARM: shmobile: r8a7740: Multiplatform support 2014-09-02 10:04:08 +09:00
r8a7778.h ARM: shmobile: Move r8a7778.h 2014-06-25 16:48:02 +09:00
r8a7779.h ARM: shmobile: marzen-reference: Enable TMU0 in device tree 2014-08-17 09:00:56 +09:00
r8a7790.h ARM: shmobile: lager-reference: Enable CMT0 in device tree 2014-08-17 09:00:55 +09:00
r8a7791.h ARM: shmobile: koelsch-reference: Enable CMT0 in device tree 2014-08-17 09:00:56 +09:00
rcar-gen2.h ARM: shmobile: Add shared R-Car Gen2 CMA reservation code 2014-06-17 19:33:22 +09:00
setup-emev2.c ARM: shmobile: Get rid of redundant EMEV2 mach callbacks 2014-06-17 19:50:05 +09:00
setup-r7s72100.c Renesas ARM Based SoC Cleanup Updates for v3.18 2014-09-05 17:42:18 +02:00
setup-r8a73a4.c ARM: shmobile: r8a73a4: Use shmobile_init_delay() 2014-08-22 11:31:56 +09:00
setup-r8a7740.c ARM: shmobile: Add early debugging support using SCIF(A) 2014-11-17 10:29:58 +09:00
setup-r8a7778.c ARM: shmobile: r8a7778: Use shmobile_init_delay() 2014-08-22 11:31:57 +09:00
setup-r8a7779.c ARM: shmobile: Add early debugging support using SCIF(A) 2014-11-17 10:29:58 +09:00
setup-r8a7790.c ARM: shmobile: lager-reference: Enable CMT0 in device tree 2014-08-17 09:00:55 +09:00
setup-r8a7791.c ARM: shmobile: koelsch-reference: Enable CMT0 in device tree 2014-08-17 09:00:56 +09:00
setup-r8a7794.c ARM: shmobile: r8a7794: Reserve memory as other R-Car Gen2 SoCs 2014-09-16 15:01:58 +09:00
setup-rcar-gen2.c ARM: shmobile: rcar-gen2: Add CA7 arch_timer initialization for r8a7794 2014-10-27 09:17:05 +09:00
setup-sh73a0.c ARM: shmobile: Add early debugging support using SCIF(A) 2014-11-17 10:29:58 +09:00
setup-sh7372.c ARM: shmobile: Add early debugging support using SCIF(A) 2014-11-17 10:29:58 +09:00
sh73a0.h ARM: shmobile: Move sh73a0.h 2014-06-25 16:49:37 +09:00
sh7372.h ARM: shmobile: Move sh7372.h 2014-06-25 16:50:00 +09:00
sh-gpio.h ARM: shmobile: mackerel: Use pinconf API to configure pin pull-down 2013-12-10 17:24:49 +09:00
sleep-sh7372.S ARM: shmobile: Insert align directives before 4 bytes data 2013-07-18 08:35:21 +09:00
smp-emev2.c ARM: shmobile: Move common.h 2014-06-17 17:09:39 +09:00
smp-r8a7779.c ARM: shmobile: Move r8a7779.h 2014-06-25 16:52:39 +09:00
smp-r8a7790.c ARM: shmobile: Separate APMU resource data into CPU dependant part 2014-11-04 09:31:23 +09:00
smp-r8a7791.c ARM: shmobile: r8a7791: Correct number of CPU cores 2014-11-04 09:31:27 +09:00
smp-sh73a0.c ARM: shmobile: Move sh73a0.h 2014-06-25 16:49:37 +09:00
suspend.c arm: Use generic idle loop 2013-04-08 17:39:24 +02:00
timer.c ARM: shmobile: Handle CA7 arch timer delay 2014-10-24 10:53:30 +09:00