mbox series

[0/9] MIPS: Migrate pistachio to generic kernel

Message ID 20210627045631.2882-1-jiaxun.yang@flygoat.com
Headers show
Series MIPS: Migrate pistachio to generic kernel | expand

Message

Jiaxun Yang June 27, 2021, 4:56 a.m. UTC
I'm lucky enough to get a Creator CI40 board from dusts.
This patchset move it to gerneic kernel to reduce maintenance burden.
It have been tested with SD Card boot.

Jiaxun Yang (9):
  MIPS: generic: Allow generating FIT image for Marduk board
  MIPS: DTS: Pistachio add missing cpc and cdmm
  clk: pistachio: Make it selectable for generic MIPS kernel
  clocksource/drivers/pistachio: Make it seletable for MIPS
  phy: pistachio-usb: Depend on MIPS || COMPILE_TEST
  pinctrl: pistachio: Make it as a option
  MIPS: config: generic: Add config for Marduk board
  MIPS: Retire MACH_PISTACHIO
  MIPS: Make a alias for pistachio_defconfig

 arch/mips/Kbuild.platforms                    |   1 -
 arch/mips/Kconfig                             |  29 --
 arch/mips/Makefile                            |   3 +
 arch/mips/boot/dts/Makefile                   |   2 +-
 arch/mips/boot/dts/img/Makefile               |   3 +-
 arch/mips/boot/dts/img/pistachio.dtsi         |  10 +
 arch/mips/configs/generic/board-marduk.config |  53 +++
 arch/mips/configs/pistachio_defconfig         | 316 ------------------
 arch/mips/generic/Kconfig                     |   6 +
 arch/mips/generic/Platform                    |   1 +
 arch/mips/generic/board-marduk.its.S          |  22 ++
 arch/mips/pistachio/Kconfig                   |  14 -
 arch/mips/pistachio/Makefile                  |   2 -
 arch/mips/pistachio/Platform                  |   6 -
 arch/mips/pistachio/init.c                    | 125 -------
 arch/mips/pistachio/irq.c                     |  24 --
 arch/mips/pistachio/time.c                    |  55 ---
 drivers/clk/Kconfig                           |   1 +
 drivers/clk/Makefile                          |   2 +-
 drivers/clk/pistachio/Kconfig                 |   8 +
 drivers/clocksource/Kconfig                   |   3 +-
 drivers/phy/Kconfig                           |   2 +-
 drivers/pinctrl/Kconfig                       |   5 +-
 23 files changed, 114 insertions(+), 579 deletions(-)
 create mode 100644 arch/mips/configs/generic/board-marduk.config
 delete mode 100644 arch/mips/configs/pistachio_defconfig
 create mode 100644 arch/mips/generic/board-marduk.its.S
 delete mode 100644 arch/mips/pistachio/Kconfig
 delete mode 100644 arch/mips/pistachio/Makefile
 delete mode 100644 arch/mips/pistachio/Platform
 delete mode 100644 arch/mips/pistachio/init.c
 delete mode 100644 arch/mips/pistachio/irq.c
 delete mode 100644 arch/mips/pistachio/time.c
 create mode 100644 drivers/clk/pistachio/Kconfig

Comments

Stephen Boyd June 27, 2021, 11:38 p.m. UTC | #1
Quoting Jiaxun Yang (2021-06-26 21:56:25)
> diff --git a/drivers/clk/pistachio/Kconfig b/drivers/clk/pistachio/Kconfig
> new file mode 100644
> index 000000000000..efb7a7f45259
> --- /dev/null
> +++ b/drivers/clk/pistachio/Kconfig
> @@ -0,0 +1,8 @@
> +# SPDX-License-Identifier: GPL-2.0
> +
> +config COMMON_CLK_PISTACHIO
> +       bool "Support for IMG Pistachio SoC clock controllers"
> +       depends on MIPS

Is anything MIPS specific? Or can this be 

	depends on MIPS || COMPILE_TEST


> +       help
> +         Support for the IMG Pistachio SoC clock controller.
> +         Say Y if you want to include clock support.
> \ No newline at end of file
> -- 
> 2.32.0
>
Jiaxun Yang June 28, 2021, 1:06 a.m. UTC | #2
在 2021/6/28 上午7:38, Stephen Boyd 写道:
> Quoting Jiaxun Yang (2021-06-26 21:56:25)

>> diff --git a/drivers/clk/pistachio/Kconfig b/drivers/clk/pistachio/Kconfig

>> new file mode 100644

>> index 000000000000..efb7a7f45259

>> --- /dev/null

>> +++ b/drivers/clk/pistachio/Kconfig

>> @@ -0,0 +1,8 @@

>> +# SPDX-License-Identifier: GPL-2.0

>> +

>> +config COMMON_CLK_PISTACHIO

>> +       bool "Support for IMG Pistachio SoC clock controllers"

>> +       depends on MIPS

> Is anything MIPS specific? Or can this be

>

> 	depends on MIPS || COMPILE_TEST


No there are nothing MIPS specific.

Will fix in next revision.

Thanks.

- Jiaxun

>

>

>> +       help

>> +         Support for the IMG Pistachio SoC clock controller.

>> +         Say Y if you want to include clock support.

>> \ No newline at end of file

>> -- 

>> 2.32.0

>>