From 46c63431bdc17ecc422eb97d1a81279d9e943d0a Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Wed, 18 Dec 2024 13:54:23 +0900 Subject: [PATCH] samsung: tizen_rpi: Remove tizen_rpi header file Remove a tizen_rpi header file as dead code. It's repalced to tizen_rpi.env file. It's not using anymore. Change-Id: Ide1e6637173d5cfa2c592f599739458968a1d658 Signed-off-by: Jaehoon Chung --- include/samsung/tizen_rpi.h | 132 ------------------------------------ 1 file changed, 132 deletions(-) delete mode 100644 include/samsung/tizen_rpi.h diff --git a/include/samsung/tizen_rpi.h b/include/samsung/tizen_rpi.h deleted file mode 100644 index a1b3224dfc..0000000000 --- a/include/samsung/tizen_rpi.h +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (C) 2019 Samsung Electronics - * - * Configuration settings for the Tizen RPI board. - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#ifndef __CONFIG_TIZEN_RPI_H -#define __CONFIG_TIZEN_RPI_H - -/* DFU */ -#define DFU_ALT_SYSTEM \ - "Image fat 0 1;" \ - "bcm2710-rpi-3-b.dtb fat 0 1;" \ - "bcm2837-rpi-3-b.dtb fat 0 1;" \ - "bcm2710-rpi-3-b-plus.dtb fat 0 1;" \ - "bcm2711-rpi-4-b.dtb fat 0 1;" \ - "u-boot.bin fat 0 1;" \ - "uboot.env fat 0 1;" \ - "boot.scr.uimg fat 0 1;" \ - "zImage fat 0 1;" \ - "boot.img part 0 1;" \ - "rootfs part 0 2;" \ - "system-data part 0 3;" \ - "user part 0 5;" \ - "module part 0 6;" \ - "ramdisk.img part 0 7;" \ - "ramdisk-recovery part 0 8;" \ - "hal.img part 0 10" - -#define CONFIG_SET_DFU_ALT_BUF_LEN (SZ_1K) - -#define GPT_PARTS_DEFAULT \ - "uuid_disk=${uuid_gpt_disk};" \ - "name=boot_a,start=4MiB,uuid=${uuid_gpt_boot_a},size=64MiB,type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B;" \ - "name=rootfs_a,size=3072MiB,uuid=${uuid_gpt_rootfs_a},type=linux;" \ - "name=system-data,size=1344MiB,uuid=${uuid_gpt_data},type=linux;" \ - "name=none,size=36MiB,uuid=${uuid_gpt_none},type=linux;" \ - "name=user,size=6636MiB,uuid=${uuid_gpt_user},type=linux;" \ - "name=module_a,size=32MiB,uuid=${uuid_gpt_module_a},type=linux;" \ - "name=ramdisk_a,size=32MiB,uuid=${uuid_gpt_ramdisk_a},type=linux;" \ - "name=ramdisk-recovery_a,size=32MiB,uuid=${uuid_gpt_ramdisk-recovery_a},type=linux;" \ - "name=inform,size=8MiB,uuid=${uuid_gpt_inform},type=linux;" \ - "name=hal_a,size=256MiB,uuid=${uuid_gpt_hal_a},type=linux;" \ - "name=boot_b,size=64MiB,uuid=${uuid_gpt_boot_b},type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B;" \ - "name=rootfs_b,size=3072MiB,uuid=${uuid_gpt_rootf_b},type=linux;" \ - "name=module_b,size=32MiB,uuid=${uuid_gpt_module_b},type=linux;" \ - "name=ramdisk_b,size=32MiB,uuid=${uuid_gpt_ramdisk_b},type=linux;" \ - "name=ramdisk-recovery_b,size=32MiB,uuid=${uuid_gpt_ramdisk-recovery_b},type=linux;" \ - "name=hal_b,size=256MiB,uuid=${uuid_gpt_hal_b},type=linux;" \ - "name=reserved0,size=4MiB,uuid=${uuid_gpt_reserved0},type=linux;" \ - "name=reserved1,size=64MiB,uuid=${uuid_gpt_reserved1},type=linux;" \ - "name=reserved2,size=-,uuid=${uuid_gpt_reserved2},type=linux;" \ - "" - -#ifdef CONFIG_TARGET_RPI_4_32B -#define TIZEN_VC_MEM "vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 swiotlb=8192 " -#else -#define TIZEN_VC_MEM "vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 " -#endif - -#define SET_INFORM_PART \ - "part number ${devtype} ${devnum} ${informname} informpart; " - -#define SET_TO_PARTITION_X(val) \ - SET_INFORM_PART \ - "if test -e ${devtype} ${devnum}:${informpart} ${slotfile}; then; " \ - "load ${devtype} ${devnum}:${informpart} ${slot_addr} /${slotfile} 2; " \ - "fi; " \ - "mw.b ${slot_addr} " val "; " \ - "ext4write ${devtype} ${devnum}:${informpart} ${slot_addr} /${slotfile} 2;" \ - -#define CLEAR_REBOOT_PARAM \ - SET_INFORM_PART \ - "mw.l ${rebootparam_addr} ${normal_val} ; " \ - "ext4write ${devtype} ${devnum}:${informpart} ${rebootparam_addr} /${rebootparamfile} 8; " - - -/* SD/MMC configuration */ -#define CONFIG_MMC_DEFAULT_DEV 0 - -#ifdef CONFIG_ARM64 -#define KERNEL_NAME "Image" -#else -#define KERNEL_NAME "zImage" -#endif - -/* -# use the ram address of ramdisk before loading ramdisk image -# 0x72677075 is ascii code for representing string "upgr" -# 0x72766372 is ascii code for representing string "rcvr" -# 0x6665646e is ascii code for representing string "ndef" -# 0x6c6e7764 is ascii code for representing string "dwnl" -# 0x696c6e6f is ascii code for representing string "onli" -*/ -#define TIZEN_ENV_SETTING \ - "kernel=" KERNEL_NAME "\0" \ - "dfu_alt_info=" DFU_ALT_SYSTEM "\0" \ - "informpart=9\0" \ - "rebootparamfile=reboot-param.bin\0" \ - "upgradetypefile=upgrade-type.info\0" \ - "slotfile=partition-ab.info\0" \ - "slot_addr=0x02200000\0" \ - "rebootparam_addr=0x02100000\0" \ - "upgradetype_addr=0x02300000\0" \ - "upgradetype_online_val=696c6e6f\0" \ - "upgrade_val=72677075\0" \ - "recovery_val=72766372\0" \ - "nodef_val=6665646e\0" \ - "normal_val=6d726f6e\0" \ - "download_val=6c6e7764\0" \ - "tfm=setenv bootmode download; run set_to_part_a; run bootcmd\0" \ - "tizen_bootarg=cgroup_enable=memory " \ - TIZEN_VC_MEM \ - "8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2709.serial=0xed6687d3 " \ - "snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 " \ - "bcm2709.uart_clock=48000000 dwc_otg.lpm_enable=0\0" \ - "opts=loglevel=4\0" \ - "dfu_usb_con=0\0" \ - "dfu_interface=mmc\0" \ - "dfu_device=" __stringify(CONFIG_MMC_DEFAULT_DEV) "\0" \ - "set_to_part_a=" SET_TO_PARTITION_X("0x61") "\0" \ - "set_to_part_b=" SET_TO_PARTITION_X("0x62") "\0" \ - "disable_delay=setenv console console=ram; setenv bootdelay 0; saveenv\0" \ - "enable_delay=env delete console; setenv bootdelay 2; saveenv\0" \ - "gpt_parts=" GPT_PARTS_DEFAULT "\0" \ - "update_gpt_part=gpt write ${devtype} ${devnum} ${gpt_parts}\0" \ - "reboot_param_clear=" CLEAR_REBOOT_PARAM "\0" \ - "" - -#endif /* __CONFIG_TIZEN_RPI_H */ -- 2.34.1